/* CVWS Village Hub — shared header used by every app page.
   Markup (identical on every page):
   <header class="hub-header"><div class="hub-row">
     <a class="hub-lockup" href="/"><img class="hub-logo" src="/shared/logo.png" alt="">
       <div class="hub-tx"><div class="hub-eyebrow">Creation Village World School</div>
         <h1 class="hub-title">Page title <span class="hub-sub">2026–2027</span></h1>
         <div class="hub-tagline">An IB World School</div></div></a>
     <div class="hub-user"><div class="hub-userline"><span class="hub-email"></span><span class="hub-role"></span><span class="hub-save"></span></div>
       <button class="hub-btn">Staff sign in</button></div>
   </div></header> */
.hub-header{background:linear-gradient(135deg,#16294b 0%,#223f6e 100%);border-bottom:4px solid #5aa9d9;color:#fff;padding:14px 16px 13px;font-family:'Segoe UI',system-ui,-apple-system,sans-serif}
.hub-row{max-width:1400px;margin:0 auto;padding:0 clamp(0px,1.5vw,16px);display:flex;align-items:center;justify-content:space-between;gap:14px}
.hub-lockup{display:flex;align-items:center;gap:14px;min-width:0;color:inherit;text-decoration:none}
.hub-logo{width:52px;height:52px;object-fit:contain;flex-shrink:0}
.hub-tx{min-width:0}
.hub-eyebrow{color:#a9d9e8;font-size:10.5px;letter-spacing:2.5px;font-weight:600;text-transform:uppercase;margin:0 0 3px}
.hub-title{font-family:Georgia,'Times New Roman',serif;font-size:clamp(19px,5.6vw,23px);font-weight:700;letter-spacing:.3px;margin:0;line-height:1.2;color:#fff}
.hub-sub{font-weight:300;color:#cfe3f5}
.hub-tagline{font-style:italic;color:#a9c4dd;font-size:12.5px;margin-top:3px;max-width:900px}
.hub-tagline a{color:inherit}
.hub-tagline:empty{display:none}
.hub-user{text-align:right;flex-shrink:0;font-size:12px;line-height:1.5}
.hub-userline{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-height:18px}
.hub-email{color:#dfeaf5;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-role{display:inline-block;background:#5aa9d9;color:#16294b;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:2px 9px;border-radius:10px}
.hub-role:empty{display:none}
.hub-save{font-size:11px;color:#a9d9e8;min-width:0}
.hub-save.ok{color:#c9f0d4}.hub-save.err{color:#ffd2c9}
.hub-btn{margin-top:6px;border:1px solid rgba(255,255,255,.7);background:transparent;color:#fff;border-radius:6px;padding:4px 11px;font-size:12px;font-family:inherit;cursor:pointer}
.hub-btn:hover{background:rgba(255,255,255,.12)}
/* header "Apps" menu (mounted by platform.js) */
.hub-user{position:relative}
.hub-apps{display:inline-block;position:relative;margin-left:6px;vertical-align:top}
.hub-apps-btn{margin-top:6px}
.hub-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);min-width:230px;background:#fff;color:#1d2b3a;border:1px solid #d7e2ec;border-radius:12px;box-shadow:0 14px 40px rgba(22,41,75,.18);padding:6px;text-align:left;z-index:1000;font-size:13.5px}
.hub-apps.open .hub-menu{display:block}
.hub-menu-grp{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#5c7186;padding:8px 10px 3px}
.hub-menu-grp:empty{border-top:1px solid #eef3f8;margin-top:4px;padding:2px}
.hub-menu a{display:block;padding:7px 10px;border-radius:8px;color:#16294b;text-decoration:none}
.hub-menu a:hover{background:#eef3f8}
.hub-menu a.current{font-weight:700;color:#2e6da8}
.hub-menu{max-height:calc(100vh - 90px);overflow-y:auto}
.hub-menu-find{display:block;width:100%;box-sizing:border-box;margin:2px 0 4px;padding:8px 10px;border:1px solid #d7e2ec;border-radius:8px;font:inherit;font-size:16px;color:#16294b;background:#f7fafc}
.hub-menu [hidden]{display:none}
@media (max-width:700px){
  .hub-menu{position:fixed;left:10px;right:10px;top:auto;min-width:0}
  .hub-header{padding:10px 12px 8px}
  .hub-row{flex-wrap:wrap;gap:6px 10px;padding:0}
  .hub-lockup{gap:10px;flex:1 1 auto}
  .hub-logo{width:38px;height:38px}
  .hub-eyebrow{display:none}
  .hub-title{font-size:19px;line-height:1.15}
  .hub-tagline{display:none}
  /* sign-in block on its own compact row: role pill · status … Sign out · Print · Apps */
  .hub-user{flex:0 0 100%;text-align:left;display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;font-size:11px}
  .hub-userline{justify-content:flex-start;min-height:0;gap:6px;margin-right:auto}
  .hub-email{display:none}
  .hub-btn,.hub-apps-btn{margin-top:0;padding:3px 9px;font-size:11.5px}
  .hub-apps{margin-left:0}
}
@media (min-width:1100px){.hub-title{font-size:26px}}
@media print{.hub-header{background:#fff!important;color:#223f6e;border-bottom:2px solid #223f6e;-webkit-print-color-adjust:exact}
  .hub-title,.hub-eyebrow,.hub-tagline,.hub-sub{color:#223f6e}.hub-user{display:none}}

/* =====================================================================================================================
   SHARED LOOK (2026-09-17) — every app page picks up the new Home's look from here, with no change to the pages themselves.
   Screen only: print layouts (transcripts, calendars, forms) are untouched. ?look=classic on any Hub address turns it off for
   that browser (platform.js adds html.look-classic), ?look=next turns it back on. The navigation bar/rail (.hubx-nav) is
   injected by platform.js, which also adds html.hubx.
   ===================================================================================================================== */
@media screen{
/* Figtree + Fraunces stand in for the fonts the pages name (Segoe UI / Georgia), so every page changes without being edited */
@font-face{font-family:'Figtree';font-style:normal;font-weight:300 900;font-display:swap;src:url(/shared/fonts/figtree-latin.woff2) format('woff2')}
@font-face{font-family:'Figtree';font-style:italic;font-weight:300 900;font-display:swap;src:url(/shared/fonts/figtree-italic-latin.woff2) format('woff2')}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 700;font-display:swap;src:url(/shared/fonts/fraunces-latin.woff2) format('woff2')}
@font-face{font-family:'Segoe UI';font-style:normal;font-weight:300 900;font-display:swap;src:url(/shared/fonts/figtree-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+2215}
@font-face{font-family:'Segoe UI';font-style:italic;font-weight:300 900;font-display:swap;src:url(/shared/fonts/figtree-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+2215}
@font-face{font-family:'Georgia';font-style:normal;font-weight:400 700;font-display:swap;src:url(/shared/fonts/fraunces-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+2215}

/* tokens: the names the pages already use, pointed at the new palette */
html:not(.look-classic){
  --mist:#f2f5f9;--bg:#f2f5f9;--surface:#f2f5f9;--sky-light:#e4eef7;--card:#fff;--border:#e1e8f0;--line:#e1e8f0;
  --ink:#14233d;--ink-900:#14233d;--text:#14233d;--muted:#4d6076;--ink-600:#4d6076;--ink-400:#5d7086;--ink-soft:#4d6076;
  --radius:20px;--shadow:none;--font:'Figtree','Segoe UI',system-ui,-apple-system,sans-serif;--font-body:'Figtree','Segoe UI',system-ui,-apple-system,sans-serif;--font-display:'Fraunces',Georgia,serif}
html:not(.look-classic) body{background:#f2f5f9;color:#14233d;font-family:'Figtree','Segoe UI',system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}

/* header: light, compact, same voice as Home */
html:not(.look-classic) body header.hub-header{display:block;background:#f2f5f9!important;border-bottom:1px solid #e1e8f0!important;color:#14233d!important;padding:16px 16px 12px!important;font-family:'Figtree','Segoe UI',system-ui,sans-serif}
html:not(.look-classic) body .hub-header .hub-row{max-width:none;padding:0 clamp(0px,1.6vw,20px)}
html:not(.look-classic) body .hub-header .hub-logo{width:40px;height:40px;background:#16294b;border-radius:12px;padding:4px;box-sizing:border-box}
html:not(.look-classic) body .hub-header .hub-eyebrow{display:none}
html:not(.look-classic) body .hub-header .hub-title{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:clamp(22px,5vw,28px);letter-spacing:0;line-height:1.1;color:#14233d!important;text-transform:none}
html:not(.look-classic) body .hub-header .hub-sub{color:#4d6076!important;font-weight:500}
html:not(.look-classic) body .hub-header .hub-tagline{font-style:normal;color:#4d6076!important;font-size:13px}
html:not(.look-classic) body .hub-header .hub-tagline a{color:#2a639a}
html:not(.look-classic) body .hub-header .hub-email{color:#4d6076}
html:not(.look-classic) body .hub-header .hub-role{background:#e6ebf3;color:#223f6e;letter-spacing:.06em;border-radius:999px;padding:3px 10px}
html:not(.look-classic) body .hub-header .hub-save{color:#0f766e}
html:not(.look-classic) body .hub-header .hub-save.ok{color:#0f766e}
html:not(.look-classic) body .hub-header .hub-save.err{color:#9f4707}
html:not(.look-classic) body .hub-header .hub-btn{border:1px solid #e1e8f0;background:#fff;color:#14233d;border-radius:12px;padding:7px 13px;font-size:13px;font-weight:600;min-height:38px}
html:not(.look-classic) body .hub-header .hub-btn:hover{background:#e6ebf3}
/* in-page menu button (CREATION Life, Pathways): was white-on-pale for the old navy header */
html:not(.look-classic) body .hub-header .burger{background:#223f6e!important;border:1px solid #223f6e!important;color:#fff!important;border-radius:12px;width:44px;height:44px;box-shadow:0 1px 2px rgba(20,35,61,.18)}
html:not(.look-classic) body .hub-header .burger:hover{background:#16294b!important}
html:not(.look-classic) body .hub-header .crumb,html:not(.look-classic) body .hub-header .crumb a,html:not(.look-classic) body .hub-header .crumb button{color:#4d6076!important}
html.hubx body .hub-header a.hub-btn[href="/"],html.hubx body .hub-header .hub-apps{display:none!important}   /* the Hub navigation replaces "← Village Hub" and the Apps menu */

/* surfaces and controls the pages share */
html:not(.look-classic) body .sec,html:not(.look-classic) body .card,html:not(.look-classic) body .topbar,html:not(.look-classic) body .evlist,
html:not(.look-classic) body .calcard,html:not(.look-classic) body .legend,html:not(.look-classic) body .daycard,html:not(.look-classic) body .itemcard,
html:not(.look-classic) body .team-card,html:not(.look-classic) body .hilite,html:not(.look-classic) body .dc,html:not(.look-classic) body .hr,
html:not(.look-classic) body main aside{border-radius:20px;box-shadow:none;border-color:#e1e8f0}
html:not(.look-classic) body .modal,html:not(.look-classic) body .mcard,html:not(.look-classic) body #gate .box,html:not(.look-classic) body #signin .box{border-radius:22px}
html:not(.look-classic) body .btn,html:not(.look-classic) body .iconbtn,html:not(.look-classic) body .td-btn,html:not(.look-classic) body nav button.tab{border-radius:12px;font-weight:600}
html:not(.look-classic) body input[type=text],html:not(.look-classic) body input[type=email],html:not(.look-classic) body input[type=search],html:not(.look-classic) body input[type=date],
html:not(.look-classic) body input[type=url],html:not(.look-classic) body input[type=number],html:not(.look-classic) body select,html:not(.look-classic) body textarea{border-radius:12px}
html:not(.look-classic) body :focus-visible{outline:3px solid #5aa9d9;outline-offset:2px}

/* Hub navigation: bottom tabs on phones, slim rail on wider screens */
.hubx-nav{display:none}
html.hubx .hubx-nav{display:flex;position:fixed;z-index:45;font-family:'Figtree','Segoe UI',system-ui,sans-serif;box-sizing:border-box}
html.hubx .hubx-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:56px;text-decoration:none;font-size:12px;font-weight:600;line-height:1.2;box-sizing:border-box}
html.hubx .hubx-nav a .p{width:52px;height:30px;border-radius:999px;display:flex;align-items:center;justify-content:center}
html.hubx .hubx-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
html.hubx .hubx-nav .hubx-me{display:none}
@media (max-width:959px){
  html.hubx body{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
  html.hubx .hubx-nav{left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e1e8f0;padding:8px 8px calc(10px + env(safe-area-inset-bottom));gap:2px}
  html.hubx .hubx-nav a{flex:1 1 0;min-width:0;color:#4d6076}
  html.hubx .hubx-nav a[aria-current=page]{color:#223f6e;font-weight:700}
  html.hubx .hubx-nav a[aria-current=page] .p{background:#e6ebf3}
  html.hubx .hubx-nav .hubx-brand{display:none}
  /* keep the pages' own floating bits clear of the tab bar */
  html.hubx body .toast,html.hubx body #toast,html.hubx body .fab,html.hubx body .saving,html.hubx body .ru-toast{bottom:calc(96px + env(safe-area-inset-bottom))!important}
}
@media (min-width:960px){
  html.hubx body{padding-left:88px!important}
  html.hubx .hubx-nav{left:0;top:0;bottom:0;width:88px;background:#16294b;flex-direction:column;align-items:stretch;gap:4px;padding:14px 8px;overflow-y:auto}
  html.hubx .hubx-nav a{color:#d5e0ee;border-radius:14px;min-height:60px;padding:6px 2px}
  html.hubx .hubx-nav a:hover{background:rgba(255,255,255,.07)}
  html.hubx .hubx-nav a[aria-current=page]{background:#2d4b7d;color:#fff;font-weight:700}
  html.hubx .hubx-nav .hubx-brand{min-height:0;padding:4px 0 12px;color:#fff}
  html.hubx .hubx-nav .hubx-brand:hover{background:none}
  html.hubx .hubx-nav .hubx-brand img{width:44px;height:44px;object-fit:contain}   /* the logo art is white: it sits straight on the navy rail */
  html.hubx .hubx-nav .hubx-brand span{display:none}
}
/* wide screens: the same menu as the Home page — 240 px rail, labels beside the icons, who is signed in at the foot */
@media (min-width:1100px){
  html.hubx body{padding-left:240px!important}
  html.hubx .hubx-nav{width:240px;gap:6px;padding:24px 16px}
  html.hubx .hubx-nav a{flex-direction:row;justify-content:flex-start;gap:12px;min-height:48px;padding:0 14px;font-size:15px}
  html.hubx .hubx-nav a .p{width:auto;height:auto;border-radius:0}
  html.hubx .hubx-nav a svg{width:20px;height:20px}
  html.hubx .hubx-nav .hubx-brand{padding:0 14px 8px;min-height:0}
  html.hubx .hubx-nav .hubx-brand img{display:none}
  html.hubx .hubx-nav .hubx-brand span{display:flex;flex-direction:column;gap:2px;text-align:left}
  html.hubx .hubx-nav .hubx-brand small{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#8fd6e8}
  html.hubx .hubx-nav .hubx-brand b{font-family:'Fraunces',Georgia,serif;font-size:22px;font-weight:600;color:#fff;line-height:1.15}
  html.hubx .hubx-nav .hubx-me{display:flex;align-items:center;gap:10px;margin-top:auto;padding:10px 14px;color:#fff;font-size:14px;font-weight:700;line-height:1.25;min-width:0}
  html.hubx .hubx-nav .hubx-me:empty{display:none}
  html.hubx .hubx-nav .hubx-me .a{width:38px;height:38px;border-radius:999px;background:#2d4b7d;display:flex;align-items:center;justify-content:center;flex-shrink:0}
  html.hubx .hubx-nav .hubx-me .n{min-width:0;overflow:hidden;text-overflow:ellipsis}
  html.hubx .hubx-nav .hubx-me small{display:block;font-size:12px;font-weight:500;color:#d5e0ee}
}
}
@media print{.hubx-nav{display:none!important}}

/* suite tab bar (2026-10-18, platform.js mountSuite): pages that are one piece of work, e.g. Admissions & Enrollment */
.hub-suite{background:#fff;border-bottom:1px solid #e1e8f0;font-family:'Figtree','Segoe UI',system-ui,sans-serif}
.hub-suite-in{max-width:1060px;margin:0 auto;padding:8px 16px;display:flex;align-items:center;gap:12px}
.hub-suite-name{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#5c7186;white-space:nowrap}
.hub-suite-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;min-width:0}
.hub-suite-tabs::-webkit-scrollbar{display:none}
.hub-suite-tabs a{flex:0 0 auto;font-size:14px;font-weight:600;color:#4d6076;text-decoration:none;border:1px solid #e1e8f0;border-radius:999px;padding:6px 13px;white-space:nowrap;min-height:34px;box-sizing:border-box;display:inline-flex;align-items:center}
.hub-suite-tabs a:hover{background:#eef3f8}
.hub-suite-tabs a[aria-current=page]{background:#16294b;border-color:#16294b;color:#fff}
@media (max-width:700px){.hub-suite-in{padding:8px 12px;flex-direction:column;align-items:stretch;gap:6px}.hub-suite-name{font-size:10px}}
@media print{.hub-suite{display:none!important}}

/* 2026-09-20 — in-page slide-in menus use the Hub menu's type. CREATION Life's drawer (.drawer / .navbtn) and Pathways' nav put
   -apple-system before 'Segoe UI', so Macs and iPhones showed the system font while the Hub rail is Figtree; their titles were
   Georgia. Same voice as .hubx-nav: Figtree 15px items, Fraunces brand line. Pathways' nav is picked out
   with nav:has(.brand) so no other page's <nav> changes. */
html:not(.look-classic) body .drawer,html:not(.look-classic) body .drawer .navbtn,html:not(.look-classic) body .drawer-head .dh-user,html:not(.look-classic) body .drawer-head .eyebrow,
html:not(.look-classic) body nav:has(.brand),html:not(.look-classic) body nav:has(.brand) a,html:not(.look-classic) body nav:has(.brand) .brand small,html:not(.look-classic) body nav:has(.brand) .navgrp-h,html:not(.look-classic) body nav:has(.brand) .foot{font-family:'Figtree','Segoe UI',system-ui,-apple-system,sans-serif}
html:not(.look-classic) body .drawer .navbtn,html:not(.look-classic) body nav:has(.brand) a{font-size:15px;font-weight:500;letter-spacing:0}
html:not(.look-classic) body .drawer .navbtn.active,html:not(.look-classic) body nav:has(.brand) a.active{font-weight:700}
html:not(.look-classic) body .drawer-head .dh-name,html:not(.look-classic) body nav:has(.brand) .brand{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:20px;line-height:1.15}
html:not(.look-classic) body .drawer-head .eyebrow,html:not(.look-classic) body nav:has(.brand) .brand small{font-family:'Figtree','Segoe UI',system-ui,sans-serif;font-size:10.5px;font-weight:600;letter-spacing:.18em}
