/**
 * Reader Experience Styles
 *
 * Shared styles for reader-facing experience pages:
 * - growth-timeline (Phase B)
 * - training-journey (Phase C)
 * - admin-dashboard (Phase A, scoped reuse)
 *
 * Loaded conditionally via inc/enqueue.php based on page template.
 *
 * @package tinywag
 * @since 5.2.0
 */

/* ============================================================
   Admin Dashboard (Phase A)
   ============================================================ */

.admin-dashboard-page {
	max-width: min(100%, 1100px);
	margin: 0 auto;
	padding: 24px 16px 64px;
}

.admin-dashboard-page__hero {
	background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
	color: #fff;
	padding: 32px 24px;
	border-radius: 12px;
	margin-bottom: 32px;
	border-bottom: 0;
}

.admin-dashboard-page__eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9ca3af;
	margin: 0 0 8px;
}

.admin-dashboard-page__title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
	color: #f8fafc;
}

.admin-dashboard-page__hero .page-hero__subtitle.admin-dashboard-page__subtitle {
	font-size: 0.95rem;
	color: #ffffff;
	margin: 0;
	line-height: 1.6;
}

.admin-dashboard-page__nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.admin-dashboard-page__nav-card {
	display: block;
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	text-decoration: none;
	color: #1f2937;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.admin-dashboard-page__nav-card:hover,
.admin-dashboard-page__nav-card:focus {
	border-color: #2563eb;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.14);
	transform: translateY(-2px);
}

.admin-dashboard-page__nav-card h3,
.admin-dashboard-page__nav-label {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: #111827;
	line-height: 1.4;
}

.admin-dashboard-page__nav-card p,
.admin-dashboard-page__nav-desc {
	display: block;
	font-size: 0.9rem;
	color: #4b5563;
	margin: 0;
	line-height: 1.5;
}

.admin-dashboard-page__section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 24px;
}

.admin-dashboard-page__section-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 16px;
	color: #111827;
	border-bottom: 2px solid #f3f4f6;
	padding-bottom: 8px;
}

.admin-dashboard-page__metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.admin-dashboard-page__metric {
	padding: 12px;
	background: #f9fafb;
	border-radius: 8px;
	border: 1px solid #f3f4f6;
}

.admin-dashboard-page__metric-label {
	font-size: 0.75rem;
	color: #4b5563;
	font-weight: 600;
	margin: 0 0 4px;
}

.admin-dashboard-page__metric-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.admin-dashboard-page__metric-value--compact {
	font-size: 1rem;
	line-height: 1.6;
}

.admin-dashboard-page__metric-value--placeholder {
	font-size: 1rem;
	font-weight: 600;
	color: #6b7280;
}

.admin-dashboard-page__metric-note {
	display: block;
	margin-top: 8px;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.5;
	color: #4b5563;
}

.admin-dashboard-page__muted {
	color: #6b7280;
	font-size: 0.85rem;
	font-style: normal;
	line-height: 1.6;
}

.admin-dashboard-page__meta {
	margin-top: 16px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.admin-dashboard-page__meta p {
	margin: 0;
	color: #475569;
	font-size: 0.88rem;
	line-height: 1.6;
}

.admin-dashboard-page__meta p + p {
	margin-top: 8px;
}

.admin-dashboard-page__status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.admin-dashboard-page__status--success {
	background: #dcfce7;
	color: #166534;
}

.admin-dashboard-page__status--warning {
	background: #fef3c7;
	color: #92400e;
}

.admin-dashboard-page__status--danger {
	background: #fee2e2;
	color: #b91c1c;
}

.admin-dashboard-page__status--neutral {
	background: #e5e7eb;
	color: #374151;
}

/* ============================================================
   Reader pages — Shared
   ============================================================ */

.reader-experience-page {
	max-width: 1100px;
	margin: 0 auto;
	--reader-page-mobile-shell-inline: clamp(0.5rem, 2.2vw, 0.75rem);
	--reader-page-mobile-content-inline: clamp(0.72rem, 3vw, 0.92rem);
}

.reader-experience-page--growth-timeline .page-main.tw-readable-page {
	--tw-readable-inline: clamp(0.95rem, 4vw, 1.35rem);
	--tw-readable-section-space: clamp(1.2rem, 4.8vw, 1.8rem);
}

.reader-experience-page--training-journey .page-main.tw-readable-page {
	--tw-readable-inline: clamp(0.95rem, 4.2vw, 1.2rem);
	--tw-readable-section-space: clamp(1.15rem, 4.8vw, 1.8rem);
}

/* Hero */
.reader-page-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
	padding: 48px 24px 36px;
	background:
		linear-gradient(rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.12)),
		linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.reader-page-hero__kicker {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.85;
	margin: 0 0 8px;
}

