/* TSIA2 Prep page.
   Loads after schools-districts.css and reuses its .sd tokens, bands, cards,
   grids, buttons, FAQ, and integrations. Only the components unique to this
   page live here, scoped under .tsia. Mobile-first; min-width queries only. */

/* Breadcrumb (sits on the dark hero) */
.tsia .crumbs { position: relative; margin-bottom: 32px; }
.tsia .crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-dark-2); }
.tsia .crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted-dark); }
.tsia .crumbs a { color: var(--text-dark-2); text-decoration: none; }
.tsia .crumbs a:hover { color: var(--text-dark-1); text-decoration: underline; }

/* Product media rows: copy beside a mock, alternating sides from 1024px */
.tsia .media-row { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.tsia .media-row > * { min-width: 0; } /* let grid items shrink below their content width */
.tsia .media-row + .media-row { margin-top: 72px; }
@media (min-width: 1024px) {
	.tsia .media-row { grid-template-columns: 1fr 1fr; gap: 64px; }
	.tsia .media-row.is-flipped .media-copy { order: 2; }
	.tsia .media-row + .media-row { margin-top: 96px; }
}
.tsia .media-copy h3 { font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--ink); margin: 0 0 14px; }
.tsia .media-copy p { font-size: 16px; line-height: 26px; color: var(--grey-600); margin: 0 0 14px; }
.tsia .media-copy p:last-child { margin-bottom: 0; }
.tsia .media-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tsia .media-points li { font-size: 15px; line-height: 24px; color: var(--grey-600); padding-left: 16px; border-left: 2px solid var(--blue-100); }
.tsia .media-points strong { color: var(--grey-900); }

/* Shared mock chrome (hero essay, trait scores, Skill-Builder, dashboard, blueprint).
   Mocks mirror the product UI; colors map to .sd tokens plus the product's
   score scale (green high, orange mid, red low). */
.tsia figure { margin: 0; }
.tsia .light-card:is(.essay-mock, .score-mock, .sb-mock, .dash-mock, .bp-mock) { padding: 24px; box-shadow: var(--shadow-lg); color: var(--grey-900); }
.tsia .em-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 10px; }
.tsia figcaption { margin-top: 16px; font-size: 12px; color: var(--grey-500); }
.tsia .w-31 { width: 31%; } .tsia .w-33 { width: 33%; } .tsia .w-44 { width: 44%; } .tsia .w-50 { width: 50%; }
.tsia .w-52 { width: 52%; } .tsia .w-67 { width: 67%; } .tsia .w-100 { width: 100%; }

/* Hero essay mock: product "Your response, by paragraph" view */
.tsia .em-para { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); margin: 4px 0 8px; }
.tsia .em-text { margin: 0; font-size: 15px; line-height: 25px; color: var(--grey-800); }
.tsia .em-fb { margin-top: 14px; padding: 12px 14px; background: #FDECEA; border-left: 3px solid #D9473C; border-radius: 0 var(--r) var(--r) 0; font-size: 14px; line-height: 22px; color: var(--grey-800); }
.tsia .em-fb strong { color: #B4332A; font-weight: 600; }

/* Essay trait scores: product "Score by concept" view; each row expands */
.tsia .sm-trait { border-bottom: 1px solid var(--grey-100); }
.tsia .sm-trait.is-holistic { border-bottom: none; }
.tsia .sm-trait summary {
	list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; align-items: center; gap: 12px;
	padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--grey-900);
}
@media (min-width: 640px) { .tsia .sm-trait summary { grid-template-columns: 13rem 1fr auto; } }
.tsia .sm-trait summary::-webkit-details-marker { display: none; }
.tsia .sm-trait summary:focus-visible { outline: none; border-radius: var(--r-sm); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue-500); }
.tsia .sm-bar { height: 6px; border-radius: 999px; background: var(--grey-100); overflow: hidden; }
.tsia .sm-bar .fill { display: block; height: 100%; border-radius: 999px; }
.tsia .fill.is-high { background: var(--success); }
.tsia .fill.is-mid { background: #D97A2B; }
.tsia .fill.is-low { background: #D9473C; }
.tsia .sm-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--grey-900); }
.tsia .sm-trait p { margin: 0 0 12px; font-size: 14px; line-height: 22px; color: var(--grey-700); }

