/* UPPCS Prelims timed test series — board-local styles only. */
.uts-page { padding-bottom: 4rem; }
.uts-hero {
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(14, 116, 144, 0.18), transparent 55%),
    linear-gradient(165deg, #0b1c24 0%, #123040 48%, #0f2740 100%);
  color: #f4fafc;
  padding: 2.5rem 0 3rem;
}
.uts-hero-compact { padding: 1.75rem 0 2.25rem; }
.uts-hero .crumbs a { color: rgba(244, 250, 252, 0.78); }
.uts-hero .crumbs span { color: rgba(244, 250, 252, 0.45); }
/* Dark hero: ink-on-paper toggle would vanish — force light chrome. */
.uts-hero .lang-toggle,
.uts-hero .exam-toggle {
  border-color: rgba(244, 250, 252, 0.42);
  background: rgba(8, 24, 34, 0.35);
}
.uts-hero .lang-toggle .exam-btn,
.uts-hero .exam-toggle .exam-btn {
  color: rgba(244, 250, 252, 0.88);
}
.uts-hero .lang-toggle .exam-btn:hover,
.uts-hero .exam-toggle .exam-btn:hover {
  color: #f4fafc;
  background: rgba(244, 250, 252, 0.12);
}
.uts-hero .lang-toggle .exam-btn.is-on,
.uts-hero .exam-toggle .exam-btn.is-on {
  background: #f4fafc;
  color: #0b1c24;
  border-color: #f4fafc;
}
.uts-hero .lang-toggle .exam-btn.is-on:hover,
.uts-hero .exam-toggle .exam-btn.is-on:hover {
  color: #0b1c24;
  background: #fff;
}
.uts-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0.75;
  margin: 0 0 0.6rem;
}
.uts-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.uts-lede {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.9;
  margin: 0 0 1.25rem;
}
.uts-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0;
}
.uts-hero-stats div {
  min-width: 6.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}
