/* GNHS school branding: maroon and white, matching supplied GNHS emblem. */
:root {
  --navy:#68152e; --blue:#8d2442; --light:#fff3f5; --line:#eadce1;
  --sub:#705f69; color:#301925; background:#fff9fa;
}
body {background:#fff9fa; color:#301925}
input,select,textarea {border-color:#d9c6cd;color:#3b2730}
input:focus,select:focus,textarea:focus {outline-color:#9c3352;box-shadow:0 0 0 3px #8d24421a}
.auth-shell {background:linear-gradient(140deg,#4e0c22 0%,#741931 46%,#fff7f9 46.2%,#fff 100%)}
.auth-identity p {color:#ffeaf0}
.auth-identity .overline,.auth-identity .auth-note {color:#f9c9d6}
.school-logo {padding:5px;background:white;border:2px solid #fff;border-radius:50%;box-shadow:0 12px 32px #2a071b33;overflow:hidden;display:grid;place-items:center;flex-shrink:0}
.school-logo img {display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}
.auth-identity .school-logo {height:112px;width:112px;margin-bottom:16px}
.brand .school-logo {height:48px;width:48px;border:1px solid #fff;padding:2px}
.sidebar{background:linear-gradient(165deg,#7c1e3b,#4d0b22 78%)}
.brand strong,.auth-identity h1{color:#fff}
.brand small,.sidebar-bottom {color:#f0c9d4}
.nav-btn{color:#f6dce3}
.nav-btn.active,.nav-btn:hover{background:#ffffff28;color:#fff;box-shadow:inset 3px 0 0 #fff}
.user-card{background:#ffffff18;border-color:#ffffff24}
.user-card .role{color:#f9c4d5}
.topbar{background:#fff;border-bottom:2px solid #f0e0e6}
.topbar-identity{display:flex;align-items:center;gap:10px}
.topbar-school-logo{display:block;width:43px;height:43px;object-fit:contain;border-radius:50%;background:#fff;border:1px solid #ebd6de;padding:1px}
.role-pill{background:#fbebf0;color:#77213e}
.overline{color:#956078}
.card,.kpi{border-color:#ebdce1;box-shadow:0 12px 30px #440b2309}
.kpi strong{color:#7f1d3d}
.primary{background:linear-gradient(130deg,#6b1630,#982a4d);color:#fff}
.secondary{background:#fcf0f3;border-color:#e6cbd4;color:#782341}
.tab.active{color:#791d3b}
.segmented{background:#f8eaf0}
.password .small{background:#faeef1;color:#7e304d}
.menu-toggle{background:#f9e8ee;color:#7a1c3d}
.grid-table th{background:#fff3f6;color:#805269}
.tag{background:#f9e7ed;color:#82233f}
.notice{border-left-color:#86213e;background:#fff4f7;color:#6b2440}
.mini-tab.active{background:#79203d}
.student-theme .sidebar{background:linear-gradient(160deg,#8c3453,#5e1531)}
.adviser-theme .sidebar{background:linear-gradient(160deg,#742244,#4a102f)}
.teacher-theme .sidebar{background:linear-gradient(160deg,#8b2a43,#53142c)}
.principal-theme .sidebar{background:linear-gradient(160deg,#66203e,#420f2a)}
.student-theme .nav-btn.active,.student-theme .nav-btn:hover,
.adviser-theme .nav-btn.active,.adviser-theme .nav-btn:hover,
.teacher-theme .nav-btn.active,.teacher-theme .nav-btn:hover {background:#ffffff2c}
.student-theme .role-pill{background:#fff1f5;color:#7e2444}
.student-theme .kpi strong{color:#852747}
@media(max-width:780px){
 .auth-shell{background:linear-gradient(160deg,#5b0d29 0%,#80213f 33%,#fff7f9 33.2%)}
 .auth-identity .school-logo{width:80px;height:80px;margin-bottom:8px}
 .topbar-school-logo{width:34px;height:34px}
 .topbar-identity{gap:5px}
}

/* v3.4 teacher registration: mobile-friendly multi-role application form. */
.staff-teacher-fields {display:grid;gap:14px;padding:12px 13px;border:1px solid #efd6df;border-radius:12px;background:#fff8fa}
.staff-agreement {display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-size:12px;line-height:1.45}
.staff-agreement input {width:17px;min-width:17px;min-height:17px;accent-color:#7d1e3d;margin:2px 0}
.auth-card:has(#staffRegisterForm:not(.hidden)){max-height:calc(100vh - 45px);overflow:auto;overscroll-behavior:contain}
.staff-request {padding:15px;margin:12px 0;background:#fff7f9;border:1px solid #efd9e1;border-radius:12px}
.staff-request .row{margin-top:10px}
@media(max-width:780px){.auth-card:has(#staffRegisterForm:not(.hidden)){max-height:none;overflow:visible}.staff-teacher-fields{padding:10px}}

/* v3.7: role-specific landing page badge, mobile-friendly. */
.portal-label {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px;color:#76203b;font-size:11px;font-weight:850;letter-spacing:.09em;margin:0 0 14px;}
.portal-label span {font-size:11px;color:#7a5e69;letter-spacing:normal;font-weight:600;}
.invite-code {overflow-wrap:anywhere;padding:10px;background:#fff;border:1px solid #ecd7de;border-radius:10px;}
@media(max-width:420px){.portal-label{flex-direction:column;align-items:flex-start}}

/* GNHS v3.9.6: compact scripture + live clock INSIDE each role dashboard only. */
.gnhs-dashboard-head{display:flex;gap:10px;align-items:stretch;margin:0 0 14px;flex-wrap:wrap}
.gnhs-verse-banner{flex:1 1 450px;min-width:0;min-height:79px;padding:11px 14px 11px 15px;background:linear-gradient(110deg,#fff9fb,#fff2f6);border:1px solid #eacbd6;border-left:3px solid #9a3157;border-radius:12px;box-shadow:0 2px 9px #460f2509}
.gnhs-verse-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#852746;font-weight:800;font-size:12px}
.gnhs-verse-caption small{color:#906b7b;font-weight:500}
.gnhs-verse-dismiss{flex:none;cursor:pointer;border:1px solid #edd4dd;background:#fff;color:#79253f;border-radius:7px;width:27px;height:27px;font-size:14px;line-height:1;display:grid;place-items:center;padding:0}
.gnhs-verse-dismiss:hover,.gnhs-verse-dismiss:focus-visible{background:#f8e3eb;outline-color:#8d2442}
.gnhs-verse-text{color:#502b39;font-size:12.5px;line-height:1.48;margin:5px 0 0;overflow-wrap:anywhere}
.gnhs-verse-text strong{white-space:normal;color:#853452;font-size:11.5px}
.gnhs-digital-clock{flex:0 0 175px;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:2px;background:#fff;border:1px solid #ebdce1;border-radius:12px;padding:9px 12px;box-shadow:0 2px 9px #460f2509}
.gnhs-clock-label{font-size:10px;font-weight:750;color:#8a2a4d}
.gnhs-digital-clock time{font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.04em;color:#55243a;font-size:18px;white-space:nowrap}
.gnhs-clock-date{font-size:10px;color:#7f6b75}
@media (max-width:620px){.gnhs-dashboard-head{gap:7px}.gnhs-verse-banner{flex-basis:100%;padding:9px 11px;min-height:auto}.gnhs-digital-clock{flex:1 1 100%;max-width:none;min-height:auto;flex-direction:row;justify-content:space-between;gap:7px;padding:7px 11px}.gnhs-digital-clock time{font-size:15px}.gnhs-clock-date{font-size:10px}.gnhs-verse-text{font-size:12px}}
@media (max-width:380px){.gnhs-digital-clock{flex-wrap:wrap;justify-content:center}.gnhs-clock-date{flex:0 0 100%}}

/* Multi-section teacher assignment controls. */
.assignment-picker{min-width:0;padding:14px;background:#fffbfc;border-color:#eadbe1;}
.assignment-picker-header{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px;}
.assignment-picker-header button{width:auto;min-height:36px;padding:7px 11px;}
.assignment-section-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:310px;overflow-y:auto;}
.assignment-section{display:flex;flex-direction:row;gap:11px;align-items:center;cursor:pointer;padding:12px;border:1px solid #ead7df;background:#fff;border-radius:12px;min-width:0;}
.assignment-section:has(input:checked){background:#fff0f4;border-color:#94264a;}
.assignment-section:focus-within{outline:2px solid #94264a;outline-offset:1px;}
.assignment-section input[type=checkbox]{flex:0 0 19px;width:19px;height:19px;min-height:19px;margin:0;accent-color:#861b3d;}
.assignment-section-text{min-width:0;display:grid;gap:3px;}
.assignment-section-text strong{font-size:14px;overflow-wrap:anywhere;color:#411d2a;}
.assignment-section-text small{color:#766574;font-weight:450;overflow-wrap:anywhere;}
.assignment-form .primary{background:linear-gradient(120deg,#74142f,#a82b55);}
@media(max-width:680px){.assignment-section-list{grid-template-columns:1fr;max-height:320px;}.assignment-picker{padding:11px;}.assignment-section{padding:12px;}}
