/* Shared look of the 4 test pages (z, t, proportion, correlation). Loaded after each page's own styles. */

.app-card [hidden]{display:none!important}

/* Groups of choices: test type, standard deviation, H₁ */
.rt-group{border:0;margin:0 0 20px;padding:0;min-width:0}
.rt-group>legend{font:700 15px/1.3 var(--rt-head,'Libre Franklin',system-ui,sans-serif);color:#3D4451;padding:0;margin:0 0 8px}
.rt-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.rt-choices.compact{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.rt-choice{position:relative;display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid #DCD6CC;border-radius:4px;background:#fff;cursor:pointer;font-weight:400}
.rt-choice:hover{border-color:#8A8275}
.rt-choice input{margin:3px 0 0;accent-color:#A9532F;width:18px;height:18px;flex:none}
.rt-choice strong{display:block;font:600 15px/1.3 var(--rt-head,'Libre Franklin',system-ui,sans-serif);color:#1A2F4A}
.rt-choice strong+span{display:block;margin-top:3px;font-size:14px;line-height:1.4;color:#575C66}
.rt-choice:has(input:checked){border-color:#A9532F;box-shadow:inset 0 0 0 1px #A9532F;background:#F5F3F0}
.rt-choice:has(input:focus-visible){outline:3px solid #A9532F;outline-offset:2px}
.rt-choice .math{font:600 16px/1.3 var(--rt-body,'Source Serif 4',Georgia,serif);color:#1A2F4A}
.rt-hint{margin:-12px 0 18px;font-size:14px;color:#575C66}

/* Old test-type bar is replaced by .rt-group; keep a plain panel look */
.app-card>.rt-top{padding:20px 20px 0}
.panel>.section-title{margin-top:4px}

/* Result block: hidden numbers until the first Calculate */
.rt-result{margin-top:22px;border:1px solid #DCD6CC;border-radius:4px;padding:18px;background:#fff;scroll-margin-top:16px}
.rt-result:not(.has-result){background:#F5F3F0;border-style:dashed}
.rt-result-empty{margin:0;color:#575C66;font-size:15px}
.rt-result-title{margin:0 0 10px;font:700 18px/1.3 var(--rt-head,'Libre Franklin',system-ui,sans-serif);color:#1A2F4A}
.rt-decision-label{margin:0 0 4px;font:600 14px/1.4 var(--rt-head,'Libre Franklin',system-ui,sans-serif);color:#575C66}
.rt-decision{margin:0 0 14px;padding:12px 14px;border-radius:4px;font-size:17px;font-weight:700;line-height:1.45}
.rt-decision.reject{background:#FBE6E4;color:#B3261E}
.rt-decision.fail{background:#E9E5DF;color:#1A2F4A}
.rt-result-note{margin:0 0 12px;padding:10px 12px;border-left:3px solid #C76D47;background:#FBEFE6;color:#3D4451;font-size:14px}
.rt-table{width:100%;border-collapse:collapse;font-size:15px}
.rt-table th,.rt-table td{padding:9px 10px;border-bottom:1px solid #E9E5DF;text-align:left;vertical-align:top}
.rt-table th{font-weight:400;color:#575C66;width:55%;background:none;font-size:15px;text-transform:none;letter-spacing:0}
.rt-table td{font-weight:700;color:#3D4451;font-variant-numeric:tabular-nums;word-break:break-word}
.rt-table tr:last-child th,.rt-table tr:last-child td{border-bottom:0}
.rt-more{margin-top:12px;border-top:1px solid #E9E5DF;padding-top:10px}
.rt-more summary{cursor:pointer;font:600 14px/1.4 var(--rt-head,'Libre Franklin',system-ui,sans-serif);color:#A9532F}
.rt-more[open] summary{margin-bottom:6px}
.rt-result details:not(.rt-more){margin-top:12px}

/* Modal: GSRI look, replaces every alert() */
dialog.rt-modal{border:0;border-radius:4px;padding:0;width:min(92vw,480px);box-shadow:0 24px 64px rgba(26,47,74,.28);color:#3D4451}
dialog.rt-modal::backdrop{background:rgba(26,47,74,.45)}
dialog.rt-modal[open]:not(:modal){position:fixed;top:20vh;left:50%;transform:translateX(-50%);z-index:1000}
.rt-modal-card{padding:22px 22px 20px;border-top:4px solid #C76D47}
.rt-modal-title{margin:0 0 10px;font:700 19px/1.3 var(--rt-head,'Libre Franklin',system-ui,sans-serif);color:#1A2F4A}
.rt-modal-body p{margin:0 0 10px;font-size:15px;line-height:1.5}
.rt-modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:16px}
.rt-modal-actions button{min-width:96px}

@media (max-width:640px){
  .app-card>.rt-top{padding:16px 14px 0}
  .rt-choices{grid-template-columns:1fr}
  .rt-choices.compact{grid-template-columns:1fr}
  .rt-modal-actions button{flex:1 1 auto}
}
