/*
 * RecoveryCompass — Page Design System (V1)
 * Contained design-system layer for core pages, guides index, and single guides.
 * Reuses existing marketing tokens (--forest, --gold, --cream, --warm, --border,
 * --ink, --teal, --sans, --serif) and the .page-hero / .sec section system.
 * RTL is handled with logical properties + a small .rtl override block; directional
 * glyphs (arrows) are baked into the localized strings, so no per-arrow CSS needed.
 *
 * All classes are namespaced .rcds-* to avoid collisions with existing components.
 */

/* ━━━━━━━━━━ LAYOUT HELPERS ━━━━━━━━━━ */
.rcds-narrow { max-width: 820px; margin-inline: auto; }
.rcds-wide   { max-width: 1040px; margin-inline: auto; }

/* Hero CTA row (optional, sits under .dir-sub inside .page-hero) */
.rcds-hero-cta {
	display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px;
}

/* ━━━━━━━━━━ CONTENT CARD + PROSE ━━━━━━━━━━ */
.rcds-card {
	background: #fff;
	border: 1.5px solid var(--border);
	border-radius: 16px;
	padding: 40px 44px;
	box-shadow: var(--sh-sm);
}

.rcds-prose {
	font-family: var(--rc-font-body-serif, 'Source Serif 4', Georgia, serif);
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink-70);
}
.rcds-prose > :first-child { margin-top: 0; }
.rcds-prose > :last-child  { margin-bottom: 0; }
.rcds-prose h2 {
	font-family: var(--serif);
	font-size: 25px; font-weight: 600;
	color: var(--ink); line-height: 1.25;
	margin: 38px 0 14px;
}
.rcds-prose h3 {
	font-family: var(--serif);
	font-size: 19px; font-weight: 600;
	color: var(--ink); line-height: 1.3;
	margin: 28px 0 10px;
}
.rcds-prose h2:first-child, .rcds-prose h3:first-child { margin-top: 0; }
.rcds-prose p { margin: 0 0 18px; }
.rcds-prose ul, .rcds-prose ol { margin: 0 0 20px; padding-inline-start: 24px; }
.rcds-prose li { margin-bottom: 9px; }
.rcds-prose li::marker { color: var(--gold); }
.rcds-prose a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.rcds-prose a:hover { color: var(--forest2); }
.rcds-prose strong { color: var(--ink); font-weight: 600; }
.rcds-prose hr { border: none; border-top: 1px solid var(--border); margin: 34px 0; }

/* ━━━━━━━━━━ TRUST / LIMITATION NOTE ━━━━━━━━━━ */
.rcds-note {
	display: flex; gap: 14px; align-items: flex-start;
	background: var(--warm);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px 18px;
	margin-top: 28px;
}
.rcds-note-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--forest); margin-top: 1px; }
.rcds-note-text { font-size: 13.5px; color: var(--ink-70); line-height: 1.6; }

/* ━━━━━━━━━━ FEATURE / SUPPORTING CARD GRID ━━━━━━━━━━ */
.rcds-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}
.rcds-feature {
	background: #fff;
	border: 1.5px solid var(--border);
	border-radius: 14px;
	padding: 22px 22px;
	display: block;
	text-decoration: none;
	transition: box-shadow .15s, transform .15s, border-color .15s;
}
a.rcds-feature:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--forest); }
.rcds-feature-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.rcds-feature-title { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 6px; }
.rcds-feature-sub { font-size: 13.5px; color: var(--ink-70); line-height: 1.55; }
.rcds-feature-more { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--forest); }

/* ━━━━━━━━━━ CHECKLIST BLOCK ━━━━━━━━━━ */
.rcds-checklist { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rcds-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-70); line-height: 1.6; }
.rcds-check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: var(--teal-pale); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px; }

