/* ============================================================
   Educator Pathway Compass — intro, quiz and completion.
   Additive: nothing here restyles a school or college selector.
   ============================================================ */

/* ---- intro ---- */
.teach-intro-card {
  max-width: 720px;
  margin: 0 auto 22px;
  padding: 26px 30px 28px;
  border: 1px solid var(--border-m);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--cs);
  text-align: left;
}
.teach-lead { margin: 0 0 18px; font-size: 1rem; line-height: 1.6; color: var(--navy); }
.tsec {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
}
.tsec + .tsec { border-top: 1px solid var(--border-m); }
.tsec-n { font-size: .84rem; font-weight: 800; color: #C77C0A; letter-spacing: .04em; }
.tsec-t { font-size: .98rem; font-weight: 700; color: var(--navy); }
.tsec-q { font-size: .84rem; color: var(--muted); white-space: nowrap; }
.teach-meta-line {
  margin: 18px 0 0;
  padding: 13px 16px;
  border-left: 3px solid #E0A93C;
  border-radius: 0 10px 10px 0;
  background: #FDF6E9;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--navy);
}
.teach-name-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 20px; }
.teach-name-row label { flex: 1 1 260px; font-size: .86rem; font-weight: 700; color: var(--navy); }
.teach-name-row input {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--border-m); border-radius: 12px; background: var(--off);
  color: var(--navy);
}
.teach-name-row input:focus { outline: 2px solid #C77C0A; outline-offset: 1px; background: #fff; }

/* ---- resume ---- */
.tresume {
  max-width: 560px; margin: 0 auto 20px;
  padding: 16px 20px 18px;
  border: 1px solid #F0DCB6; border-radius: 18px; background: #FDF6E9; text-align: left;
}
.tresume b { display: block; font-size: .96rem; color: var(--navy); margin-bottom: 4px; }
.tresume p { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.tresume .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- quiz ---- */
.teach-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 10px;
}
.tq-sec {
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #C77C0A;
}
.tq-pos { font-size: .82rem; color: var(--muted); margin-left: 12px; }
.teach-count { font-size: .8rem; color: var(--muted); }
.teach-progress {
  height: 7px; border-radius: 999px; background: var(--off); overflow: hidden; margin-bottom: 4px;
}
.teach-progress > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #E0A93C, #C77C0A);
  transition: width .3s;
}
.teach-lede-line { font-size: .86rem; color: var(--muted); margin: 8px 0 14px; }

.teach-figure {
  margin: 0 0 18px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border-m); background: var(--off);
  box-shadow: var(--cs);
}
.teach-figure img {
  display: block; width: 100%; height: auto;
  /* Keep room for likert/choice buttons below the artwork */
  max-height: min(48vh, 420px);
  object-fit: cover;
  object-position: center top;
}

/* School quiz locks body.quiz-mode to 100vh + overflow:hidden.
   Educator questions are taller (image + 5 options), so unlock scroll. */
body.quiz-mode:has(#teach-quiz.screen.active) {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  align-items: flex-start;
  padding: 12px 12px 28px;
}
body.quiz-mode:has(#teach-quiz.screen.active) .app {
  height: auto;
  max-height: none;
  overflow: visible;
  width: min(960px, 96vw);
  max-width: min(960px, 96vw);
  align-self: center;
  padding: 16px 20px 22px;
}
body.quiz-mode #teach-quiz.screen.active {
  display: block;
  height: auto;
  overflow: visible;
}

/* ---- the option buttons: the letters and scale points are controls,
        not something to read off the artwork ---- */
