/* =====================================================================
   3CS Class Hub - design tokens and base

   The look is a school notebook: graph paper underneath, clean white
   pages on top, ink for text, and the three colours from the Itz'at
   STEAM Academy logo doing distinct jobs:

     plum   (--brand)   the school, primary actions, the active section
     orange (--now)     time: "now", today, anything live or urgent-ish
     blue   (--info)    links, information, the calendar

   Shapes follow one rule: pages/cards 18px, controls 12px, chips and
   avatars fully round.
   ===================================================================== */

:root{
  color-scheme: light;

  /* paper and ink */
  --bg:            #F3F3F6;
  --grid:          rgba(52, 76, 160, .075);
  --grid-major:    rgba(52, 76, 160, .11);
  --surface:       #FEFEFD;
  --surface-2:     #F7F6FA;
  --surface-3:     #EFEDF4;
  --line:          #E3E0EA;
  --line-strong:   #CFCBDA;
  --ink:           #1C1830;
  --ink-2:         #4E4964;
  --ink-3:         #6F6A83;
  --ink-4:         #9A95AB;

  /* brand */
  --brand:         #5B2B8C;
  --brand-hover:   #4A2175;
  --brand-ink:     #532680;
  --brand-soft:    #F0E9F8;
  --brand-line:    #D9C8EE;
  --on-brand:      #FFFFFF;

  --now:           #E8641C;
  --now-ink:       #A9460C;
  --now-soft:      #FDEDE2;
  --now-line:      #F6CBAE;

  --info:          #2456D6;
  --info-ink:      #1D47B5;
  --info-soft:     #E6EDFD;
  --info-line:     #C3D3F8;

  --good:          #177A56;
  --good-soft:     #E3F4EC;
  --bad:           #C23447;
  --bad-soft:      #FBE7EA;
  --warn:          #9A6A00;
  --warn-soft:     #FFF3D1;

  /* the highlighter used to mark "today" */
  --marker:        rgba(255, 214, 64, .62);
  --bg-wash: linear-gradient(180deg, rgba(246, 244, 250, .1) 0%, transparent 30%, rgba(246, 244, 250, .5) 100%), linear-gradient(90deg, rgba(246, 244, 250, .88) 0%, rgba(246, 244, 250, .66) 38%, rgba(246, 244, 250, .26) 76%, rgba(246, 244, 250, .14) 100%);

  /* shadows are tinted with the ink colour, never pure black */
  --sh-1: 0 1px 0 rgba(28, 24, 48, .04), 0 1px 2px rgba(28, 24, 48, .06);
  --sh-2: 0 1px 0 rgba(28, 24, 48, .04), 0 8px 24px -14px rgba(40, 22, 80, .28);
  --sh-3: 0 2px 4px rgba(28, 24, 48, .05), 0 24px 60px -20px rgba(40, 22, 80, .38);
  --sh-pop: 0 18px 50px -12px rgba(30, 16, 64, .35), 0 2px 6px rgba(30, 16, 64, .08);

  /* shape */
  --r-card: 18px;
  --r-ctl:  12px;
  --r-sm:   8px;
  --r-pill: 999px;

  /* type */
  --font:    "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --hand:    "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* motion */
  --ease:     cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring:   cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: .16s;
  --t:      .26s;
  --t-slow: .5s;

  /* layers, in one place */
  --z-header: 40;
  --z-fab:    60;
  --z-chat:   70;
  --z-notify: 80;
  --z-sheet:  90;
  --z-toast:  100;
  --z-intro:  200;

  --header-h: 64px;
  --bottom-h: 0px;
  --page-max: 1240px;
}