.reader-page-hero__title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.25;
	color: inherit;
	text-shadow: 0 1px 0 rgba(15, 23, 42, 0.18), 0 10px 28px rgba(15, 23, 42, 0.2);
}

.reader-page-hero__subtitle {
	font-size: 1rem;
	opacity: 0.9;
	margin: 0 0 28px;
	line-height: 1.6;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.reader-page-hero__stats {
	display: flex;
	justify-content: center;
	gap: 32px;
	flex-wrap: wrap;
}

.reader-page-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.reader-page-hero__stat-value {
	font-size: 1.4rem;
	font-weight: 700;
}

.reader-page-hero__stat-label {
	font-size: 0.75rem;
	opacity: 0.8;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.reader-page-hero__note {
	max-width: 760px;
	margin: 18px auto 0;
	font-size: 0.84rem;
	line-height: 1.65;
	opacity: 0.88;
}

/* ============================================================
   Life-stage cards
   ============================================================ */

.reader-lifestage-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.reader-lifestage-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px 20px;
	position: relative;
	transition: box-shadow 0.2s, transform 0.2s;
}

.reader-lifestage-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.reader-lifestage-card--current {
	border-color: #667eea;
	box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.reader-lifestage-card__icon {
	font-size: 2rem;
	display: block;
	margin-bottom: 8px;
}

.reader-lifestage-card__name {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 4px;
	color: #111827;
}

.reader-lifestage-card__period {
	font-size: 0.8rem;
	color: #6b7280;
	margin: 0 0 8px;
}

.reader-lifestage-card__desc {
	font-size: 0.85rem;
	color: #374151;
	line-height: 1.6;
	margin: 0 0 8px;
}

.reader-lifestage-card__badge {
	display: inline-block;
	background: #667eea;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}

.reader-lifestage-card__devs {
	margin: 8px 0 0;
	padding: 0 0 0 18px;
	font-size: 0.8rem;
	color: #4b5563;
	line-height: 1.6;
}

/* ============================================================
   Weight chart
   ============================================================ */

.reader-chart-wrapper {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-sizing: border-box;
	inline-size: 100%;
	max-width: 100%;
	min-width: 0;
	padding: clamp(1rem, 2.8vw, 1.4rem) clamp(0.85rem, 2.2vw, 1rem);
	overflow-x: auto;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
}

.reader-chart-svg {
	width: 100%;
	height: auto;
	display: block;
}

.reader-chart-phases {
	margin-top: clamp(1rem, 3vw, 1.5rem);
}

.reader-chart-phases__title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 12px;
	color: #111827;
}

.reader-chart-phases__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.reader-chart-phase {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.8rem;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	min-width: 0;
}

.reader-chart-phase--rapid {
	border-color: #fbbf24;
	background: #fffbeb;
}

.reader-chart-phase--stable {
	border-color: #34d399;
	background: #ecfdf5;
}

.reader-chart-phase__label {
	font-weight: 600;
	color: #111827;
	flex-basis: 100%;
}

.reader-chart-phase__range {
	color: #6b7280;
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 0.5rem;
}

.reader-chart-phase__change {
	font-weight: 600;
	color: #374151;
	margin-left: auto;
	white-space: nowrap;
}

/* ============================================================
   Milestones timeline
   ============================================================ */

.reader-milestone-list {
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
}

.reader-milestone-list::before {
	content: '';
	position: absolute;
	left: 22px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #e5e7eb;
}

.reader-milestone-item {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	position: relative;
}

.reader-milestone-item__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 50%;
	font-size: 1.1rem;
	z-index: 1;
}

.reader-milestone-item--age .reader-milestone-item__icon {
	border-color: #fbbf24;
	background: #fffbeb;
}

.reader-milestone-item--health .reader-milestone-item__icon,
.reader-milestone-item--vaccination .reader-milestone-item__icon {
	border-color: #f87171;
	background: #fef2f2;
}

.reader-milestone-item--first_time .reader-milestone-item__icon {
	border-color: #667eea;
	background: #eef2ff;
}

.reader-milestone-item--training_hidden_evidence .reader-milestone-item__icon {
	border-color: #0f766e;
	background: #ecfeff;
}

.reader-milestone-item__content {
	flex: 1;
	min-width: 0;
}

.reader-milestone-item__date {
	font-size: 0.75rem;
	color: #6b7280;
	font-weight: 500;
}

.reader-milestone-item__age {
	font-size: 0.75rem;
	color: #9ca3af;
	margin-left: 8px;
}

.reader-milestone-item__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #111827;
	margin: 2px 0 4px;
}