/* Skill-Builder mock: product step card, choices, and misconception feedback */
.tsia .sb-parent { margin: 0 0 14px; font-size: 15px; line-height: 24px; font-weight: 500; color: var(--grey-900); }
.tsia .frac { font-size: 0.85em; white-space: nowrap; }
.tsia .frac sup, .tsia .frac sub { font-size: 0.8em; }
.tsia .sb-track { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: sbstep; }
.tsia .sb-track li { counter-increment: sbstep; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-500); padding-top: 8px; border-top: 3px solid var(--grey-200); }
.tsia .sb-track li::before { content: "0" counter(sbstep) " "; }
.tsia .sb-track li.is-done { color: #1F6E2A; border-top-color: var(--success); } /* darker green text for AA at 11px */
.tsia .sb-track li.is-current { color: var(--blue-500); border-top-color: var(--blue-500); }
.tsia .sb-card { padding: 14px 16px; border: 1px solid var(--grey-200); border-radius: var(--r-lg); }
.tsia .sb-step { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 6px; }
.tsia .sb-card p { margin: 0; font-size: 14px; line-height: 22px; color: var(--grey-900); }
.tsia .sb-options { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.tsia .sb-options li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: var(--r-lg); font-size: 14px; color: var(--grey-800); }
.tsia .sb-options .opt { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--grey-100); font-size: 12px; font-weight: 600; color: var(--grey-600); }
.tsia .sb-options li.is-wrong { border: 2px solid #D9473C; background: #FDECEA; color: #B4332A; font-weight: 500; }
.tsia .sb-options li.is-wrong .opt { background: #B4332A; color: #fff; }
.tsia .sb-x { margin-left: auto; width: 22px; height: 22px; border-radius: 999px; background: #B4332A; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.tsia .sb-notquite { margin-top: 12px; padding: 12px 14px; background: #FEF6E0; border-radius: var(--r-lg); }
.tsia .sb-notquite strong { display: block; font-size: 14px; color: #8A5A00; margin-bottom: 4px; }
.tsia .sb-notquite p { margin: 0 0 10px; font-size: 13px; line-height: 20px; color: var(--grey-700); }
.tsia .sb-misc { display: inline-block; padding: 4px 10px; border: 1px solid #E8C368; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; color: #8A5A00; background: #FFFBEF; }
.tsia .sb-diag { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey-100); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--grey-700); }
.tsia .sb-diag .code { font-weight: 700; color: var(--grey-900); margin-right: 4px; }

/* Dashboard mock: product class mastery grid for a TSIA2 Math class */
.tsia .dm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.tsia .dm-head .em-label { margin-bottom: 0; }
.tsia .dm-class { font-size: 13px; font-weight: 600; color: var(--grey-900); }
.tsia .dm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
@media (min-width: 640px) { .tsia .dm-stats { grid-template-columns: repeat(4, 1fr); } }
.tsia .dm-stats div { padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: var(--r); }
.tsia .dm-stats span { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey-500); }
.tsia .dm-stats strong { display: block; margin-top: 4px; font-family: var(--display); font-variation-settings: "opsz" 48; font-weight: 500; font-size: 22px; line-height: 1.1; color: var(--grey-900); font-variant-numeric: tabular-nums; }
.tsia .dm-stats .is-low { color: #C2382E; }
.tsia .dm-stats .is-high { color: #1F6E2A; }
.tsia .dm-stats .is-mid { color: #B45F14; }
.tsia .dm-grid-wrap { overflow-x: auto; border: 1px solid var(--grey-200); border-radius: var(--r-lg); }
.tsia .dm-grid { width: 100%; border-collapse: collapse; font-size: 12px; }
.tsia .dm-grid th, .tsia .dm-grid td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--grey-100); white-space: nowrap; }
.tsia .dm-grid tbody tr:last-child th, .tsia .dm-grid tbody tr:last-child td { border-bottom: none; }
.tsia .dm-grid thead th { font-size: 10px; font-weight: 600; color: var(--grey-500); background: var(--grey-50); text-transform: uppercase; letter-spacing: 0.04em; }
.tsia .dm-grid th[scope="row"], .tsia .dm-grid thead th:first-child { text-align: left; padding-left: 10px; font-weight: 600; color: var(--grey-900); }
.tsia .dm-grid thead th:first-child { color: var(--grey-500); }
.tsia .dm-grid .is-class th, .tsia .dm-grid .is-class td { background: var(--grey-50); }
.tsia .dm-grid .is-class th { color: var(--grey-600); }
.tsia .dm-grid .avg { font-weight: 700; color: var(--grey-900); padding-right: 10px; font-variant-numeric: tabular-nums; }
.tsia .dm-grid td span { display: inline-block; min-width: 30px; padding: 3px 0; border-radius: var(--r-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.tsia .m1 { background: #FBE3E3; color: #9B2C2C; }
.tsia .m2 { background: #FDE9D6; color: #8F4508; }
.tsia .m3 { background: #FDF3C7; color: #6E5200; }
.tsia .m4 { background: #DCE8FB; color: #1F4E9C; }
.tsia .m5 { background: #D5F2E6; color: #0F6B47; }
.tsia .m0 { background: repeating-linear-gradient(135deg, var(--grey-100) 0 3px, #fff 3px 6px); height: 22px; vertical-align: middle; }
.tsia .dm-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--grey-600); }
.tsia .dm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tsia .dm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--grey-200); }
.tsia .dm-ranked { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--grey-100); display: grid; gap: 10px; }
.tsia .dm-ranked .em-label { margin-bottom: 0; }
.tsia .dm-rank { display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--grey-900); }
.tsia .dm-rank .track { height: 6px; border-radius: 999px; background: var(--grey-100); overflow: hidden; }
.tsia .dm-rank .fill { display: block; height: 100%; border-radius: 999px; background: #D97A2B; }
.tsia .dm-rank .pct { font-weight: 500; color: var(--grey-600); font-variant-numeric: tabular-nums; }

/* Blueprint mock */
.tsia .bp-group + .bp-group { margin-top: 20px; }
.tsia .bp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tsia .bp-chips span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); }
.tsia .bp-chips.is-math span { background: var(--success-light); color: #1F6E2A; }

/* Section 2: readiness gap sub-head */
.tsia .gap-head { max-width: 720px; margin: 64px 0 24px; }
.tsia .gap-head h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.tsia .gap-head p { font-size: 16px; line-height: 26px; color: var(--grey-600); margin: 0; }

/* Section 3: pillars on a dark band, and the balanced closing line */
.tsia .dark .pillar h3 { color: var(--text-dark-1); }
.tsia .dark .pillar p { color: var(--text-dark-2); }
.tsia .balance { margin: 40px 0 0; max-width: 760px; font-size: 18px; font-weight: 500; line-height: 28px; color: var(--text-dark-2); }
.tsia .balance .accent { color: var(--text-dark-1); }

/* Section 6: evidence note and actions */
.tsia .evidence-note { margin: 28px 0 0; max-width: 720px; font-size: 16px; line-height: 26px; color: var(--grey-700); }
.tsia .sec-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.tsia .study-link { font-weight: 500; }

/* Section 7: calculator (light card on the dark band) */
.tsia .calc { padding: 24px; box-shadow: var(--shadow-lg); color: var(--grey-900); }
@media (min-width: 768px) { .tsia .calc { padding: 40px; } }
.tsia .calc-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .tsia .calc-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.tsia .calc-inputs h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 20px; }
.tsia .calc-field + .calc-field { margin-top: 22px; }
.tsia .calc-field label { display: block; font-size: 15px; font-weight: 600; color: var(--grey-900); margin-bottom: 8px; }
.tsia .calc-field output { color: var(--blue-500); font-variant-numeric: tabular-nums; }
.tsia .calc-field input[type="number"] {
	width: 100%; max-width: 220px; height: 44px; padding: 0 12px; font: inherit; font-size: 16px;
	color: var(--grey-900); background: #fff; border: 1px solid var(--grey-300); border-radius: var(--r);
}
.tsia .calc-field input[type="range"] { width: 100%; accent-color: var(--blue-500); height: 24px; }
.tsia .calc-field input:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue-500); }
.tsia .calc-help { margin: 6px 0 0; font-size: 13px; line-height: 20px; color: var(--grey-500); }
.tsia .calc-adv { margin-top: 22px; border-top: 1px solid var(--grey-200); padding-top: 16px; }
.tsia .calc-adv summary, .tsia .calc-method summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue-500); }
.tsia .calc-adv summary:focus-visible, .tsia .calc-method summary:focus-visible { outline: none; border-radius: var(--r-sm); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue-500); }
.tsia .calc-adv .calc-field { margin-top: 16px; }
.tsia .calc-results { background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--r-lg); padding: 24px; }
.tsia .calc-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-500); }
.tsia .calc-big { margin-top: 6px; font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--blue-500); font-variant-numeric: tabular-nums; }
.tsia .calc-tiles { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .tsia .calc-tiles { grid-template-columns: 1fr 1fr; } }
.tsia .calc-tile { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--r); padding: 16px; }
.tsia .calc-tile .t { font-size: 13px; line-height: 19px; color: var(--grey-600); }
.tsia .calc-tile .v { margin-top: 6px; font-size: 26px; font-weight: 700; color: var(--grey-900); font-variant-numeric: tabular-nums; }
.tsia .calc-range { margin: 16px 0 0; font-size: 14px; line-height: 22px; color: var(--grey-600); }
.tsia .calc-range strong { color: var(--grey-900); font-variant-numeric: tabular-nums; }
.tsia .calc-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.tsia .calc-cta p { margin: 0; font-size: 14px; color: var(--grey-600); }
.tsia .calc-method { margin-top: 28px; border-top: 1px solid var(--grey-200); padding-top: 16px; }
.tsia .calc-method p { margin: 12px 0 0; max-width: 760px; font-size: 14px; line-height: 22px; color: var(--grey-600); }
.tsia .calc-method strong { color: var(--grey-900); }

/* Section 8: funding cards (no icons) */
.tsia .light .mech h3 { color: var(--grey-900); }

/* Section 9: integrations heading uses the section question */
.tsia .integrations h3 { font-size: 22px; }