/* ---------------------------------------------------------- dark ---- */
:root[data-theme="dark"]{
  color-scheme: dark;
  --bg:            #12111A;
  --grid:          rgba(160, 170, 255, .045);
  --grid-major:    rgba(160, 170, 255, .07);
  --surface:       #1B1925;
  --surface-2:     #221F2E;
  --surface-3:     #2A2638;
  --line:          #302C40;
  --line-strong:   #433D57;
  --ink:           #F2F0F8;
  --ink-2:         #C9C4D8;
  --ink-3:         #A29CB6;
  --ink-4:         #7C7690;

  --brand:         #A77BE0;
  --brand-hover:   #B993EA;
  --brand-ink:     #C4A2F2;
  --brand-soft:    #2C2140;
  --brand-line:    #4A3668;
  --on-brand:      #150F22;

  --now:           #FF8A4C;
  --now-ink:       #FFA774;
  --now-soft:      #3A2419;
  --now-line:      #6A3A20;

  --info:          #7EA3FF;
  --info-ink:      #9DB9FF;
  --info-soft:     #1C2544;
  --info-line:     #2E3E70;

  --good:          #4FCB95;
  --good-soft:     #16302A;
  --bad:           #FF7A8A;
  --bad-soft:      #3A1D24;
  --warn:          #F2C14E;
  --warn-soft:     #352C14;

  --marker:        rgba(255, 214, 64, .26);
  --bg-wash: linear-gradient(180deg, rgba(14, 10, 24, .2) 0%, transparent 30%, rgba(14, 10, 24, .6) 100%), linear-gradient(90deg, rgba(14, 10, 24, .9) 0%, rgba(14, 10, 24, .74) 38%, rgba(14, 10, 24, .46) 76%, rgba(14, 10, 24, .38) 100%);

  --sh-1: 0 1px 0 rgba(0, 0, 0, .25);
  --sh-2: 0 1px 0 rgba(0, 0, 0, .2), 0 10px 26px -14px rgba(0, 0, 0, .7);
  --sh-3: 0 2px 4px rgba(0, 0, 0, .25), 0 26px 60px -20px rgba(0, 0, 0, .8);
  --sh-pop: 0 20px 50px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme: dark;
    --bg:            #12111A;
    --grid:          rgba(160, 170, 255, .045);
    --grid-major:    rgba(160, 170, 255, .07);
    --surface:       #1B1925;
    --surface-2:     #221F2E;
    --surface-3:     #2A2638;
    --line:          #302C40;
    --line-strong:   #433D57;
    --ink:           #F2F0F8;
    --ink-2:         #C9C4D8;
    --ink-3:         #A29CB6;
    --ink-4:         #7C7690;
    --brand:         #A77BE0;
    --brand-hover:   #B993EA;
    --brand-ink:     #C4A2F2;
    --brand-soft:    #2C2140;
    --brand-line:    #4A3668;
    --on-brand:      #150F22;
    --now:           #FF8A4C;
    --now-ink:       #FFA774;
    --now-soft:      #3A2419;
    --now-line:      #6A3A20;
    --info:          #7EA3FF;
    --info-ink:      #9DB9FF;
    --info-soft:     #1C2544;
    --info-line:     #2E3E70;
    --good:          #4FCB95;
    --good-soft:     #16302A;
    --bad:           #FF7A8A;
    --bad-soft:      #3A1D24;
    --warn:          #F2C14E;
    --warn-soft:     #352C14;
    --marker:        rgba(255, 214, 64, .26);
    --bg-wash: linear-gradient(180deg, rgba(14, 10, 24, .2) 0%, transparent 30%, rgba(14, 10, 24, .6) 100%), linear-gradient(90deg, rgba(14, 10, 24, .9) 0%, rgba(14, 10, 24, .74) 38%, rgba(14, 10, 24, .46) 76%, rgba(14, 10, 24, .38) 100%);
    --sh-1: 0 1px 0 rgba(0, 0, 0, .25);
    --sh-2: 0 1px 0 rgba(0, 0, 0, .2), 0 10px 26px -14px rgba(0, 0, 0, .7);
    --sh-3: 0 2px 4px rgba(0, 0, 0, .25), 0 26px 60px -20px rgba(0, 0, 0, .8);
    --sh-pop: 0 20px 50px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
  }
}

/* ------------------------------------------------------------ base -- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html, body{ margin: 0; }
body{
  min-height: 100dvh;
  font-family: var(--font);
  font-size: .96875rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  /* graph paper: a fine grid with a stronger line every fifth square */
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: var(--bottom-h);
}
/* ------------------------------------------------ campus background --
   A real photo of the campus behind everything (js/campus.js), under a
   wash that keeps text readable. "paper" in Settings brings the grid back. */
