/* Co-branding after login: class name at the top, "powered by StudyRaah" underneath */
.brand.cb-on .cb-text{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.brand.cb-on .cb-name{font-size:1.05rem;font-weight:800;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand.cb-on .cb-by{font-family:Figtree,system-ui,sans-serif;font-size:.68rem;font-weight:600;color:var(--muted,#6b7290);letter-spacing:.02em}
.cb-strip{display:none}
@media (max-width:640px){
  /* phones: the header shows only the mascot, so the class name gets its own slim bar under the menu */
  .brand.cb-on .cb-text{display:none}
  .cb-strip{display:flex;flex:1 0 100%;order:2;align-items:baseline;gap:8px;padding:4px 2px 2px;min-width:0}
  .cb-strip b{font-family:"Bricolage Grotesque",Figtree,system-ui,sans-serif;font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .cb-strip span{flex:none;font-size:.68rem;color:var(--muted,#6b7290);font-weight:600}
}

/* the class's own photo or logo in place of the mascot */
.brand .logo-face.cb-photo{background-size:cover;background-position:center;background-color:#fff}
.cb-strip-photo{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none;align-self:center;background:#fff}

/* the class's own logo, shown whole in a white box that takes the logo's shape (wide or tall, it is never cut) */
.brand.cb-on .cb-logo{display:flex;align-items:center;justify-content:center;flex:0 1 auto;min-width:36px;max-width:min(300px,38vw);height:44px;padding:4px 10px;background:#fff;border:2px solid var(--gold);border-radius:12px;box-sizing:border-box}
.brand.cb-on .cb-logo[hidden]{display:none}
.brand.cb-on .cb-logo img{display:block;max-height:36px;max-width:100%;width:auto;height:auto;object-fit:contain}
.brand.cb-has-logo .logo-face{display:none}
.cb-strip-logo{display:flex;align-items:center;justify-content:center;flex:0 1 auto;max-width:56vw;min-height:36px;padding:3px 9px;background:#fff;border:2px solid var(--gold);border-radius:12px;box-sizing:border-box;align-self:center}
.cb-strip-logo img{display:block;max-height:40px;max-width:100%;width:auto;height:auto;object-fit:contain}
@media (max-width:640px){
  /* phones: the header keeps the small StudyRaah mark; the whole logo and the class name get the bar below it */
  .brand.cb-has-logo .logo-face{display:block}
  .brand.cb-on .cb-logo{display:none}
  .cb-strip{align-items:center;flex-wrap:wrap;row-gap:2px;column-gap:10px}
  .cb-strip b{flex:1 1 140px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15;overflow-wrap:anywhere}
  .cb-strip-logo{max-width:100%}
}
/* the class's logo on the Study page panel, whole, on white so any logo stays readable; it takes the mascot's place */
body.cb-hero .hero .mascot-img{display:none}
.cb-hero-logo{flex:none;position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:min(280px,30%);min-height:180px;padding:20px;background:#fff;border-radius:24px;box-shadow:0 14px 30px -14px rgba(0,0,0,.5)}
.cb-hero-logo img{display:block;width:auto;height:auto;max-width:100%;max-height:180px;object-fit:contain}
@media (max-width:640px){
  /* phones: the logo sits under the words, across the panel, large enough to read in full */
  .hero:has(.cb-hero-logo){flex-direction:column;align-items:stretch;gap:12px}
  .cb-hero-logo{width:100%;min-height:0;padding:12px 14px;border-radius:16px}
  .cb-hero-logo img{max-height:130px}
  .cb-strip-logo{min-height:58px;padding:4px 10px}
  .cb-strip-logo img{max-height:50px}
}
/* the font and colour a class chose for its name (open licence fonts in fonts/cb-*; each loads only when a class uses it) */
@font-face{font-family:"CB poppins";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/cb-poppins-700.woff2) format("woff2")}
@font-face{font-family:"CB montserrat";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/cb-montserrat-700.woff2) format("woff2")}
@font-face{font-family:"CB oswald";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/cb-oswald-700.woff2) format("woff2")}
@font-face{font-family:"CB playfair-display";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/cb-playfair-display-700.woff2) format("woff2")}
@font-face{font-family:"CB merriweather";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/cb-merriweather-700.woff2) format("woff2")}
@font-face{font-family:"CB roboto-slab";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/cb-roboto-slab-700.woff2) format("woff2")}
@font-face{font-family:"CB dancing-script";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/cb-dancing-script-700.woff2) format("woff2")}
.cbf-poppins{font-family:"CB poppins",Figtree,system-ui,sans-serif!important;font-weight:700!important}
.cbf-montserrat{font-family:"CB montserrat",Figtree,system-ui,sans-serif!important;font-weight:700!important}
.cbf-oswald{font-family:"CB oswald",Figtree,system-ui,sans-serif!important;font-weight:700!important}
.cbf-playfair-display{font-family:"CB playfair-display",Figtree,system-ui,sans-serif!important;font-weight:700!important}
.cbf-merriweather{font-family:"CB merriweather",Figtree,system-ui,sans-serif!important;font-weight:700!important}
.cbf-roboto-slab{font-family:"CB roboto-slab",Figtree,system-ui,sans-serif!important;font-weight:700!important}
.cbf-dancing-script{font-family:"CB dancing-script",Figtree,system-ui,sans-serif!important;font-weight:700!important}
.cb-name,.cb-strip b{color:var(--cb-nl,inherit)}
:root[data-theme="dark"] .cb-name,:root[data-theme="dark"] .cb-strip b{color:var(--cb-nd,inherit)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cb-name,:root:not([data-theme="light"]) .cb-strip b{color:var(--cb-nd,inherit)}}