.reader-milestone-item__desc {
	font-size: 0.85rem;
	color: #4b5563;
	line-height: 1.5;
	margin: 0;
}

.reader-milestone-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.reader-milestone-item__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
	background: #f3f4f6;
	color: #374151;
}

.reader-milestone-item__pill.is-reference {
	background: #eef2ff;
	color: #4338ca;
}

.reader-milestone-item__pill.is-positive {
	background: #ecfdf5;
	color: #047857;
}

.reader-milestone-item__pill.is-negative {
	background: #fff1f2;
	color: #be123c;
}

.reader-milestone-item__pill.is-mixed {
	background: #fef3c7;
	color: #92400e;
}

.reader-milestone-item__evidence {
	font-size: 0.8rem;
	line-height: 1.55;
	color: #475569;
	margin: 10px 0 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
	.reader-experience-page.layout-container {
		padding-left: var(--reader-page-mobile-shell-inline);
		padding-right: var(--reader-page-mobile-shell-inline);
	}

	.reader-experience-page .page-main.tw-readable-page {
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.reader-experience-page--growth-timeline .page-main.tw-readable-page {
		--tw-readable-inline: var(--reader-page-mobile-content-inline);
		--tw-readable-section-space: 0.95rem;
	}

	.reader-page-hero {
		padding: 30px 14px 22px;
	}

	.reader-page-hero__stats {
		gap: 16px 12px;
	}

	.reader-page-hero__stat-value {
		font-size: 1.1rem;
	}

	.reader-page-hero__note {
		margin-top: 14px;
		font-size: 0.8rem;
	}

	.reader-lifestage-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.reader-lifestage-card {
		padding: 20px 16px;
		border-radius: 14px;
	}

	.reader-chart-phases__list {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.reader-chart-wrapper {
		padding: 0.85rem 0.55rem 0.72rem;
		border-radius: 14px;
	}

	.reader-chart-phase {
		padding: 12px;
	}

	.reader-milestone-list::before {
		left: 18px;
	}

	.reader-milestone-item__icon {
		width: 36px;
		height: 36px;
		font-size: 0.9rem;
	}
}

/* ============================================================
   Training Journey — Command mastery
   ============================================================ */

.reader-page-hero--training {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.reader-training__highlights {
	padding-top: 0;
}

.reader-highlight-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.reader-highlight-card {
	background: #fff;
	border: 1px solid #dbe7e1;
	border-radius: 16px;
	padding: 18px 18px 16px;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.04);
}

.reader-highlight-card__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0f766e;
}

.reader-highlight-card__value {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.45;
	color: #111827;
}

.reader-highlight-card__body {
	margin: 0.6rem 0 0;
	font-size: 0.82rem;
	line-height: 1.6;
	color: #475569;
}

.reader-mastery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.reader-mastery-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	transition: box-shadow 0.2s;
}

