/*
 * MolGod "For teachers" page.
 * Font and text colour are inherited from the theme.
 * To match molgod.org exactly, set the three variables below to the theme's values.
 */
.mgt {
	--mgt-accent: #1f6f8b;       /* theme link / button colour */
	--mgt-accent-text: #ffffff;  /* text on the button */
	--mgt-radius: 6px;
	--mgt-line: color-mix(in srgb, currentColor 18%, transparent);
	--mgt-soft: color-mix(in srgb, currentColor 4%, transparent);
	--mgt-muted: color-mix(in srgb, currentColor 70%, transparent);

	max-width: 960px;
	margin: 0 auto;
	font: inherit;
	color: inherit;
	line-height: 1.6;
}

.mgt h1,
.mgt h2,
.mgt h3 { line-height: 1.2; margin: 0 0 .5em; }
.mgt h1 { font-size: clamp(2rem, 5vw, 3rem); }
.mgt h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.mgt h3 { font-size: 1.1rem; }
.mgt p  { margin: 0 0 1em; }

.mgt-hero { padding: 2rem 0 1.5rem; }
.mgt-eyebrow {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .8rem;
	font-weight: 600;
	color: var(--mgt-accent);
	margin-bottom: .5em;
}
.mgt-lead { font-size: 1.15rem; max-width: 65ch; color: var(--mgt-muted); }

.mgt-ctas { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }
.mgt-btn {
	display: inline-block;
	background: var(--mgt-accent);
	color: var(--mgt-accent-text) !important;
	padding: .75em 1.4em;
	border-radius: var(--mgt-radius);
	font-weight: 600;
	text-decoration: none !important;
}
.mgt-btn:hover,
.mgt-btn:focus-visible { filter: brightness(1.1); }
.mgt-link { color: var(--mgt-accent); font-weight: 600; text-decoration: none; }
.mgt-link:hover { text-decoration: underline; }
.mgt a:focus-visible { outline: 2px solid var(--mgt-accent); outline-offset: 3px; }

.mgt-stats {
	list-style: none;
	margin: 1rem 0 2.5rem;
	padding: 1.25rem 0;
	border-block: 1px solid var(--mgt-line);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
}
.mgt-stats li { display: grid; gap: .2rem; }
.mgt-stats strong { font-size: 1.6rem; line-height: 1.1; }
.mgt-stats span { font-size: .9rem; color: var(--mgt-muted); }

.mgt-section { padding: 2rem 0; border-bottom: 1px solid var(--mgt-line); }
.mgt-section:last-child { border-bottom: 0; }

.mgt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.mgt-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mgt-card {
	background: var(--mgt-soft);
	border: 1px solid var(--mgt-line);
	border-radius: var(--mgt-radius);
	padding: 1.1rem 1.2rem;
}
.mgt-card p:last-child { margin-bottom: 0; }

.mgt-steps { counter-reset: mgt; list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.mgt-steps li { counter-increment: mgt; position: relative; padding-left: 2.6rem; }
.mgt-steps li::before {
	content: counter(mgt);
	position: absolute;
	left: 0;
	top: .05em;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: var(--mgt-accent);
	color: var(--mgt-accent-text);
	font-weight: 700;
	font-size: .9rem;
	display: grid;
	place-items: center;
}

.mgt-list { padding-left: 1.2rem; display: grid; gap: .5rem; }

.mgt-print {
	background: var(--mgt-soft);
	border: 1px solid var(--mgt-line);
	border-radius: var(--mgt-radius);
	padding: 2rem clamp(1rem, 3vw, 2rem);
	margin: 2rem 0;
}
.mgt-print h3 { margin-top: 1.5rem; }

.mgt-models {
	list-style: none;
	padding: 0;
	margin: 1rem 0 1.5rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
	gap: .6rem;
}
.mgt-models a {
	display: grid;
	gap: .1rem;
	padding: .8rem 1rem;
	border: 1px solid var(--mgt-line);
	border-radius: var(--mgt-radius);
	text-decoration: none;
	color: inherit;
}
.mgt-models a:hover { border-color: var(--mgt-accent); }
.mgt-models span { font-size: .85rem; color: var(--mgt-muted); }

.mgt-faq { border-bottom: 1px solid var(--mgt-line); padding: .8rem 0; }
.mgt-faq summary { cursor: pointer; font-weight: 600; }
.mgt-faq p { margin: .6rem 0 0; color: var(--mgt-muted); }

.mgt-final { text-align: left; }

.mgt-rtp { margin: 0 0 1rem; border-color: var(--mgt-accent); }
.mgt-rtp h3 { margin-top: 0; }
.mgt-note { font-size: .95rem; color: var(--mgt-muted); }