.teach-options { display: grid; gap: 12px; }
.teach-options.choice { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teach-options.likert { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.topt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px 14px;
  border: 2px solid var(--border-m); border-radius: 16px;
  background: var(--white); cursor: pointer; font: inherit; color: var(--navy);
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.topt:hover, .topt:focus-visible {
  transform: translateY(-3px); box-shadow: var(--hs); outline: none;
}
.topt-k {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--opt-soft, var(--off)); color: var(--opt, var(--navy));
  font-size: 1.14rem; font-weight: 800; letter-spacing: -.01em;
  transition: background .18s, color .18s, transform .18s;
}
.topt-l { font-size: .84rem; line-height: 1.35; text-align: center; color: var(--muted); }

/* Each position carries its own colour, echoing the coloured markers on the
   artwork, so the button and the option in the image read as the same thing.
   Likert runs low-to-high; the four-choice row is categorical, not ordered. */
.topt:nth-child(1) { --opt: #C62B45; --opt-soft: #FDE8EC; }
.topt:nth-child(2) { --opt: #C06A08; --opt-soft: #FDF0DC; }
.topt:nth-child(3) { --opt: #0E7C8C; --opt-soft: #E2F4F7; }
.topt:nth-child(4) { --opt: #1F7A3D; --opt-soft: #E4F4E8; }
.topt:nth-child(5) { --opt: #5B3FA8; --opt-soft: #EEE9F9; }
/* four-option rows use the artwork's A-D palette: red, amber, cyan, green */
.teach-options.choice .topt:nth-child(3) { --opt: #0E7C8C; --opt-soft: #E2F4F7; }
.teach-options.choice .topt:nth-child(4) { --opt: #1F7A3D; --opt-soft: #E4F4E8; }

.topt:hover .topt-k, .topt:focus-visible .topt-k { transform: scale(1.06); }
.topt.on { border-color: var(--opt); background: var(--opt-soft); }
.topt.on .topt-k { background: var(--opt); color: #fff; }
.topt.on .topt-l { color: var(--navy); font-weight: 700; }
.topt:hover, .topt:focus-visible { border-color: var(--opt); }

.teach-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.teach-hint {
  margin: 14px 0 0; font-size: .78rem; color: var(--muted); text-align: center;
}

/* ---- done ---- */
.teach-done-card {
  max-width: 620px; margin: 0 auto 22px; padding: 28px 30px 30px;
  border: 1px solid var(--border-m); border-radius: 24px; background: var(--white);
  box-shadow: var(--cs); text-align: left;
}
.tdone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-m); border: 1px solid var(--border-m); border-radius: 12px;
  overflow: hidden; margin: 18px 0 20px; }
.tdone-grid > div { background: var(--white); padding: 14px 16px; }
.tdone-grid dt { font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.tdone-grid dd { margin: 0; font-size: 1rem; font-weight: 700; color: var(--navy); }
.tdone-note {
  padding: 14px 18px; border-left: 3px solid #E0A93C; border-radius: 0 10px 10px 0;
  background: #FDF6E9; font-size: .9rem; line-height: 1.55; color: var(--navy);
}
.tdone-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 760px) {
  .teach-options.choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teach-options.likert { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .teach-options.likert .topt { padding: 11px 5px 10px; }
  .teach-options.likert .topt-k { width: 34px; height: 34px; font-size: .96rem; }
  .teach-options.likert .topt-l { font-size: .66rem; }
  .teach-intro-card, .teach-done-card { padding: 20px 18px 22px; border-radius: 18px; }
  .tdone-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Scored report — screen view and the PDF it prints to.
   Page geometry is A4 at 96dpi (794 x 1123 css px), so one
   .tr-page is one sheet and the screen and PDF are one document.
   One palette throughout: an icy-blue ground, navy ink, one blue
   for every bar, and a single orange accent for the leading row.
   ============================================================ */
.tr-actions {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  max-width: 794px; margin: 0 auto 14px;
}
.tr-doc {
  --tr-ground: #EAF4FB; --tr-ink: #0B2545; --tr-soft: #3D5878;
  --tr-blue: #1D5FBF; --tr-track: #CFE3F3; --tr-line: #BFD8EC;
  --tr-panel: #F7FBFE; --tr-accent: #F26A1B;
  max-width: 794px; margin: 0 auto;
}
.tr-page {
  position: relative; width: 100%; max-width: 794px; min-height: 1123px;
  padding: 44px 54px 40px; margin: 0 auto 20px;
  background: var(--tr-ground); border: 1px solid var(--tr-line); border-radius: 4px;
  box-shadow: var(--cs); color: var(--tr-ink); text-align: left;
}
body.tr-printing .tr-page { border: none; border-radius: 0; box-shadow: none; margin: 0;
  min-height: 1120px; height: 1120px; overflow: hidden; }
body.tr-printing .tr-doc { width: 794px; }

/* ---- cover ---- */
.tr-brand { font-size: 1rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
  color: var(--tr-ink); }
.tr-kick { margin-top: 12px; font-size: .9rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tr-accent); }
.tr-cover h1 { margin: 120px 0 0; font-size: 4.4rem; line-height: 1.04; font-weight: 800;
  letter-spacing: -.025em; color: var(--tr-ink); }
.tr-cover-sub { margin: 22px 0 0 !important; font-size: 1.35rem !important; font-weight: 700;
  color: var(--tr-blue) !important; }
.tr-id { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 76px; }
.tr-id > div { background: var(--tr-panel); border: 1px solid var(--tr-line); border-radius: 12px;
  padding: 18px 20px; }
.tr-id dt { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tr-soft); margin-bottom: 8px; }
.tr-id dd { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--tr-ink); }
.tr-status { position: absolute; left: 54px; bottom: 44px; margin: 0 !important; font-size: .82rem !important; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--tr-soft) !important; }

/* ---- the one callout style: navy, bold, white ---- */
.tr-call {
  margin: 40px 0 0; padding: 24px 26px; border-radius: 14px;
  background: var(--tr-ink); color: #fff;
}
.tr-call > span { display: block; font-size: .82rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #A9C9E8; margin-bottom: 8px; }
.tr-call > b { display: block; font-size: 1.9rem; line-height: 1.2; font-weight: 800; color: #fff; }
.tr-call.wide { margin: 18px 0 20px; padding: 18px 24px; }
.tr-call.wide > b { font-size: 1.34rem; line-height: 1.36; }
.tr-call.wide > span { margin: 9px 0 0; font-size: 1.06rem; font-weight: 600; letter-spacing: 0;
  text-transform: none; line-height: 1.5; color: #D5E6F5; }

/* ---- running head and type ---- */
.tr-head { display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px; margin-bottom: 22px; border-bottom: 2px solid var(--tr-ink); }
.tr-head-k { font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tr-accent); }
.tr-head-n { font-size: .9rem; font-weight: 800; color: var(--tr-soft); }
.tr-page h2 { margin: 0 0 16px; font-size: 2.3rem; line-height: 1.15; font-weight: 800;
  letter-spacing: -.015em; color: var(--tr-ink); }
.tr-page h3 { margin: 24px 0 10px; font-size: 1.36rem; font-weight: 800; color: var(--tr-ink); }
.tr-page h3:first-of-type { margin-top: 26px; }
.tr-page p { margin: 0 0 14px; font-size: 1.12rem; line-height: 1.58; color: var(--tr-ink); }
.tr-page p.tr-fine { margin-top: 18px; font-size: 1rem; line-height: 1.55; color: var(--tr-soft); }
.tr-page p.tr-fine b { color: var(--tr-ink); }

/* ---- top-three cards and the four tiles ---- */
.tr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 16px; }
.tr-card { position: relative; padding: 22px 18px 18px; border-radius: 14px;
  background: var(--tr-panel); border: 1px solid var(--tr-line); }
.tr-card.first { border: 2px solid var(--tr-accent); }
.tr-card-r { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tr-ink); color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.tr-card.first .tr-card-r { background: var(--tr-accent); }
.tr-card > b { display: block; font-size: 1.2rem; line-height: 1.25; font-weight: 800;
  color: var(--tr-ink); min-height: 2.5em; }
.tr-card-s { display: block; margin: 10px 0 10px; font-size: 2rem; font-weight: 800;
  color: var(--tr-blue); line-height: 1; }
.tr-card-s i { font-style: normal; font-size: .84rem; font-weight: 700; color: var(--tr-soft);
  margin-left: 4px; }
.tr-card p { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--tr-soft); }

.tr-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 8px; }
.tr-tile { padding: 16px 16px 14px; border-radius: 12px; background: var(--tr-panel);
  border: 1px solid var(--tr-line); }
.tr-tile dt { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tr-soft); min-height: 2.6em; line-height: 1.3; }
.tr-tile dd { margin: 8px 0 6px; font-size: 1.9rem; font-weight: 800; color: var(--tr-ink);
  line-height: 1.05; }
.tr-tile dd.w { font-size: 1.12rem; line-height: 1.25; min-height: 2.5em; }
.tr-tile dd i { font-style: normal; font-size: .9rem; font-weight: 700; color: var(--tr-soft); }
.tr-tile span { font-size: .94rem; font-weight: 700; color: var(--tr-blue); }

/* ---- bars: one blue; the leading row takes the accent ---- */
.tr-rows { margin: 14px 0 6px; }
.tr-row { display: grid; grid-template-columns: 268px 1fr 46px; gap: 16px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--tr-line); }
.tr-row:last-child { border-bottom: none; }
.tr-row-l b { display: block; font-size: 1.1rem; font-weight: 800; color: var(--tr-ink);
  line-height: 1.25; }
.tr-row-l span { display: block; margin-top: 3px; font-size: .9rem; line-height: 1.35;
  color: var(--tr-soft); }
.tr-track { height: 16px; border-radius: 999px; background: var(--tr-track); overflow: hidden; }
.tr-track i { display: block; height: 100%; border-radius: 999px; background: var(--tr-blue); }
.tr-row.lead .tr-track i { background: var(--tr-accent); }
.tr-row.thin .tr-track i { background: #8FB0CF; }
.tr-row-n { font-size: 1.35rem; font-weight: 800; text-align: right; color: var(--tr-ink); }
.tr-row.thin .tr-row-n, .tr-row.thin .tr-row-l b { color: var(--tr-soft); }

/* ---- big single number ---- */
.tr-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 18px; }
.tr-big b { font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--tr-blue); }
.tr-big i { font-style: normal; font-size: 1.3rem; font-weight: 800; color: var(--tr-soft); }
.tr-big span { margin-left: 14px; font-size: 1.04rem; font-weight: 700; color: var(--tr-ink); }

/* ---- top-three detail ---- */
.tr-path { margin: 12px 0 0; padding: 14px 22px 10px; border-radius: 14px;
  background: var(--tr-panel); border: 1px solid var(--tr-line); }
.tr-path-h { display: flex; align-items: center; gap: 12px; }
.tr-path-h span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%;
  background: var(--tr-ink); color: #fff; font-weight: 800; }
.tr-path:first-of-type .tr-path-h span { background: var(--tr-accent); }
.tr-path-h b { flex: 1; font-size: 1.4rem; font-weight: 800; color: var(--tr-ink); }
.tr-path-h i { font-style: normal; font-size: 1.04rem; font-weight: 800; color: var(--tr-blue); }
.tr-page p.tr-path-l { margin: 10px 0 6px; font-size: 1.06rem; line-height: 1.45; font-weight: 700; }
.tr-page p.tr-path-r { margin: 0 0 6px; font-size: 1rem; line-height: 1.45; color: var(--tr-soft); }
.tr-page p.tr-path-r b { color: var(--tr-ink); }
.tr-path ul, .tr-ul { margin: 0; padding-left: 20px; }
.tr-path li, .tr-ul li { margin: 0 0 4px; font-size: 1rem; line-height: 1.42; color: var(--tr-ink); }
.tr-ul { margin-bottom: 14px; }

/* ---- judgment table ---- */
.tr-jhead, .tr-j { display: grid; grid-template-columns: 30px 1fr 78px 62px; gap: 12px;
  align-items: start; }
.tr-jhead { grid-template-columns: 1fr 78px 62px; padding: 10px 0 8px; margin-top: 8px;
  border-bottom: 2px solid var(--tr-ink); font-size: .76rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tr-soft); }