.reader-mastery-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.reader-mastery-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.reader-mastery-card__name {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	margin: 0;
}

.reader-mastery-card__badge {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.reader-mastery-card__badge--mastered {
	background: #ecfdf5;
	color: #059669;
}

.reader-mastery-card__badge--in_progress {
	background: #fffbeb;
	color: #d97706;
}

.reader-mastery-card__badge--introduced {
	background: #f3f4f6;
	color: #6b7280;
}

.reader-mastery-card__bar-wrap {
	position: relative;
	height: 8px;
	background: #f3f4f6;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 10px;
}

.reader-mastery-card__bar {
	height: 100%;
	border-radius: 4px;
	transition: width 0.4s ease;
}

.reader-mastery-card__rate {
	position: absolute;
	right: 0;
	top: -18px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #374151;
}

.reader-mastery-card__meta {
	display: flex;
	gap: 12px;
	font-size: 0.75rem;
	color: #6b7280;
	flex-wrap: wrap;
}

.reader-mastery-card__flags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.65rem;
}

.reader-mastery-card__flag {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.7rem;
	font-weight: 600;
}

.reader-mastery-card__meta-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.62rem;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #f8fafc;
	color: #475569;
}

.reader-mastery-card__meta-pill.is-reference {
	border-color: #fdba74;
	background: #fff7ed;
	color: #9a3412;
}

.reader-mastery-card__meta-pill.is-empty {
	border-color: #e5e7eb;
	background: #f8fafc;
	color: #94a3b8;
}

.reader-mastery-card__meta-pill.is-positive {
	border-color: #bbf7d0;
	background: #ecfdf5;
	color: #047857;
}

.reader-mastery-card__meta-pill.is-negative {
	border-color: #fecaca;
	background: #fef2f2;
	color: #b91c1c;
}

.reader-mastery-card__meta-pill.is-mixed {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #1d4ed8;
}

.reader-mastery-card__last {
	font-size: 0.72rem;
	color: #9ca3af;
	margin: 6px 0 0;
}

.reader-mastery-card__caveat {
	margin: 0.65rem 0 0;
	font-size: 0.76rem;
	line-height: 1.55;
	color: #8b5e34;
}

/* ============================================================
   Training Journey — Behavior change chart
   ============================================================ */

.reader-behavior-summary,
.reader-context-summary {
	margin-bottom: 0.45rem;
}

.reader-behavior-note,
.reader-context-note {
	margin-bottom: 1rem;
	color: #64748b;
}

.reader-behavior-window-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 1rem;
}

.reader-behavior-window-card {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #dbe7e1;
	border-radius: 14px;
	padding: 14px 14px 12px;
}

.reader-behavior-window-card__label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	color: #0f172a;
}

.reader-behavior-window-card__range {
	margin: 0.22rem 0 0;
	font-size: 0.72rem;
	color: #64748b;
}

.reader-behavior-window-card__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.6rem;
	margin-top: 0.7rem;
}

.reader-behavior-window-card__stat {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.48rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
}

.reader-behavior-window-card__stat.is-bark {
	background: #fef2f2;
	color: #b91c1c;
}

.reader-behavior-window-card__stat.is-mixed {
	background: #fffbeb;
	color: #b45309;
}

.reader-behavior-window-card__stat.is-calm {
	background: #ecfdf5;
	color: #047857;
}

.reader-behavior-window-card__meta {
	margin: 0.72rem 0 0;
	font-size: 0.74rem;
	color: #475569;
}

