/* Classroom stories: the /stories/ index (page-stories.php) and every story page
   (templates/story.php). Scoped under .sty so generic class names (.section,
   .btn, .results…) can't collide with main.css or other pages' sheets. Token
   block, primitives, and light/mist/dark conventions match testimonials.css.
   Mobile-first; min-width queries scale up. */

.sty {
	--blue-50:  #EEF0FB; --blue-100: #D9DEF7; --blue-200: #B7BFF0; --blue-300: #8C97E6;
	--blue-400: #6470DB; --blue-500: #3543D0; --blue-600: #2C37B0; --blue-700: #232C8F;
	--blue-800: #1A216C; --blue-900: #111650;
	--teal: #43E8D8; --lime: #89D992; --gold: #FDC801;
	--grey-50:  #F7F8FA; --grey-100: #EEF0F3; --grey-200: #DDE1E7; --grey-300: #C3C9D2;
	--grey-400: #9AA2AE; --grey-500: #6B7280; --grey-600: #4B5260; --grey-700: #353B47;
	--grey-800: #222730; --grey-900: #11141A;
	--surface-base: #0B0F1E; --surface-1: #111730; --surface-2: #1A2142;
	--border-dark: #2A3358; --text-dark-1: #F2F4FB; --text-dark-2: #A9B1C6; --muted-dark: #8891AA;
	--r-sm: 4px; --r: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px;
	--shadow-sm: 0 1px 2px 0 rgb(17 20 26 / 0.05);
	--shadow-lg: 0 18px 40px -16px rgb(17 20 26 / 0.28);
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--display: 'Source Serif 4', ui-serif, Georgia, serif;

	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--grey-900);
	background: #fff;
}
.sty *, .sty *::before, .sty *::after { box-sizing: border-box; }
.sty a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 2px; }
.sty a:hover { color: var(--blue-600); }
.sty a:focus-visible { outline: none; border-radius: var(--r-sm); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue-500); }
.sty img, .sty svg { max-width: 100%; }
.sty h1, .sty h2, .sty h3 { font-family: var(--sans); line-height: 1.2; margin: 0; text-wrap: balance; }

.sty .wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .sty .wrap { padding: 0 24px; } }
.sty .prose-wrap { max-width: 800px; }
.sty .section { padding: 64px 0; }
@media (min-width: 768px) { .sty .section { padding: 88px 0; } }

.sty .eyebrow {
	display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
	text-transform: uppercase; margin-bottom: 14px;
}
.sty .eyebrow.on-light { color: var(--blue-500); }
.sty .eyebrow.on-dark { color: var(--teal); }

.sty .light { background: #fff; }
.sty .mist { background: var(--grey-50); }
.sty .dark { background: var(--surface-base); color: var(--text-dark-1); }

.sty .fine { font-size: 13px; line-height: 1.55; color: var(--grey-500); margin: 24px 0 0; }
.sty .dark .fine { color: var(--muted-dark); }

/* ---------- Section heads (site standard h2 scale, rule 25) ---------- */
.sty .sec-head { margin-bottom: 32px; }
.sty .sec-head h2, .sty .cta h2 {
	font-family: var(--display); font-optical-sizing: auto;
	font-variation-settings: "opsz" 48; font-weight: 500;
	font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 14px;
	color: var(--ink);
}
.sty .dark .sec-head h2, .sty .cta.dark h2 { color: var(--text-dark-1); }
.sty .sec-head p { font-size: 17px; line-height: 27px; color: var(--grey-600); margin: 0; }

/* ---------- Index hero (centered) ---------- */
.sty .page-hero { padding: 64px 0 48px; position: relative; overflow: hidden; text-align: center; }
@media (min-width: 1024px) { .sty .page-hero { padding: 96px 0 72px; } }
.sty .page-hero::before,
.sty .story-hero::before {
	content: ""; position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
	width: 720px; height: 720px;
	background: radial-gradient(circle, rgba(67,232,216,0.16) 0%, rgba(67,232,216,0) 65%);
	pointer-events: none;
}
.sty .page-hero .wrap, .sty .story-hero .wrap { position: relative; }
.sty .page-hero h1, .sty .story-hero h1 {
	font-family: var(--display); font-optical-sizing: auto; font-variation-settings: "opsz" 48;
	font-weight: 500; font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.02em; line-height: 1.08;
	color: var(--ink); margin: 0 auto 18px; max-width: 860px;
}
.sty .hero-sub { font-size: 18px; line-height: 29px; color: var(--grey-600); max-width: 680px; margin: 0 auto; }

/* ---------- Story hero ---------- */
.sty .story-hero { padding: 32px 0 64px; position: relative; overflow: hidden; }
@media (min-width: 1024px) { .sty .story-hero { padding: 40px 0 88px; } }
.sty .story-hero h1 { margin-left: 0; }
.sty .story-hero .hero-sub { margin: 0; }

.sty .crumbs { margin-bottom: 28px; }
.sty .crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--grey-500); }
.sty .crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--grey-300); }
.sty .crumbs a { color: var(--grey-600); text-decoration: none; }
.sty .crumbs a:hover { color: var(--blue-500); text-decoration: underline; }

