/**
 * Help center page — reuses site-chrome.css and tuition-classes.css.
 */

.tm-help-hero {
	margin-bottom: 1.35rem;
}

.tm-help-note {
	margin-bottom: 1.25rem;
}

.tm-help-note p {
	margin: 0;
}

.tm-help-link-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.tm-help-link {
	display: block;
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--tm-c-border);
	border-radius: 12px;
	background: linear-gradient(180deg, var(--tm-c-surface2), var(--tm-c-surface));
	color: var(--tm-c-text) !important;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.tm-help-link:hover {
	border-color: rgba(20, 184, 166, 0.45);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.tm-help-link__title {
	display: block;
	font-size: 0.94rem;
	font-weight: 700;
	line-height: 1.4;
}

.tm-help-link__meta {
	display: block;
	margin-top: 0.28rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--tm-c-muted);
}

.tm-help-article {
	font-size: 0.95rem;
	line-height: 1.68;
	color: var(--tm-c-text);
}

.tm-help-article > *:first-child {
	margin-top: 0;
}

.tm-help-article p {
	margin: 0 0 1rem;
}

.tm-help-article ol,
.tm-help-article ul {
	margin: 0 0 1rem 1.35rem;
	padding: 0;
}

.tm-help-article li + li {
	margin-top: 0.42rem;
}

.tm-help-article h3 {
	margin: 0 0 0.85rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.tm-help-article h4 {
	margin: 1.8rem 0 0.8rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tm-c-accent);
}

.tm-help-section {
	scroll-margin-top: 1rem;
}

.tm-help-section + .tm-help-section {
	padding-top: 1.35rem;
	margin-top: 1.35rem;
	border-top: 1px solid var(--tm-c-border);
}

.tm-help-page .tm-help-article a {
	color: var(--tm-c-accent);
	font-weight: 700;
	text-decoration: none !important;
}

.tm-help-page .tm-help-article a:hover {
	text-decoration: underline !important;
}

.tm-help-back-to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.65rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(20, 184, 166, 0.28);
	background: rgba(15, 23, 42, 0.92);
	color: #fff !important;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
	z-index: 20;
}

.tm-help-back-to-top:hover {
	background: var(--tm-c-accent);
}

@media (max-width: 760px) {
	.tm-help-link-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.tm-help-back-to-top {
		right: 0.75rem;
		bottom: 0.75rem;
		padding: 0.58rem 0.8rem;
		font-size: 0.76rem;
	}
}

/* Terms page — inline definitions */
.tm-terms-definitions {
	margin: 0.35rem 0 0;
}

.tm-terms-definitions p {
	margin: 0 0 0.65rem;
	font-size: 0.92rem;
	line-height: 1.62;
}

.tm-terms-definitions p:last-child {
	margin-bottom: 0;
}

.tm-terms-definitions strong {
	font-weight: 700;
}

.tm-help-article .tm-term-highlight {
	color: var(--tm-c-accent2);
	font-weight: 600;
}

.tm-about-signoff {
	margin-top: 0.5rem;
	font-weight: 600;
	color: var(--tm-c-muted);
}

/* Alternating feature rows (for-teachers / for-students guides) */
.tm-feature-story {
	background: #fff;
	border: 1px solid var(--tm-c-border, #e2e8f0);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	margin-bottom: 1.25rem;
}

.tm-feature-story__head {
	padding: 0.95rem 1.35rem;
	background: linear-gradient(180deg, #eef6f9, #f8fafc);
	border-bottom: 1px solid var(--tm-c-border, #e2e8f0);
}

.tm-feature-story__head h2 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f172a;
}

.tm-feature-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.35rem;
	align-items: center;
	padding: 1.5rem 1.35rem;
	border-bottom: 1px solid var(--tm-c-border, #e2e8f0);
}

.tm-feature-row:last-of-type {
	border-bottom: 0;
}

@media (min-width: 800px) {
	.tm-feature-row {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 2rem;
		padding: 1.85rem 1.75rem;
	}

	.tm-feature-row--reverse .tm-feature-row__copy {
		order: 2;
	}

	.tm-feature-row--reverse .tm-feature-row__media {
		order: 1;
	}
}

.tm-feature-row__copy h3 {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
	line-height: 1.3;
	color: #0f172a;
}

.tm-feature-row__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 50%;
	background: var(--tm-c-accent, #0d9488);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
}

.tm-feature-row__copy p {
	margin: 0 0 0.85rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #334155;
}

.tm-feature-row__copy p:last-child {
	margin-bottom: 0;
}

.tm-feature-row__cta {
	margin-top: 0.35rem !important;
}

.tm-feature-row__cta a,
.tm-feature-story__next a {
	color: var(--tm-c-accent, #0d9488);
	font-weight: 700;
	text-decoration: none !important;
}

.tm-feature-row__cta a:hover,
.tm-feature-story__next a:hover {
	text-decoration: underline !important;
}

.tm-feature-row__media {
	margin: 0;
	justify-self: center;
	width: 100%;
	max-width: 420px;
}

.tm-feature-row__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.tm-feature-story__next {
	padding: 1.35rem 1.5rem 1.6rem;
	background: #f8fafc;
	border-top: 1px solid var(--tm-c-border, #e2e8f0);
}

.tm-feature-story__next h3 {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	color: #0f172a;
}

.tm-feature-story__next ul {
	margin: 0 0 0 1.2rem;
	padding: 0;
}

.tm-feature-story__next li + li {
	margin-top: 0.4rem;
}
