/* V16.702–703: visual hierarchy and classroom presentation.
   No changes to authentication, content visibility or exam logic. */
@media screen {
  .bk-home,.bk-admin,.bk-student,.bk-parent,.bk-public {
    --bk-primary:#7250ab; --bk-primary-dark:#50337e; --bk-line:#ded5eb;
    --bk-muted:#605970; --bk-focus:#56368c;
  }
  .bk-home .section-head h2 {font-weight:800;}
  .bk-home .level,.bk-home .feature,.bk-home .panel {border-radius:16px;box-shadow:0 2px 6px #34204f0b;}
  .bk-home .level {border-left-width:4px;}
  .bk-home .section-head {margin-bottom:10px;}
  .bk-home .bar nav a {border-radius:10px;padding:10px 12px;}
  .bk-home .bar nav a[href='/registration.html'] {background:#eee7fa;color:#50337e;}
  .bk-admin .card,.bk-student .card,.bk-parent .panel,.bk-public .card {border-color:var(--bk-line);box-shadow:0 3px 14px #34204f0a;}
  .bk-admin #panel nav {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,158px),1fr));gap:8px;padding:10px;background:#eae3f5;border:1px solid var(--bk-line);border-radius:14px;margin-block:10px 16px;}
  .bk-admin #panel nav button {min-height:46px;padding:9px 10px;border:1px solid #ded5eb;border-radius:10px;line-height:1.3;text-align:center;font-size:.9rem;}
  .bk-admin #panel nav button.selected {background:var(--bk-primary-dark);color:white;border-color:var(--bk-primary-dark);}
  :is(.bk-admin,.bk-student,.bk-parent,.bk-public) button {border-radius:10px;line-height:1.35;}
  :is(.bk-admin,.bk-student,.bk-parent,.bk-public) button:disabled {cursor:not-allowed;}
  :is(.bk-admin,.bk-student,.bk-parent,.bk-public) :is(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--bk-focus);outline-offset:3px;}
  :is(.bk-admin,.bk-student,.bk-parent,.bk-public) header :is(a,button):focus-visible {outline-color:#d4bff5;}
  .bk-admin .tablewrap th {background:#f2eef8;color:#50337e;font-weight:750;}
  .bk-admin .tablewrap tbody tr:nth-child(even) {background:#faf8fd;}
  .bk-admin .tablewrap td button {min-height:36px;}
  .bk-student .student-material,.bk-student .dash-entry,.bk-parent .metric {border-radius:14px;}
  .bk-student #examOptions .student-tile {background:#faf8fd;color:#29233b;border:2px solid #ded5eb;text-align:left;padding:14px 18px;}
  .bk-student #examOptions .student-tile[aria-pressed=true] {background:#eae1f8;border-color:#7250ab;outline:2px solid #7250ab;outline-offset:2px;}
  .bk-student #examClock,.bk-public #clock {font-variant-numeric:tabular-nums;font-weight:750;}
  .bk-student #examFinish,.bk-public #finish {background:#16654c;color:white;}
  .bk-student :is(#examClear,#examPrev,#examLeave) {background:#eee7fa;color:#50337e;}
  .bk-public .option.selected {background:#eae1f8;border-color:#7250ab;box-shadow:0 0 0 1px #7250ab;}
  .bk-student #pdfViewer {scrollbar-gutter:stable;}
  .bk-student #pdfViewer .actions {gap:10px;padding:12px 0;border-bottom:1px solid #ded5eb;}
  .bk-student #pdfViewer .actions button {min-height:44px;}
  .bk-student #pdfCanvas {display:block;max-width:100%;height:auto;margin:12px auto;}
  .bk-student #pdfViewer:fullscreen {width:100%;height:100%;max-width:none;max-height:none;overflow:auto;background:#fff;color:#29233b;padding:clamp(12px,2vw,30px);}
  .bk-student #pdfViewer:fullscreen .actions {top:0;background:#fff;}
  .bk-student #pdfViewer:fullscreen #pdfCanvas {width:min(100%,1600px);height:auto;max-width:100%;}
  .bk-student #pdfViewer:fullscreen #pdfCanvas[width='0'] {width:0;}
}
@media screen and (hover:hover) and (pointer:fine) {
  .bk-admin #panel nav button:not(.selected):hover {background:#f7f2fd;border-color:#a58bcf;}
  :is(.bk-student,.bk-parent,.bk-public) button:not(:disabled):hover {box-shadow:0 0 0 2px #7250ab35;}
  .bk-student #examOptions .student-tile:not([aria-pressed=true]):hover,.bk-public .option:not(.selected):hover {border-color:#7250ab;}
}
@media screen and (max-width:800px) {
  .bk-admin #panel nav {grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));padding:8px;}
  .bk-admin .tablewrap td button {min-height:44px;}
}
@media screen and (min-width:1000px) and (min-height:600px) {
  .bk-student #examPlayer,.bk-public #player {padding:clamp(22px,3vw,38px);}
  .bk-student #examQuestion,.bk-public #question {font-size:clamp(1.35rem,1.85vw,2rem);line-height:1.55;}
  .bk-public #question .passage {font-size:clamp(1.1rem,1.5vw,1.5rem);line-height:1.6;}
  .bk-student #examOptions .student-tile,.bk-public #options .option {min-height:64px;font-size:clamp(1.12rem,1.45vw,1.55rem);padding:14px 20px;}
  .bk-student #examPlayer .actions button,.bk-public #player .actions button,.bk-student #pdfViewer .actions button {min-height:52px;font-size:1.03rem;}
  .bk-public #navigator button {min-width:48px;min-height:48px;}
  .bk-student #examClock,.bk-public #clock {font-size:1.3rem;}
  .bk-student #pdfViewer:fullscreen .actions button {min-height:56px;font-size:1.12rem;}
}
@media screen and (prefers-reduced-motion:reduce) {
  .bk-home :is(.level,.feature,.panel) {transition:none;transform:none;}
}