.uts-hero-stats strong { display: block; font-size: 1.15rem; }
.uts-hero-stats span { font-size: 0.78rem; opacity: 0.7; }
.uts-hero-row {
  display: grid;
  gap: 1.35rem 1.75rem;
  align-items: start;
  margin-top: 0;
}
.uts-hero-copy .lang-toggle {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
@media (min-width: 820px) {
  .uts-hero-row {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  }
}
.uts-hero .uts-interest.interest-form {
  margin: 0;
  max-width: none;
  width: 100%;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #f4fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.uts-hero .uts-interest.interest-form.is-on {
  background: rgba(31, 120, 90, 0.28);
  border-color: rgba(120, 220, 180, 0.28);
}
.uts-hero .uts-interest .interest-form-kicker {
  color: #9be7ff;
}
.uts-hero .uts-interest .interest-form-q {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: #f4fafc;
  line-height: 1.35;
}
.uts-hero .uts-interest .interest-form-hint {
  margin: 0 0 0.85rem;
}
.uts-hero .uts-interest p,
.uts-hero .uts-interest legend,
.uts-hero .uts-interest label {
  color: rgba(244, 250, 252, 0.92);
}
.uts-hero .uts-interest .muted {
  color: rgba(244, 250, 252, 0.55);
}
.uts-hero .uts-interest input[type="tel"],
.uts-hero .uts-interest input[type="email"] {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 24, 34, 0.45);
  color: #f4fafc;
}
.uts-hero .uts-interest input::placeholder {
  color: rgba(244, 250, 252, 0.45);
}
.uts-hero .uts-interest .error {
  color: #ffb4b4;
  margin: 0;
}
.uts-hero .uts-interest .btn-ink {
  background: #f4fafc;
  color: #0b1c24;
  border-color: transparent;
}
.uts-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.uts-hero-actions.is-stack {
  flex-direction: column;
  align-items: flex-start;
}
.uts-hero-actions.is-stack .uts-practice-link {
  margin-top: 0.15rem;
}
.uts-section { margin-top: 2.5rem; }
.uts-section-head h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  margin: 0 0 0.35rem;
}
.uts-section-head p { margin: 0 0 1.25rem; color: var(--muted, #5a6570); }
.uts-paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1rem;
}
.uts-paper-card {
  border: 1px solid rgba(15, 39, 64, 0.12);
  border-radius: 16px;
  padding: 1.1rem 1rem 1.15rem;
  background: linear-gradient(180deg, #fff 0%, #f5fafb 100%);
  box-shadow: 0 10px 28px rgba(15, 39, 64, 0.05);
}
.uts-paper-card.is-soon { opacity: 0.55; }
.uts-paper-year {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0e4a5c;
}
.uts-paper-card h3 { margin: 0.15rem 0 0.35rem; font-size: 1rem; }
.uts-paper-meta { margin: 0 0 0.9rem; font-size: 0.82rem; color: #5a6570; }
.uts-paper-cta { width: 100%; justify-content: center; }
.uts-paper-soon { font-size: 0.85rem; color: #7a8691; }
.uts-attempt-table { display: grid; gap: 0.35rem; }
.uts-attempt-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 0.7fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(15, 39, 64, 0.08);
}
.uts-attempt-row.is-head {
  background: transparent;
  border: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8691;
  padding-bottom: 0.2rem;
}
.uts-status.is-submitted { color: #0f766e; }
.uts-status.is-expired { color: #b45309; }
.uts-status.is-in_progress { color: #0369a1; }
.uts-row-go { color: #0e4a5c; font-weight: 600; white-space: nowrap; }
.uts-empty { color: #5a6570; }
.uts-score-max { font-size: 0.55em; opacity: 0.65; font-weight: 500; }
.uts-result-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.uts-result-stats div {
  min-width: 5.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.uts-result-stats .is-ok { color: #6ee7b7; }
.uts-result-stats .is-bad { color: #fca5a5; }
.uts-review-list { display: grid; gap: 0.65rem; }
.uts-review-row {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 39, 64, 0.1);
  background: #fff;
}
.uts-review-row.is-correct { border-color: rgba(15, 118, 110, 0.35); background: #f0fdfa; }
.uts-review-row.is-wrong { border-color: rgba(185, 28, 28, 0.28); background: #fff5f5; }
.uts-review-row.is-unattempted { opacity: 0.85; }
.uts-review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}
.uts-review-prompt {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  color: #44505a;
}

/* Exam room */
.uts-exam { padding-bottom: 0; }
.uts-exam-bar {
  position: static;
  margin: 2rem 0 0;
  /* Light strip — not site header paper-blur, not dark footer ink. */
  background: #fff;
  color: #0e4a5c;
  border-top: 3px solid #0e7490;
  border-bottom: none;
  box-shadow: none;
}
/* Sit the control bar flush above the site footer (no 4rem gap). */
body:has(.uts-exam) .site-footer {
  margin-top: 0;
}
body:has(.uts-exam) main {
  padding-bottom: 0;
}
.uts-exam-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.uts-exam-title { min-width: 0; }
.uts-exam-title strong {
  font-size: 1.05rem;
  color: #0b1f33;
}
.uts-exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.uts-exam-bar .btn-outline {
  color: #0e4a5c;
  border-color: rgba(14, 74, 92, 0.35);
  background: #f0f9fb;
}
.uts-exam-bar .btn-outline:hover {
  color: #fff;
  background: #0e4a5c;
  border-color: #0e4a5c;
}
.uts-exam-bar .btn-ink {
  background: #0e7490;
  color: #fff;
  border-color: transparent;
}
.uts-exam-bar .btn-ink:hover {
  background: #0b1f33;
  color: #fff;
}
.uts-exam-progress {
  display: block;
  font-size: 0.8rem;
  color: #5a6570;
  opacity: 1;
}
.uts-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0e4a5c;
  padding: 0.25rem 0.7rem;
  border-radius: 10px;
  background: #ecfeff;
  border: 1px solid rgba(14, 116, 144, 0.25);
}
.uts-timer.is-warn {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.45);
}
.uts-timer.is-critical {
  color: #991b1b;
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.4);
}
/* Full-screen exam shell */
.uts-exam:fullscreen,
.uts-exam:-webkit-full-screen {
  background: var(--paper, #f7f3eb);
  overflow: auto;
  padding: 1rem 0 1.5rem;
  box-sizing: border-box;
}
.uts-exam:fullscreen .uts-exam-layout,
.uts-exam:-webkit-full-screen .uts-exam-layout {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.uts-exam-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.uts-palette {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 39, 64, 0.1);
  background: #fff;
}
.uts-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}
.uts-palette-grid button {
  appearance: none;
  border: 1px solid rgba(15, 39, 64, 0.14);
  background: #f7fafb;
  border-radius: 8px;
  padding: 0.35rem 0;
  font-size: 0.75rem;
  cursor: pointer;
}
.uts-palette-grid button.is-done { background: #ccfbf1; border-color: #5eead4; }
.uts-palette-grid button.is-current { outline: 2px solid #0e4a5c; outline-offset: 1px; }
.uts-palette-legend {
  display: flex;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: #5a6570;
}
.uts-qpanel {
  border-radius: 16px;
  border: 1px solid rgba(15, 39, 64, 0.1);
  background: #fff;
  padding: 1.25rem 1.35rem 2.25rem;
  box-shadow: 0 12px 32px rgba(15, 39, 64, 0.05);
}
.uts-qnum { margin: 0 0 0.5rem; font-weight: 700; color: #0e4a5c; }
.uts-prompt {
  font-size: 1.05rem;
  line-height: 1.55;
  white-space: pre-wrap;
  margin-bottom: 1.1rem;
}
.uts-options { display: grid; gap: 0.55rem; }
.uts-option {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 39, 64, 0.12);
  background: #fbfcfd;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
}
.uts-option.is-on {
  border-color: #0e7490;
  background: #ecfeff;
  box-shadow: inset 0 0 0 1px #0e7490;
}
.uts-option-letter {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  font-weight: 700;
  font-size: 0.85rem;
}
.uts-option.is-on .uts-option-letter { background: #0e7490; color: #fff; }
.uts-qnav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
}
@media (max-width: 820px) {
  .uts-exam-layout { grid-template-columns: 1fr; }
  .uts-palette { position: static; max-height: none; }
  .uts-qpanel {
    padding: 1.15rem 1.15rem 2.75rem;
  }
  .uts-attempt-row, .uts-attempt-row.is-head {
    grid-template-columns: 1fr 1fr;
  }
  .uts-attempt-row.is-head { display: none; }
}