.tr-jhead span:nth-child(n+2), .tr-j-c, .tr-j-d { text-align: center; }
.tr-j { padding: 9px 0; border-bottom: 1px solid var(--tr-line); }
.tr-j-n { font-size: .92rem; font-weight: 800; color: var(--tr-soft); padding-top: 1px; }
.tr-j-t b { display: block; font-size: 1.06rem; font-weight: 800; color: var(--tr-ink); }
.tr-j-t span { display: block; margin-top: 3px; font-size: .92rem; line-height: 1.4;
  color: var(--tr-soft); }
.tr-j-c { font-size: 1.04rem; font-weight: 800; color: var(--tr-ink); }
.tr-j-d { font-size: 1rem; letter-spacing: .1em; color: var(--tr-blue); }

/* ---- numbered definitions ---- */
.tr-defs { margin: 4px 0 0; }
.tr-def { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  padding: 11px 0; border-bottom: 1px solid var(--tr-line); }
.tr-def:last-child { border-bottom: none; }
.tr-def > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--tr-ink); color: #fff; font-size: 1.04rem; font-weight: 800; }
.tr-def b { display: block; font-size: 1.16rem; font-weight: 800; color: var(--tr-ink); }
.tr-page .tr-def p { margin: 4px 0 0; font-size: 1.06rem; line-height: 1.5; color: var(--tr-soft); }

