/* Classic collegiate lettering for the brand; UI and notebooks retain their own fonts. */
@font-face{font-family:'Nexo Vintage';font-style:normal;font-weight:900;font-display:swap;src:url('/fonts/roboto-slab/roboto-slab-900.ttf') format('truetype')}
.brand,.nexo-auth-brand{font-family:'Nexo Vintage',Rockwell,Georgia,serif!important;font-weight:900!important;letter-spacing:-.055em;line-height:1.1}
.brand>span:last-child{white-space:nowrap;min-width:0}
.sidebar .brand{font-size:24px;gap:8px;padding-left:0;padding-right:0}
.sidebar .brand-mark{width:34px;height:34px;flex:0 0 34px;border-radius:11px}
.sidebar .brand-icon{width:24px;height:24px}
.auth-card .brand{font-size:27px;letter-spacing:-.055em}
.brand-mark{font-family:var(--font-ui,Manrope,sans-serif);letter-spacing:normal}
@media(max-width:700px){.sidebar .brand{font-size:24px}.auth-card .brand{font-size:25px}}

/* Live theme colors, with a fine inset gap and an outer varsity outline. */
.brand .brand-wordmark{--brand-ink:color-mix(in srgb,var(--accent,#087b62) 68%,#10291f);--brand-light:color-mix(in srgb,var(--accent,#087b62) 68%,white);--brand-gap:color-mix(in srgb,var(--panel,#fff) 92%,white);letter-spacing:.025em;isolation:isolate}
.brand-wordmark>span{color:var(--brand-ink);-webkit-text-stroke:1.8px var(--brand-gap);paint-order:stroke fill;text-shadow:-1.7px -1.7px 0 var(--brand-ink),1.7px -1.7px 0 var(--brand-ink),-1.7px 1.7px 0 var(--brand-ink),1.7px 1.7px 0 var(--brand-ink)}
.brand-wordmark>.brand-nexo{color:var(--brand-light)}

.sidebar .brand{font-size:22px}
.brand-wordmark{padding:2px 0;overflow:visible}
@media(max-width:700px){.sidebar .brand{font-size:22px}}

.brand-wordmark>span{position:relative;display:inline-block;z-index:0;text-shadow:none;letter-spacing:.12em}
.brand-wordmark>span::before{content:attr(data-brand-text);position:absolute;inset:0;z-index:-1;color:var(--brand-ink);-webkit-text-stroke:3.4px var(--brand-ink);paint-order:stroke fill;pointer-events:none}

/* Keep the lettering within its navigation slot and tint the inset to its surface. */
.sidebar .brand{font-size:20px;gap:7px}
.sidebar .brand .brand-wordmark{--brand-gap:color-mix(in srgb,color-mix(in srgb,var(--accent,#087b62) 24%,var(--panel,#fff)) 88%,white)}
.brand-wordmark>span{letter-spacing:.10em}
@media(min-width:701px) and (max-width:1000px){.sidebar .brand{font-size:17px;gap:6px}.sidebar .brand-mark{width:30px;height:30px;flex-basis:30px}}
@media(max-width:700px){.sidebar .brand{font-size:20px}}

/* The family crest is the brand symbol; its green regions follow the live theme. */
.sidebar .brand,.auth-card .brand{flex-direction:column;align-items:center;gap:10px;padding-bottom:18px}
.brand .brand-mark.brand-crest{width:110px;height:110px;flex:0 0 110px;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0}
.brand-crest-art{display:block;width:100%;height:100%;overflow:visible}
.brand .brand-wordmark{display:block;text-align:center}
.sidebar .brand{font-size:20px}
.auth-card .brand{font-size:25px}
@media(min-width:701px) and (max-width:1000px){.sidebar .brand{font-size:18px}.sidebar .brand-mark.brand-crest{width:96px;height:96px;flex-basis:96px}}
@media(max-width:700px){.auth-card .brand-mark.brand-crest{width:96px;height:96px;flex-basis:96px}.auth-card .brand{font-size:23px}}

/* Dark surfaces need lighter theme-derived lettering, rather than dark brand ink. */
:root[data-theme="dark"] .brand .brand-wordmark{--brand-ink:color-mix(in srgb,var(--accent,#087b62) 38%,white);--brand-light:color-mix(in srgb,var(--accent,#087b62) 18%,white)}
:root[data-theme="dark"] .brand-crest{--brand-crest-accent:color-mix(in srgb,var(--accent,#087b62) 72%,white)}
:root[data-theme="dark"] .brand-crest-art{filter:drop-shadow(0 1px 2px #0008)}

/* Custom fills retain the chosen shade; text contrast follows its luminance. */
:root[data-accent="custom"] .btn.primary,:root[data-accent="custom"] .sidebar .nav button.active,:root[data-accent="custom"] .tabs button.active{color:var(--on-accent,#fff)}
