/*
Theme Name: Twenty Seventeen Child - Relatix Health
Template: twentyseventeen
Version: 1.2.0
Text Domain: twentyseventeen-child

Overrides just the front page: turns it into a dedicated splash/landing
page (hero + sign-in CTAs, no stacked panels), and adds a "Relatix Home
Stack" page template that reproduces the parent theme's panel-stacking
front page exactly, for use on /home/ instead of the site root.

Added 2026-09-06 at user's request: there used to be a distinct splash
page; the front page had absorbed the "Start here" and "About" panels
that belong on /home instead.
*/

/*
 * Resources cards (/resources/): .rel-grid / .rel-card markup had no styles,
 * so each card's buttons ran into the next card and it was unclear which
 * disorder a Myself/Supporter button belonged to. Each card is now a boxed
 * unit with its buttons pinned to the bottom inside the box.
 */
.rel-grid {
	display: grid;
	gap: 1.25em;
	margin: 1.5em 0 2.5em;
}

@media screen and (min-width: 30em) {
	.rel-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (min-width: 48em) {
	.rel-grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rel-card {
	display: flex;
	flex-direction: column;
	padding: 1.25em 1.25em 1em;
	background: #fff;
	border: 1px solid #ddd;
	border-top: 4px solid #2a6f97;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rel-card h4 {
	margin: 0 0 0.5em;
	padding: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: #222;
}

.rel-card p {
	margin: 0 0 0.75em;
	font-size: 0.875rem;
	line-height: 1.5;
}

.rel-divider {
	margin-top: auto;
	border-top: 1px solid #eee;
	padding-top: 0.75em;
}

.rel-card .relatix-style-lab__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.relatix-style-lab__button {
	display: inline-block;
	padding: 0.45em 0.9em;
	border: 1px solid #2a6f97;
	border-radius: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
}

.entry-content a.relatix-style-lab__button,
.entry-content a.relatix-style-lab__button:hover {
	box-shadow: none;
}

.relatix-style-lab__button--myself {
	background: #2a6f97;
	color: #fff;
}

.relatix-style-lab__button--supporter {
	background: #fff;
	color: #2a6f97;
}

.entry-content a.relatix-style-lab__button--myself:hover,
.entry-content a.relatix-style-lab__button--myself:focus {
	background: #1d5374;
	color: #fff;
}

.entry-content a.relatix-style-lab__button--supporter:hover,
.entry-content a.relatix-style-lab__button--supporter:focus {
	background: #eaf3f8;
	color: #1d5374;
}

/* Relatix Health footer */
.relatix-footer.site-footer {
	margin-top: 0;
	padding: 0;
	border: 0;
	background: #061a33;
	color: #dce9f3;
}

.relatix-footer__inner {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
	padding: 72px 0 24px;
}

.relatix-footer__grid {
	display: grid;
	grid-template-columns: minmax(300px, 1.6fr) repeat(4, minmax(110px, 1fr));
	gap: 32px;
}

.relatix-footer__brand {
	max-width: 430px;
}

.relatix-footer__logo {
	margin-bottom: 24px;
}

.relatix-footer__logo .custom-logo-link {
	display: inline-block;
	padding: 0;
}

.relatix-footer__logo .custom-logo {
	width: auto;
	height: 70px;
	max-height: 70px;
}

.relatix-footer__wordmark {
	display: inline-block;
	margin-bottom: 24px;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
}

.relatix-footer p {
	margin: 0 0 16px;
	color: #c6d8e6;
	font-size: 0.95rem;
	line-height: 1.7;
}

.relatix-footer .relatix-footer__note {
	color: #91adbf;
	font-size: 0.88rem;
}

.relatix-footer a {
	color: #8ce1d3;
	text-decoration: none;
	box-shadow: none;
}

.relatix-footer a:hover,
.relatix-footer a:focus {
	color: #fff;
	text-decoration: underline;
	box-shadow: none;
}

.relatix-footer__column {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 11px;
}

.relatix-footer__column h2 {
	margin: 0 0 9px;
	padding: 0;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.relatix-footer__column a {
	color: #c6d8e6;
	font-size: 0.92rem;
}

.relatix-footer__column .relatix-footer__urgent {
	color: #8ce1d3;
	font-weight: 700;
}

.relatix-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 56px;
	padding-top: 22px;
	border-top: 1px solid rgba(140, 225, 211, 0.18);
}

.relatix-footer__bottom p {
	margin: 0;
	color: #7895aa;
	font-size: 0.78rem;
}

@media screen and (max-width: 1000px) {
	.relatix-footer__grid {
		grid-template-columns: repeat(4, minmax(120px, 1fr));
	}

	.relatix-footer__brand {
		grid-column: 1 / -1;
		max-width: 680px;
	}
}

@media screen and (max-width: 600px) {
	.relatix-footer__inner {
		width: min(100% - 32px, 1180px);
		padding-top: 52px;
	}

	.relatix-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px 24px;
	}

	.relatix-footer__brand {
		grid-column: 1 / -1;
	}

	.relatix-footer__bottom {
		flex-direction: column;
		margin-top: 40px;
	}
}

