
/* Owner-reviewed readability treatment: opening/dashboard and form text */
body{font-size:18px;line-height:1.55}
.app-head,.app-foot{font-size:16px}
main.pg-home::before,main.pg-dashboard::before{content:none}
.pg-home .wh-home{background:#fff8ef}
.pg-home .wh-home::before{content:"";display:block;height:90px;background:#edf5fb url("clear-school-objects.svg") center/contain no-repeat;border-radius:12px;margin-bottom:14px}
.pg-home p{font-size:18px!important;line-height:1.6}
.pg-home p:last-child{background:#eaf1ff;color:#163e73!important;border-left:5px solid #315e9c;padding:14px;border-radius:6px}
.pg-home .wh-grid-btn{font-size:19px}
.pg-dashboard .dash-card:nth-child(3n+1){background:linear-gradient(150deg,#7a1f2b,#b8384d);border-top:4px solid #f2b01e;color:#fff}
.pg-dashboard .dash-card:nth-child(3n+2){background:linear-gradient(150deg,#124a8f,#2273d6);border-top:4px solid #f2b01e;color:#fff}
.pg-dashboard .dash-card:nth-child(3n){background:linear-gradient(150deg,#166534,#22a055);border-top:4px solid #f2b01e;color:#fff}
.pg-dashboard .dash-card .kicker{color:#ffd34d}
.pg-dashboard .dash-card h3{color:#fff}
.pg-dashboard .dash-card .dash-big{color:#fff}
.pg-dashboard .dash-card .dash-line,.pg-dashboard .dash-card .dash-row{border-bottom:1px dashed rgba(255,255,255,.45);color:#fff}
.pg-dashboard .dash-card .dash-line b,.pg-dashboard .dash-card .dash-row b{color:#fff}
.pg-dashboard .dash-card .fine{color:#fff!important;background:rgba(255,255,255,.16);border-left:4px solid #ffd34d}
.pg-dashboard .dash-card:nth-child(3n+1) .dash-open{background:#fff;color:#7a1f2b;border-color:#fff}
.pg-dashboard .dash-card:nth-child(3n+2) .dash-open{background:#fff;color:#124a8f;border-color:#fff}
.pg-dashboard .dash-card:nth-child(3n) .dash-open{background:#fff;color:#166534;border-color:#fff}
.pg-dashboard .dash-card h3{font-size:23px;line-height:1.3}
.pg-dashboard .fine{font-size:17px!important;line-height:1.6;color:#173f75;background:#e7efff;border-left:4px solid #315e9c;padding:10px;border-radius:5px}
.pg-dashboard .dash-open{font-size:18px;font-weight:700;color:#7a1f2b;background:#fff;padding:10px 14px;border:1px solid #cdaab5;border-radius:7px;display:inline-block}
.pg-dashboard .dash-row,.pg-dashboard .dash-line{font-size:18px;padding:12px 0}
.pg-dashboard .dash-btn{font-size:18px;min-height:46px}

main::before{content:none!important}
.pg-home .wh-hero p{background:transparent!important;border:0!important;padding:0!important}
input,textarea,select,[contenteditable="true"]{color:#102f64!important;background-color:#fff!important;caret-color:#102f64;font-size:18px!important}
input::placeholder,textarea::placeholder{color:#67778c!important;opacity:1}
.pg-home .wh-grid-btn .wh-gi{display:none}
@media(max-width:500px){.pg-home .wh-home::before{height:66px}.pg-home .wh-note{font-size:17px!important}}
.pg-staff label,.pg-staff .field>span,.pg-staff .form-grid label{font-size:16px!important;line-height:1.5}

/* Public home: info-rich first page (local preview) */
.pg-home .pub-nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0 4px}
.pg-home .pub-nav a{background:#7a1f2b;color:#fff;font-weight:700;font-size:16px;padding:8px 14px;border-radius:999px;text-decoration:none;border:2px solid #f2b01e}
.pg-home .pub-sec,.pg-home .pub-band{border-radius:12px;color:#fff;padding:16px 18px;margin:12px 0;box-shadow:0 3px 10px rgba(43,26,31,.18);border-top:5px solid #f2b01e}
.pg-home .pub-sec h2,.pg-home .pub-band h2{font-size:24px;margin:0 0 6px;color:#fff}
.pg-home .pub-sec p,.pg-home .pub-band p{font-size:18px;line-height:1.5;margin:0 0 10px;color:#fff;background:none!important;border:0!important;padding:0!important}
.pg-home .pub-more{display:inline-block;background:#fff;color:#7a1f2b;font-weight:800;font-size:17px;padding:9px 16px;border-radius:8px;text-decoration:none}
.pg-home .pub-login-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pg-home .pub-soon{color:#ffd34d;font-weight:700;font-size:15px;border:1px dashed #ffd34d;border-radius:8px;padding:8px 12px}

/* Public home: hero photo + admission CTA (local preview) */
.pg-home .pub-hero-photo{display:block;width:100%;border-radius:14px;margin:14px 0;box-shadow:0 4px 14px rgba(43,26,31,.25);border:3px solid #f2b01e}
.pg-home .pub-cta{background:linear-gradient(150deg,#5c1220,#8f2438);border:3px solid #f2b01e;border-radius:14px;color:#fff;text-align:center;padding:20px 16px;margin:14px 0;box-shadow:0 5px 16px rgba(43,26,31,.3)}
.pg-home .pub-cta h2{font-size:28px;margin:0 0 4px;color:#ffd34d}
.pg-home .pub-cta p{font-size:18px;margin:0 0 14px;color:#fff;background:none!important;border:0!important;padding:0!important}
.pg-home .pub-cta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.pg-home .pub-cta-call{background:#fff;color:#7a1f2b;font-weight:800;font-size:19px;padding:13px 22px;border-radius:10px;text-decoration:none}
.pg-home .pub-cta-wa{background:#1faa53;color:#fff;font-weight:800;font-size:19px;padding:13px 22px;border-radius:10px;text-decoration:none}
.pg-home .pub-cta-alt{color:#ffd34d;font-size:16px;font-weight:700}
.pg-home .pub-badge{float:right;width:86px;height:86px;object-fit:cover;border-radius:50%;border:3px solid #ffd34d;margin:0 0 8px 12px}

/* Public home: slim contact band (local preview) */
.pg-home .pub-contactband{background:#fff;border:2px solid #7a1f2b;border-left:6px solid #f2b01e;border-radius:10px;padding:12px 16px;margin:12px 0}
.pg-home .pub-contactband p{font-size:17px;color:#4a2430;margin:0;background:none!important;border:0!important;padding:0!important}
.pg-home .pub-contactband a{color:#7a1f2b;font-weight:800;white-space:nowrap}

/* Header login icon (replaces Staff login text link) */
.app-head .login-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#7a1f2b;border:2px solid #f2b01e;text-decoration:none;flex:none}
.app-head .login-icon svg{width:26px;height:26px;fill:#fff}
.app-head .login-icon:hover{background:#95334f}
.app-head .login-icon:focus-visible{outline:3px solid #ffe183;outline-offset:2px}

/* Header login icon: role dropdown (preview) */
.app-head .role-login{position:relative;display:inline-block}
.app-head .role-menu{position:absolute;right:0;top:52px;background:#fff;border:1px solid #d9cfc0;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.18);min-width:210px;z-index:120;padding:8px}
.app-head .role-menu-title{margin:4px 8px 8px;font-size:13px;font-weight:700;color:#7a1f2b;text-transform:uppercase;letter-spacing:.04em}
.app-head .role-menu button{display:block;width:100%;text-align:left;padding:11px 12px;border:0;background:#fff;border-radius:7px;font-size:17px;color:#2b1a1f;cursor:pointer}
.app-head .role-menu button:hover{background:#f6ecec}

/* Om's sketch rearrangement, 7 Nov: hero top (crest + pencils), strip as real element, band in page, bottom bar, bold footer school name */
.pg-home .wh-home::before{content:none!important}
/* Colour flow rows 1-2 (one family, no gaps) -> thin gold line -> maroon band. Cream variant via .variant-cream */
.wh-strip{height:90px;background:#e6f4fc url("clear-school-objects.svg") center/contain no-repeat;margin:0}
.hero-top{display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(180deg,#a8dbf5,#d4edfb);padding:16px 8px 18px;margin:0}
.pg-home .wh-brand{border-top:3px solid #f2b01e;border-radius:0 0 14px 14px;margin-top:0}
.pg-home.variant-cream .hero-top{background:linear-gradient(180deg,#f3e2ba,#fbf2dc)}
.pg-home.variant-cream .wh-strip{background-color:#fdf8ea}
.hero-crest{height:150px;width:auto;filter:drop-shadow(0 3px 6px rgba(0,0,0,.18))}
.hero-pencils{display:flex;gap:6px;align-items:flex-end}
.hero-pencil{display:block}
header.app-head.home-band{border-radius:12px;margin-bottom:14px}
body{padding-bottom:72px}
.bottom-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;background:#fffdf8;border-top:2px solid #7b1e2b;box-shadow:0 -2px 10px rgba(123,30,43,.18)}
.bottom-bar a{flex:1 1 0;text-align:center;padding:9px 3px;font-size:12px;font-weight:700;line-height:1.25;color:#7b1e2b;text-decoration:none}
.bottom-bar a[aria-current=page]{background:#7b1e2b;color:#fff}
.foot-school{font-weight:800;color:#3d1220;font-size:1.05em}
@media (max-width:480px){.hero-crest{height:120px}.hero-pencils{gap:4px}}

/* Sketch refinement: login symbol inside maroon brand card, near the stars (self-contained; header styles are .app-head-scoped) */
.home-login{position:relative;margin-left:8px;flex:none}
.home-login>summary.login-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#fffdf8;border:2px solid #f2b01e;list-style:none;cursor:pointer}
.home-login>summary.login-icon::-webkit-details-marker{display:none}
.home-login>summary.login-icon svg{width:24px;height:24px;fill:#7a1f2b}
.home-login>summary.login-icon:hover{background:#ffe9c2}
.home-login>summary.login-icon:focus-visible{outline:3px solid #ffe183;outline-offset:2px}
.home-login .role-menu{display:none;position:absolute;right:0;top:52px;background:#fff;border:1px solid #d9cfc0;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.18);min-width:200px;z-index:130;padding:8px}
.home-login[open] .role-menu{display:block}
.home-login .role-menu-title{margin:4px 8px 8px;font-size:13px;font-weight:700;color:#7a1f2b;text-transform:uppercase;letter-spacing:.04em}
.home-login .role-menu button{display:block;width:100%;text-align:left;padding:11px 12px;border:0;background:#fff;border-radius:7px;font-size:17px;color:#2b1a1f;cursor:pointer}
.home-login .role-menu button:hover{background:#f6ecec}

/* Visitor counter line in the footer (sketch fix package) */
.visitor-line{display:block;margin-top:3px;font-size:12px;color:#6b5a5e;font-weight:400}
.visitor-line b{color:#3d1220}
.visitor-line small{display:block;font-size:10px;opacity:.75}

/* Role-wise staff bar (replaces the hamburger menu for signed-in staff) */
.bottom-bar.staff-bar{overflow-x:auto;justify-content:flex-start;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.bottom-bar.staff-bar::-webkit-scrollbar{display:none}
.bottom-bar.staff-bar a{flex:0 0 auto;padding:10px 14px;font-size:13px;white-space:nowrap}

/* Om 7 Nov follow-up: close the gap above the pencil hero (move the whole page up) */
.pg-home{padding-top:4px}
.hero-top{padding-top:10px}
/* Gap above pencil hero: the outer shell main also pads the page */
main.file-card:has(> main.pg-home){padding-top:0}
main.file-card:has(> main.pg-home){gap:10px}

/* Transactions card rows: dark text on the white pills (were white-on-white) */
.pg-dashboard .dash-card .dash-row,.pg-dashboard .dash-card .dash-row span,.pg-dashboard .dash-card .dash-row b{color:#641326}

/* Info pages: last-child paragraph inside coloured cards must stay white */
.pg-home .pub-sec p:last-child,.pg-home .pub-band p:last-child{color:#fff!important;background:none!important;border:0!important;padding:0!important}

/* Om 7 Nov evening: desktop/laptop wide layout (phones untouched - rules only apply at 1024px and up) */
@media (min-width:1024px){
  .file-ground{padding:20px clamp(16px,3vw,48px)}
  .file-card{max-width:none;--file-pad-x:clamp(24px,3.5vw,56px);gap:22px}
  .dash-cards{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
  .bottom-bar{justify-content:center}
  .bottom-bar a{flex:0 1 170px;padding:11px 14px;font-size:14px}
  .bottom-bar.staff-bar{justify-content:flex-start}
  .bottom-bar.staff-bar a{flex:0 0 auto}
  .pg-home .pub-sec,.pg-home .pub-band,.pg-home .pub-contactband,.pg-home .pub-cta,.pg-home .pub-nav{max-width:1120px;margin-left:auto;margin-right:auto}
  .pg-home .pub-hero-photo{max-width:1120px;margin-left:auto;margin-right:auto}
  .dashboard-ribbon{max-width:none}
  .admin-dash{max-width:none;padding:12px 4px}
  .pg-accounts{max-width:none}
}
