/* Test Justicia · shared screen and print presentation */
:root {
  --campus-ink: #142e44;
  --campus-navy: #102940;
  --campus-brass: #c7a975;
  --campus-paper: #f6f4ef;
  --campus-edge: #dcdcd5;
  --campus-shadow: 0 10px 28px rgba(26,41,49,.075);
  --campus-serif: Georgia, "Times New Roman", serif;
  --campus-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --campus-portico: url("/_lvo/portico-3c2a13431dec4759.webp");
}
.app-shell, main.account-page, .academy-page {
  --ink: var(--campus-ink);
  --line: var(--campus-edge);
  --muted: #526577;
  color: var(--campus-ink);
  background: var(--campus-paper);
  font-family: var(--campus-sans);
}
.app-shell .topbar {
  height: auto;
  min-height: 72px;
  padding-block: 8px;
  background: #fffcf7;
  border-bottom: 1px solid #c5b99e;
}
.topbar .brand strong { letter-spacing: .035em; }
.topbar .brand small { color: #485e70; }
.app-shell .hero { gap: clamp(18px,5vw,68px); padding-block: clamp(30px,5vw,70px); }
.app-shell .hero h1 { color: var(--campus-ink); }
.app-shell .hero h1 em { color: #386557; }
.app-shell .hero-panel, .app-shell .configuration, .app-shell .question-card,
.app-shell .question-map, .app-shell .score-card, .app-shell .practical-case-grid article,
.app-shell .practical-filters, .app-shell .weekly-card, .app-shell .recent-card,
.account-page .account-card, .academy-page .academy-module, .account-page .class-topic {
  border: 1px solid var(--campus-edge);
  border-radius: 18px;
  box-shadow: var(--campus-shadow);
}
.app-shell .hero-panel { background: linear-gradient(142deg,#fffefa,#f0f1eb); }
.app-shell .hero-panel::before { border-color: #c5b99e; }
.app-shell .builder { padding-top: clamp(20px,3.6vw,48px); }
#test-builder .modality-heading {
  padding: clamp(22px,4.6vw,54px);
  border: 1px solid #21394b;
  border-radius: 20px 20px 0 0;
  background-color: var(--campus-navy);
  background-image: linear-gradient(90deg,#102940 4%,rgba(16,41,64,.94) 34%,rgba(16,41,64,.54) 67%,rgba(16,41,64,.12)),var(--campus-portico);
  background-size: cover;
  background-position: center, right 37%;
  color: white;
}
#test-builder .modality-heading .step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #efcf98;
  font: 700 .7rem/1.35 var(--campus-sans);
  letter-spacing: .16em;
}
#test-builder .modality-heading .step::before { content: ""; width: 26px; height: 2px; background: currentColor; }
#test-builder .modality-heading h2 {
  max-width: 17ch;
  margin: 10px 0 0;
  color: #fffdf8;
  font: 500 clamp(2.25rem,5.3vw,4.25rem)/1.03 var(--campus-serif);
  letter-spacing: -.04em;
  text-wrap: balance;
}
#test-builder .modality-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
  padding: clamp(10px,1.5vw,18px);
  margin: 0 0 clamp(26px,4vw,44px);
  border: 1px solid #243b4c;
  border-top: 1px solid #ad956d;
  border-radius: 0 0 20px 20px;
  background: #102537;
  box-shadow: 0 10px 24px #172a3d1a;
}
#test-builder .modality-tabs > :is(button,a) {
  min-inline-size: 0;
  min-height: 52px;
  border-radius: 9px;
  border-color: #7990a16e;
  padding: 10px 9px;
  background-image: linear-gradient(135deg,var(--metal-face,#425467),var(--metal-deep,#25384b) 80%);
  box-shadow: inset 0 1px #ffffff17;
  font: 650 clamp(.8rem,1.1vw,.98rem)/1.25 var(--campus-sans);
  text-wrap: balance;
}
#test-builder .modality-tabs > [aria-selected="true"] {
  border-color: #efcf98;
  box-shadow: inset 0 -3px #efcf98;
}
#test-builder .modality-tabs > :is(button,a):focus-visible { outline: 3px solid white; outline-offset: 2px; }
.app-shell .section-heading { gap: 16px; align-items: center; margin-bottom: 20px; }
.app-shell .section-heading h2, .account-page h1, .academy-page .academy-page-title h1,
.app-shell .dashboard-welcome h1 {
  font: 500 clamp(1.85rem,3.5vw,3.1rem)/1.12 var(--campus-serif);
  letter-spacing: -.035em;
  color: var(--campus-ink);
}
.app-shell .section-heading p { max-width: 63ch; color: #526577; }
.app-shell .trial-badge { border: 1px solid #d9c9a9; background: #fbf3df; color: #684d1b; }
.app-shell .configuration { padding: clamp(16px,3vw,34px); background: #fffefa; }
.app-shell .configuration > label {
  margin-bottom: 12px;
  font: 700 1rem/1.4 var(--campus-sans);
  color: var(--campus-ink);
}
.app-shell .configuration > label:not(:first-child) { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e6e3db; }
.configuration :is(.segmented,.content-choice-tabs,.block-mode-tabs) > button {
  min-width: 0;
  min-height: 60px;
  padding: 10px clamp(8px,1.4vw,16px);
  color: var(--campus-ink);
  background: #fff;
  border-color: #cfd5d5;
  border-radius: 10px;
  text-align: start;
  font-family: var(--campus-sans);
}
.configuration :is(.segmented,.content-choice-tabs,.block-mode-tabs) small { color: #506273; line-height: 1.35; }
.configuration :is(.segmented,.content-choice-tabs,.block-mode-tabs) > button.active {
  background: #eaf1ef;
  border-color: #35655c;
  box-shadow: inset 3px 0 #35655c;
}
.app-shell .summary-card {
  background: linear-gradient(140deg,#183a50,#102537);
  border: 1px solid #314d60;
  border-top: 3px solid var(--campus-brass);
  box-shadow: var(--campus-shadow);
}
.app-shell .summary-card .summary-label { color: #f0d096; }
.app-shell .question-card { background: #fffefa; }
.app-shell .question-card h2 { color: var(--campus-ink); font-size: clamp(1.3rem,2.1vw,1.75rem); line-height: 1.38; }
.app-shell .question-card .option { border-radius: 12px; }
.app-shell .option.chosen:not(.correct):not(.wrong) { box-shadow: inset 3px 0 #226283; }
.app-shell .results-hero { padding-block: clamp(20px,4vw,46px); border-block: 1px solid #daceb5; }
.app-shell .practical-case-grid article { border-top: 3px solid #477366; }
.app-shell .practical-case-grid h3 { color: var(--campus-ink); }
.app-shell .simulation-builder .section-heading { border-bottom: 2px solid #ad8791; padding-bottom: 16px; }
main.account-page, .academy-page { background: linear-gradient(to bottom,#152f45 0 10rem,var(--campus-paper) 10rem); }
.account-page > .account-card, .academy-page .academy-module {
  box-sizing: border-box;
  background-color: #fffefa;
  border-top: 3px solid var(--campus-brass);
}
.account-page .account-logo { max-height: 116px; width: auto; max-width: 100%; object-fit: contain; }
.account-page .account-card h2 { font-family: var(--campus-serif); letter-spacing: -.015em; }
.account-page .account-card :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { border-color: #89979f; border-radius: 9px; }
.academy-page .academy-module-header { border-bottom-color: #c8b997; }
.academy-page .academy-tabs button[aria-selected=true] { background: var(--campus-navy); box-shadow: inset 3px 0 var(--campus-brass); }
.account-page .class-topic { background: white; border-top: 3px solid #3e6975; }
.account-page .class-topic h2 { color: var(--campus-ink); }
:is(.app-shell,.account-page) :is(button,a,input,select,textarea):focus-visible { outline: 3px solid #267298; outline-offset: 3px; }
@media (max-width: 650px) {
  #test-builder .modality-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #test-builder .modality-heading { background-position: center,right 28%; }
  .app-shell .section-heading { flex-wrap: wrap; align-items: start; gap: 8px; }
  .configuration :is(.segmented,.content-choice-tabs,.block-mode-tabs) { gap: 6px; }
  .app-shell .topbar { min-height: 58px; }
}
@media (max-width: 440px) {
  .configuration .content-choice-tabs { grid-template-columns: 1fr; }
  .configuration .content-choice-tabs > button { min-height: 45px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
  .configuration .segmented.three { grid-template-columns: repeat(auto-fit,minmax(min(100%,82px),1fr)); }
}
@media (max-width: 300px) {
  #test-builder .modality-tabs { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  #test-builder .modality-tabs > [aria-selected=true], .configuration button.active { border: 3px double Highlight; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-shell button { transition: none; }
}
@media print {
  #test-builder .modality-heading, main.account-page, .academy-page { background: white; color: black; }
  #test-builder .modality-heading :is(h2,.step) { color: black; }
}
main.account-page, main.academy-page {
  background-color: var(--campus-paper);
  background-image: linear-gradient(90deg,#142d44ed,#142d4480 70%,#142d4438),var(--campus-portico);
  background-size: 100% 12rem,100% 12rem;
  background-position: top,center top;
  background-repeat: no-repeat;
}
.account-page .account-card h1 { font: 500 clamp(1.9rem,3.5vw,3rem)/1.1 var(--campus-serif); letter-spacing: -.035em; }
.account-page .account-card .primary { background: #163a52; border-color: #163a52; }
@media print { main.account-page, main.academy-page { background: white; } }

body:has(#incident-app) { background: var(--campus-paper); }
#incident-app header {
  background: linear-gradient(90deg,#102940 5%,#102940d9 50%,#10294070),var(--campus-portico) right 35% / cover;
  border-bottom: 3px solid var(--campus-brass);
}
#incident-app h1 { font-family: var(--campus-serif); font-weight: 500; letter-spacing: -.03em; }
.account-page #trial-form fieldset { background: #fff; border: 1px solid var(--campus-edge); border-radius: 12px; }
.account-page #trial-form legend { color: var(--campus-navy); }