.campus-bg{
  position: fixed;
  inset: -22px;
  z-index: -1;
  display: none;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
  /* follows the pointer a little (js/fx.js sets --px/--py from -1 to 1) */
  transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -9px), 0);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
html.campus-on .campus-bg{ display: block; }
html.campus-on body{ background-image: none; }
.campus-bg i{
  position: absolute;
  inset: -2% -2% -14% -2%;
  background-size: cover;
  background-position: center 38%;
  opacity: 0;
  transition: opacity 1.3s var(--ease);
}
/* A new photo arrives as an architect's blueprint and develops into the real
   building while the camera settles, then keeps a slow drift going. */
.campus-bg i.on{
  opacity: 1;
  animation: bgDevelop 2.1s cubic-bezier(.16, .8, .24, 1) both, bgDrift 46s 2.1s ease-in-out infinite alternate;
}
@keyframes bgDevelop{
  0%{ transform: scale(1.16); filter: grayscale(1) sepia(1) hue-rotate(178deg) saturate(2.4) brightness(1.08) contrast(.82); }
  45%{ filter: grayscale(.55) sepia(.5) hue-rotate(178deg) saturate(1.6) brightness(1.04) contrast(.9); }
  100%{ transform: scale(1.02); filter: none; }
}
@keyframes bgDrift{ from{ transform: scale(1.02); } to{ transform: scale(1.08) translate(-1%, -.8%); } }
/* the blueprint grid that the photo develops out of */
.cb-plan{
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  background-image:
    linear-gradient(rgba(36, 86, 214, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 86, 214, .22) 1px, transparent 1px),
    linear-gradient(rgba(36, 86, 214, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 86, 214, .1) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.campus-bg.plan .cb-plan{ animation: planFade 2.1s ease-out both; }
@keyframes planFade{ 0%{ opacity: 1; transform: scale(1.04); } 100%{ opacity: 0; transform: scale(1); } }
/* the further down you read, the calmer the photo gets */
.cb-depth{ position: absolute; inset: 0; z-index: 4; opacity: 0; background: var(--bg); }
/* a faint plum-to-orange grade over the photo, so it sits in the school colours */
.campus-bg::before{ content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(155deg, rgba(91, 43, 140, .34), rgba(232, 100, 28, .2)); mix-blend-mode: soft-light; }
.campus-bg::after{ content: ""; position: absolute; inset: 0; z-index: 2; background: var(--bg-wash); }
/* scroll-linked depth, where the browser can do it without JavaScript:
   the photo rises slower than the page and the wash thickens as you read */
@supports (animation-timeline: scroll()){
  html:not(.reduce-motion) .campus-bg i.on{
    animation: bgDevelop 2.1s cubic-bezier(.16, .8, .24, 1) both, bgDrift 46s 2.1s ease-in-out infinite alternate, bgRise linear both;
    animation-timeline: auto, auto, scroll(root);
  }
  html:not(.reduce-motion) .cb-depth{ animation: depthIn linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
}
@keyframes bgRise{ to{ translate: 0 -9vh; } }
@keyframes depthIn{ to{ opacity: .42; } }
html.reduce-motion .campus-bg{ transform: none; }
html.reduce-motion .cb-plan{ display: none; }
@media (max-width: 760px){
  .campus-bg i{ background-position: 42% 40%; }
  /* on a phone the words run the full width, so the wash is more even */
  :root:not([data-theme="dark"]) .campus-bg::after{ background: linear-gradient(180deg, rgba(246, 244, 250, .6), rgba(246, 244, 250, .78) 30%, rgba(246, 244, 250, .86)); }
}
@media (max-width: 760px) and (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .campus-bg::after{ background: linear-gradient(180deg, rgba(14, 10, 24, .7), rgba(14, 10, 24, .84) 30%, rgba(14, 10, 24, .9)); }
}
@media (max-width: 760px){
  :root[data-theme="dark"] .campus-bg::after{ background: linear-gradient(180deg, rgba(14, 10, 24, .7), rgba(14, 10, 24, .84) 30%, rgba(14, 10, 24, .9)); }
}
img, svg, canvas, video{ display: block; max-width: 100%; }
button, input, select, textarea{ font: inherit; color: inherit; }
button{ cursor: pointer; }
button:disabled{ cursor: default; }
a{ color: var(--info-ink); text-underline-offset: 2px; }
a:hover{ text-decoration-thickness: 2px; }
p{ margin: 0 0 .7em; }
h1, h2, h3, h4{
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h2{ font-size: 1.28rem; }
h3{ font-size: 1.05rem; }
p, li{ text-wrap: pretty; }
code, kbd, pre{ font-family: var(--mono); font-size: .88em; }
kbd{
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: .72rem;
  line-height: 1.4;
}
::selection{ background: var(--brand-soft); color: var(--ink); }
[hidden]{ display: none !important; }

:focus{ outline: none; }
:focus-visible{
  outline: 2.5px solid var(--info);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}
.skip-link{
  position: fixed; left: 12px; top: -60px; z-index: var(--z-toast);
  background: var(--ink); color: var(--surface);
  padding: 10px 14px; border-radius: var(--r-ctl);
  font-weight: 700; text-decoration: none;
  transition: top var(--t) var(--ease);
}
.skip-link:focus{ top: 12px; }

/* icons from the sprite: one stroke weight everywhere */
.ic{
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic.sm{ width: 16px; height: 16px; }
.ic.lg{ width: 24px; height: 24px; }
.ic.big{ width: 40px; height: 40px; stroke-width: 1.5; }

.mono{ font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hand{ font-family: var(--hand); font-weight: 700; letter-spacing: 0; }
.tnum{ font-variant-numeric: tabular-nums; }

/* hide the page until the first real render is in place, so sections don't
   jump around while they fill in (the head script has a failsafe) */
html:not(.booted) main.wrap,
html:not(.booted) footer.site-foot{ visibility: hidden; }

@media (prefers-reduced-motion: reduce){
  .campus-bg{ transform: none !important; }
  .campus-bg i.on, .cb-depth{ animation: none !important; }
  .cb-plan{ display: none; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after{
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

/* ------------------------------------------------ make it yours --
   Accent colours, text size, density and glass cards (js/layout.js). */
:root[data-accent="ocean"]{ --brand: #1F5FBF; --brand-hover: #184C99; --brand-ink: #1A4FA0; --brand-soft: #E6EEFA; --brand-line: #C4D6F2; }
:root[data-accent="ocean"][data-theme="dark"]{ --brand: #6FA3F0; --brand-hover: #8BB5F4; --brand-ink: #9EC2F7; --brand-soft: #1C2A42; --brand-line: #2E4468; }
:root[data-accent="forest"]{ --brand: #1E7A4C; --brand-hover: #186240; --brand-ink: #1B6B43; --brand-soft: #E3F3EA; --brand-line: #BFE3CF; }
:root[data-accent="forest"][data-theme="dark"]{ --brand: #5CC48D; --brand-hover: #78D1A2; --brand-ink: #8FDCB3; --brand-soft: #16302A; --brand-line: #25513F; }
:root[data-accent="sunset"]{ --brand: #C4501A; --brand-hover: #A64313; --brand-ink: #B04716; --brand-soft: #FBEADF; --brand-line: #F2CBB2; }
:root[data-accent="sunset"][data-theme="dark"]{ --brand: #F08A55; --brand-hover: #F4A176; --brand-ink: #F6B592; --brand-soft: #3A2418; --brand-line: #5C3825; }
:root[data-accent="rose"]{ --brand: #B8336A; --brand-hover: #9A2958; --brand-ink: #A52E5F; --brand-soft: #FAE6EE; --brand-line: #F0C2D4; }
:root[data-accent="rose"][data-theme="dark"]{ --brand: #EE78A6; --brand-hover: #F295B9; --brand-ink: #F5AECA; --brand-soft: #3A1A28; --brand-line: #5C2A40; }
@media (prefers-color-scheme: dark){
  :root[data-accent="ocean"]:not([data-theme="light"]){ --brand: #6FA3F0; --brand-hover: #8BB5F4; --brand-ink: #9EC2F7; --brand-soft: #1C2A42; --brand-line: #2E4468; }
  :root[data-accent="forest"]:not([data-theme="light"]){ --brand: #5CC48D; --brand-hover: #78D1A2; --brand-ink: #8FDCB3; --brand-soft: #16302A; --brand-line: #25513F; }
  :root[data-accent="sunset"]:not([data-theme="light"]){ --brand: #F08A55; --brand-hover: #F4A176; --brand-ink: #F6B592; --brand-soft: #3A2418; --brand-line: #5C3825; }
  :root[data-accent="rose"]:not([data-theme="light"]){ --brand: #EE78A6; --brand-hover: #F295B9; --brand-ink: #F5AECA; --brand-soft: #3A1A28; --brand-line: #5C2A40; }
}
:root[data-text="s"]{ font-size: 93.75%; }
:root[data-text="l"]{ font-size: 112.5%; }
:root[data-density="compact"] .card{ padding: 14px 16px; }
:root[data-density="compact"] .card-head{ margin-bottom: 10px; }
:root[data-density="compact"] .bento, :root[data-density="compact"] .poll-grid{ gap: 12px; }
:root[data-density="compact"] .page-head{ margin-bottom: 14px; }
:root[data-density="compact"] .work-card{ padding: 12px 14px; }
:root[data-density="compact"] .fb-list, :root[data-density="compact"] .post-list{ gap: 8px; }
html.campus-on[data-glass="on"] .card,
html.campus-on[data-glass="on"] .stat{
  background-color: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
@media (min-width: 901px){
  html[data-chat="left"] .chat-fab{ right: auto; left: 24px; }
  html[data-chat="left"] .messenger{ right: auto; left: 24px; }
}

:root[data-accent="gold"]{ --brand: #9A6F00; --brand-hover: #7F5B00; --brand-ink: #8A6400; --brand-soft: #FBF1D6; --brand-line: #EEDB9E; }
:root[data-accent="gold"][data-theme="dark"]{ --brand: #E6B93A; --brand-hover: #EEC95E; --brand-ink: #F2D57E; --brand-soft: #33290F; --brand-line: #56451A; }
:root[data-accent="teal"]{ --brand: #0E7C7B; --brand-hover: #0B6564; --brand-ink: #0D7170; --brand-soft: #DDF3F2; --brand-line: #B2E2E0; }
:root[data-accent="teal"][data-theme="dark"]{ --brand: #4CC3BF; --brand-hover: #6BD0CD; --brand-ink: #8ADBD8; --brand-soft: #12302F; --brand-line: #1E4E4C; }
:root[data-accent="slate"]{ --brand: #3F4A5C; --brand-hover: #323B4A; --brand-ink: #384253; --brand-soft: #E8EBF0; --brand-line: #C9CFDA; }
:root[data-accent="slate"][data-theme="dark"]{ --brand: #A3B0C4; --brand-hover: #B6C1D2; --brand-ink: #C7D0DE; --brand-soft: #232A36; --brand-line: #3A4557; }
@media (prefers-color-scheme: dark){
  :root[data-accent="gold"]:not([data-theme="light"]){ --brand: #E6B93A; --brand-hover: #EEC95E; --brand-ink: #F2D57E; --brand-soft: #33290F; --brand-line: #56451A; }
  :root[data-accent="teal"]:not([data-theme="light"]){ --brand: #4CC3BF; --brand-hover: #6BD0CD; --brand-ink: #8ADBD8; --brand-soft: #12302F; --brand-line: #1E4E4C; }
  :root[data-accent="slate"]:not([data-theme="light"]){ --brand: #A3B0C4; --brand-hover: #B6C1D2; --brand-ink: #C7D0DE; --brand-soft: #232A36; --brand-line: #3A4557; }
}

/* ------------------------------------------------ painted backgrounds --
   Soft gradient washes for people who'd rather not have a photo. */
html[data-bg="plain"] body{ background-image: none; }
html[data-bg="aurora"] .campus-bg,
html[data-bg="sunset"] .campus-bg,
html[data-bg="ocean"] .campus-bg,
html[data-bg="forest"] .campus-bg,
html[data-bg="midnight"] .campus-bg{ background-color: var(--bg); }
html[data-bg="aurora"] .campus-bg{ background-image:
  radial-gradient(60% 55% at 12% 18%, rgba(139, 92, 246, .42), transparent 70%),
  radial-gradient(50% 45% at 88% 12%, rgba(232, 100, 28, .3), transparent 70%),
  radial-gradient(55% 55% at 72% 88%, rgba(36, 86, 214, .32), transparent 70%),
  radial-gradient(45% 40% at 18% 90%, rgba(22, 160, 106, .22), transparent 70%); }
html[data-bg="sunset"] .campus-bg{ background-image:
  radial-gradient(65% 55% at 85% 10%, rgba(255, 140, 66, .45), transparent 70%),
  radial-gradient(55% 50% at 10% 30%, rgba(236, 72, 153, .3), transparent 70%),
  radial-gradient(60% 60% at 60% 95%, rgba(124, 58, 237, .3), transparent 70%); }
html[data-bg="ocean"] .campus-bg{ background-image:
  radial-gradient(60% 55% at 15% 12%, rgba(14, 165, 233, .38), transparent 70%),
  radial-gradient(55% 55% at 90% 40%, rgba(20, 184, 166, .32), transparent 70%),
  radial-gradient(60% 55% at 40% 95%, rgba(37, 99, 235, .3), transparent 70%); }
html[data-bg="forest"] .campus-bg{ background-image:
  radial-gradient(60% 55% at 12% 15%, rgba(22, 163, 74, .34), transparent 70%),
  radial-gradient(50% 50% at 88% 22%, rgba(202, 138, 4, .26), transparent 70%),
  radial-gradient(60% 60% at 60% 92%, rgba(13, 148, 136, .3), transparent 70%); }
html[data-bg="midnight"] .campus-bg{ background-image:
  radial-gradient(60% 55% at 15% 10%, rgba(99, 102, 241, .45), transparent 70%),
  radial-gradient(55% 50% at 90% 30%, rgba(168, 85, 247, .35), transparent 70%),
  radial-gradient(60% 60% at 50% 100%, rgba(14, 116, 144, .35), transparent 70%),
  linear-gradient(180deg, #1B1740, #0E0B22); }
html[data-bg="midnight"]:not([data-theme="dark"]) .campus-bg::after{ background: linear-gradient(180deg, rgba(246, 244, 250, .72), rgba(246, 244, 250, .86)); }
html[data-bg="aurora"] .campus-bg::before, html[data-bg="sunset"] .campus-bg::before,
html[data-bg="ocean"] .campus-bg::before, html[data-bg="forest"] .campus-bg::before,
html[data-bg="midnight"] .campus-bg::before, html[data-bg="aurora"] .cb-plan,
html[data-bg="sunset"] .cb-plan, html[data-bg="ocean"] .cb-plan, html[data-bg="forest"] .cb-plan,
html[data-bg="midnight"] .cb-plan{ display: none; }
html[data-bg="aurora"] .campus-bg::after, html[data-bg="sunset"] .campus-bg::after,
html[data-bg="ocean"] .campus-bg::after, html[data-bg="forest"] .campus-bg::after{ opacity: .35; }
/* your own photo keeps the photo wash so text stays readable on anything */

/* ------------------------------------------------------- light mode --
   For slower Chromebooks: no blur behind glass, no drifting photo, no
   parallax, no pointer effects. Chosen in Settings, or picked automatically
   on low-memory devices. */
html.lite *, html.lite *::before, html.lite *::after{ -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .campus-bg{ transform: none !important; transition: none; }
html.lite .campus-bg i.on{ animation: none !important; transform: scale(1.02); }
html.lite .cb-depth, html.lite .cb-plan{ display: none; }
html.lite .fx-rise{ filter: none !important; }
html.lite .topbar, html.lite .now-dock, html.lite .to-top{ background: var(--surface); }
html.lite ::view-transition-old(main), html.lite ::view-transition-new(main){ animation-duration: .18s; filter: none; }