/* ━━━━━━━━━━ CTA BAND ━━━━━━━━━━ */
.rcds-cta { background: linear-gradient(135deg, var(--forest3), var(--forest)); padding: 52px 40px; text-align: center; }
.rcds-cta-inner { max-width: 640px; margin-inline: auto; }
.rcds-cta-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
.rcds-cta-title { font-family: var(--serif); font-size: 28px; font-weight: 600; color: #fff; line-height: 1.25; margin-bottom: 24px; }
.rcds-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rcds-btn-gold {
	background: var(--gold2); color: var(--ink);
	border-radius: 9px; padding: 13px 24px;
	font-size: 14px; font-weight: 700; font-family: var(--sans);
	text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
	transition: all .2s; border: none; cursor: pointer;
}
.rcds-btn-gold:hover { background: var(--gold-light); color: var(--ink); transform: translateY(-2px); }
.rcds-btn-ghost {
	background: rgba(255,255,255,.08); color: #fff;
	border: 1px solid rgba(255,255,255,.30);
	border-radius: 9px; padding: 13px 22px;
	font-size: 14px; font-weight: 600; font-family: var(--sans);
	text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
	transition: all .2s;
}
.rcds-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ━━━━━━━━━━ RELATED LINKS ━━━━━━━━━━ */
.rcds-related { padding: 44px 40px 56px; background: var(--cream); }
.rcds-related-inner { max-width: 1040px; margin-inline: auto; }
.rcds-related-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 14px; }
.rcds-related-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.rcds-chip {
	display: inline-flex; align-items: center; gap: 8px;
	background: #fff; border: 1.5px solid var(--border);
	border-radius: 10px; padding: 11px 16px;
	font-size: 13.5px; font-weight: 600; color: var(--ink);
	text-decoration: none; transition: all .15s;
}
.rcds-chip:hover { border-color: var(--forest); color: var(--forest); box-shadow: var(--sh-sm); }
.rcds-chip-arrow { color: var(--gold); font-weight: 700; }

/* ━━━━━━━━━━ GUIDES INDEX ━━━━━━━━━━ */
.rcds-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.rcds-guide-card {
	background: #fff; border: 1.5px solid var(--border);
	border-radius: 14px; padding: 24px;
	display: flex; flex-direction: column; text-decoration: none;
	transition: box-shadow .15s, transform .15s, border-color .15s;
}
a.rcds-guide-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--forest); }
.rcds-guide-cat { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.rcds-guide-title { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 8px; }
.rcds-guide-sub { font-size: 13.5px; color: var(--ink-70); line-height: 1.55; flex: 1; }
.rcds-guide-read { margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--forest); }
.rcds-coming {
	background: var(--warm); border: 1px dashed var(--border);
	border-radius: 14px; padding: 28px; text-align: center;
	font-size: 14.5px; color: var(--ink-70); line-height: 1.6;
}

/* Treatment paths */
.rcds-paths { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.rcds-path {
	display: inline-flex; align-items: center; gap: 8px;
	background: #fff; border: 1.5px solid var(--border);
	border-radius: 999px; padding: 9px 16px;
	font-size: 13px; font-weight: 600; color: var(--ink);
	text-decoration: none; transition: all .15s;
}
.rcds-path:hover { border-color: var(--forest); color: var(--forest); }
.rcds-path-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

.rcds-block { margin-bottom: 40px; }
.rcds-block:last-child { margin-bottom: 0; }

/* ━━━━━━━━━━ SINGLE GUIDE ENHANCEMENTS ━━━━━━━━━━ */
.rcds-source-note {
	display: flex; gap: 12px; align-items: flex-start;
	background: var(--warm); border: 1px solid var(--border);
	border-radius: 12px; padding: 14px 16px;
	font-size: 13px; color: var(--ink-70); line-height: 1.55;
	margin-top: 32px;
}
.rcds-source-note svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--forest); margin-top: 1px; }

/* ━━━━━━━━━━ RTL ADJUSTMENTS ━━━━━━━━━━ */
.rtl .rcds-prose,
.rtl .rcds-note-text,
.rtl .rcds-feature,
.rtl .rcds-guide-card,
.rtl .rcds-source-note { text-align: right; }
.rtl .rcds-prose a { text-underline-offset: 2px; }

/* ━━━━━━━━━━ MOBILE ━━━━━━━━━━ */
@media (max-width: 768px) {
	.page-hero { padding-left: 22px; padding-right: 22px; }
	.rcds-card { padding: 26px 22px; }
	.rcds-cta { padding: 40px 22px; }
	.rcds-cta-title { font-size: 23px; }
	.rcds-related { padding: 36px 22px 44px; }
	.rcds-prose { font-size: 16px; }
	.rcds-prose h2 { font-size: 22px; }
	.rcds-btn-gold, .rcds-btn-ghost { width: 100%; justify-content: center; }
}