.sty .hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; align-items: start; }
@media (min-width: 1024px) { .sty .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; } }

.sty .video-fig { margin: 0; }
.sty .video-fig figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--grey-600); }

/* ---------- Results box ---------- */
.sty .results {
	background: var(--blue-900); color: var(--text-dark-1);
	border-radius: var(--r-xl); padding: 28px 24px;
}
@media (min-width: 600px) { .sty .results { padding: 32px 30px; } }
.sty .results-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.sty .results-big { display: flex; align-items: baseline; gap: 12px; margin: 0; font-variant-numeric: tabular-nums; }
.sty .results-big .from { font-size: 40px; font-weight: 700; color: var(--blue-200); letter-spacing: -0.02em; }
.sty .results-big .to-arrow { font-size: 28px; color: var(--blue-300); }
.sty .results-big .to { font-size: 56px; font-weight: 800; color: var(--lime); letter-spacing: -0.03em; line-height: 1; }
.sty .results-label { margin: 8px 0 20px; font-size: 16px; font-weight: 600; color: #fff; }
.sty .results-years { display: block; font-size: 13px; font-weight: 500; color: var(--text-dark-2); margin-top: 2px; }
.sty .results-facts { margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(183,191,240,.22); display: grid; gap: 12px; }
.sty .results-facts div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: baseline; }
.sty .results-facts dt { font-size: 18px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.sty .results-facts dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-dark-2); }
.sty .results-context { margin: 20px 0 0; padding: 12px 14px; border-radius: var(--r); background: rgba(255,255,255,.06); font-size: 13.5px; line-height: 1.5; color: var(--text-dark-2); }
.sty .results-disclaimer { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-dark-2); font-style: italic; }

/* ---------- Narrative ---------- */
.sty .prose-wrap h3 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 40px 0 12px; }
.sty .prose-wrap .sec-head + h3 { margin-top: 0; }
.sty .prose-wrap > p { font-size: 17px; line-height: 1.7; color: var(--grey-700); margin: 0 0 20px; }
.sty .dark .prose-wrap > p { color: var(--text-dark-2); }

