/*
THESIS: TMUA preparation becomes test-ready through a visible, repeatable practice loop—not a generic course pitch.
OWN-WORLD: Anannt navy and paper-white surfaces, cool blue assessment panels and one measured amber action color; compact, evidence-led controls.
STORY: Families can see the concrete portal deliverables; enrolled students can move from a timed set to review and a next action.
FIRST VIEWPORT: An editorial left statement meets a live-looking assessment panel on the right; the portal action is visible above the fold.
FORM: A diagnostic workspace structure: orientation, training loop, deliverables, then a focused portal preview.
*/
:root {
  --tp-navy: #111d35;
  --tp-blue: #2868b2;
  --tp-blue-soft: #edf5ff;
  --tp-ink: #172033;
  --tp-muted: #5b6779;
  --tp-line: #dce3ec;
  --tp-paper: #ffffff;
  --tp-amber: #de8313;
  --tp-green: #21785c;
  --tp-red: #ad3d45;
  --tp-shadow: 0 18px 42px rgba(17, 29, 53, .12);
}

.tmua-prep-page { color: var(--tp-ink); background: #fff; font-family: Aptos, "Segoe UI", Arial, sans-serif; }
.tmua-prep-page * { box-sizing: border-box; }
.tmua-prep-page a { color: inherit; }
.tmua-prep-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.tmua-prep-header { min-height: 76px; border-bottom: 1px solid var(--tp-line); background: rgba(255,255,255,.96); }
.tmua-prep-header .tmua-prep-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tmua-prep-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; }
.tmua-prep-brand img { width: 116px; height: auto; display: block; }
.tmua-prep-brand span { padding-left: 12px; border-left: 1px solid var(--tp-line); color: var(--tp-muted); font-size: .9rem; font-weight: 700; }
.tmua-prep-nav { display: flex; align-items: center; gap: 18px; font-size: .9rem; font-weight: 700; }
.tmua-prep-nav a { color: #33425a; text-decoration: none; }
.tmua-prep-nav a:hover { color: var(--tp-blue); }
.tp-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; font: inherit; font-size: .93rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .16s ease, background-color .16s ease, border-color .16s ease; }
.tp-btn:hover { transform: translateY(-1px); }
.tp-btn:active { transform: scale(.97); }
.tp-btn--primary { color: #fff; background: var(--tp-navy); box-shadow: 0 7px 15px rgba(17,29,53,.17); }
.tp-btn--primary:hover { background: #20355d; }
.tp-btn--amber { color: #172033; background: #f2a529; }
.tp-btn--amber:hover { background: #e59616; }
.tp-btn--line { border-color: #b9c5d5; background: #fff; color: #1e3153; }
.tp-btn--line:hover { background: #f4f8fd; }

.tp-hero { overflow: hidden; background: linear-gradient(112deg, #f7fafc 0%, #fff 58%, #edf5ff 100%); }
.tp-hero .tmua-prep-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .84fr); align-items: center; gap: clamp(36px, 6vw, 86px); min-height: 598px; padding: 66px 0; }
.tp-kicker { margin: 0 0 18px; color: var(--tp-blue); font-size: .79rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.tp-hero h1, .tp-section h2 { margin: 0; color: var(--tp-navy); letter-spacing: -.035em; line-height: 1.04; }
.tp-hero h1 { max-width: 720px; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.tp-hero h1 em { font-style: normal; color: var(--tp-blue); }
.tp-lead { max-width: 63ch; margin: 24px 0 0; color: #40506a; font-size: 1.1rem; line-height: 1.65; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tp-mini-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; color: var(--tp-muted); font-size: .9rem; font-weight: 650; }
.tp-mini-proof span::before { content: "✓"; margin-right: 7px; color: var(--tp-green); font-weight: 900; }
.tp-preview { overflow: hidden; border: 1px solid #ccd9e8; border-radius: 12px; background: var(--tp-navy); box-shadow: var(--tp-shadow); color: #fff; }
.tp-preview__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.14); color: #dbe7f6; font-size: .8rem; font-weight: 750; }
.tp-preview__brand { color: #fff; letter-spacing: .04em; font-size: .73rem; text-transform: uppercase; }
.tp-status { display: inline-flex; align-items: center; gap: 7px; color: #bce8d7; }
.tp-status::before { width: 7px; height: 7px; border-radius: 50%; background: #4bc28f; content: ""; }
.tp-preview__body { padding: 26px; }
.tp-preview__body > p { margin: 0 0 8px; color: #aebed4; font-size: .78rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.tp-preview__body h2 { margin: 0; color: #fff; font-size: 1.45rem; letter-spacing: -.02em; }
.tp-preview__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.tp-preview__stat { padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.05); }
.tp-preview__stat span { display: block; color: #aebed4; font-size: .74rem; }
.tp-preview__stat strong { display: block; margin-top: 5px; color: #fff; font-size: 1.25rem; }
.tp-preview__row { display: flex; gap: 7px; margin: 19px 0 0; }
.tp-preview__row span { width: 100%; height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); }
.tp-preview__row span:nth-child(-n+3) { background: #f2a529; }
.tp-preview__footer { display: flex; justify-content: space-between; gap: 10px; padding: 16px 26px; background: #1c2b49; color: #bfcce0; font-size: .82rem; }
.tp-preview__footer strong { color: #fff; }

.tp-section { padding: 92px 0; }
.tp-section--soft { background: #f5f8fc; }
.tp-section--navy { background: var(--tp-navy); color: #fff; }
.tp-section__heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); gap: 30px; align-items: end; margin-bottom: 38px; }
.tp-section h2 { max-width: 760px; font-size: clamp(2rem, 3.8vw, 3.25rem); }
.tp-section__heading p { margin: 0; color: var(--tp-muted); line-height: 1.65; }
.tp-section--navy h2 { color: #fff; }
.tp-section--navy .tp-section__heading p { color: #c4d1e4; }
.tp-deliverables { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--tp-line); border-left: 1px solid var(--tp-line); }
.tp-deliverable { min-height: 212px; padding: 26px; border-right: 1px solid var(--tp-line); border-bottom: 1px solid var(--tp-line); background: #fff; }
.tp-deliverable__number { display: block; color: var(--tp-blue); font-size: .78rem; font-weight: 850; }
.tp-deliverable h3 { margin: 28px 0 8px; color: var(--tp-navy); font-size: 1.08rem; }
.tp-deliverable p { margin: 0; color: var(--tp-muted); font-size: .93rem; line-height: 1.55; }
.tp-loop { display: grid; grid-template-columns: 1.15fr .9fr 1.15fr; gap: 0; border: 1px solid #cbd8e8; border-radius: 12px; overflow: hidden; background: #fff; }
.tp-loop__step { position: relative; min-height: 256px; padding: 30px; border-right: 1px solid #cbd8e8; }
.tp-loop__step:last-child { border-right: 0; }
.tp-loop__step::after { position: absolute; top: 30px; right: 26px; color: #89a2c4; content: attr(data-step); font-size: 3rem; font-weight: 850; line-height: 1; }
.tp-loop__step h3 { max-width: 180px; margin: 54px 0 10px; color: var(--tp-navy); font-size: 1.25rem; }
.tp-loop__step p { max-width: 28ch; margin: 0; color: var(--tp-muted); line-height: 1.55; }
.tp-loop__step--featured { background: var(--tp-blue); }
.tp-loop__step--featured::after, .tp-loop__step--featured h3 { color: #fff; }
.tp-loop__step--featured p { color: #e7f2ff; }
.tp-portal-callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: #1d2d4d; }
.tp-portal-callout h3 { margin: 0 0 9px; color: #fff; font-size: 1.65rem; letter-spacing: -.025em; }
.tp-portal-callout p { max-width: 65ch; margin: 0; color: #c5d2e5; line-height: 1.6; }
.tp-portal-callout .tp-btn--amber { white-space: nowrap; }
.tp-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 46px; }
.tp-faq details { border-top: 1px solid var(--tp-line); padding: 19px 0; }
.tp-faq summary { color: var(--tp-navy); cursor: pointer; font-size: 1rem; font-weight: 800; list-style: none; }
.tp-faq summary::after { float: right; color: var(--tp-blue); content: "+"; font-size: 1.25rem; }
.tp-faq details[open] summary::after { content: "−"; }
.tp-faq p { max-width: 61ch; margin: 12px 0 0; color: var(--tp-muted); line-height: 1.6; }
.tp-footer { padding: 28px 0; background: #0d1728; color: #c2cede; font-size: .9rem; }
.tp-footer .tmua-prep-shell { display: flex; justify-content: space-between; gap: 20px; }
.tp-footer a { color: #fff; font-weight: 750; text-decoration: none; }

/* Portal */
.tp-portal-page { min-height: 100vh; background: #eef3f8; color: var(--tp-ink); font-family: Aptos, "Segoe UI", Arial, sans-serif; }
.tp-portal-page * { box-sizing: border-box; }
.portal-topbar { position: sticky; top: 0; z-index: 10; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(18px, 4vw, 46px); border-bottom: 1px solid #d6e0eb; background: rgba(255,255,255,.96); }
.portal-topbar__brand { display: flex; align-items: center; gap: 12px; color: var(--tp-navy); font-size: .88rem; font-weight: 850; text-decoration: none; }
.portal-topbar__brand img { width: 103px; height: auto; }
.portal-topbar__brand span { padding-left: 12px; border-left: 1px solid var(--tp-line); }
.portal-topbar__right { display: flex; align-items: center; gap: 14px; color: #41516a; font-size: .88rem; font-weight: 700; }
.portal-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #dcecff; color: #1f5eaa; font-size: .76rem; font-weight: 850; }
.portal-layout { width: min(1380px, 100%); min-height: calc(100vh - 66px); margin: 0 auto; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.portal-nav { padding: 24px 16px; border-right: 1px solid #d7e0eb; background: #f8fafc; }
.portal-nav p { margin: 6px 10px 13px; color: #718096; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.portal-nav button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 7px; padding: 9px 11px; background: transparent; color: #40506a; font: inherit; font-size: .92rem; font-weight: 750; text-align: left; cursor: pointer; }
.portal-nav button:hover { background: #e9f1fb; color: #164c90; }
.portal-nav button[aria-current="page"] { background: var(--tp-navy); color: #fff; }
.portal-nav__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.portal-main { padding: clamp(26px, 4vw, 48px); }
.portal-view[hidden] { display: none !important; }
.portal-kicker { margin: 0 0 7px; color: #527296; font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.portal-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.portal-heading h1, .portal-heading h2 { margin: 0; color: var(--tp-navy); letter-spacing: -.03em; }
.portal-heading h1 { font-size: clamp(2rem, 3vw, 2.75rem); }
.portal-heading p { max-width: 57ch; margin: 9px 0 0; color: var(--tp-muted); line-height: 1.55; }
.portal-meta { padding: 8px 11px; border: 1px solid #cbd8e8; border-radius: 7px; background: #fff; color: #51647c; font-size: .78rem; font-weight: 700; }
.portal-overview { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.portal-next { padding: 28px; border-radius: 11px; background: var(--tp-navy); color: #fff; box-shadow: var(--tp-shadow); }
.portal-next__label { color: #b8d7ff; font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.portal-next h2 { margin: 14px 0 9px; color: #fff; font-size: 1.7rem; letter-spacing: -.025em; }
.portal-next p { max-width: 51ch; margin: 0; color: #c7d4e8; line-height: 1.55; }
.portal-next .tp-btn { margin-top: 24px; }
.portal-snapshot { padding: 26px; border: 1px solid #d4dfeb; border-radius: 11px; background: #fff; }
.portal-snapshot h2 { margin: 0; color: var(--tp-navy); font-size: 1.1rem; }
.portal-bars { display: grid; gap: 15px; margin-top: 22px; }
.portal-bar__top { display: flex; justify-content: space-between; gap: 10px; color: #4b5c75; font-size: .84rem; font-weight: 750; }
.portal-bar { height: 8px; overflow: hidden; margin-top: 7px; border-radius: 99px; background: #e4ebf3; }
.portal-bar span { display: block; height: 100%; border-radius: inherit; background: var(--tp-blue); }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.portal-card { padding: 22px; border: 1px solid #d4dfeb; border-radius: 10px; background: #fff; }
.portal-card__label { display: block; color: #627895; font-size: .76rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.portal-card strong { display: block; margin-top: 12px; color: var(--tp-navy); font-size: 1.65rem; letter-spacing: -.03em; }
.portal-card p { margin: 7px 0 0; color: var(--tp-muted); font-size: .88rem; }
.portal-practice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.practice-set { display: flex; flex-direction: column; min-height: 260px; padding: 25px; border: 1px solid #d4dfeb; border-radius: 10px; background: #fff; }
.practice-set--featured { border-color: #9dbfe6; background: #f6faff; }
.practice-set__tag { color: #386eaa; font-size: .76rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.practice-set h2 { margin: 15px 0 8px; color: var(--tp-navy); font-size: 1.35rem; letter-spacing: -.02em; }
.practice-set p { margin: 0; color: var(--tp-muted); line-height: 1.55; }
.practice-set__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 20px; padding-top: 22px; }
.practice-set__meta span { padding: 5px 8px; border-radius: 5px; background: #edf2f8; color: #556881; font-size: .76rem; font-weight: 750; }
.portal-report { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.report-panel { padding: 26px; border: 1px solid #d4dfeb; border-radius: 10px; background: #fff; }
.report-panel h2 { margin: 0; color: var(--tp-navy); font-size: 1.2rem; }
.report-panel p { color: var(--tp-muted); line-height: 1.55; }
.report-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .9rem; }
.report-table th, .report-table td { padding: 13px 0; border-bottom: 1px solid #e4eaf1; text-align: left; }
.report-table th { color: #64768c; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.report-table td:last-child, .report-table th:last-child { text-align: right; }
.status-good { color: var(--tp-green); font-weight: 800; }
.status-warn { color: #a56711; font-weight: 800; }
.portal-testing { max-width: 920px; margin: 0 auto; }
.testing-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.testing-topline strong { color: var(--tp-navy); }
.testing-timer { min-width: 98px; padding: 10px 12px; border: 1px solid #e3bb79; border-radius: 7px; background: #fff8e9; color: #80500d; font-size: 1.06rem; font-weight: 850; text-align: center; }
.testing-progress { height: 8px; overflow: hidden; margin-bottom: 22px; border-radius: 99px; background: #dbe5ef; }
.testing-progress span { display: block; height: 100%; background: var(--tp-blue); }
.question-card { padding: clamp(24px, 5vw, 42px); border: 1px solid #cedae7; border-radius: 11px; background: #fff; box-shadow: 0 12px 32px rgba(17,29,53,.06); }
.question-card__eyebrow { margin: 0 0 13px; color: #5a7493; font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.question-card h2 { max-width: 34ch; margin: 0; color: var(--tp-navy); font-size: clamp(1.35rem, 2.5vw, 1.82rem); line-height: 1.35; }
.answer-options { display: grid; gap: 10px; margin-top: 27px; }
.answer-option { display: flex; align-items: center; gap: 13px; min-height: 55px; border: 1px solid #d4dfeb; border-radius: 8px; padding: 10px 14px; background: #fff; color: #2d3e57; font: inherit; text-align: left; cursor: pointer; }
.answer-option:hover { border-color: #8db6e3; background: #f7fbff; }
.answer-option.is-selected { border-color: var(--tp-blue); background: #eaf4ff; color: #143f74; }
.answer-option__key { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; font-size: .78rem; font-weight: 850; }
.testing-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.testing-actions__left, .testing-actions__right { display: flex; flex-wrap: wrap; gap: 9px; }
.tp-btn--quiet { border-color: transparent; background: transparent; color: #466b98; }
.tp-btn--quiet:hover { background: #e7f0fa; }
.question-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.question-nav button { width: 34px; height: 34px; border: 1px solid #cbd8e8; border-radius: 6px; background: #fff; color: #526983; font: inherit; font-size: .83rem; font-weight: 800; cursor: pointer; }
.question-nav button.is-current { border-color: var(--tp-navy); background: var(--tp-navy); color: #fff; }
.question-nav button.is-answered { border-color: #7dbb9e; background: #ecf8f2; color: #21785c; }
.question-nav button.is-current.is-answered { border-color: var(--tp-navy); background: var(--tp-navy); color: #fff; }
.test-result { padding: 34px; border: 1px solid #c9d9ea; border-radius: 11px; background: #fff; text-align: center; }
.test-result__score { margin: 16px 0 4px; color: var(--tp-navy); font-size: clamp(3.2rem, 9vw, 5rem); font-weight: 850; letter-spacing: -.06em; }
.test-result p { max-width: 55ch; margin: 0 auto; color: var(--tp-muted); line-height: 1.6; }
.test-result .tp-actions { justify-content: center; }
.review-list { margin-top: 28px; text-align: left; }
.review-list h3 { color: var(--tp-navy); }
.review-item { padding: 16px 0; border-top: 1px solid #e2e9f1; }
.review-item strong { display: block; color: #213653; }
.review-item p { margin: 6px 0 0; }

@media (max-width: 900px) {
  .tp-hero .tmua-prep-shell, .tp-section__heading, .portal-overview, .portal-report { grid-template-columns: 1fr; }
  .tp-hero .tmua-prep-shell { min-height: auto; }
  .tp-deliverables { grid-template-columns: repeat(2, 1fr); }
  .tp-loop { grid-template-columns: 1fr; }
  .tp-loop__step { min-height: 200px; border-right: 0; border-bottom: 1px solid #cbd8e8; }
  .tp-loop__step:last-child { border-bottom: 0; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-nav { display: flex; gap: 5px; overflow-x: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid #d7e0eb; }
  .portal-nav p { display: none; }
  .portal-nav button { width: auto; flex: 0 0 auto; }
  .portal-main { padding: 28px 20px; }
}
@media (max-width: 620px) {
  .tmua-prep-shell { width: min(100% - 28px, 1160px); }
  .tmua-prep-nav a:not(.tp-btn) { display: none; }
  .tmua-prep-brand span { display: none; }
  .tp-hero .tmua-prep-shell { padding: 54px 0; }
  .tp-preview__body { padding: 20px; }
  .tp-section { padding: 64px 0; }
  .tp-deliverables, .tp-faq, .portal-grid, .portal-practice-grid { grid-template-columns: 1fr; }
  .tp-portal-callout { grid-template-columns: 1fr; padding: 25px; }
  .tp-footer .tmua-prep-shell, .portal-heading { align-items: flex-start; flex-direction: column; }
  .portal-topbar { padding: 0 15px; }
  .portal-topbar__right span { display: none; }
  .portal-topbar__brand span { display: none; }
  .question-card { padding: 22px; }
  .testing-actions { align-items: stretch; }
  .testing-actions__left, .testing-actions__right { width: 100%; }
  .testing-actions .tp-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .tp-btn { transition: none; } }