.reader-behavior-legend {
	display: flex;
	gap: 20px;
	margin-bottom: 12px;
	font-size: 0.82rem;
	color: #374151;
}

.reader-behavior-legend__item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.reader-behavior-legend__swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

.reader-behavior-legend__swatch--mixed {
	background: #f59e0b;
}

.reader-behavior-hint {
	display: none;
	margin: 0 0 0.8rem;
	font-size: 0.78rem;
	line-height: 1.5;
	color: #64748b;
}

.reader-training__behavior .reader-chart-wrapper {
	-webkit-overflow-scrolling: touch;
}

.reader-chart-wrapper--behavior {
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.reader-chart-wrapper--behavior .reader-chart-scroll-inner {
	width: 100%;
	min-width: 0;
}

.reader-training__mastery-note {
	margin-bottom: 1rem;
}

/* ============================================================
   Training Journey — Context / environment correlation
   ============================================================ */

.reader-context-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.reader-context-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
}

.reader-context-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 12px;
}

.reader-context-card__name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #111827;
	margin: 0;
}

.reader-context-card__impact {
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: right;
}

.reader-context-card__score-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.55rem;
}

.reader-context-card__score {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 700;
	color: #111827;
}

.reader-context-card__delta {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
}

.reader-context-card__bar-wrap {
	height: 8px;
	background: #f3f4f6;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}

.reader-context-card__bar {
	height: 100%;
	border-radius: 4px;
	transition: width 0.4s ease;
}

.reader-context-card__meta {
	margin: 0.7rem 0 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: #475569;
}

.reader-context-card__desc {
	margin: 0.4rem 0 0;
	font-size: 0.8rem;
	line-height: 1.55;
	color: #64748b;
}

/* ============================================================
   Responsive (training journey additions)
   ============================================================ */

@media (max-width: 640px) {
	.reader-experience-page--training-journey .page-main.tw-readable-page {
		--tw-readable-inline: var(--reader-page-mobile-content-inline);
		--tw-readable-section-space: 0.95rem;
	}

	.reader-mastery-grid {
		grid-template-columns: 1fr;
	}

	.reader-highlight-grid,
	.reader-behavior-window-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.reader-highlight-card {
		padding: 16px 14px 14px;
		border-radius: 14px;
	}

	.reader-mastery-card {
		padding: 16px 14px;
		border-radius: 14px;
	}

	.reader-mastery-card__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.55rem;
	}

	.reader-mastery-card__meta {
		gap: 0.5rem;
	}

	.reader-behavior-legend {
		flex-wrap: wrap;
		gap: 0.65rem 1rem;
		margin-bottom: 0.5rem;
	}

	.reader-behavior-summary,
	.reader-context-summary,
	.reader-behavior-note,
	.reader-context-note {
		font-size: 0.82rem;
		line-height: 1.6;
	}

	.reader-behavior-hint {
		display: block;
	}

	.reader-training__behavior .reader-chart-wrapper {
		padding: 14px 8px 10px;
		border-radius: 16px;
	}

	.reader-training__behavior .reader-chart-wrapper--behavior .reader-chart-scroll-inner {
		width: max(100%, var(--behavior-chart-width, 760px));
	}

	.reader-training__behavior .reader-chart-wrapper--behavior .reader-chart-svg {
		max-width: none;
	}

	.reader-context-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.reader-context-card {
		padding: 16px 14px;
		border-radius: 14px;
	}

	.reader-context-card__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
	}

	.reader-context-card__impact {
		text-align: left;
	}

	.reader-context-card__score-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.2rem;
	}
}

@media (min-width: 768px) {
	.reader-experience-page--training-journey .page-main.tw-readable-page {
		--tw-readable-inline: clamp(1.25rem, 2.6vw, 1.75rem);
		--tw-readable-section-space: clamp(1.75rem, 3vw, 2.45rem);
	}
}

/* ── Accessibility ────────────────────────────────── */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Telemetry Schema Reference Table — moved to assets/css/schema-table.css */
