/* VHMS website – layout, components and the 10 school themes (same as the app). */
:root, [data-theme="0"] {
  --primary:#9C1458; --secondary:#F57C00; --tertiary:#2E7D32; --bg:#FFF9F3; --card:#FFFFFF; --text:#221A1C; --muted:#6B5D62;
  --bar:#9C1458; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:16px; --line:rgba(0,0,0,.08);
  --hfont:'Merriweather', Georgia, serif; --bfont:'Nunito', system-ui, sans-serif; --cardborder:1px solid transparent; --shadow:0 2px 10px rgba(0,0,0,.08);
}
[data-theme="1"] { --primary:#F6E27A; --secondary:#F49AC1; --tertiary:#9AD3F5; --bg:#1F3A2C; --card:#29483A; --text:#F1F5EE; --muted:#BFD0C4;
  --bar:#16301F; --onbar:#F6E27A; --onprimary:#1C1B1F; --onsecondary:#1C1B1F; --radius:6px; --line:rgba(255,255,255,.15);
  --hfont:'Caveat', cursive; --bfont:'Patrick Hand', cursive; --cardborder:1.5px dashed rgba(241,245,238,.45); --shadow:none; }
[data-theme="2"] { --primary:#1E4FA8; --secondary:#D93A3A; --tertiary:#2E7D32; --bg:#FFFEF6; --card:#FFFFFF; --text:#1E2A4A; --muted:#5A6788;
  --bar:#1E4FA8; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:4px;
  --hfont:'Kalam', cursive; --bfont:'Nunito', system-ui, sans-serif; --cardborder:1px solid rgba(30,79,168,.35); --shadow:none; }