.sty .pull { margin: 24px 0 8px; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue-500); }
.sty .pull blockquote { margin: 0; }
.sty .pull blockquote p { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.sty .pull figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--grey-500); }
.sty .dark .pull { border-left-color: var(--lime); }
.sty .dark .pull blockquote p { color: var(--text-dark-1); }
.sty .dark .pull figcaption { color: var(--muted-dark); }
.sty .pull-pair { display: grid; gap: 8px; margin: 8px 0 0; }
@media (min-width: 768px) { .sty .pull-pair { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- Transcript + FAQ accordions ---------- */
.sty .transcript, .sty .faq-item { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--r-lg); }
.sty .mist .transcript, .sty .mist .faq-item { background: #fff; }
.sty .light .faq-item { background: var(--grey-50); }
.sty .transcript summary, .sty .faq-item summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding: 20px 24px; font-size: 17px; font-weight: 700; color: var(--grey-900);
}
.sty .transcript summary::-webkit-details-marker, .sty .faq-item summary::-webkit-details-marker { display: none; }
.sty .chev { flex-shrink: 0; color: var(--blue-500); transition: transform 200ms var(--ease); }
.sty details[open] > summary .chev { transform: rotate(180deg); }
.sty summary:focus-visible { outline: none; border-radius: var(--r-lg); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue-500); }
.sty .transcript-body { padding: 0 24px 24px; max-height: 70vh; overflow-y: auto; }
.sty .transcript-body p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; color: var(--grey-700); }
.sty .transcript-body strong { color: var(--grey-900); }
.sty .faq-list { display: grid; gap: 12px; }
.sty .faq-body { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.65; color: var(--grey-600); }
.sty .faq-body p { margin: 0; }

.sty .about-results { margin-top: 40px; padding: 24px; border: 1px solid var(--grey-200); border-radius: var(--r-lg); background: #fff; }
.sty .about-results h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.sty .about-results p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--grey-600); }
.sty .about-results p:last-child { margin-bottom: 0; }
.sty .about-results strong { color: var(--grey-900); }

/* ---------- Index: story cards ---------- */
.sty .story-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .sty .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sty .story-grid { grid-template-columns: repeat(3, 1fr); } }
.sty .s-card {
	position: relative; display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--grey-200); border-radius: var(--r-xl); overflow: hidden;
	box-shadow: var(--shadow-sm); transition: border-color 150ms var(--ease), transform 150ms var(--ease);
}
.sty .s-card:hover { border-color: var(--blue-300); transform: translateY(-2px); }
.sty .s-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-base); }
.sty .s-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sty .s-badge {
	position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
	background: var(--blue-900); color: var(--lime); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.sty .s-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sty .s-kicker { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-500); }
.sty .s-title { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.sty .s-title a { color: inherit; text-decoration: none; }
/* Stretch the title link over the whole card so the entire card is one click target. */
.sty .s-title a::after { content: ""; position: absolute; inset: 0; }
.sty .s-summary { margin: 0; font-size: 15px; line-height: 1.6; color: var(--grey-600); }
.sty .s-fine { margin: 0; font-size: 13px; color: var(--grey-500); font-style: italic; }
.sty .s-more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--blue-500); }
.sty .grid-fine { max-width: 760px; }

/* ---------- Final CTA (shared cta-dark part) ---------- */
.sty .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 50px; padding: 0 28px; border-radius: var(--r-lg); border: 1px solid transparent;
	font-size: 16px; font-weight: 600; white-space: nowrap; text-decoration: none;
	transition: background 150ms var(--ease), color 150ms var(--ease);
}
.sty .btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 10px 24px -8px rgba(53,67,208,.45); }
.sty .btn-primary:hover { background: var(--blue-600); color: #fff; }
.sty .btn-lg { height: 56px; padding: 0 34px; font-size: 17px; }
.sty .btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface-base), 0 0 0 4px var(--teal); }
.sty .cta { text-align: center; }
.sty .cta-inner { max-width: 760px; margin: 0 auto; }
.sty .cta p.lede { font-size: 18px; line-height: 28px; color: var(--text-dark-2); margin: 0 auto 30px; max-width: 620px; }
.sty .cta .cta-support { font-size: 14px; color: var(--muted-dark); margin: 28px 0 0; }
.sty .cta .cta-support a { color: var(--teal); font-weight: 600; text-decoration: none; }
.sty .cta .cta-support a:hover { color: var(--text-dark-1); }
.sty .cta .cta-note { color: var(--muted-dark); }

@media (prefers-reduced-motion: reduce) {
	.sty .s-card, .sty .chev { transition: none; }
	.sty .s-card:hover { transform: none; }
}