/* ---- small definition table and foot ---- */
.tr-table > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 9px 0;
  border-bottom: 1px solid var(--tr-line); font-size: 1.04rem; }
.tr-table b { font-weight: 800; color: var(--tr-ink); }
.tr-table span { color: var(--tr-soft); }
.tr-page p.tr-foot { margin-top: 30px; padding-top: 16px; border-top: 2px solid var(--tr-ink);
  font-size: .88rem; font-weight: 700; color: var(--tr-soft); }

@media (max-width: 860px) {
  body:not(.tr-printing) .tr-page { padding: 28px 20px 30px; min-height: 0; }
  body:not(.tr-printing) .tr-cover h1 { margin-top: 48px; font-size: 2.5rem; }
  body:not(.tr-printing) .tr-status { position: static; margin-top: 26px !important; }
  body:not(.tr-printing) .tr-id { grid-template-columns: 1fr; margin-top: 40px; }
  body:not(.tr-printing) .tr-cards { grid-template-columns: 1fr; }
  body:not(.tr-printing) .tr-card > b { min-height: 0; }
  body:not(.tr-printing) .tr-tiles { grid-template-columns: 1fr 1fr; }
  body:not(.tr-printing) .tr-page h2 { font-size: 1.6rem; }
  body:not(.tr-printing) .tr-row { grid-template-columns: 1fr 40px; gap: 6px 10px; }
  body:not(.tr-printing) .tr-row .tr-track { grid-column: 1 / -1; grid-row: 2; }
  body:not(.tr-printing) .tr-jhead, body:not(.tr-printing) .tr-j { grid-template-columns: 24px 1fr 34px 46px; gap: 8px; }
  body:not(.tr-printing) .tr-jhead { grid-template-columns: 1fr 34px 46px; }
  body:not(.tr-printing) .tr-jhead span:nth-child(2) { font-size: 0; }
  body:not(.tr-printing) .tr-table > div { grid-template-columns: 1fr; gap: 2px; }
  body:not(.tr-printing) .tr-big span { margin-left: 0; flex-basis: 100%; }
}