[data-theme="3"] { --primary:#E53935; --secondary:#1E88E5; --tertiary:#43A047; --bg:#FFF6E0; --card:#FFFFFF; --text:#2B2B2B; --muted:#6A6A6A;
  --bar:#E53935; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:28px;
  --hfont:'Baloo 2', system-ui, sans-serif; --bfont:'Baloo 2', system-ui, sans-serif; --cardborder:3px solid #FFD54F; --shadow:0 6px 0 rgba(0,0,0,.08); }
[data-theme="4"] { --primary:#0B3D91; --secondary:#00ACC1; --tertiary:#7CB342; --bg:#F2F7FB; --card:#FFFFFF; --text:#0D1B2A; --muted:#4D5E70;
  --bar:#0B3D91; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:8px;
  --hfont:'JetBrains Mono', ui-monospace, monospace; --bfont:'IBM Plex Sans', system-ui, sans-serif; --cardborder:1px solid rgba(11,61,145,.3); --shadow:none; }
[data-theme="5"] { --primary:#3949AB; --secondary:#00897B; --tertiary:#F4511E; --bg:#FAFAFA; --card:#FFFFFF; --text:#111111; --muted:#5F6368;
  --bar:#FFFFFF; --onbar:#111111; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:12px;
  --hfont:'Manrope', system-ui, sans-serif; --bfont:'Manrope', system-ui, sans-serif; --cardborder:1px solid #E4E4E7; --shadow:none; }
[data-theme="6"] { --primary:#6D1A1A; --secondary:#B8860B; --tertiary:#1B4D3E; --bg:#FBF7EE; --card:#FFFDF8; --text:#2A1A12; --muted:#6E5B4E;
  --bar:#6D1A1A; --onbar:#F3D98B; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:2px;
  --hfont:'Cormorant Garamond', Georgia, serif; --bfont:'Lora', Georgia, serif; --cardborder:1px solid rgba(184,134,11,.55); --shadow:0 1px 3px rgba(0,0,0,.08); }
[data-theme="7"] { --primary:#2E7D32; --secondary:#F9A825; --tertiary:#6D4C41; --bg:#F1F8EC; --card:#FFFFFF; --text:#1C2B1C; --muted:#56664F;
  --bar:#2E7D32; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#1C1B1F; --radius:20px;
  --hfont:'Quicksand', system-ui, sans-serif; --bfont:'Quicksand', system-ui, sans-serif; --cardborder:1px solid transparent; --shadow:0 3px 12px rgba(46,125,50,.12); }
[data-theme="8"] { --primary:#0277BD; --secondary:#FF8F00; --tertiary:#26A69A; --bg:#EEF7FF; --card:#FFFFFF; --text:#0B2540; --muted:#4F6680;
  --bar:#0277BD; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#1C1B1F; --radius:24px;
  --hfont:'Fredoka', system-ui, sans-serif; --bfont:'Fredoka', system-ui, sans-serif; --cardborder:1px solid transparent; --shadow:0 4px 16px rgba(2,119,189,.12); }
[data-theme="9"] { --primary:#B39DDB; --secondary:#FFD54F; --tertiary:#80CBC4; --bg:#15142A; --card:#222040; --text:#ECE8FF; --muted:#B7B0D8;
  --bar:#0F0E22; --onbar:#FFD54F; --onprimary:#1C1B1F; --onsecondary:#1C1B1F; --radius:14px; --line:rgba(255,255,255,.12);
  --hfont:'Libre Baskerville', Georgia, serif; --bfont:'Source Sans 3', system-ui, sans-serif; --cardborder:1px solid rgba(179,157,219,.3); --shadow:none; }
[data-theme="10"] { --primary:#123B2E; --secondary:#E8913A; --tertiary:#C46A16; --bg:#F6F4EF; --card:#FFFFFF; --text:#17251F; --muted:#56655E;
  --bar:#123B2E; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#1B140B; --radius:18px;
  --hfont:'Fraunces', Georgia, serif; --bfont:'Manrope', system-ui, sans-serif; --cardborder:1px solid #E6E2D8; --shadow:0 4px 18px rgba(18,59,46,.08); }
[data-theme="11"] { --primary:#1D2B53; --secondary:#F2A93B; --tertiary:#2A7F7A; --bg:#F3F1EC; --card:#FFFFFF; --text:#1D2B53; --muted:#57618A;
  --bar:#1D2B53; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#1D2B53; --radius:24px;
  --hfont:'Plus Jakarta Sans', system-ui, sans-serif; --bfont:'Plus Jakarta Sans', system-ui, sans-serif; --cardborder:1px solid transparent; --shadow:none; }
[data-theme="12"] { --primary:#2F6FED; --secondary:#F59E0B; --tertiary:#0F9D58; --bg:#F5F7FA; --card:#FFFFFF; --text:#14223A; --muted:#5D6B82;
  --bar:#0F2A4A; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#1C1B1F; --radius:12px;
  --hfont:'DM Sans', system-ui, sans-serif; --bfont:'DM Sans', system-ui, sans-serif; --cardborder:1px solid #DCE3EE; --shadow:none; }
[data-theme="13"] { --primary:#7A1F2B; --secondary:#C99A2E; --tertiary:#2E6B4F; --bg:#FBF7F0; --card:#FFFFFF; --text:#2A1E1A; --muted:#6B5A52;
  --bar:#7A1F2B; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#2A1E1A; --radius:8px;
  --hfont:'Lora', Georgia, serif; --bfont:'Work Sans', system-ui, sans-serif; --cardborder:1px solid #EDE3D2; --shadow:none; }
[data-theme="14"] { --primary:#E8503F; --secondary:#2F8FE0; --tertiary:#1FA676; --bg:#FFF6E5; --card:#FFFFFF; --text:#2B2340; --muted:#5A5170;
  --bar:#E8503F; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:26px;
  --hfont:'Baloo 2', system-ui, sans-serif; --bfont:'Nunito', system-ui, sans-serif; --cardborder:1px solid transparent; --shadow:0 5px 0 rgba(43,35,64,.08); }
[data-theme="15"] { --primary:#6E1423; --secondary:#C9A227; --tertiary:#2E5E4E; --bg:#FBF5E6; --card:#FFFDF6; --text:#3A1A1F; --muted:#6A4A4F;
  --bar:#6E1423; --onbar:#F3DF9E; --onprimary:#FBF5E6; --onsecondary:#3A1A1F; --radius:3px;
  --hfont:'Cormorant Garamond', Georgia, serif; --bfont:'Mukta', system-ui, sans-serif; --cardborder:1px solid #D9C48A; --shadow:none; }
[data-theme="16"] { --primary:#9A1450; --secondary:#1E2A24; --tertiary:#C46A16; --bg:#F2EEE6; --card:#FFFFFF; --text:#1E2A24; --muted:#4A564F;
  --bar:#1E2A24; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:8px;
  --hfont:'Libre Caslon Text', Georgia, serif; --bfont:'Karla', system-ui, sans-serif; --cardborder:1px solid transparent; --shadow:0 2px 10px rgba(0,0,0,.06); }

[data-theme="17"] { --primary:#0F2C59; --secondary:#C8102E; --tertiary:#F2A900; --bg:#F7F8FB; --card:#FFFFFF; --text:#14213D; --muted:#4B5568;
  --bar:#0F2C59; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:10px;
  --hfont:'Playfair Display', Georgia, serif; --bfont:'Inter', system-ui, sans-serif; --cardborder:1px solid #E3E7EF; --shadow:0 6px 24px rgba(15,44,89,.08); }
[data-theme="18"] { --primary:#B5532A; --secondary:#11110F; --tertiary:#6B7F3A; --bg:#F6F1E7; --card:#FFFDF8; --text:#1A1916; --muted:#55524A;
  --bar:#11110F; --onbar:#F6F1E7; --onprimary:#FFFFFF; --onsecondary:#F6F1E7; --radius:2px;
  --hfont:'Cormorant Garamond', Georgia, serif; --bfont:'Inter', system-ui, sans-serif; --cardborder:1px solid #E4DCCB; --shadow:none; }

[data-theme="19"] { --primary:#0F172A; --secondary:#C9A15B; --tertiary:#2F5D50; --bg:#FAFAF9; --card:#FFFFFF; --text:#0F172A; --muted:#475569;
  --bar:#0F172A; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#0F172A; --radius:16px; --line:#E2E8F0;
  --hfont:'Fraunces', Georgia, serif; --bfont:'Plus Jakarta Sans', system-ui, sans-serif; --cardborder:1px solid #E2E8F0; --shadow:0 1px 2px rgba(15,23,42,.04);
  --accent-ink:#8A6A35; --navy-2:#1E293B; }

[data-theme="20"] { --primary:#C2410C; --secondary:#F97316; --tertiary:#0E7C86; --bg:#F6F6FB; --card:#FFFFFF; --text:#1E2235; --muted:#5B6178;
  --bar:#1E2235; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#1E2235; --radius:18px; --line:#E6E7F0;
  --hfont:'Poppins', system-ui, sans-serif; --bfont:'Poppins', system-ui, sans-serif; --cardborder:1px solid #E6E7F0; --shadow:0 6px 18px rgba(30,34,53,.07); }
[data-theme="21"] { --primary:#2E6BA6; --secondary:#E0643C; --tertiary:#1E6B3A; --bg:#EEF3F9; --card:#FFFFFF; --text:#14263D; --muted:#52627A;
  --bar:#1F4F80; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:16px; --line:#DCE5F0;
  --hfont:'Nunito Sans', system-ui, sans-serif; --bfont:'Nunito Sans', system-ui, sans-serif; --cardborder:1px solid #DCE5F0; --shadow:0 2px 10px rgba(20,38,61,.06); }
[data-theme="22"] { --primary:#5B2E91; --secondary:#D06A28; --tertiary:#11654A; --bg:#F4F1FA; --card:#FFFFFF; --text:#24163F; --muted:#5E5373;
  --bar:#3B1F6B; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:18px; --line:#E6E0F2;
  --hfont:'Outfit', system-ui, sans-serif; --bfont:'Outfit', system-ui, sans-serif; --cardborder:1px solid #E6E0F2; --shadow:0 6px 18px rgba(59,31,107,.08); }
[data-theme="23"] { --primary:#5B4FCF; --secondary:#2A9D7A; --tertiary:#8A3F12; --bg:#E9EDF2; --card:#F4F6F9; --text:#2B3445; --muted:#5D6676;
  --bar:#DDE3EA; --onbar:#2B3445; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:20px; --line:#D7DDE6;
  --hfont:'Nunito', system-ui, sans-serif; --bfont:'Nunito', system-ui, sans-serif; --cardborder:1px solid #D7DDE6; --shadow:6px 6px 14px #C9D0DA, -6px -6px 14px #FFFFFF; }
[data-theme="24"] { --primary:#12305F; --secondary:#0D7F84; --tertiary:#B97A00; --bg:#F3F6FA; --card:#FFFFFF; --text:#13233D; --muted:#56637A;
  --bar:#12305F; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:16px; --line:#E0E6EF;
  --hfont:'Inter', system-ui, sans-serif; --bfont:'Inter', system-ui, sans-serif; --cardborder:1px solid #E0E6EF; --shadow:0 4px 14px rgba(18,48,95,.07); }
[data-theme="25"] { --primary:#157A45; --secondary:#2F6FD6; --tertiary:#7A4E00; --bg:#F1FAF5; --card:#FFFFFF; --text:#123A2A; --muted:#4D6A5C;
  --bar:#0E4D33; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:18px; --line:#D7EDE1;
  --hfont:'Plus Jakarta Sans', system-ui, sans-serif; --bfont:'Plus Jakarta Sans', system-ui, sans-serif; --cardborder:1px solid #D7EDE1; --shadow:0 4px 14px rgba(14,77,51,.07); }
[data-theme="26"] { --primary:#6C3CE9; --secondary:#F0457E; --tertiary:#1677C9; --bg:#FFF6FA; --card:#FFFFFF; --text:#2A1840; --muted:#655873;
  --bar:#5B2FD0; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:20px; --line:#F1E3EC;
  --hfont:'Baloo 2', system-ui, sans-serif; --bfont:'Baloo 2', system-ui, sans-serif; --cardborder:1px solid #F1E3EC; --shadow:0 8px 20px rgba(108,60,233,.10); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background-color: var(--bg); color: var(--text); font-family: var(--bfont); font-size: 16px; line-height: 1.5; min-height: 100vh; }
h1, h2, h3, .h { font-family: var(--hfont); margin: 0; line-height: 1.2; }
a { color: var(--primary); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Content width: the empty side margins are half of what a fixed 1100px column leaves (wider on big screens). */
.wrap { max-width: max(1100px, calc(50vw + 550px)); margin: 0 auto; padding: 0 24px; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.hidden { display: none !important; }


/* (header, navigation and footer: see the v8 section at the end) */
main { padding-bottom: 40px; }
.page-title { padding: 20px 0 8px; font-size: 26px; color: var(--primary); }
.sec-title { font-family: var(--hfont); color: var(--primary); font-size: 21px; margin: 24px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-title .grow + a { font-family: var(--bfont); font-size: 14px; font-weight: 700; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); border: var(--cardborder); box-shadow: var(--shadow); padding: 16px; }
.cards { display: grid; gap: 12px; }
@media (min-width: 760px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--secondary) 22%, var(--card)); color: var(--text); }
.pill.hi { background: var(--secondary); color: var(--onsecondary); }
.pill.warn { background: #FFF3D6; color: #9A5B00; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border-radius: 999px; padding: 10px 18px; border: 0; font-weight: 700; text-decoration: none; min-height: 44px; }
.btn.primary { background: var(--primary); color: var(--onprimary); }
.btn.outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn.text { background: transparent; color: var(--primary); padding: 10px 8px; }
.btn.danger { background: transparent; color: #9A5B00; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.chip { white-space: nowrap; cursor: pointer; border-radius: 999px; padding: 7px 14px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; }
.chip.on { background: var(--primary); color: var(--onprimary); border-color: var(--primary); }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 12px; }
.tabs button { flex-shrink: 0; background: none; border: 0; padding: 12px 16px; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }

/* Forms */
label.field { display: block; font-weight: 600; font-size: 14px; }
label.field > input, label.field > textarea, label.field > select { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: calc(var(--radius) / 2 + 4px); border: 1.5px solid var(--line); background: var(--card); }
label.field > input:focus, label.field > textarea:focus, label.field > select:focus { outline: none; border-color: var(--primary); }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.switch input { width: 20px; height: 20px; accent-color: var(--primary); }
.err { color: #9A5B00; font-weight: 600; }
.ok { color: var(--tertiary); font-weight: 600; }

/* Home */
.hero { position: relative; height: 340px; overflow: hidden; border-radius: 0 0 calc(var(--radius) * 1.5) calc(var(--radius) * 1.5); background: #222; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.hero img.on { opacity: 1; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.78)); }
.hero .caption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; display: flex; align-items: center; gap: 14px; }
.hero .caption .wrap { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; width: 100%; }
.hero .logo { width: 76px; height: 76px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; flex: none; }
.hero h1 { font-size: clamp(20px, 3.4vw, 32px); }
.hero .tag { color: #FFD54F; font-weight: 700; }
.welcome { display: flex; gap: 12px; align-items: center; background: color-mix(in srgb, var(--primary) 16%, var(--card)); border-radius: var(--radius); padding: 14px 16px; margin-top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(9, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); padding: 14px 6px; border-radius: var(--radius); font-weight: 700; font-size: 13px; text-align: center; border: var(--cardborder); }
.tile span { font-size: 28px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.strip a { flex: none; width: 170px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600; }
.strip img { width: 170px; height: 120px; object-fit: cover; border-radius: calc(var(--radius) * .8); }
.headimg { position: relative; height: 200px; border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.headimg img { width: 100%; height: 100%; object-fit: cover; }
.headimg div { position: absolute; inset: auto 0 0 0; padding: 12px 16px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* Gallery */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.ph { position: relative; cursor: pointer; }
.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * .8); }
.ph .cap { font-size: 13px; font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .del { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 60; display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 85vh; width: auto; }
.lightbox div { color: #fff; margin-top: 10px; text-align: center; font-weight: 600; }

/* Timetable */
.period { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.period:last-child { border-bottom: 0; }
.period .n { width: 28px; font-weight: 800; color: var(--secondary); }
.period .s { flex: 1; font-weight: 700; }
.period.brk { background: color-mix(in srgb, var(--tertiary) 20%, var(--card)); border-radius: calc(var(--radius) * .6); border-bottom: 0; margin: 4px 0; padding: 8px 10px; }
.period.brk .s { font-weight: 600; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; }
.modal .box { background: var(--card); color: var(--text); width: min(560px, 100%); max-height: 90vh; overflow: auto; border-radius: var(--radius); padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal h3 { margin-bottom: 12px; color: var(--primary); }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; position: sticky; bottom: -20px; background: var(--card); padding: 10px 0; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #222; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 70; max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.pushbar { position: fixed; top: 70px; right: 16px; left: 16px; max-width: 420px; margin-left: auto; z-index: 65; background: var(--secondary); color: var(--onsecondary); padding: 14px 16px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; }
.periodrow { border-radius: calc(var(--radius) * .6); padding: 10px; background: color-mix(in srgb, var(--secondary) 10%, var(--card)); border: 1px solid var(--line); }
.periodrow.brk { background: color-mix(in srgb, var(--tertiary) 18%, var(--card)); }
.adminrow { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.adminrow.hi { background: color-mix(in srgb, var(--secondary) 18%, var(--card)); }
.adminrow::after { content: '›'; font-size: 26px; color: var(--muted); }
.theme-prev { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); cursor: pointer; background-color: var(--bg); color: var(--text); font-family: var(--bfont); }
.theme-prev.on { border: 3px solid var(--secondary); }
.theme-prev .bar { background: var(--bar); color: var(--onbar); padding: 10px 14px; font-family: var(--hfont); font-weight: 700; }
.theme-prev .body { padding: 14px; display: flex; gap: 12px; align-items: center; }
.theme-prev .mini { width: 70px; height: 70px; flex: none; background: var(--card); border: var(--cardborder); border-radius: var(--radius); display: grid; place-items: center; font-size: 28px; box-shadow: var(--shadow); }
.theme-prev h4 { font-family: var(--hfont); color: var(--primary); margin: 0 0 4px; font-size: 20px; }
.dots3 { display: flex; gap: 6px; margin-top: 6px; }
.dots3 i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.demo-banner { background: #FFF3CD; color: #5C4400; font-size: 14px; text-align: center; padding: 6px 12px; }

/* ===== Artboard layout: header, landing page, footer ===== */
.btn.accent { background: var(--secondary); color: var(--onsecondary); }
.btn.ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn.dark { background: #1E2A24; color: #fff; }
.btn.darkline { background: transparent; color: #1E2A24; border: 2px solid #1E2A24; }

.eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.eyebrow.light { color: var(--secondary); }
.lp-sec { padding-top: 72px; padding-bottom: 16px; }
.lp-sec h2, .lp-about h2, .lp-contact h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 8px; }
.lp-sec h3 { font-size: 20px; margin: 6px 0; }

.lp-hero { background: var(--primary); color: var(--onprimary); padding: 56px 0 88px; }
.lp-hero-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.lp-hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lp-hero-text h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.05; color: inherit; }
.lp-hero-text p { font-size: 18px; margin: 0; opacity: .9; max-width: 560px; }
.lp-hero .welcome { margin: 0; background: rgba(255,255,255,.14); color: inherit; }
.lp-hero .welcome .muted { color: inherit; opacity: .85; }
.lp-badge { align-self: flex-start; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.15); }
.lp-hero-img { flex: 1 1 380px; min-width: 0; height: 380px; position: relative; border-radius: calc(var(--radius) * 1.5); overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.28); background: #222; }
.lp-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.lp-hero-img img.on { opacity: 1; }

.lp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: -40px; position: relative; }
.lp-quick a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.lp-quick svg { color: var(--primary); flex: none; }

.lp-about { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 80px; }
.lp-about > img { flex: 1 1 360px; min-width: 0; height: 380px; object-fit: cover; border-radius: calc(var(--radius) * 1.5); }
.lp-about > div { flex: 1 1 440px; min-width: 0; }
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.lp-stats b { display: block; font-family: var(--hfont); font-size: 30px; color: var(--primary); }
.lp-stats span { font-size: 14px; color: var(--muted); }

.lp-quote { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; padding: 56px 0; text-align: center; }
.lp-quote .q { font-family: Georgia, serif; font-size: 64px; line-height: .6; color: var(--primary); }
.lp-quote p { font-family: var(--hfont); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; margin: 18px 0 22px; }

.lp-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.lp-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 24px; }
.lp-dark { background: color-mix(in srgb, var(--primary) 50%, #000); color: #F4E9EF; margin-top: 72px; padding-bottom: 72px; }
.lp-dark h2 { color: #fff; }
.lp-dark img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.lp-dark p { opacity: .85; margin: 0; font-size: 15px; }
.lp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.lp-gallery a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; }
.lp-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); margin-bottom: 6px; }
.lp-news { display: flex; gap: 16px; align-items: flex-start; }
.lp-news h3 { font-size: 18px; margin: 0 0 4px; }
.lp-news p { margin: 0; font-size: 15px; }
.datebox { flex: none; width: 66px; text-align: center; background: var(--primary); color: var(--onprimary); border-radius: 12px; padding: 8px 0; line-height: 1.1; }
.datebox small { display: block; font-size: 12px; font-weight: 800; }
.datebox b { font-family: var(--hfont); font-size: 26px; }
.lp-cta { background: var(--secondary); color: #1E2A24; border-radius: calc(var(--radius) * 1.75); padding: 48px 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.lp-cta > div:first-child { flex: 1 1 420px; }
.lp-cta h2 { color: #1E2A24; }
.lp-cta p { margin: 0; font-size: 17px; }
.lp-contact { background: var(--card); border-top: 1px solid var(--line); margin-top: 56px; padding: 72px 0; }
.lp-contact-in { display: flex; flex-wrap: wrap; gap: 40px; }
.lp-contact-in > div:first-child { flex: 1 1 340px; min-width: 0; }
.lp-contact-in > .card { flex: 1 1 420px; min-width: 0; background: var(--bg); }
.lp-contact svg { color: var(--primary); flex: none; }
.lp-map { position: relative; display: block; height: 220px; border-radius: var(--radius); overflow: hidden; }
.lp-map img { width: 100%; height: 100%; object-fit: cover; }
.lp-map span { position: absolute; left: 12px; bottom: 12px; background: #fff; color: #222; font-weight: 700; padding: 10px 16px; border-radius: 999px; }
.enq h3 { font-size: 22px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
main { padding-bottom: 0; }
main > .wrap:last-child { padding-bottom: 48px; }
@media (max-width: 760px) { .lp-hero-img { height: 260px; } .lp-about > img { height: 260px; } }

/* ===== social ===== */
.social { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.social .qr { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); text-align: center; width: 150px; }
.social .qr img { width: 140px; height: 140px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.soc { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 7%, var(--card)); min-height: 44px; }
.soc b { display: block; font-size: 15px; } .soc small { display: block; color: var(--muted); font-size: 13px; }
.soc.ig svg { color: #C13584; } .soc.yt svg { color: #E62117; } .soc.fb svg { color: #1877F2; }

/* ===== forms: enquiry / application ===== */
.consent { align-items: flex-start; font-weight: 500; font-size: 14px; }
.consent input { margin-top: 2px; flex: none; }
.docrow select, .docrow input[type=file] { padding: 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); max-width: 100%; }
.thanks { text-align: center; padding: 18px 6px; }
.thanks h3 { margin: 8px 0; color: var(--primary); }

/* ===== calendar ===== */
.cal-head h2 { color: var(--primary); }
.cal-legend { display: flex; gap: 16px; justify-content: center; margin: 4px 0 10px; color: var(--muted); }
.cal-legend i, .cal-cell .dots i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.k-event { background: var(--primary); color: var(--onprimary); } .k-holiday { background: #B26A00; color: #fff; } .k-exam { background: var(--secondary); color: var(--onsecondary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-weight: 800; font-size: 13px; color: var(--muted); padding: 6px 0; }
.cal-cell { min-height: 84px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 6px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; overflow: hidden; color: var(--text); }
.cal-cell.blank { border: 0; background: transparent; cursor: default; }
.cal-cell .d { font-weight: 800; }
.cal-cell.today .d { background: var(--primary); color: var(--onprimary); border-radius: 999px; padding: 0 7px; align-self: flex-start; }
.cal-cell.sel { outline: 3px solid var(--secondary); }
.cal-cell.hol { background: color-mix(in srgb, #B26A00 8%, var(--card)); }
.cal-cell .dots { display: flex; }
.cal-t { font-size: 11px; line-height: 1.25; border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .cal-cell { min-height: 52px; padding: 4px; } .cal-t { display: none; } }

/* ===== bus routes ===== */
.stops { list-style: none; padding: 0; margin: 12px 0; border-left: 3px solid var(--secondary); }
.stops li { display: flex; gap: 12px; padding: 6px 0 6px 14px; position: relative; }
.stops li::before { content: ''; position: absolute; left: -8px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--card); border: 3px solid var(--secondary); }
.stops .tm { min-width: 76px; font-weight: 700; color: var(--primary); }

/* ===== applications corner, activity log ===== */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 20px; margin-top: 6px; }
.app-grid .full { grid-column: 1 / -1; }
.pill.ok { background: var(--tertiary); color: #fff; }
.pill.k-application { background: var(--primary); color: var(--onprimary); } .pill.k-enquiry { background: color-mix(in srgb, var(--primary) 14%, var(--card)); }
.remind { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--secondary) 16%, var(--card)); font-size: 14px; }
.remind.due { background: #FFF3D6; color: #7A4A00; }
.due-card { border: 2px solid #E0A63A; }
.logrow { display: grid; grid-template-columns: 170px 200px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .logrow { grid-template-columns: 1fr; gap: 0; } }

/* ===== layout & theme picker ===== */
.layout-card { display: flex; gap: 14px; align-items: flex-start; }
.layout-card.on { border: 3px solid var(--secondary); }
.lc-thumb { width: 120px; height: 84px; flex: none; border-radius: 10px; background: #EEE; position: relative; overflow: hidden; display: grid; gap: 3px; padding: 4px; }
.lc-thumb i { background: #C9C9C9; border-radius: 4px; display: block; }
.lc-thumb i:nth-child(1) { background: #8A8A8A; }
.lc-classic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; } .lc-classic i:nth-child(3), .lc-classic i:nth-child(4) { grid-row: 2; }
.lc-fullbleed { grid-template-rows: 3fr 1fr; grid-template-columns: repeat(3, 1fr); } .lc-fullbleed i:nth-child(1) { grid-column: 1 / -1; }
.lc-bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); } .lc-bento i:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.lc-portal { grid-template-columns: 1fr 3fr; } .lc-portal i:nth-child(1) { grid-row: span 3; background: #4A5A78; } .lc-portal i:nth-child(4) { display: none; }
.lc-timeline { grid-template-columns: 1fr 1.4fr; } .lc-timeline i:nth-child(2), .lc-timeline i:nth-child(3), .lc-timeline i:nth-child(4) { grid-column: 2; height: 20px; }
.lc-timeline i:nth-child(1) { grid-row: span 3; }
.lc-playful { grid-template-columns: 1fr 1fr; } .lc-playful i { border-radius: 14px; } .lc-playful i:nth-child(2) { background: #FF8A7A; transform: rotate(-6deg); } .lc-playful i:nth-child(3) { background: #7CC3FF; } .lc-playful i:nth-child(4) { background: #FFD45C; transform: rotate(5deg); }
.lc-heritage { grid-template-columns: 1fr 1.3fr 1fr; grid-template-rows: 1fr 2fr; } .lc-heritage i:nth-child(1) { grid-column: 1 / -1; background: #8C3A45; } .lc-heritage i:nth-child(3) { background: #C9A227; }
.lc-split { grid-template-columns: 1fr 1fr; } .lc-split i:nth-child(1) { grid-row: span 3; } .lc-split i:nth-child(4) { display: none; }

/* ===== Layout tops ===== */
.slides { position: relative; width: 100%; height: 100%; background: #222; overflow: hidden; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.slides img.on { opacity: 1; }
.lp-hero-img .slides { border-radius: inherit; }

/* 1 Full-bleed */
.fb-hero { position: relative; min-height: 600px; color: #fff; display: flex; align-items: flex-end; }
.fb-hero > .slides { position: absolute; inset: 0; }
.fb-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,25,18,.55) 0%, rgba(8,25,18,.15) 40%, rgba(8,25,18,.85) 100%); }
.fb-in { position: relative; width: 100%; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.fb-text { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.fb-kicker { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #F5C68F; }
.fb-hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
.fb-hero p { font-size: 19px; margin: 0; color: #E7EFEA; }
.fb-hero .welcome { background: rgba(255,255,255,.14); color: #fff; margin: 0; align-self: flex-start; } .fb-hero .welcome .muted { color: #E7EFEA; }
.fb-facts { background: var(--card); border-bottom: 1px solid var(--line); }
.fb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fb-grid > * { padding: 24px 20px; border-right: 1px solid var(--line); text-decoration: none; color: var(--text); }
.fb-grid > *:last-child { border-right: 0; }
.fb-grid b { display: block; font-family: var(--hfont); font-size: clamp(26px, 3vw, 40px); color: var(--primary); }
.fb-grid span { color: var(--muted); }
.fb-latest { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding-top: 22px; padding-bottom: 8px; }
.fb-latest > b { font-size: 22px; color: var(--primary); }
.fb-latest span b { color: var(--tertiary); margin-right: 4px; }
@media (max-width: 760px) { .fb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fb-grid > *:nth-child(2) { border-right: 0; } .fb-hero { min-height: 520px; } }

/* 3 Bento */
.bento-wrap { padding-top: 20px; } .bento-wrap .welcome { margin: 0 0 14px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 16px; }
.bento > * { border-radius: 26px; overflow: hidden; position: relative; text-decoration: none; }
.b-big { grid-column: span 2; grid-row: span 2; }
.b-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; color: #fff; background: linear-gradient(transparent, rgba(10,16,40,.85)); }
.b-cap h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.b-tile { background: var(--card); color: var(--text); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.b-tile small { font-weight: 800; letter-spacing: .1em; font-size: 12px; opacity: .75; }
.b-tile b { font-size: 21px; line-height: 1.2; } .b-tile b.big { font-size: 60px; line-height: 1; }
.b-sec { background: var(--secondary); color: var(--onsecondary); } .b-pri { background: var(--primary); color: var(--onprimary); } .b-ter { background: var(--tertiary); color: #fff; }
.b-photo img { width: 100%; height: 100%; object-fit: cover; }
.b-lbl { position: absolute; left: 12px; bottom: 12px; background: #fff; color: #222; font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; } }

/* 4 Portal */
.portal { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; }
.p-side { flex: 1 1 220px; max-width: 260px; background: var(--bar); color: var(--onbar); border-radius: var(--radius); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; align-self: flex-start; }
.p-side a { color: inherit; text-decoration: none; padding: 11px 14px; border-radius: 10px; opacity: .85; font-weight: 600; }
.p-side a.on, .p-side a:hover { background: var(--primary); color: var(--onprimary); opacity: 1; }
.p-office { margin-top: 14px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 14px; } .p-office b { display: block; font-size: 17px; }
.p-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.p-hello { font-size: clamp(26px, 3vw, 34px); }
.p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.p-stats a { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.p-stats b { font-size: 34px; font-family: var(--hfont); } .p-stats b.sm { font-size: 18px; }
.p-stats .p-accent { background: var(--primary); color: var(--onprimary); } .p-stats .p-accent span { opacity: .85; }
.p-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.p-cols h3 { margin-bottom: 8px; }
.p-hw { padding: 10px 12px; border-radius: 10px; background: var(--bg); margin-top: 8px; }
.p-photo { position: relative; display: block; border-radius: var(--radius); overflow: hidden; height: 180px; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-photo span { position: absolute; left: 12px; bottom: 12px; background: #fff; color: #222; padding: 6px 12px; border-radius: 8px; font-weight: 700; }
@media (max-width: 900px) { .p-cols { grid-template-columns: 1fr; } .p-side { max-width: none; flex-direction: row; flex-wrap: wrap; } .p-office { display: none; } }

/* 5 Timeline */
.tl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding-top: 36px; }
.tl-left { display: flex; flex-direction: column; gap: 14px; }
.tl-left h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; color: var(--primary); }
.tl-photo { height: 280px; border-radius: var(--radius); margin-top: 10px; }
.tl-line { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; }
.tl-line::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 3px; background: color-mix(in srgb, var(--secondary) 40%, var(--bg)); }
.tl-line li { position: relative; margin-bottom: 18px; }
.tl-line li > i { position: absolute; left: -34px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--secondary) 40%, var(--bg)); border: 4px solid var(--bg); }
.tl-line li.done > i { background: var(--secondary); } .tl-line li.next > i { background: var(--primary); }
.tl-card { display: flex; gap: 16px; background: var(--card); border: var(--cardborder); border-radius: var(--radius); padding: 12px; align-items: center; }
.tl-card img { width: 140px; height: 96px; object-fit: cover; border-radius: calc(var(--radius) * .7); flex: none; }
.tl-card small { display: block; color: var(--secondary); font-weight: 800; letter-spacing: .04em; }
.tl-card b { display: block; font-family: var(--hfont); font-size: 21px; } .tl-card span { color: var(--muted); }
.tl-line li.next .tl-card { background: var(--primary); color: var(--onprimary); border-color: var(--primary); } .tl-line li.next .tl-card small { color: #F1CF84; } .tl-line li.next .tl-card span { color: inherit; opacity: .85; }
@media (max-width: 900px) { .tl { grid-template-columns: 1fr; } .tl-card img { width: 96px; height: 72px; } }

/* 6 Playful */
.pl { position: relative; overflow: hidden; padding: 34px 0 10px; }
.pl .blob { position: absolute; border-radius: 50%; z-index: 0; }
.pl .b1 { width: 380px; height: 380px; background: #FFC93C; right: -90px; top: -120px; }
.pl .b2 { width: 220px; height: 220px; background: #7CC3FF; left: -80px; bottom: 60px; opacity: .8; }
.pl .b3 { width: 120px; height: 120px; border-radius: 34px; background: #6FDDB0; left: 46%; top: 60%; transform: rotate(18deg); }
.pl-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.pl-text { display: flex; flex-direction: column; gap: 14px; }
.pl-badge { align-self: flex-start; background: var(--tertiary); color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 999px; transform: rotate(-3deg); }
.pl h1 { font-size: clamp(44px, 6vw, 78px); line-height: .95; } .pl h1 span { color: var(--primary); }
.pl-text p { font-size: 19px; font-weight: 700; color: var(--muted); margin: 0; }
.pl-b1 { background: var(--secondary); color: #fff; border-radius: 20px; box-shadow: 0 6px 0 color-mix(in srgb, var(--secondary) 70%, #000); }
.pl-b2 { background: #fff; color: var(--text); border-radius: 20px; box-shadow: 0 6px 0 #E3D7BF; }
.pl-photos { position: relative; height: 430px; }
.pl-photos img { position: absolute; object-fit: cover; border-radius: 40px; border: 8px solid #fff; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.pl-photos .p1 { left: 4%; top: 0; width: 56%; height: 62%; transform: rotate(-4deg); }
.pl-photos .p2 { right: 0; top: 26%; width: 48%; height: 52%; transform: rotate(5deg); }
.pl-photos .p3 { left: 18%; bottom: 0; width: 42%; height: 40%; transform: rotate(2deg); }
.pl-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.pl-tiles a { border-radius: 26px; padding: 22px; font-family: var(--hfont); font-weight: 800; font-size: 24px; text-decoration: none; color: #fff; }
.pl-tiles .t1 { background: #E8503F; box-shadow: 0 6px 0 #B53A2C; } .pl-tiles .t2 { background: #2F8FE0; box-shadow: 0 6px 0 #1F6AAD; }
.pl-tiles .t3 { background: #FFC93C; color: #2B2340; box-shadow: 0 6px 0 #D9A51E; } .pl-tiles .t4 { background: #1FA676; box-shadow: 0 6px 0 #167A57; }
@media (max-width: 860px) { .pl-in { grid-template-columns: 1fr; } .pl-photos { height: 320px; } .pl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 7 Heritage */
.hr { text-align: center; padding: 26px 0 10px; border-top: 4px solid var(--secondary); }
.hr .welcome { text-align: left; max-width: 520px; margin: 0 auto 10px; }
.hr-orn { color: var(--secondary); }
.hr-crest { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 10px auto; border: 2px solid var(--secondary); }
.hr h1 { font-size: clamp(36px, 5vw, 64px); color: var(--primary); }
.hr-motto { font-family: var(--hfont); font-size: 26px; font-style: italic; color: color-mix(in srgb, var(--secondary) 70%, #000); margin-top: 6px; }
.hr-trio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; }
.hr-frame { border: 1px solid #D9C48A; padding: 8px; } .hr-frame img { width: 100%; height: 300px; object-fit: cover; }
.hr-quote { background: var(--primary); color: var(--onprimary); padding: 30px; display: flex; flex-direction: column; justify-content: center; outline: 1px solid var(--secondary); outline-offset: -10px; }
.hr-quote p { font-family: var(--hfont); font-size: clamp(22px, 2.4vw, 30px); font-style: italic; line-height: 1.3; margin: 0; }
.hr-quote small { color: #E9C866; letter-spacing: .14em; margin-top: 12px; }
.hr-btn { margin: 22px auto 0; background: var(--secondary); color: #3A1A1F; border-radius: 2px; }
.hr-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; text-align: left; }
.hr-pillars > div { border-top: 2px solid var(--secondary); padding-top: 10px; } .hr-pillars h3 { font-size: 24px; color: var(--primary); } .hr-pillars p { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 860px) { .hr-trio, .hr-pillars { grid-template-columns: 1fr; } .hr-frame img { height: 220px; } }

/* 9 Split screen */
.sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
.sp-photo { position: relative; min-height: 360px; }
.sp-photo .slides { position: absolute; inset: 0; }
.sp-logo { position: absolute; left: 24px; top: 24px; display: flex; gap: 10px; align-items: center; background: #fff; color: #222; padding: 6px 16px 6px 6px; border-radius: 999px; }
.sp-logo img { width: 40px; height: 40px; border-radius: 50%; }
.sp-text { padding: 48px max(24px, calc((100vw - (50vw + 550px)) / 2 + 24px)) 40px 48px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.sp-text h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; font-weight: 400; }
.sp-text .eyebrow { color: var(--primary); }
.sp-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.sp-mini img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); }
.sp-next { background: var(--secondary); color: var(--onsecondary); border-radius: var(--radius); padding: 14px; text-decoration: none; display: flex; flex-direction: column; justify-content: center; }
.sp-next small { opacity: .75; } .sp-next b { font-family: var(--hfont); font-size: 18px; }
@media (max-width: 860px) { .sp { grid-template-columns: 1fr; } .sp-text { padding: 28px 16px; } }

/* Layout-specific touches on the common sections */
body[data-layout="heritage"] .lp-sec h2, body[data-layout="heritage"] .lp-about h2 { color: var(--primary); }
body[data-layout="playful"] .card { box-shadow: 0 5px 0 rgba(43,35,64,.08); }
body[data-layout="fullbleed"] .lp-about { padding-top: 56px; }

/* ===== v4 ===== */
/* Delete / reject buttons look like real buttons (red outline) everywhere */
.btn.danger { background: transparent; color: #9A5B00; border: 1.5px solid #9A5B00; }
.btn.danger:hover { background: #FFF3D6; }
/* Gallery: show-on-home-page toggle */
.ph .homet { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.45); border: 0; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; filter: grayscale(1); opacity: .8; }
.ph .homet.on { background: var(--secondary); filter: none; opacity: 1; }
/* Attendance */
.att-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.att-opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; min-height: 44px; }
.att-opt input { width: 20px; height: 20px; }
.att-opt.P:has(input:checked) { background: #E6F4EA; border-color: #2E7D32; color: #1B5E20; }
.att-opt.A:has(input:checked) { background: #FFF3D6; border-color: #9A5B00; color: #7A4A00; }
.att-opt.L:has(input:checked) { background: #FFF4DE; border-color: #B26A00; color: #7A4A00; }
.att-big { font-size: 20px; font-weight: 800; padding: 10px 14px; border-radius: 12px; margin: 8px 0; }
.att-big.P { background: #E6F4EA; color: #1B5E20; } .att-big.A { background: #FFF3D6; color: #7A4A00; }
.att-sum { margin-bottom: 10px; }
/* Registers and tables */
.tablebox { overflow-x: auto; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2 + 4px); background: var(--card); }
table.reg { border-collapse: collapse; width: 100%; font-size: 14px; }
table.reg th, table.reg td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.reg thead th { background: color-mix(in srgb, var(--primary) 10%, var(--card)); position: sticky; top: 0; white-space: nowrap; }
table.reg tbody th { white-space: nowrap; }
table.reg td.m-P { color: #1B5E20; font-weight: 800; text-align: center; } table.reg td.m-A { color: #9A5B00; font-weight: 800; text-align: center; background: #FFF3D6; }
table.reg td.m-L { color: #7A4A00; font-weight: 800; text-align: center; background: #FFF4DE; }
table.reg select { padding: 8px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); max-width: 260px; }
.xdel { border: 0; background: none; color: #9A5B00; cursor: pointer; font-size: 12px; padding: 2px 6px; }
.slot { display: inline-block; margin: 2px 8px 2px 0; padding: 3px 8px; border-radius: 8px; background: color-mix(in srgb, var(--secondary) 14%, var(--card)); }
/* Timetable editor */
.sch-day { padding: 10px 0; border-bottom: 1px solid var(--line); } .sch-day h3 { font-size: 17px; margin-bottom: 6px; }
.sch-row input, .sch-row select { padding: 8px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); }
.sch-row input[data-sub] { flex: 1; min-width: 120px; }
details > summary { cursor: pointer; }

/* ===================== v5 ===================== */
.alum .alum-i { color: var(--onprimary); font-size: 30px; }

/* Live sync */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; margin-right: 4px; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
.refresh-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 70; border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px;
  background: var(--primary); color: var(--onprimary); font: inherit; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (min-width: 761px) { .refresh-pill { bottom: 24px; } }
.demo-banner.pinwarn { display: block; background: #FFF3D6; color: #7A4A00; font-weight: 700; text-decoration: none; }

/* Calendar header: month pills + year */
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-nav { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font-size: 24px; line-height: 1; cursor: pointer; color: var(--primary); }
.cal-nav:hover { border-color: var(--primary); }
.cal-title { text-align: center; font-family: var(--hfont); } .cal-title b { font-size: 24px; color: var(--primary); } .cal-title span { font-size: 22px; color: var(--muted); }
.cal-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0 8px; }
.cal-m { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 0; font-weight: 700; font-size: 14px; cursor: pointer; min-width: 0; }
.cal-m:hover { border-color: var(--primary); }
.cal-m.on { background: var(--primary); color: var(--onprimary); border-color: var(--primary); }
@media (min-width: 900px) { .cal-months { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.cal-yearrow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.cal-ysel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.cal-ysel select { border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); padding: 6px 14px; font-weight: 700; color: var(--text); }
.cal-today { border-radius: 999px; border: 1.5px solid var(--secondary); background: transparent; color: var(--secondary); padding: 5px 14px; font-weight: 700; cursor: pointer; }

/* Timetable: a soft colour per subject, a slim dashed line for breaks, "Now" highlight */
.daychips .chip.today:not(.on) { border-color: var(--secondary); }
.tt-box { padding: 14px; }
.tt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tt-head b { font-family: var(--hfont); font-size: 18px; color: var(--primary); } .tt-head span { color: var(--muted); font-weight: 600; }
.tt { display: grid; gap: 8px; }
.tt-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.tt-time { text-align: right; padding-top: 9px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tt-time b { display: block; font-size: 15px; } .tt-time small { color: var(--muted); font-size: 12px; }
.tt-card { background: var(--tb); border-left: 5px solid var(--ta); border-radius: 12px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; color: #1F2937; min-width: 0; }
.tt-card small { display: block; color: #4B5563; font-size: 13px; }
.tt-n { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ta); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.tt-s { display: block; font-size: 17px; color: var(--ta); overflow-wrap: anywhere; }
.tt-row.now .tt-card { box-shadow: 0 0 0 2px var(--ta), 0 8px 18px rgba(0,0,0,.12); }
.tt-now { margin-left: auto; background: var(--ta); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; flex: none; }
.tt-brk { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; margin-left: 74px; }
.tt-brk::before, .tt-brk::after { content: ''; flex: 1; border-top: 2px dashed var(--line); }
.tt-brk.now { color: var(--secondary); }
.slot[style] { background: var(--tb); color: #1F2937; border-left: 4px solid var(--ta); }

/* Today card */
.today-sec { margin-top: 28px; }
.today { display: flex; gap: 18px; align-items: flex-start; padding: 18px; border-left: 6px solid var(--secondary); }
.today-date { flex: none; width: 92px; text-align: center; border-radius: 16px; padding: 10px 6px; background: var(--primary); color: var(--onprimary); }
.today-date small, .today-date span { display: block; font-size: 13px; font-weight: 700; } .today-date b { display: block; font-size: 40px; line-height: 1.05; font-family: var(--hfont); }
.today-body { flex: 1; min-width: 0; display: grid; gap: 10px; }
.today-item { display: flex; gap: 10px; align-items: flex-start; }
.today-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.today-item b { font-size: 17px; } .today-item p { margin: 2px 0 0; color: var(--muted); }
.today-item.own b { color: var(--primary); }
.today-q { margin: 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--secondary) 12%, var(--card)); font-size: 17px; font-weight: 600; line-height: 1.5; }
.today-q .small { display: block; font-style: normal; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.today-q cite { display: block; font-style: normal; font-weight: 700; font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) { .today { flex-direction: column; } .today-date { width: 100%; display: flex; align-items: baseline; justify-content: center; gap: 8px; } .today-date b { font-size: 30px; } }

/* Notable alumni */
.alumni { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 14px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x mandatory; }
.alum { scroll-snap-align: start; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; }
.alum img, .alum-i { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--secondary); margin-bottom: 6px; }
.alum-i { display: grid; place-items: center; font-size: 30px; font-weight: 800; background: var(--primary); color: var(--onprimary); }
.alum b { font-size: 16px; } .alum span { font-size: 14px; color: var(--muted); } .alum small { font-size: 12px; color: var(--muted); }

/* Phones: name, photos and About on the opening screen */
.m-intro { display: none; }
@media (max-width: 760px) {
  .m-intro { display: grid; gap: 12px; padding-top: 14px; }
  .m-tag { font-weight: 700; color: var(--secondary); font-size: 14px; letter-spacing: .3px; text-transform: uppercase; }
  .m-name { display: flex; gap: 12px; align-items: center; }
  .m-name img { width: 58px; height: 58px; object-fit: contain; flex: none; }
  .m-name b { display: block; font-family: var(--hfont); font-size: 22px; line-height: 1.15; color: var(--primary); }
  .m-name small { color: var(--muted); font-weight: 600; }
  .m-slides { height: 230px; border-radius: calc(var(--radius) * 1.2); overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
  .m-about p { margin: 4px 0 10px; }
  body[data-layout="classic"] .lp-hero-img, body[data-layout="timeline"] .tl-photo { display: none; }
  body[data-layout="classic"] .lp-hero { padding-top: 24px; }
  .fb-hero { min-height: 420px; }
}

/* Flash notice over the home page */
.flash-ov { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,20,.72); display: grid; place-items: center; padding: 16px; animation: fadein .25s ease; }
.flash-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border-radius: calc(var(--radius) + 4px); box-shadow: 0 20px 60px rgba(0,0,0,.45); padding: 12px; }
.flash-box img { width: 100%; border-radius: var(--radius); }
.flash-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer; }
.flash-txt { padding: 10px 4px 0; } .flash-txt b { font-family: var(--hfont); font-size: 20px; } .flash-txt p { margin: 4px 0 0; }
.flash-go { margin-top: 12px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Applications corner: action buttons wrap neatly; Delete sits at the end */
.app-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.app-acts .btn { flex: 0 0 auto; white-space: nowrap; }
.app-acts .del { margin-left: auto; }
@media (max-width: 480px) { .app-acts .btn { flex: 1 1 calc(50% - 8px); } .app-acts .del { margin-left: 0; flex-basis: 100%; } }
.pill.k-reg { background: color-mix(in srgb, var(--tertiary) 18%, var(--card)); }
.forgot { margin-top: 12px; } .forgot summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.daychips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; overflow: visible; max-width: 560px; }
.daychips .chip { padding: 7px 0; line-height: 1.2; text-align: center; min-width: 0; }
.chips { align-items: center; }

/* ===================== v6 ===================== */
/* Tamil text everywhere (timetable, homework, names typed in Tamil) */
body, input, textarea, select, button { font-family: var(--bfont), 'Noto Sans Tamil', 'Latha', 'Nirmala UI', sans-serif; }
h1, h2, h3, .h { font-family: var(--hfont), 'Noto Sans Tamil', 'Latha', 'Nirmala UI', serif; }
/* Teachers & timetables: teacher tabs in two rows */
.tchips { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: minmax(150px, max-content); gap: 8px; overflow-x: auto; padding: 4px 2px 10px; }
.tchip { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; cursor: pointer; border-radius: 14px; padding: 8px 12px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.tchip b { white-space: nowrap; } .tchip small { grid-column: 2; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tchip.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.tdot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: #B0B7C3; }
.tdot.ok { background: #2E9E5B; } .tdot.warn { background: #B26A00; } .tdot.hi { background: #E8A100; }
.tpend { color: #9A5B00; font-weight: 700; }
.cls-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.cls-chips .chip small { opacity: .75; }
/* Birthday */
.bday { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #FFF3C4, #FFD9E6); color: #3A1A1F; border: 0; }
.bday-cake { font-size: 44px; } .bday b { font-size: 19px; }
.bday-pop { text-align: center; padding: 28px 20px; } .bday-big { font-size: 64px; } .bday-pop h2 { margin: 10px 0; color: var(--primary); }

/* ================================================================== v7 */
/* Life at VHMS – moving photo strip */
.marq { overflow-x: auto; scrollbar-width: none; margin-top: 24px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: var(--radius); }
.marq::-webkit-scrollbar { display: none; }
.marq-track { display: flex; gap: 14px; width: max-content; }
.marq-item { flex: 0 0 auto; width: clamp(200px, 26vw, 280px); text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; user-select: none; }
.marq-item img { width: 100%; height: clamp(150px, 18vw, 200px); object-fit: cover; border-radius: var(--radius); display: block; margin-bottom: 6px; pointer-events: none; }
.marq-item span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Quiz corner */
.quiz { display: grid; gap: 12px; border-left: 5px solid var(--tertiary); }
.quiz-h { display: flex; gap: 12px; align-items: center; } .quiz-h > span { font-size: 30px; }
.quiz-h b { font-family: var(--hfont); font-size: 20px; color: var(--primary); display: block; } .quiz-h small { color: var(--muted); }
.quiz-h em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); align-self: flex-start; }
/* v11.4: winners strip – moves by itself, can be swiped */
.qz { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 2px; } .qz::-webkit-scrollbar { display: none; }
.qc { flex: none; width: 150px; border-radius: 14px; padding: 10px 12px; scroll-snap-align: start; }
.qc u { text-decoration: none; display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #fff; margin-bottom: 4px; }
.qc b { display: block; font-size: 16px; line-height: 1.35; } .qc small { display: block; margin-top: 4px; font-size: 11px; }
.qz-dots { display: flex; gap: 5px; justify-content: center; } .qz-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .2s; } .qz-dots i.on { background: var(--primary); width: 18px; }
.qz-hint { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.quiz-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.quiz-cls { display: grid; gap: 8px; align-content: start; background: color-mix(in srgb, var(--tertiary) 8%, var(--card)); border-radius: var(--radius); padding: 12px; }
.quiz-cls .pill { justify-self: start; }
.quiz-w { display: flex; gap: 10px; align-items: center; }
.quiz-av { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--primary); box-shadow: 0 0 0 3px var(--tertiary); }

/* Students page – school totals and class tabs */
.st-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; text-align: center; margin: 10px 0 14px; }
.st-head b { display: block; font-family: var(--hfont); font-size: 28px; color: var(--primary); line-height: 1.1; }
.st-head span { font-size: 13px; color: var(--muted); }
.st-head .pres b { color: #18794E; }
@media (max-width: 560px) { .st-head { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tchips.cls { grid-template-rows: repeat(2, auto); grid-auto-columns: minmax(140px, max-content); }
.tchips.cls .tchip { grid-template-columns: 1fr; row-gap: 2px; }
.tchips.cls .tchip small { grid-column: 1; }
.tchip small.okc { color: #18794E; font-weight: 700; }

/* Admin panel: things waiting for action go first */
.sec-title.attn { color: #9A5B00; }
/* v11.4: birthday greeting card, banner and decorations (School Blue & Gold – no red) */
.bd-page { position: relative; min-height: calc(100vh - 120px); background: linear-gradient(180deg, #0B3D91 0, #1456B8 300px, var(--bg) 300px); padding: 110px 16px 28px; overflow: hidden; }
.bd-sky { position: absolute; left: 50%; top: 0; width: min(100%, 460px); height: 150px; transform: translateX(-50%); } .bd-sky svg { position: absolute; transform: rotate(var(--r, 0deg)); }
.bd-wrap { position: relative; max-width: 420px; margin: 0 auto; display: grid; gap: 18px; }
.bd-card { background: #fff; color: #12233F; border-radius: 26px; box-shadow: 0 10px 30px rgba(11,61,145,.25); padding: 22px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.bd-hb { font-size: 30px; font-weight: 800; color: #0B3D91; line-height: 1.15; margin-top: 4px; } html[lang="ta"] .bd-hb { font-size: 25px; }
.bd-nm { font-size: 26px; font-weight: 800; color: #9A6500; margin-top: 10px; overflow-wrap: anywhere; }
.bd-cl { display: inline-block; margin-top: 6px; background: #E4EEFB; color: #124A9C; border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; }
.bd-card p { font-size: 16.5px; line-height: 1.55; margin: 14px 0 0; } .bd-sg { font-size: 13.5px; color: #55637A; margin-top: 16px; }
.bd-close { height: 52px; border-radius: 999px; background: #0B3D91; color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700; text-decoration: none; }
.bd-close:focus-visible, .bd-banner:focus-visible { outline: 3px solid #F2C230; outline-offset: 2px; }
.bd-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: bdflame 1.1s ease-in-out infinite alternate; }
@keyframes bdflame { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.12, .92) rotate(5deg); } }
.bd-banner { display: flex; align-items: center; gap: 12px; margin: 14px 0; border-radius: 18px; padding: 12px 14px; background: linear-gradient(135deg, #FFF3CF, #FFE7A3); border: 1px solid #F2C230; color: #5A3D00; text-decoration: none; }
.bd-banner svg { flex: none; } .bd-banner b { display: block; font-size: 17px; } .bd-banner span { font-size: 13.5px; }
#bd-decor { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
#bd-decor .bd-bunting { position: absolute; left: 0; top: var(--bd-top, 0); width: 100%; height: 34px; }
#bd-decor .bd-stars svg, #bd-decor .bd-float svg { position: absolute; }
#bd-decor .bd-up { animation: bdup 6s ease-in forwards; transform: rotate(var(--r, 0deg)); opacity: .92; }
@keyframes bdup { to { transform: translateY(calc(-100vh - 140px)) rotate(var(--r, 0deg)); } }
body.bday-on main { padding-top: 26px; }
@media (prefers-reduced-motion: reduce) { .bd-flame, #bd-decor .bd-up { animation: none; } #bd-decor .bd-float { display: none; } }
/* v11.5 – a date shown in words on a large tile; the calendar that opens from it (ui.js: dateTile, pickDate) */
.date-f { display: block; }
.date-l { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.date-tile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 14px; text-align: left; cursor: pointer; letter-spacing: 0;
  border: 1.5px solid var(--line); border-radius: calc(var(--radius) / 2 + 6px); background: var(--card); color: var(--text); font: inherit; }
.date-tile:hover, .date-tile:focus-visible { border-color: var(--primary); outline: none; }
.dt-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--card)); color: var(--primary); }
.dt-ic svg { width: 22px; height: 22px; }
.dt-t { flex: 1; min-width: 0; } .dt-t b { display: block; font-size: 18px; line-height: 1.25; } .dt-t small { display: block; font-size: 13px; color: var(--muted); }
.dt-ch { flex: none; font-size: 22px; color: var(--muted); }
.days-chip { align-self: flex-start; display: inline-block; padding: 4px 14px; border-radius: 99px; font-size: 14px; font-weight: 700; background: color-mix(in srgb, var(--primary) 12%, var(--card)); color: var(--primary); }
.dp-box { padding: 0 !important; overflow: hidden; width: min(360px, 100%); }
.dp-top { background: var(--primary); color: var(--onprimary); padding: 14px 18px; } .dp-top small { display: block; font-size: 13px; opacity: .88; } .dp-top b { font-size: 20px; }
.dp-nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 2px; font-weight: 700; }
.dp-nav button { min-width: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--primary); font-size: 24px; cursor: pointer; }
.dp-nav button:disabled { opacity: .3; cursor: default; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 4px 12px 6px; text-align: center; }
.dp-grid u { text-decoration: none; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.dp-grid button { min-width: 0; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; letter-spacing: 0; }
.dp-grid button:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.dp-grid button.tod { box-shadow: inset 0 0 0 1.5px #D99A00; font-weight: 700; }
.dp-grid button.on { background: var(--primary); color: var(--onprimary); font-weight: 800; box-shadow: none; }
.dp-grid button:disabled { color: color-mix(in srgb, var(--muted) 45%, transparent); cursor: default; }
.dp-box .acts { padding: 4px 14px 14px; }
/* v11.6 – "Choose your own PIN" blocks every page: no menus to wander into */
body.pin-gate .bottomnav, body.pin-gate .footer, body.pin-gate .topbar nav, body.pin-gate .pinwarn { display: none !important; }
.force-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--primary) 12%, var(--card)); }
/* v11.5 – result of a PIN reset (staff.js: pinResult) */
.pin-res h3 { margin-top: 0; } .pin-res.ok h3 { color: #1E7A46; } .pin-res.fail h3 { color: #9A5B00; }
.pin-res.fail { background: #FFF3D6; border-radius: 12px; padding: 12px 14px; color: #6B4300; }
.pin-big { display: block; width: 100%; margin: 8px 0; padding: 8px; border: 0; background: #E3F4E7; border-radius: 12px; text-align: center; font-size: 36px; font-weight: 800; letter-spacing: .14em; color: #12233F; font-variant-numeric: tabular-nums; }
/* v11.5 – teacher attendance asked by the office (school.js / staff2.js): the notice pulses gently in amber until it is marked */
.ask-flash { display: block; text-decoration: none; background: #FFF3D6; border: 2px solid #B26A00; border-radius: 16px; padding: 12px 14px; margin: 0 0 14px; color: #6B4300; animation: ask-pulse 1.4s ease-in-out infinite; }
.ask-flash b { display: block; font-size: 17px; color: #9A5B00; } .ask-flash span { font-size: 14px; }
.ask-flash .btn { margin-top: 8px; background: #B26A00; color: #fff; border-color: #B26A00; }
@keyframes ask-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(178, 106, 0, .45); } 50% { box-shadow: 0 0 0 10px rgba(178, 106, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .ask-flash { animation: none; } }
.fix-card { background: #FFF3D6; border: 1px solid #F1D58A; border-radius: 14px; padding: 12px 14px; color: #6B4300; } .fix-card b { color: #9A5B00; }
/* v11.5 – exam timetable (pages.js: examCard) */
.ex-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ex-h, .ex-r { display: grid; grid-template-columns: 84px max-content minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 10px; }
.ex-h span:nth-child(2) { min-width: 96px; } .ex-r em { white-space: nowrap; min-width: 96px; }
.ex-h { background: var(--primary); color: var(--onprimary); font-size: 12.5px; font-weight: 700; } .ex-h span:last-child { text-align: right; }
.ex-r { border-top: 1px solid var(--line); }
.ex-r b { display: block; font-size: 14.5px; } .ex-r small { display: block; font-size: 12.5px; color: var(--muted); }
.ex-r em { font-style: normal; font-size: 13px; color: var(--muted); } .ex-r em b { color: var(--text); font-size: 13.5px; }
.ex-r strong { font-size: 15.5px; color: var(--primary); text-align: right; }
.ex-r.now { background: #FFF3D6; } .ex-r.now strong { color: #12233F; } .ex-r.now b, .ex-r.now em b { color: #12233F; } .ex-r.now small, .ex-r.now em { color: #6B4300; }
.ex-r.gone { opacity: .55; }
.ex-today { display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 8px; margin-top: 3px; background: #F2C230; color: #3D2A00; }
.leave-notes { display: grid; gap: 4px; margin-bottom: 12px; } .att-leave { font-weight: 600; color: #1456B8; white-space: nowrap; }
/* v11.4: Student Corner tabs – all on the screen at once, three in a row on phones, wrapped to the next line */
.sctabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.sctabs button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.15; cursor: pointer; text-align: left; }
.sctabs button.on { background: var(--primary); border-color: var(--primary); color: var(--onprimary, #fff); }
.sctabs button:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
html[lang="ta"] .sctabs button { font-size: 13px; }
@media (min-width: 760px) { .sctabs { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.thought { background: color-mix(in srgb, var(--tertiary) 10%, var(--card)); border-left: 4px solid var(--tertiary); border-radius: var(--radius); padding: 10px 14px; margin: 6px 0 14px; }

/* Weekly scores */
.scorecard { display: flex; gap: 14px; align-items: center; border: 2px solid var(--tertiary); background: linear-gradient(135deg, color-mix(in srgb, var(--tertiary) 14%, var(--card)), var(--card)); }
.scorecard b { font-family: var(--hfont); font-size: 20px; display: block; }
.sc-star { font-size: 38px; }
.sc-total { text-align: center; min-width: 74px; } .sc-total b { font-size: 32px; color: var(--primary); }
tr.topr td, tr.topr th { background: color-mix(in srgb, var(--tertiary) 16%, transparent); font-weight: 700; }

/* Submitted attendance: display only */
.card.locked { background: color-mix(in srgb, var(--muted) 7%, var(--card)); }
.greyed { opacity: .62; filter: grayscale(.5); pointer-events: none; user-select: text; }

/* Global Campus layout */
.gl-hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; color: #fff; }
.gl-hero .slides { position: absolute; inset: 0; }
.gl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,44,89,.15) 0%, rgba(15,44,89,.55) 50%, rgba(10,25,50,.92) 100%); }
.gl-in { position: relative; padding: 48px 16px 56px; display: grid; gap: 14px; }
.gl-kick { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--tertiary); }
.gl-hero h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.02; color: #fff; }
.gl-hero p { font-size: 18px; max-width: 560px; opacity: .92; margin: 0; }
.gl-stats { background: var(--primary); color: #fff; }
.gl-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 26px; padding-bottom: 26px; gap: 12px; }
.gl-stat-grid div { border-left: 3px solid var(--secondary); padding-left: 14px; }
.gl-stat-grid b { display: block; font-family: var(--hfont); font-size: clamp(30px, 4vw, 46px); color: var(--tertiary); line-height: 1; }
.gl-stat-grid span { font-size: 14px; opacity: .9; }
.gl-stat-grid b.word { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; margin-bottom: 4px; }   /* v11.5: "Safe transport" until bus routes are entered */
@media (max-width: 640px) { .gl-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gl-sec { padding-top: 44px; } .gl-sec h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 6px 0 20px; }
.gl-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .gl-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gl-story { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; }
.gl-story img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gl-story:hover img { transform: scale(1.05); }
.gl-story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,25,50,.85)); }
.gl-n { position: absolute; top: 10px; left: 12px; z-index: 1; font-family: var(--hfont); font-size: 30px; font-weight: 800; color: var(--tertiary); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.gl-story b { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-size: 16px; }
.gl-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.gl-ev { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); border-top: 4px solid var(--secondary); }
.gl-ev small { color: var(--secondary); font-weight: 800; letter-spacing: .1em; font-size: 11px; } .gl-ev b { display: block; }
.gl-help { position: fixed; right: 16px; bottom: 84px; z-index: 30; }
.gl-help summary { list-style: none; cursor: pointer; background: var(--secondary); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.gl-help summary::-webkit-details-marker { display: none; }
.gl-help[open] summary, .gl-help details[open] summary { border-radius: 14px 14px 0 0; }
.gl-help .stack { background: var(--card); padding: 12px; border-radius: 0 0 14px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: grid; gap: 8px; }
@media (min-width: 761px) { .gl-help { bottom: 20px; } }

/* Values Journey layout */
.vj-hero { position: relative; min-height: min(84vh, 680px); display: flex; align-items: center; background: #11110F; color: #F6F1E7; }
.vj-hero .slides { position: absolute; inset: 0; opacity: .5; }
.vj-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 60%, rgba(17,17,15,.35), rgba(17,17,15,.92)); }
.vj-in { position: relative; display: grid; gap: 18px; padding: 56px 16px; }
.vj-cap { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.vj-hero h1 { font-size: clamp(42px, 7vw, 88px); line-height: 1; font-weight: 600; color: #F6F1E7; }
.vj-hero h1 em { color: #E9A76B; font-style: italic; }
.vj-ticker { background: var(--primary); color: #fff; overflow: hidden; white-space: nowrap; }
.vj-tick { display: inline-flex; animation: vjtick 38s linear infinite; padding: 12px 0; }
.vj-tick span { padding: 0 28px; font-weight: 600; position: relative; } .vj-tick span::after { content: '✦'; position: absolute; right: -6px; opacity: .7; }
@keyframes vjtick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .vj-tick { animation: none; } }
.vj-sec { padding-top: 48px; } .vj-sec h2, .vj-ch h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; margin: 6px 0 20px; }
.vj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .vj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.vj-grid figure { margin: 0; } .vj-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: saturate(.9); }
.vj-grid figcaption { padding-top: 8px; font-size: 15px; } .vj-grid figcaption b { color: var(--primary); margin-right: 4px; } .vj-grid i { font-family: var(--hfont); font-size: 19px; }
.vj-ch { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding-top: 56px; }
.vj-ch img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vj-ch.rev img { order: 2; }
.vj-ch p { font-size: 18px; color: var(--muted); }
@media (max-width: 760px) { .vj-ch { grid-template-columns: 1fr; gap: 14px; padding-top: 36px; } .vj-ch.rev img { order: 0; } }

/* Tamil: labels stay whole words – no single letters dropping to the next line */
html[lang="ta"] .tile, html[lang="ta"] .nav a, html[lang="ta"] .bottomnav a, html[lang="ta"] .tabs button, html[lang="ta"] .tchip,
html[lang="ta"] .btn, html[lang="ta"] .chip, html[lang="ta"] .pill { word-break: keep-all; overflow-wrap: normal; hyphens: none; text-wrap-style: balance; }
html[lang="ta"] .tabs button, html[lang="ta"] .nav a { white-space: nowrap; flex-shrink: 0; }
html[lang="ta"] .bottomnav a { white-space: nowrap; overflow: hidden; }
html[lang="ta"] .tile { font-size: 12px; line-height: 1.3; padding: 12px 4px; letter-spacing: -.1px; }
html[lang="ta"] .nav a { font-size: 13px; padding: 8px 7px; }
html[lang="ta"] .bottomnav a { font-size: 9.5px; letter-spacing: -.2px; line-height: 1.2; padding: 6px 1px 8px; }
html[lang="ta"] .tabs button { font-size: 14px; padding: 12px 12px; }
html[lang="ta"] .page-title { font-size: clamp(22px, 5vw, 32px); }
html[lang="ta"] .sec-title { font-size: 19px; }

/* Dark "secondary" colour themes: light text on the admissions band */
[data-theme="16"] .lp-cta, [data-theme="16"] .lp-cta h2, [data-theme="18"] .lp-cta, [data-theme="18"] .lp-cta h2 { color: var(--onsecondary); }
@media (max-width: 760px) { .gl-help summary { padding: 10px 14px; font-size: 14px; } .gl-help:not(:has(details[open])) summary { width: 48px; height: 48px; padding: 0; overflow: hidden; white-space: nowrap; text-indent: 0; display: grid; place-items: center; font-size: 0; }
  .gl-help:not(:has(details[open])) summary::before { content: '💬'; font-size: 22px; } }

/* =====================================================================
   v8 – header, navigation, footer (all themes) and the Prestige layout (from the 2026 redesign)
   ===================================================================== */
:root { --deep: color-mix(in srgb, var(--primary) 72%, #000); --accent-ink: color-mix(in srgb, var(--secondary) 62%, #000); --ease: cubic-bezier(.2,.7,.2,1); }
[data-theme="19"] { --deep: #0F172A; }
[data-theme="19"] .wrap { max-width: 1280px; }
html { scroll-padding-top: 120px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.anchor { position: relative; top: -8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.utility :focus-visible, .ps-hero :focus-visible, .ps-dark :focus-visible, .footer :focus-visible, .tour :focus-visible { outline-color: var(--secondary); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--onprimary); padding: 10px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
@media (max-width: 480px) { .hide-xs { display: none !important; } }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (min-width: 1200px) { .hide-lg { display: none !important; } }

/* Buttons */
.btn { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn svg { flex: none; transition: transform .2s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn.cta { background: var(--secondary); color: var(--onsecondary); }
.btn.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--secondary) 80%, #000); background: color-mix(in srgb, var(--secondary) 88%, #fff); }
.btn.cta:active { transform: translateY(0); }
.btn.glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.btn.lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn.primary:hover { background: color-mix(in srgb, var(--primary) 86%, #fff); }
.btn.outline:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); }
[data-theme="19"] .btn { border-radius: 12px; font-weight: 600; letter-spacing: .01em; }
.iconbtn { background: none; border: 0; color: inherit; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; text-decoration: none; transition: background-color .2s; }
.iconbtn:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.iconbtn.round { border-radius: 50%; border: 1px solid var(--line); background: var(--card); }
.iconbtn.round:hover { border-color: var(--secondary); color: var(--accent-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; }
.utility { background: var(--bar); color: var(--onbar); font-size: 13px; }
.utility .wrap { display: flex; align-items: center; gap: 4px 20px; min-height: 38px; }
.utility a, .utility button { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; opacity: .88; background: none; border: 0; cursor: pointer; font-size: 13px; padding: 6px 0; }
.utility a:hover, .utility button:hover { opacity: 1; }
.utility svg { width: 15px; height: 15px; }
.utility .grow { flex: 1; }
.langbtn { border: 1px solid color-mix(in srgb, var(--onbar) 35%, transparent) !important; border-radius: 999px; padding: 3px 12px !important; font-weight: 700; }
.utility .utility-cta { background: var(--secondary); color: var(--onsecondary); opacity: 1; padding: 5px 14px; border-radius: 999px; font-weight: 700; }
.utility .utility-cta:hover { filter: brightness(1.06); }
.mainbar { background: var(--card); border-bottom: 1px solid var(--line); transition: background-color .3s, box-shadow .3s; }
.topbar.scrolled .mainbar { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 10px 30px -18px rgba(15,23,42,.35); }
.mainbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: auto; flex: none; }
.brand b { display: block; font-family: var(--hfont); font-weight: 600; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.brand small { display: block; color: var(--accent-ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > button, .nav-link { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text); text-decoration: none; white-space: nowrap; position: relative; }
.nav > ul > li > button svg { transition: transform .25s var(--ease); opacity: .6; }
.nav > ul > li > button::after, .nav-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.has-menu:hover > button::after, .has-menu.open > button::after, .nav-link:hover::after, .nav-link.on::after { transform: scaleX(1); }
.has-menu:hover > button svg, .has-menu.open > button svg { transform: rotate(180deg); }
.menu { position: absolute; top: 100%; left: -8px; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; z-index: 40; }
.has-menu:hover > .menu, .has-menu.open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu-list, .menu.wide { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(15,23,42,.28); }
.menu-list { list-style: none; margin: 0; padding: 10px; min-width: 300px; }
.menu.wide { display: grid; grid-template-columns: 300px 230px; gap: 8px; padding: 10px; margin-top: 10px; }
.menu.wide::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu.wide .menu-list { border: 0; box-shadow: none; padding: 0; }
.menu-list a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--text); transition: background-color .15s; }
.menu-list a:hover, .menu-list a:focus-visible { background: color-mix(in srgb, var(--secondary) 14%, var(--card)); }
.menu-list b { display: block; font-size: 14.5px; font-weight: 700; }
.menu-list small { display: block; color: var(--muted); font-size: 13px; }
.menu-feature { position: relative; display: block; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; min-height: 220px; }
.menu-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.menu-feature:hover img { transform: scale(1.05); }
.menu-feature span { position: absolute; inset: auto 0 0 0; padding: 14px; background: linear-gradient(transparent, rgba(15,23,42,.9)); }
.menu-feature b { display: block; font-family: var(--hfont); font-size: 18px; }
.menu-feature small { font-size: 12.5px; opacity: .9; }
.actions { display: flex; align-items: center; gap: 4px; flex: none; }
.actions .btn.cta { margin-left: 6px; }
.badge-wrap { position: relative; }
.badge-wrap .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #B26A00; border: 2px solid var(--card); }
.menu-btn { display: none; }
@media (max-width: 1320px) { .brand small { display: none; } .brand b { font-size: 17px; } .nav > ul > li > button, .nav-link { padding: 10px 9px; font-size: 14px; } }
@media (max-width: 1199px) { .nav { display: none; } .menu-btn { display: inline-grid; } .actions { margin-left: auto; } }
@media (max-width: 760px) {
  .mainbar .wrap { min-height: 64px; gap: 8px; } .brand img { width: 36px; } .brand b { font-size: 15px; }
  .actions .btn.cta { padding: 8px 14px; min-height: 40px; font-size: 14px; } .actions .btn.cta svg { display: none; }
}
@media (max-width: 400px) { .brand b { font-size: 13.5px; } .actions .btn.cta { display: none; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(15,23,42,.5); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--card); color: var(--text); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -20px 0 40px -20px rgba(15,23,42,.4); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--hfont); font-size: 20px; }
.drawer-head img { width: 32px; height: auto; }
.drawer nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 10px; font-weight: 700; font-size: 16px; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { transition: transform .25s var(--ease); }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details ul { list-style: none; margin: 0; padding: 0 0 12px; }
.drawer details a, .drawer-link { display: block; padding: 11px 14px; color: var(--text); text-decoration: none; border-radius: 10px; }
.drawer details a:hover { background: color-mix(in srgb, var(--secondary) 14%, var(--card)); }
.drawer-link { font-weight: 700; padding: 16px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
.drawer-foot { padding: 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); }

/* Mobile bottom navigation */
.bottomnav { display: none; }
@media (max-width: 760px) {
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 8px 0 7px; }
  .bottomnav a.on { color: var(--primary); }
  .bottomnav a { position: relative; }
  .nbadge { position: absolute; top: 3px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: var(--onprimary, #fff); font: 800 11px/18px system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--card); }
  .bottomnav a.on svg { color: var(--accent-ink); }
  main { padding-bottom: 72px !important; }
}

/* Footer */
.footer { background: var(--deep); color: #CBD5E1; padding: 72px 0 0; font-size: 15px; }
.footer a { color: #E2E8F0; text-decoration: none; }
.footer a:hover { color: var(--secondary); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.3fr); gap: 40px; }
.foot-brand .row { gap: 14px; flex-wrap: nowrap; }
.foot-brand img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.2); flex: none; }
.foot-brand .h { color: #fff; font-size: 20px; font-weight: 600; }
.foot-motto { color: var(--secondary); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.foot-brand address { font-style: normal; display: flex; gap: 10px; margin: 22px 0 12px; line-height: 1.6; }
.foot-brand svg, .foot-contact svg { flex: none; color: var(--secondary); width: 18px; height: 18px; margin-top: 3px; }
.foot-contact { display: grid; gap: 8px; }
.foot-contact a { display: flex; gap: 10px; align-items: center; }
.foot-contact a svg { margin-top: 0; }
.foot-soc { display: flex; gap: 10px; margin-top: 20px; }
.foot-soc a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.foot-soc a:hover { border-color: var(--secondary); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.foot-soc svg { width: 19px; height: 19px; }
.foot-col h2 { font-family: var(--bfont); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); margin: 6px 0 16px; }
.foot-col > a { display: block; padding: 6px 0; }
.foot-updates p { margin: 0 0 12px; }
.wa-form { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-form input { flex: 1 1 140px; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; }
.wa-form input::placeholder { color: #94A3B8; }
.wa-form .btn { min-height: 46px; padding: 10px 16px; font-size: 14px; }
.foot-map { margin-top: 16px; border-radius: 14px; overflow: hidden; height: 150px; border: 1px solid rgba(255,255,255,.14); }
.foot-map button { position: relative; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #1E293B; display: block; }
.foot-map button img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .6s var(--ease); }
.foot-map button:hover img { opacity: .7; transform: scale(1.04); }
.foot-map button span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; gap: 6px; align-items: center; background: #fff; color: #0F172A; font-weight: 700; padding: 9px 16px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.foot-map button span svg { width: 16px; height: 16px; color: var(--accent-ink); }
.foot-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.badge-acc { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 13.5px; color: #E2E8F0; }
.badge-acc svg { color: var(--secondary); width: 18px; height: 18px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 26px; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #94A3B8; }
.foot-legal .row { gap: 20px; }
.foot-badges + .foot-legal { margin-top: 0; border-top: 0; }
@media (max-width: 1080px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .foot-top { grid-template-columns: 1fr; gap: 32px; } .footer { padding-top: 52px; } }
@media (max-width: 760px) { .footer { padding-bottom: 72px; } }

/* Section scaffolding */
.eyebrow { letter-spacing: .14em; font-size: 12.5px; }
[data-theme="19"] .eyebrow { color: var(--accent-ink); }
.eyebrow.light, [data-theme="19"] .eyebrow.light { color: var(--secondary); }
.ps-sec { padding-top: 104px; }
.ps-head { max-width: 720px; margin-bottom: 40px; }
.ps-head.split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.ps-head.split > div { max-width: 780px; }
.ps-head h2, .ps-intro h2, .ps-contact h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 14px; }
.ps-head p { margin: 0; font-size: 17px; }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); }

/* Hero */
.ps-hero { position: relative; min-height: clamp(560px, 84vh, 820px); color: #fff; display: flex; align-items: center; overflow: hidden; background: var(--deep); isolation: isolate; }
.ps-hero-media, .ps-hero-media .slides, .ps-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-hero-media video { object-fit: cover; }
.ps-hero-media .slides { background: var(--deep); }
.ps-hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.9) 0%, rgba(15,23,42,.66) 42%, rgba(15,23,42,.18) 100%), linear-gradient(0deg, rgba(15,23,42,.65) 0%, transparent 38%); }
.ps-hero-in { position: relative; z-index: 1; width: 100%; padding-top: 72px; padding-bottom: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ps-hero-in > * { max-width: 720px; }
.ps-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E9CF97; }
.ps-kicker::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.ps-hero h1 { font-size: clamp(40px, 6vw, 78px); font-weight: 600; line-height: 1.03; letter-spacing: -.025em; }
.ps-hero h1 em { font-style: italic; font-weight: 500; color: #E9CF97; }
.ps-hero p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: #E2E8F0; margin: 0; max-width: 620px; }
.ps-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ps-hero .welcome { margin: 0; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.ps-hero .welcome .muted { color: #CBD5E1; }
@media (prefers-reduced-motion: no-preference) {
  .ps-hero .slides img.on { animation: ps-zoom 9s ease-out both; }
  .ps-hero-in > * { animation: ps-rise .9s var(--ease) both; }
  .ps-hero-in > *:nth-child(2) { animation-delay: .08s; } .ps-hero-in > *:nth-child(3) { animation-delay: .16s; } .ps-hero-in > *:nth-child(4) { animation-delay: .24s; } .ps-hero-in > *:nth-child(5) { animation-delay: .32s; }
}
@keyframes ps-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes ps-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Highlights ribbon */
.ps-ribbon-wrap { position: relative; z-index: 2; margin-top: -84px; }
.ps-ribbon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(15,23,42,.35); overflow: hidden; }
.ps-ribbon li { padding: 28px 28px 26px; position: relative; }
.ps-ribbon li + li::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.ps-ribbon b { display: block; font-family: var(--hfont); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.02em; color: var(--text); }
.ps-ribbon span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.ps-ribbon li:first-child b { color: var(--accent-ink); }
@media (max-width: 860px) {
  .ps-ribbon { grid-template-columns: 1fr 1fr; } .ps-ribbon li { padding: 20px; }
  .ps-ribbon li:nth-child(3)::before { display: none; } .ps-ribbon li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* About intro */
.ps-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; padding-top: 112px; }
.ps-intro .lead { margin: 0 0 28px; }
.ps-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.ps-vm h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.ps-vm p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ps-intro-img { position: relative; margin: 0; }
.ps-intro-img > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.ps-intro-img::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid color-mix(in srgb, var(--secondary) 60%, transparent); border-radius: 28px; z-index: -1; }
.ps-intro-img figcaption { position: absolute; left: -28px; bottom: 36px; display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; box-shadow: 0 20px 40px -20px rgba(15,23,42,.35); font-size: 14px; color: var(--muted); }
.ps-intro-img figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ps-intro-img figcaption b { display: block; color: var(--text); font-family: var(--hfont); font-size: 18px; font-weight: 600; }
@media (max-width: 960px) { .ps-intro { grid-template-columns: 1fr; gap: 48px; padding-top: 88px; } .ps-intro-img { max-width: 560px; } .ps-intro-img figcaption { left: 16px; } }
@media (max-width: 560px) { .ps-vm { grid-template-columns: 1fr; } .ps-intro-img::before { inset: 14px -10px -14px 14px; } }

/* Academics */
.ps-band { margin-top: 112px; padding: 104px 0; background: color-mix(in srgb, var(--primary) 4%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ps-stage-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.ps-stage-tabs button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.ps-stage-tabs button:hover { border-color: color-mix(in srgb, var(--secondary) 70%, var(--line)); transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(15,23,42,.4); }
.ps-stage-tabs button[aria-selected="true"] { background: var(--primary); color: var(--onprimary); border-color: var(--primary); }
.ps-stage-tabs small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.ps-stage-tabs button[aria-selected="true"] small { color: var(--secondary); }
.ps-stage-tabs b { display: block; font-family: var(--hfont); font-weight: 600; font-size: 18px; line-height: 1.2; }
.ps-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--secondary) 16%, var(--card)); color: var(--accent-ink); }
.ps-stage-tabs button[aria-selected="true"] .ps-ico { background: rgba(255,255,255,.1); color: var(--secondary); }
.ps-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 0; overflow: hidden; border-radius: 24px; }
.ps-stage-img img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.ps-stage-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
.ps-stage-body h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.01em; }
.ps-stage-body > p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 8px 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; color: var(--tertiary); margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) { .ps-stage:not([hidden]), .ps-step-panel:not([hidden]) { animation: ps-rise .5s var(--ease) both; } }
@media (max-width: 960px) {
  .ps-stage-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .ps-stage-tabs button { flex: 0 0 240px; scroll-snap-align: start; }
  .ps-stage { grid-template-columns: 1fr; } .ps-stage-img img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Campus bento */
.ps-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 16px; }
.ps-tile { position: relative; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; background: var(--deep); }
.ps-tile.big { grid-column: span 2; grid-row: span 2; }
.ps-tile.tall { grid-row: span 2; }
.ps-tile.wide { grid-column: span 2; }
.ps-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ps-tile:hover > img { transform: scale(1.06); }
.ps-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(15,23,42,.88) 100%); transition: opacity .3s; }
.ps-tile-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 22px; }
.ps-tile-cap b { display: block; font-family: var(--hfont); font-weight: 600; font-size: 20px; line-height: 1.2; }
.ps-tile.big .ps-tile-cap b { font-size: clamp(22px, 2.2vw, 30px); }
.ps-tile-cap small { display: block; margin-top: 4px; color: #E2E8F0; font-size: 14px; line-height: 1.45; max-width: 46ch; }
.ps-tile-cap b::after { content: ' →'; display: inline-block; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease); color: var(--secondary); }
.ps-tile:hover .ps-tile-cap b::after, .ps-tile:focus-visible .ps-tile-cap b::after { opacity: 1; transform: none; }
@media (max-width: 900px) { .ps-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 12px; } }
@media (max-width: 520px) { .ps-bento { grid-auto-rows: 160px; } .ps-tile-cap { padding: 14px; } .ps-tile-cap b { font-size: 16px; } .ps-tile:not(.big) .ps-tile-cap small { display: none; } }

/* Admission journey */
.ps-dark { margin-top: 112px; padding: 104px 0; background: radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--secondary) 22%, transparent), transparent 70%), var(--deep); color: #E2E8F0; }
.ps-dark h2, .ps-dark h3 { color: #fff; }
.ps-dark .ps-head p { color: #CBD5E1; }
.ps-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.ps-steps::before { content: ''; position: absolute; left: 12%; right: 12%; top: 41px; height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px); }
.ps-steps button { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 16px 10px 18px; border-radius: 16px; border: 1px solid transparent; background: none; color: #CBD5E1; cursor: pointer; transition: background-color .2s, border-color .2s; }
.ps-steps button:hover { background: rgba(255,255,255,.04); }
.ps-steps button[aria-selected="true"] { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.ps-num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--hfont); font-size: 21px; font-weight: 600; border: 1px solid rgba(255,255,255,.35); background: var(--deep); color: #fff; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.ps-steps button.done .ps-num { border-color: var(--secondary); color: var(--secondary); }
.ps-steps button[aria-selected="true"] .ps-num { background: var(--secondary); border-color: var(--secondary); color: var(--onsecondary); transform: scale(1.06); }
.ps-steps small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); font-weight: 700; }
.ps-steps b { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; }
.ps-step-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 28px 32px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.ps-step-panel > div { flex: 1 1 420px; }
.ps-step-panel h3 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.ps-step-panel p { margin: 0; color: #CBD5E1; font-size: 16.5px; line-height: 1.65; max-width: 70ch; }
@media (max-width: 760px) {
  .ps-steps { grid-template-columns: 1fr; gap: 4px; }
  .ps-steps::before { left: 41px; right: auto; top: 30px; bottom: 30px; width: 1px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px); }
  .ps-steps button { flex-direction: row; text-align: left; padding: 10px 14px; gap: 16px; }
  .ps-num { width: 44px; height: 44px; font-size: 18px; flex: none; }
  .ps-step-panel { padding: 22px; }
}

/* Testimonials */
.ps-carousel-nav { display: flex; gap: 8px; }
.ps-quotes { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 20px; margin: 0 -4px; scrollbar-width: none; }
.ps-quotes::-webkit-scrollbar { display: none; }
.ps-quote { flex: 0 0 min(440px, 86%); scroll-snap-align: start; margin: 0; padding: 32px; border-radius: 22px; display: flex; flex-direction: column; gap: 18px; transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.ps-quote:hover { border-color: color-mix(in srgb, var(--secondary) 60%, var(--line)); box-shadow: 0 24px 40px -28px rgba(15,23,42,.35); transform: translateY(-3px); }
.qmark { color: var(--secondary); }
.ps-quote blockquote { margin: 0; font-family: var(--hfont); font-weight: 500; font-size: 19px; line-height: 1.6; color: var(--text); flex: 1; }
.ps-quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.ps-quote figcaption img, .mono { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.mono { display: grid; place-items: center; background: var(--primary); color: var(--secondary); font-weight: 700; font-family: var(--hfont); font-size: 18px; }
.ps-quote figcaption b { display: block; }
.ps-quote figcaption small { display: block; color: var(--muted); font-size: 13.5px; }

/* Principal */
.ps-principal { margin-top: 104px; padding: 88px 0; text-align: center; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ps-principal img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 26px; }
.ps-principal blockquote { margin: 0 auto; max-width: 880px; font-family: var(--hfont); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; letter-spacing: -.01em; }
.ps-principal blockquote::before { content: '“'; color: var(--secondary); }
.ps-principal blockquote::after { content: '”'; color: var(--secondary); }
.ps-principal p { margin: 26px 0 0; }
.ps-principal p b { display: block; font-size: 16px; }
.ps-principal p span { color: var(--muted); font-size: 14px; }

/* News */
.ps-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ps-news-card { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: var(--text); padding: 24px; border-radius: 20px; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.ps-news-card:hover { border-color: color-mix(in srgb, var(--secondary) 60%, var(--line)); transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(15,23,42,.35); }
.ps-news-card h3 { font-size: 19px; font-weight: 600; margin: 2px 0 6px; }
.ps-news-card p { margin: 0; font-size: 15px; line-height: 1.55; }
[data-theme="19"] .datebox { background: color-mix(in srgb, var(--secondary) 16%, var(--card)); color: var(--text); border: 1px solid color-mix(in srgb, var(--secondary) 40%, transparent); }
[data-theme="19"] .datebox small { color: var(--accent-ink); letter-spacing: .1em; }

/* Contact */
.ps-contact { margin-top: 104px; padding: 104px 0; background: color-mix(in srgb, var(--primary) 4%, var(--bg)); border-top: 1px solid var(--line); }
.ps-contact-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.ps-contact-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 16px; }
.ps-contact-list li { display: flex; gap: 14px; align-items: center; }
.ps-contact-list svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--accent-ink); }
.ps-contact-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.ps-contact-list a:hover { color: var(--accent-ink); }
.ps-contact h3 { font-size: 18px; margin-bottom: 12px; }
.ps-form { padding: clamp(22px, 3vw, 36px); border-radius: 24px; box-shadow: 0 30px 60px -40px rgba(15,23,42,.35); }
@media (max-width: 960px) { .ps-contact-in { grid-template-columns: 1fr; gap: 40px; } }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Campus tour */
.tour { position: fixed; inset: 0; z-index: 80; background: rgba(8,12,24,.96); color: #fff; display: grid; grid-template-rows: auto 1fr; animation: ps-fade .25s ease both; }
.tour-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 24px; }
.tour-top b { font-family: var(--hfont); font-size: 20px; font-weight: 600; flex: 1; }
.tour-top span { color: #94A3B8; font-variant-numeric: tabular-nums; }
.tour-top .iconbtn:hover { background: rgba(255,255,255,.1); }
.tour figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 72px 24px; min-height: 0; }
.tour figure img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 14px; object-fit: contain; animation: ps-fade .35s ease both; }
.tour figcaption { margin-top: 14px; font-size: 16px; color: #E2E8F0; }
.tour-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.tour-nav:hover { background: rgba(255,255,255,.16); }
.tour-nav.prev { left: 16px; } .tour-nav.next { right: 16px; }
@media (max-width: 600px) { .tour figure { padding: 0 12px 90px; } .tour-nav { top: auto; bottom: 20px; transform: none; } .tour-nav.prev { left: calc(50% - 64px); } .tour-nav.next { right: calc(50% - 64px); } }
@keyframes ps-fade { from { opacity: 0; } to { opacity: 1; } }

/* Prestige polish on the inner pages */
[data-theme="19"] .page-title { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.02em; padding: 40px 0 16px; }
[data-theme="19"] .sec-title { font-weight: 600; font-size: 24px; margin-top: 36px; }
[data-theme="19"] .tabs button.on { color: var(--text); border-bottom-color: var(--secondary); }
[data-theme="19"] .chip.on { background: var(--primary); border-color: var(--primary); }
[data-theme="19"] .pill { background: color-mix(in srgb, var(--secondary) 18%, var(--card)); }
[data-theme="19"] .pill.hi { background: var(--primary); color: #fff; }
[data-theme="19"] .card { transition: border-color .2s, box-shadow .3s; }
[data-theme="19"] label.field > input, [data-theme="19"] label.field > textarea, [data-theme="19"] label.field > select { border-width: 1px; border-color: #CBD5E1; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
[data-theme="19"] label.field > input:focus, [data-theme="19"] label.field > textarea:focus, [data-theme="19"] label.field > select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 35%, transparent); }
[data-theme="19"] .headimg { border-radius: 20px; height: 240px; }
[data-theme="19"] .welcome { background: color-mix(in srgb, var(--secondary) 12%, var(--card)); }
.lc-prestige { grid-template-rows: 2fr .5fr 1fr; grid-template-columns: repeat(3, 1fr); } .lc-prestige i:nth-child(1) { grid-column: 1 / -1; background: #1E293B; } .lc-prestige i:nth-child(2) { grid-column: 1 / -1; background: #C9A15B; }

/* Full-page photo viewer (gallery) */
.pviewer { position: fixed; inset: 0; z-index: 80; background: #0B0B0C; color: #fff; display: grid; grid-template-rows: auto 1fr; touch-action: pan-y; }
.pv-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; background: rgba(0,0,0,.55); }
.pv-title { flex: 1; min-width: 0; }
.pv-title b { display: block; font-family: var(--hfont); font-size: 20px; }
.pv-title small { display: block; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-x { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; flex: none; }
.pv-x:hover { background: rgba(255,255,255,.26); }
.pv-stage { display: grid; place-items: center; overflow: hidden; padding: 8px; }
.pv-stage img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; user-select: none; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.pv-nav:hover { background: rgba(255,255,255,.28); }
.pv-nav.prev { left: 12px; } .pv-nav.next { right: 12px; }
@media (max-width: 600px) { .pv-nav { width: 44px; height: 44px; font-size: 28px; background: rgba(0,0,0,.4); } }

/* ===================================================================== v9 – role dashboards, role login screens, charts */
/* Defaults so the calendar and rings also work outside a dashboard (Student Corner) – they follow the site theme there. */
:root { --d-bg: var(--bg); --d-card: var(--card); --d-ink: var(--text); --d-muted: var(--muted); --d-line: #E3E6EC; --d-accent: var(--primary); --d-s1: var(--primary); --d-s2: var(--secondary); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-banner.testsite { background: #FF7A00; color: #fff; font-weight: 700; }
.seg { display: inline-flex; border: 1.5px solid var(--primary); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; min-height: 40px; }
.seg button.on { background: var(--primary); color: var(--onprimary); }

/* ---- dashboard shell */
.dash { background: var(--d-bg); color: var(--d-ink); padding-bottom: 40px; min-height: 70vh; }
.dash .d-hero { background: linear-gradient(135deg, var(--d-hero1), var(--d-hero2)); color: var(--d-heroink); padding: 22px 0 64px; }
.dash .d-body { margin-top: -48px; display: grid; gap: 16px; position: relative; }
.d-hello { display: flex; gap: 14px; align-items: center; }
.d-logo { width: 68px; height: 68px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.d-hello small { opacity: .85; font-weight: 600; font-size: 13px; }
.d-hello h1 { margin: 2px 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.15; color: inherit; font-family: var(--hfont); }
.d-hello p { margin: 0; opacity: .88; font-size: 14px; }
.d-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 760px) { .d-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d-kpi { display: grid; gap: 2px; align-content: start; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--d-ink); background: var(--d-card); box-shadow: 0 6px 18px rgba(16,24,40,.08); min-height: 108px; position: relative; overflow: hidden; }
.d-kpi b { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; font-family: var(--hfont); }
.d-kpi span:last-child { font-size: 13px; color: var(--d-muted); line-height: 1.3; }
.d-kpi .d-ic { font-size: 22px; }
a.d-kpi:hover { transform: translateY(-1px); }
.d-panel { background: var(--d-card); border-radius: 18px; padding: 16px; box-shadow: 0 4px 16px rgba(16,24,40,.06); border: 1px solid var(--d-line); min-width: 0; }
.d-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.d-ph h3 { margin: 0; font-size: 17px; color: var(--d-ink); }
.d-more { font-size: 14px; font-weight: 700; color: var(--d-accent); text-decoration: none; white-space: nowrap; }
.d-grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .d-grid2 { grid-template-columns: 1fr; } }
.d-list { display: grid; gap: 4px; }
.d-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 10px; text-decoration: none; color: var(--d-ink); border-bottom: 1px solid var(--d-line); }
.d-row:last-child { border-bottom: 0; }
a.d-row:hover { background: color-mix(in srgb, var(--d-accent) 7%, transparent); }
.d-row small { display: block; color: var(--d-muted); font-size: 13px; }
.d-row.brk { color: var(--d-muted); font-style: italic; }
.d-row .d-ic { font-size: 20px; width: 28px; text-align: center; flex: none; }
.d-time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 64px; color: var(--d-accent); font-size: 14px; }
.d-badge { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--d-accent) 14%, transparent); color: var(--d-ink); white-space: nowrap; }
.d-date { display: grid; place-items: center; min-width: 46px; padding: 4px; border-radius: 10px; background: color-mix(in srgb, var(--d-accent) 12%, transparent); font-size: 12px; font-weight: 700; }
.d-date b { font-size: 18px; line-height: 1; }
.d-ok { margin: 4px 0; color: #0F6B53; font-weight: 600; }
.d-cta { display: block; padding: 14px 16px; border-radius: 14px; background: var(--d-accent); color: #fff; font-weight: 800; text-decoration: none; text-align: center; }
.d-cta.warn { background: #9A5B00; }
.d-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.d-act { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; text-decoration: none; color: var(--d-ink); text-align: center; font-size: 13px; font-weight: 700; line-height: 1.25;
  background: color-mix(in srgb, var(--d-accent) 7%, var(--d-card)); border: 1px solid var(--d-line); min-height: 88px; word-break: keep-all; }
.d-act .d-ic { font-size: 26px; }
.d-act em { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 11px; font-weight: 800; background: #B26A00; color: #fff; border-radius: 999px; padding: 1px 7px; }
.d-act:hover { border-color: var(--d-accent); }
.d-kids { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.d-kids button { border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; cursor: pointer; min-height: 40px; }
.d-kids button.on { background: #fff; color: var(--d-accent); border-color: #fff; }
.d-child { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.16); flex-wrap: wrap; }
.d-child b { display: block; font-size: 18px; } .d-child small { opacity: .85; }
.d-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #fff; color: var(--d-accent); flex: none; }
.d-status { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: #fff; color: #333; }
.d-status.s-present { color: #0F6B53; } .d-status.s-absent { color: #9A5B00; } .d-status.s-none { color: #5D6676; }

/* ---- charts */
.d-chart { width: 100%; height: auto; display: block; overflow: visible; }
.d-scroll { overflow-x: auto; }
.d-scroll .d-chart { width: auto; min-width: 100%; }
.d-grid { stroke: var(--d-line); stroke-width: 1; }
.d-axis { fill: var(--d-muted); font-size: 11px; font-family: var(--bfont); }
.d-chart.on-dark .d-axis { fill: rgba(255,255,255,.75); } .d-chart.on-dark .d-grid { stroke: rgba(255,255,255,.18); }
.d-hit { cursor: pointer; outline: none; } .d-hit:focus rect { stroke: var(--d-ink); stroke-width: 1; stroke-dasharray: 3 3; }
.d-trend { min-height: 150px; }
.d-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--d-muted); margin-bottom: 8px; }
.d-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut { display: block; flex: none; } .donut:focus { outline: 2px dashed var(--d-accent); outline-offset: 2px; border-radius: 50%; }
.donut .d-big { font-size: 22px; font-weight: 800; fill: var(--d-ink); font-family: var(--bfont); }
.donut .d-small { font-size: 11px; fill: var(--d-muted); font-family: var(--bfont); }
.d-ringrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.d-ringtxt { display: grid; gap: 8px; font-size: 15px; } .d-ringtxt b { margin-left: 4px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.dtip { position: fixed; z-index: 120; display: none; pointer-events: none; background: #111827; color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; max-width: 260px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* attendance calendar: colour + letter (P / A / H / –) so it never depends on colour alone */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; width: 100%; }
.d-ringrow > .grow { flex: 1 1 250px; min-width: 0; }
.cal-h { text-align: center; font-size: 11px; font-weight: 700; color: var(--d-muted); }
.cal-cell { position: relative; aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 12px; background: #F2F4F7; color: #344054; }
.cal-cell b { font-weight: 700; } .cal-cell em { position: absolute; right: 3px; bottom: 1px; font-size: 9px; font-style: normal; font-weight: 800; opacity: .9; }
.cal-cell.blank { background: none; }
.cal-cell.kP { background: #138A72; color: #fff; } .cal-cell.kA { background: #B26A00; color: #fff; } .cal-cell.kH { background: #7A5AF0; color: #fff; }
.cal-cell.kN { background: #fff; color: #5D6676; border: 1.5px dashed #B8BEC9; } .cal-cell.kS { background: transparent; color: #98A2B3; }
.cal-cell.kT { background: #fff; border: 2px solid var(--d-accent); } .cal-cell.kF { background: transparent; color: #98A2B3; }
.cal-legend i.kP { background: #138A72; } .cal-legend i.kA { background: #B26A00; } .cal-legend i.kH { background: #7A5AF0; } .cal-legend i.kN { background: #fff; border: 1.5px dashed #98A2B3; }
.cal-legend { margin: 8px 0 0; }

/* ---- the seven looks */
.st-gradient .d-hero { color: var(--d-heroink); }
.st-gradient .d-t0 { background: linear-gradient(135deg, var(--d-t0), var(--d-t0b)); } .st-gradient .d-t1 { background: linear-gradient(135deg, var(--d-t1), var(--d-t1b)); }
.st-gradient .d-t2 { background: linear-gradient(135deg, var(--d-t2), var(--d-t2b)); } .st-gradient .d-t3 { background: linear-gradient(135deg, var(--d-t3), var(--d-t3b)); }
.st-gradient .d-kpi { color: #1E2235; } .st-gradient .d-kpi span:last-child { color: #2B2F45; }

.st-solid .d-hero { border-radius: 0 0 28px 28px; }
.st-solid .d-kpi { border: 1px solid var(--d-line); box-shadow: none; }
.st-solid .d-t0 { background: var(--d-t0); color: var(--d-t0b); } .st-solid .d-t1 { background: var(--d-t1); color: var(--d-t1b); }
.st-solid .d-t2 { background: var(--d-t2); color: var(--d-t2b); } .st-solid .d-t3 { background: var(--d-t3); color: var(--d-t3b); }
.st-solid .d-kpi span:last-child { color: inherit; opacity: .9; }

.st-dark .d-hero { padding-bottom: 72px; }
.st-dark .d-kpi { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.st-dark .d-kpi span:last-child { color: rgba(255,255,255,.82); }
.st-dark .d-kpi b { font-size: clamp(30px, 4.6vw, 44px); font-weight: 600; }
.st-dark .d-body { margin-top: -40px; }

.st-neu { --neu: 8px 8px 18px #C9D0DA, -8px -8px 18px #FFFFFF; }
.st-neu .d-hero { padding-bottom: 60px; }
.st-neu .d-kpi, .st-neu .d-panel { background: var(--d-card); box-shadow: var(--neu); border: 0; }
.st-neu .d-kpi .d-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px; }
.st-neu .d-t0 .d-ic { background: var(--d-t0); } .st-neu .d-t1 .d-ic { background: var(--d-t1); } .st-neu .d-t2 .d-ic { background: var(--d-t2); } .st-neu .d-t3 .d-ic { background: var(--d-t3); }
.st-neu .d-t0 b { color: var(--d-t0b); } .st-neu .d-t1 b { color: var(--d-t1b); } .st-neu .d-t2 b { color: var(--d-t2b); } .st-neu .d-t3 b { color: var(--d-t3b); }
.st-neu .d-act { background: var(--d-card); border: 0; box-shadow: 5px 5px 12px #CDD4DE, -5px -5px 12px #FFFFFF; }

.st-ring .d-hero { padding-bottom: 70px; background: linear-gradient(160deg, var(--d-hero1) 0 60%, var(--d-hero2)); }
.st-ring .d-kpi { border-top: 4px solid var(--d-t0b); }
.st-ring .d-t1 { border-top-color: var(--d-t1b); } .st-ring .d-t2 { border-top-color: var(--d-t2b); } .st-ring .d-t3 { border-top-color: var(--d-t3b); }
.st-ring .d-kpi .d-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 4px solid currentColor; font-size: 16px; }
.st-ring .d-t0 .d-ic { color: var(--d-t0b); background: var(--d-t0); } .st-ring .d-t1 .d-ic { color: var(--d-t1b); background: var(--d-t1); }
.st-ring .d-t2 .d-ic { color: var(--d-t2b); background: var(--d-t2); } .st-ring .d-t3 .d-ic { color: var(--d-t3b); background: var(--d-t3); }

.st-mint .d-hero { position: relative; overflow: hidden; }
.st-mint .d-hero::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: -40px; height: 120px; border-radius: 50%; background: var(--d-bg); }
.st-mint .d-hero .wrap { position: relative; z-index: 1; }
.st-mint .d-body { margin-top: -34px; z-index: 2; }
.st-mint .d-kpi { border-left: 5px solid var(--d-accent); }
.st-mint .d-t1 { border-left-color: var(--d-t1b); } .st-mint .d-t2 { border-left-color: var(--d-t2b); } .st-mint .d-t3 { border-left-color: var(--d-t3b); }
.st-mint .d-cta { background: #0E7A44; }

.st-candy .d-hero { border-radius: 0 0 32px 32px; }
.st-candy .d-kpi { color: #fff; box-shadow: 0 10px 22px rgba(108,60,233,.18); }
.st-candy .d-kpi span:last-child { color: rgba(255,255,255,.95); }
.st-candy .d-t0 { background: linear-gradient(135deg, #E8457E, #FF7AA8); } .st-candy .d-t1 { background: linear-gradient(135deg, #7B3FE4, #A770FF); }
.st-candy .d-t2 { background: linear-gradient(135deg, #1677C9, #3FA9F5); } .st-candy .d-t3 { background: linear-gradient(135deg, #E0700F, #FFA94D); }
.st-candy .d-act { background: #fff; } .st-candy .d-act:nth-child(5n+1) .d-ic { filter: none; }
.st-candy .d-panel { border-radius: 22px; }

/* ---- login: choose who you are */
.login-pick { padding: 26px 16px 40px; display: grid; gap: 18px; }
.lp-head { display: flex; gap: 14px; align-items: center; justify-content: center; text-align: left; }
.lp-head img { width: 60px; height: 60px; object-fit: contain; }
.lp-head h1 { margin: 0; font-size: 28px; } .lp-head p { margin: 2px 0 0; }
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .lp-cards { grid-template-columns: 1fr; } }
.lp-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 22px; text-decoration: none; color: var(--d-heroink);
  background: linear-gradient(140deg, var(--d-hero1), var(--d-hero2)); box-shadow: 0 10px 28px rgba(16,24,40,.14); border: 1px solid var(--d-line); min-height: 250px; transition: transform .15s; }
.lp-card:hover, .lp-card:focus-visible { transform: translateY(-3px); }
.lp-ic { font-size: 44px; } .lp-card b { font-size: 22px; font-family: var(--hfont); } .lp-card small { font-size: 14px; opacity: .9; line-height: 1.4; }
.lp-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; opacity: .92; display: grid; gap: 3px; }
.lp-go { margin-top: auto; justify-self: start; padding: 10px 18px; border-radius: 999px; background: var(--d-accent); color: #fff; font-weight: 800; }
.lp-card.st-neu { box-shadow: 8px 8px 18px #C9D0DA, -8px -8px 18px #FFFFFF; border: 0; }
.lp-card.st-gradient, .lp-card.st-mint, .lp-card.st-neu { color: var(--d-ink); }

/* ---- login: one role */
.dlogin { background: var(--d-bg); color: var(--d-ink); min-height: 80vh; padding-bottom: 40px; }
.dl-hero { background: linear-gradient(140deg, var(--d-hero1), var(--d-hero2)); color: var(--d-heroink); padding: 18px 0 90px; }
.st-candy .dl-hero, .st-solid .dl-hero { border-radius: 0 0 36px 36px; }
.dl-back { color: inherit; opacity: .85; font-weight: 700; text-decoration: none; display: inline-block; padding: 6px 0; }
.dl-title { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.dl-ic { font-size: 56px; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: rgba(255,255,255,.2); flex: none; }
.st-neu .dl-ic, .st-gradient .dl-ic, .st-mint .dl-ic { background: #fff; box-shadow: 0 6px 16px rgba(16,24,40,.1); }
.dl-title h1 { margin: 0; font-size: clamp(26px, 5vw, 36px); color: inherit; font-family: var(--hfont); } .dl-title p { margin: 4px 0 0; opacity: .9; }
.dl-points { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.dl-points li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 13px; font-weight: 700; }
.st-neu .dl-points li, .st-gradient .dl-points li, .st-mint .dl-points li { background: color-mix(in srgb, var(--d-accent) 12%, #fff); }
.dl-body { margin-top: -64px; max-width: 560px; }
.dl-card { background: var(--d-card); border-radius: 22px; padding: 20px; box-shadow: 0 14px 34px rgba(16,24,40,.14); border: 1px solid var(--d-line); }
.st-neu .dl-card { box-shadow: 10px 10px 22px #C9D0DA, -10px -10px 22px #FFFFFF; border: 0; }
.dlogin .btn.primary { background: var(--d-accent); border-color: var(--d-accent); color: #fff; }
.dlogin .dl-tabs button.on { color: var(--d-accent); border-bottom-color: var(--d-accent); }

/* ---- dashboard theme picker */
.dt-role { margin: 12px 0 18px; } .dt-role > b { display: block; margin-bottom: 8px; }
.dt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dt-card { display: grid; gap: 4px; text-align: left; padding: 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); cursor: pointer; font: inherit; color: var(--text); }
.dt-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.dt-card small { color: var(--muted); font-size: 12px; line-height: 1.3; } .dt-name { font-weight: 800; }
.dt-prev { height: 74px; border-radius: 10px; background: var(--d-bg); position: relative; overflow: hidden; display: grid; grid-template-rows: 26px 1fr; }
.dt-prev .h { background: linear-gradient(135deg, var(--d-hero1), var(--d-hero2)); }
.dt-prev span { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 5px; }
.dt-prev span i { border-radius: 5px; } .dt-prev span i:nth-child(1) { background: var(--d-t0); } .dt-prev span i:nth-child(2) { background: var(--d-t1); }
.dt-prev span i:nth-child(3) { background: var(--d-t2); } .dt-prev span i:nth-child(4) { background: var(--d-t3); }
.dt-prev svg { position: absolute; right: 6px; top: 4px; width: 60px; height: 22px; }
.dt-prev.st-neu .h { background: var(--d-bg); box-shadow: inset 0 -1px 0 #D7DDE6; }

/* Tamil: longer words – smaller labels so nothing breaks inside a word */
html[lang="ta"] .d-act { font-size: 12px; } html[lang="ta"] .d-kpi span:last-child { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .lp-card, a.d-kpi { transition: none; } .lp-card:hover, a.d-kpi:hover { transform: none; } }
.d-chart.fixed { width: auto; max-width: none; height: auto; }

/* ===================================================================== v10 – one design: dashboards, menus, account, bottom bar */
/* account button + menu (top right) */
.acctwrap { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 4px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.acct-btn:hover { border-color: var(--primary); }
.acct-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.acct-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .5px; flex: none; }
.av.big { width: 46px; height: 46px; font-size: 16px; }
@media (max-width: 560px) { .acct-btn .nm, .acct-btn svg { display: none; } .acct-btn { padding: 0 4px; border: 0; background: none; } }
.umenu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(300px, 92vw); background: var(--card); color: var(--text); border-radius: 18px;
  border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(16,24,40,.18); padding: 8px; display: grid; gap: 2px; }
.umenu[hidden] { display: none; }
.um-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.um-head small { display: block; color: var(--muted); font-size: 12px; } .um-head b { display: block; font-size: 16px; line-height: 1.25; }
.umenu a, .umenu button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--text); text-decoration: none; font: inherit; font-weight: 600;
  background: none; border: 0; cursor: pointer; text-align: left; min-height: 48px; }
.umenu a:hover, .umenu button:hover, .umenu a:focus-visible, .umenu button:focus-visible { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.umenu svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.umenu .um-out { color: #9A5B00; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; }
.umenu .um-out svg { color: #9A5B00; }
.drawer-link.out { color: #9A5B00; background: none; border: 0; font: inherit; font-weight: 700; display: flex; gap: 10px; align-items: center; cursor: pointer; width: 100%; text-align: left; }
.drawer-link.out svg { width: 20px; height: 20px; }

/* bottom bar: Dashboard in the centre for signed-in people */
.bottomnav a.centre { position: relative; }
.bottomnav a.centre .ctr { display: grid; place-items: center; width: 46px; height: 46px; margin: -22px auto 2px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 40%, transparent); border: 3px solid var(--card); }
.bottomnav a.centre .ctr svg { width: 22px; height: 22px; }
.bottomnav a.centre.on span { color: var(--primary); font-weight: 800; }

/* dashboards: icons instead of emoji, tiles 20% lower, Quick actions right under Today */
.d-kpi { min-height: 86px; padding: 11px 12px; gap: 3px; }
.d-kpi b { font-size: clamp(21px, 3vw, 27px); }
.d-kpi .d-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.55); color: currentColor; margin-bottom: 2px; font-size: 0; }
.d-kpi .d-ic svg { width: 18px; height: 18px; }
.st-solid .d-kpi .d-ic, .st-mint .d-kpi .d-ic, .st-gradient .d-kpi .d-ic { background: rgba(255,255,255,.7); }
.st-dark .d-kpi .d-ic, .st-candy .d-kpi .d-ic { background: rgba(255,255,255,.18); }
.st-dark .d-kpi b { font-size: clamp(26px, 3.8vw, 36px); }
.st-neu .d-kpi .d-ic, .st-ring .d-kpi .d-ic { width: 36px; height: 36px; font-size: 0; }
.st-ring .d-kpi .d-ic { border-width: 3px; }
.st-neu .d-t0 .d-ic { color: var(--d-t0b); } .st-neu .d-t1 .d-ic { color: var(--d-t1b); } .st-neu .d-t2 .d-ic { color: var(--d-t2b); } .st-neu .d-t3 .d-ic { color: var(--d-t3b); }
.dash .d-hero { padding: 16px 0 58px; }
.d-hello { gap: 12px; } .d-hello h1 { font-size: clamp(21px, 3.6vw, 28px); } .d-logo { width: 62px; height: 62px; }
.d-kpis { margin-top: 14px; gap: 10px; }
.d-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
@media (max-width: 860px) { .d-top { grid-template-columns: 1fr; } }
.d-today .d-ringrow { gap: 14px; } .d-today .d-ringtxt { font-size: 14px; gap: 6px; }
.d-panel .d-ph h3 { font-size: 16px; letter-spacing: .1px; }
.d-acts { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.d-act { min-height: 82px; padding: 12px 6px; border-radius: 16px; gap: 6px; font-size: 12.5px; }
.d-act .d-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 0;
  background: color-mix(in srgb, var(--d-accent) 13%, var(--d-card)); color: var(--d-accent); }
.d-act .d-ic svg { width: 20px; height: 20px; }
.d-act:nth-child(4n+2) .d-ic { background: color-mix(in srgb, var(--d-s2) 14%, var(--d-card)); color: var(--d-s2); }
.d-act:nth-child(4n+3) .d-ic { background: var(--d-t2); color: var(--d-t2b); }
.d-act:nth-child(4n+4) .d-ic { background: var(--d-t3); color: var(--d-t3b); }
.st-candy .d-act:nth-child(4n+3) .d-ic, .st-candy .d-act:nth-child(4n+4) .d-ic, .st-dark .d-act:nth-child(4n+3) .d-ic, .st-dark .d-act:nth-child(4n+4) .d-ic {
  background: color-mix(in srgb, var(--d-accent) 13%, var(--d-card)); color: var(--d-accent); }
.d-row .d-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 0; flex: none;
  background: color-mix(in srgb, var(--d-accent) 11%, var(--d-card)); color: var(--d-accent); }
.d-row .d-ic svg { width: 18px; height: 18px; }
.d-attn { border-left: 4px solid #B26A00; } .d-attn .d-row .d-ic { background: #FFF7E6; color: #9A5B00; } .d-attn .d-badge { background: #FFE9B8; color: #7A4A00; }
.d-ok { display: flex; gap: 8px; align-items: center; } .d-ok svg { width: 20px; height: 20px; }
.d-cta { display: flex; align-items: center; gap: 12px; text-align: left; }
.d-cta svg { width: 22px; height: 22px; flex: none; } .d-cta span { flex: 1; } .d-cta b { font-size: 20px; }
.d-status { display: inline-flex; align-items: center; gap: 6px; } .d-status svg { width: 16px; height: 16px; }
.lp-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 0; }
.lp-ic svg { width: 34px; height: 34px; }
.lp-card.st-gradient .lp-ic, .lp-card.st-mint .lp-ic, .lp-card.st-neu .lp-ic { background: #fff; color: var(--d-accent); }
.dl-ic { font-size: 0; } .dl-ic svg { width: 44px; height: 44px; }
.st-gradient .dl-ic, .st-mint .dl-ic, .st-neu .dl-ic { color: var(--d-accent); }
.page-title svg { width: 28px; height: 28px; vertical-align: -4px; color: var(--primary); }
.card h3 svg { width: 20px; height: 20px; vertical-align: -3px; color: var(--primary); }
.btn svg { width: 18px; height: 18px; vertical-align: -3px; }
.sync { margin: 10px 0 14px; display: grid; gap: 6px; }
/* Tamil: dashboard text sizes */
html[lang="ta"] .d-kpi .d-lab { font-size: 11.5px; line-height: 1.35; }
html[lang="ta"] .d-act { font-size: 11.5px; }
html[lang="ta"] .d-hello h1 { font-size: clamp(19px, 3.2vw, 25px); }
html[lang="ta"] .d-panel .d-ph h3 { font-size: 15px; }
html[lang="ta"] .bottomnav a.centre span { font-size: 10px; }
/* header: keep the school name and the menu apart whatever the font */
.brand { flex: 0 1 auto; } .brand span { min-width: 0; }
.brand b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 250px; }
@media (max-width: 1500px) { .acct-btn .nm, .acct-btn > svg { display: none; } .acct-btn { padding: 0 4px; } }
@media (min-width: 1101px) and (max-width: 1400px) { .brand b { font-size: 16px; max-width: 200px; } .nav > ul > li > button, .nav-link { padding: 10px 7px; font-size: 13.5px; } }
/* parent attendance: ring + legend on top, the month below at full width */
#dcal .d-ringrow, .card .d-ringrow { flex-direction: column; align-items: stretch; }
#dcal .d-ringrow > .donut, .card .d-ringrow > .donut { align-self: center; }
.cal-grid { max-width: 380px; margin-inline: auto; }

/* ===================================================================== v11 */
/* Header: on wide screens the full school name and motto sit on the first row, the menu (About Us, Academics…) on its own row below –
   nothing can overlap whatever the font or theme. */
@media (min-width: 1200px) {
  .mainbar .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 10px; }
  .mainbar .brand { flex: 1 1 auto; }
  .mainbar .brand b { display: block; -webkit-line-clamp: unset; max-width: none; overflow: visible; font-size: 23px; white-space: nowrap; }
  .mainbar .brand small { display: block; white-space: nowrap; }
  .mainbar .brand img { width: 52px; }
  .mainbar .actions { order: 2; }
  .mainbar .nav { order: 3; flex: 1 0 100%; margin: 8px 0 0; border-top: 1px solid var(--line); }
  .mainbar .nav > ul { justify-content: center; gap: 6px; padding: 4px 0; }
  .mainbar .nav > ul > li > button, .mainbar .nav-link { padding: 10px 14px; font-size: 14.5px; }
  .acct-btn .nm, .acct-btn > svg { display: inline; }
}
/* Welcome card: readable in every theme – card colour with a coloured edge on pages; frosted dark glass on top of photos. */
.welcome { background: var(--card) !important; color: var(--text) !important; border: 1px solid var(--line); border-left: 5px solid var(--primary); box-shadow: var(--shadow, none); }
.welcome .muted { color: var(--muted) !important; opacity: 1 !important; }
:is(.ps-hero, .lp-hero, .fb-hero, .gl-hero, .vj-hero, .sp-hero, .hr) .welcome { background: rgba(10, 14, 28, .55) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.25); border-left: 5px solid var(--secondary);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
:is(.ps-hero, .lp-hero, .fb-hero, .gl-hero, .vj-hero, .sp-hero, .hr) .welcome .muted { color: rgba(255,255,255,.88) !important; }
/* v11.5 – Life at VHMS: captions sit on the photos; under them two round arrows, a line that shows how far the photos have moved, the count and one pause button */
.marq-item { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; }
.marq-item img { margin-bottom: 0; border-radius: 0; }
.marq-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; background: linear-gradient(transparent, rgba(8, 20, 48, .78)); color: #fff; }
.marq-ctl { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 16px auto 0; }
.mq-b { flex: none; min-width: 0; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--primary);
  box-shadow: 0 2px 8px rgba(16, 24, 40, .10); cursor: pointer; letter-spacing: 0; transition: background-color .15s, color .15s, transform .15s; }
.mq-b:hover, .mq-b:focus-visible { background: color-mix(in srgb, var(--primary) 10%, var(--card)); }
.mq-b:active { transform: scale(.94); }
.mq-b.mq-play { background: var(--primary); color: var(--onprimary); border-color: var(--primary); }
.mq-b.mq-play:hover { background: var(--primary); filter: brightness(1.1); }
.mq-track { flex: 1; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mq-track i { display: block; height: 100%; width: 8%; border-radius: 99px; background: linear-gradient(90deg, #D99A00, #F2C230); transition: width .35s ease; }
.mq-count { flex: none; min-width: 48px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .mq-track i, .mq-b { transition: none; } }

/* ===================== v11 ===================== */
/* Themes 27 Smart Hub and 28 Morning Paper */
[data-theme="27"] { --primary:#3B3FD8; --secondary:#14B8A6; --tertiary:#F59E0B; --bg:#F3F5FB; --card:#FFFFFF; --text:#141938; --muted:#55607A;
  --bar:#262A9E; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#06302B; --radius:18px; --line:#E2E6F3;
  --hfont:'Manrope', system-ui, sans-serif; --bfont:'Manrope', system-ui, sans-serif; --cardborder:1px solid #E2E6F3; --shadow:0 8px 24px rgba(38,42,158,.08); }
[data-theme="28"] { --primary:#B3261E; --secondary:#111827; --tertiary:#1D4ED8; --bg:#FBF8F1; --card:#FFFEFA; --text:#111827; --muted:#4B5563;
  --bar:#111827; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#FFFFFF; --radius:4px; --line:#E5DFD0;
  --hfont:'Newsreader', Georgia, serif; --bfont:'Source Sans 3', system-ui, sans-serif; --cardborder:1px solid #E5DFD0; --shadow:none; }

/* Layout thumbnails in the admin picker */
.lc-hub { grid-template-columns: 1.2fr 1fr; grid-template-rows: 1.2fr 1fr; } .lc-hub i:nth-child(3), .lc-hub i:nth-child(4) { background: #B9BDF5; }
.lc-feed { grid-template-columns: 2fr 1fr; grid-template-rows: 16px 1fr 1fr; } .lc-feed i:nth-child(1) { grid-column: span 2; background: #333; } .lc-feed i:nth-child(2) { grid-row: span 2; }

/* Smart Hub (website): hero with a "where to?" box, eight service tiles, notice board + week ahead */
.hub { padding: 26px 0 8px; }
.hub-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.hub-hello { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--secondary))); color: var(--onprimary); border-radius: calc(var(--radius) + 6px); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.hub-hello .welcome { margin: 0 0 6px; }
.hub-date { font-size: 13px; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.hub-hello h1 { font-family: var(--hfont); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; margin: 0; color: inherit; }
.hub-motto { margin: 0; opacity: .9; }
.hub-search { margin-top: auto; display: flex; align-items: center; gap: 10px; background: #fff; color: #1B1F3B; border-radius: 14px; padding: 6px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.hub-search svg { width: 20px; height: 20px; color: var(--primary); }
.hub-search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 16px; padding: 10px 0; background: transparent; color: inherit; min-width: 0; }
.hub-photo { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; min-height: 280px; }
.hub-photo .slides { position: absolute; inset: 0; height: 100%; }
.hub-photo .slides img { height: 100%; object-fit: cover; }
.hub-chip { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); color: #141938; font-weight: 800; padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.hub-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.hub-tile { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--radius); background: var(--card); border: var(--cardborder); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hub-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20,25,56,.12); }
.hub-tile b { font-size: 16px; } .hub-tile small { color: var(--muted); font-size: 13px; }
.hub-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; }
.hub-ic svg { width: 22px; height: 22px; }
.ht0 .hub-ic { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.ht1 .hub-ic { background: color-mix(in srgb, var(--secondary) 18%, transparent); color: color-mix(in srgb, var(--secondary) 70%, #000); }
.ht2 .hub-ic { background: color-mix(in srgb, var(--tertiary) 20%, transparent); color: color-mix(in srgb, var(--tertiary) 70%, #000); }
.ht3 .hub-ic { background: color-mix(in srgb, #4F46E5 14%, transparent); color: #4336A8; }
.hub-none { grid-column: 1 / -1; text-align: center; }
.hub-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.hub-board, .hub-week { background: var(--card); border: var(--cardborder); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.hub-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hub-h h2 { font-size: 18px; margin: 0; display: flex; gap: 8px; align-items: center; } .hub-h h2 svg { width: 20px; height: 20px; color: var(--primary); }
.hub-h a { font-size: 14px; font-weight: 700; color: var(--primary); text-decoration: none; }
.hub-note { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hub-note:first-of-type { border-top: 0; } .hub-note small { color: var(--muted); white-space: nowrap; }
.hub-pin { width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary) 20%, transparent); }
.hub-ev { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.hub-ev small { display: block; color: var(--muted); }
.hub-day { width: 50px; flex: none; text-align: center; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, var(--card)); color: var(--primary); font-size: 12px; text-transform: uppercase; padding: 6px 0; font-weight: 700; }
.hub-day b { display: block; font-size: 20px; line-height: 1; }
@media (max-width: 860px) {
  .hub-hero, .hub-cols { grid-template-columns: 1fr; }
  .hub-photo { min-height: 200px; order: -1; }
  .hub-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hub-hello { padding: 20px; }
}

/* News Feed (website): newspaper front page */
.np { padding: 22px 0 8px; }
.np-mast { text-align: center; border-top: 4px double var(--text); border-bottom: 4px double var(--text); padding: 10px 0 14px; margin: 10px 0 18px; }
.np-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; flex-wrap: wrap; }
.np-mast h1 { font-family: var(--hfont); font-size: clamp(28px, 4.6vw, 58px); line-height: 1.05; margin: 12px 0 4px; color: var(--text); letter-spacing: -.01em; }
.np-mast p { margin: 0; font-style: italic; color: var(--primary); font-weight: 600; }
.np-grid { display: grid; grid-template-columns: 1.6fr 1fr 0.9fr; gap: 0; }
.np-grid > * { padding: 0 18px; border-left: 1px solid var(--line); min-width: 0; }
.np-grid > :first-child { padding-left: 0; border-left: 0; } .np-grid > :last-child { padding-right: 0; }
.np-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: var(--radius); }
.np-kind { display: block; font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 4px; }
.np-lead h2 { font-family: var(--hfont); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; margin: 0 0 8px; }
.np-lead h2 a, .np-item { color: var(--text); text-decoration: none; }
.np-lead p { color: var(--text); opacity: .88; font-size: 16.5px; line-height: 1.6; }
.np-more { font-weight: 700; color: var(--primary); text-decoration: none; }
.np-h { font-family: var(--hfont); font-size: 20px; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--text); }
.np-item { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.np-item .np-kind { margin: 0; } .np-item b { font-family: var(--hfont); font-size: 18px; line-height: 1.25; } .np-item span:last-child { color: var(--muted); font-size: 14.5px; }
.np-item:hover b { color: var(--primary); }
.np-box { display: block; margin-bottom: 16px; }
.np-adm { background: var(--secondary); color: var(--onsecondary); padding: 16px; border-radius: var(--radius); }
.np-adm .np-kind { color: inherit; opacity: .8; margin-top: 0; } .np-adm b { display: block; font-family: var(--hfont); font-size: 22px; margin-bottom: 12px; }
.np-ev { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.np-ev b { font-family: var(--hfont); font-size: 24px; width: 44px; text-align: center; line-height: 1; color: var(--primary); }
.np-ev b small { display: block; font-size: 11px; text-transform: uppercase; font-family: var(--bfont); color: var(--muted); }
.np-photo { text-decoration: none; color: var(--text); } .np-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.np-photo span { display: block; font-size: 13px; font-weight: 700; margin-top: 6px; }
@media (max-width: 900px) {
  .np-grid { grid-template-columns: 1fr; }
  .np-grid > * { padding: 0; border-left: 0; margin-bottom: 18px; }
  .np-meta { justify-content: center; }
}

/* Admin › preview builder */
.look-builder h3 { margin-top: 0; }
.look-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.look-grid label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.look-swatch { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius); background: var(--bg); color: var(--text); border: 1px solid var(--line); border-left: 6px solid var(--primary); }
.look-swatch b { font-family: var(--hfont); font-size: 18px; flex: 1 1 100%; color: var(--primary); }
.look-swatch span { color: var(--muted); flex: 1; } .look-swatch i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 640px) { .look-grid { grid-template-columns: 1fr; } }
.demo-banner.previewbar { background: #111827; color: #fff; } .demo-banner.previewbar a { color: #FDE68A; font-weight: 700; margin-left: 6px; }

/* Website dashboards: the home-page photo shows softly through (panels about 15–20 % see-through, text stays fully solid) */
.dash { position: relative; isolation: isolate; background: var(--d-bg); }
.dash::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--d-bg) 72%, transparent), color-mix(in srgb, var(--d-bg) 84%, transparent)), var(--dash-photo, url('img/infra_aerial.jpg')) center / cover no-repeat; }
@supports (background-attachment: fixed) { @media (min-width: 900px) { .dash::before { background-attachment: fixed; } } }
.dash .d-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--d-hero1) 88%, transparent), color-mix(in srgb, var(--d-hero2) 88%, transparent)); }
.dash .d-panel, :where(.dash) .d-kpi { background: color-mix(in srgb, var(--d-card) 84%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
@media (prefers-reduced-transparency: reduce) { .dash .d-panel, .dash .d-kpi { background: var(--d-card); backdrop-filter: none; } .dash::before { display: none; } }
.look-grid select { font: inherit; font-weight: 500; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); min-height: 44px; }
.look-builder .row { justify-content: flex-start; }
.dev-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dev-row > span { font-size: 22px; }
.refbox { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.refbox summary { cursor: pointer; }

/* v11.3 review: compact attendance rows – number, name, big P / A buttons, running count */
.att-compact { padding: 6px 4px 6px 10px; gap: 8px; } .att-n { width: 24px; color: var(--muted); font-size: 13px; }
.att-pa { position: relative; width: 48px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; cursor: pointer; font-weight: 800; font-size: 17px; flex: none; }
.att-pa input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.att-pa.P { color: #1B5E20; } .att-pa.A { color: #9A5B00; }
.att-pa.P:has(input:checked) { background: #1B5E20; border-color: #1B5E20; color: #fff; } .att-pa.A:has(input:checked) { background: #9A5B00; border-color: #9A5B00; color: #fff; }
.att-pa:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.att-count { display: flex; gap: 8px; margin: 8px 0; } .att-count span { flex: 1; text-align: center; border-radius: 12px; padding: 8px; font-weight: 600; font-size: 13px; background: var(--line); }
.att-count .cp { background: #1B5E201a; color: #1B5E20; } .att-count .ca { background: #9A5B001a; color: #9A5B00; }

/* v11.3: My notes (teachers and admin) */
.note-grid { columns: 2 170px; column-gap: 12px; }
.note-card { display: block; break-inside: avoid; margin: 0 0 12px; border-radius: 16px; padding: 12px 14px; border: 1px solid rgba(0,0,0,.08); color: #1F2937; text-decoration: none; }
.note-card b { display: block; font-size: 15px; margin-bottom: 4px; } .note-card p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.4; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.note-card small { display: block; font-size: 11.5px; color: #6B7280; }
.note-rm { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.8); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; color: #1F2937; margin-bottom: 6px; }
.note-rm svg { width: 13px; height: 13px; } .note-rm.big { font-size: 14px; padding: 6px 12px; margin-top: 14px; }
.note-panel { display: grid; gap: 10px; } .note-panel .note-card { margin: 0; }
.note-new { display: grid; place-items: center; height: 40px; border-radius: 999px; border: 1.5px dashed var(--primary); color: var(--primary); font-weight: 700; text-decoration: none; }
.note-search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 46px; margin: 8px 0; }
.note-search input { border: 0; outline: 0; background: transparent; flex: 1; font: inherit; color: inherit; } .note-search svg { width: 18px; height: 18px; opacity: .7; }
.note-h { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--muted); margin: 12px 0 6px; }
.note-fab { position: sticky; bottom: 84px; float: right; margin-top: 8px; }
.note-edit { border-radius: 20px; padding: 12px 18px 0; margin-top: 12px; min-height: 70vh; display: flex; flex-direction: column; color: #1F2937; }
.note-tools { display: flex; align-items: center; gap: 4px; } .note-tools .btn { color: #1F2937; } .note-tools svg { width: 20px; height: 20px; }
.note-tools [aria-pressed="true"] { background: rgba(0,0,0,.08); border-radius: 999px; }
.note-title { border: 0; background: transparent; font-family: inherit; line-height: 1.3; font-size: 24px; font-weight: 700; color: #1F2937; outline: 0; padding: 6px 0; }
.note-body { border: 0; background: transparent; font-size: 16px; line-height: 1.5; color: #1F2937; outline: 0; resize: none; flex: 1; min-height: 40vh; padding: 6px 0; font-family: inherit; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(0,0,0,.08); padding: 10px 0; margin-top: auto; flex-wrap: wrap; }
.note-cols { display: flex; gap: 8px; } .note-cols button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); cursor: pointer; } .note-cols button.on { outline: 2px solid #1F2937; outline-offset: 1px; }
.note-opt { display: flex; align-items: center; gap: 10px; padding: 10px 4px; flex-wrap: wrap; } .note-opt .muted { margin-left: auto; }

/* v11.3 review (admin): class teacher line and teacher names in the class timetable */
.ctline { margin: 8px 0 4px; font-size: 15px; }
.ctline b { font-weight: 600; }
.tt-who { font-weight: 500; font-size: .85em; }
.tt-who.sub { color: #9A5B00; }

/* v11.4: theme 29 – School Blue & Gold (navy, royal blue, gold, green; no red) */
[data-theme="29"] { --primary:#0B3D91; --secondary:#D99A00; --tertiary:#1E6B3A; --bg:#F4F7FC; --card:#FFFFFF; --text:#12233F; --muted:#55637A;
  --bar:#0B3D91; --onbar:#FFFFFF; --onprimary:#FFFFFF; --onsecondary:#2B1F00; --radius:16px; --line:#DCE4EF;
  --hfont:'Nunito Sans', system-ui, sans-serif; --bfont:'Nunito Sans', system-ui, sans-serif; --cardborder:1px solid #DCE4EF; --shadow:0 2px 10px rgba(11,61,145,.07); }
table.reg td.m-L { color: #1456B8; background: #E4EEFB; }
