/* Rashad Platform account centre: mapping of hub.css onto the Rashad theme kit (2026-10-21).
   Load order (hub/templates/hub/base.html): theme/rashad-theme.css -> accent <style> -> hub.css -> this file -> page CSS.
   1. the hub's old colour names become aliases of the kit's tokens, so the many page templates keep working;
   2. the side menu + top bar shell of the signed-in working pages (body.has-shell);
   3. the two-panel sign-in page; 4. small fixes where a hub class name meets a kit class name. */

/* 1. Tokens ------------------------------------------------------------------------------------------------ */
:root {
  --g9: color-mix(in srgb, var(--accent) 62%, #000); --g7: var(--accent); --g6: var(--accent); --g5: var(--accent-2);
  --g2: color-mix(in srgb, var(--accent) 28%, #fff); --g1: var(--accent-soft); --g0: color-mix(in srgb, var(--accent) 7%, #fff);
  --gold: #c8a24a;
  --card: var(--surface); --text: var(--ink);
  --redbg: var(--red-soft); --orange: var(--amber); --orangebg: var(--amber-soft); --bluebg: var(--blue-soft);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --g9: color-mix(in srgb, var(--accent) 30%, #0b1210);
  --g2: color-mix(in srgb, var(--accent) 30%, #141b18); --g0: color-mix(in srgb, var(--accent) 10%, #141b18) } }
:root[data-theme="dark"] {
  --g9: color-mix(in srgb, var(--accent) 30%, #0b1210);
  --g2: color-mix(in srgb, var(--accent) 30%, #141b18); --g0: color-mix(in srgb, var(--accent) 10%, #141b18) }

/* kit look for the hub's shared components */
body { font-family: var(--body) }
.panel { border-radius: var(--radius); box-shadow: none }
.panel.highlight { box-shadow: 0 0 0 3px var(--accent-soft) }
.tile { border-radius: var(--radius); box-shadow: none }
.tile b { font-family: var(--display) }
.msg { background: var(--green-soft); color: var(--green); border-color: transparent }
.msg.error { background: var(--red-soft); color: var(--red); border-color: transparent }
.msg.warning { background: var(--amber-soft); color: var(--amber); border-color: transparent }
.msg.info { background: var(--blue-soft); color: var(--blue) }
.msg a { color: inherit; font-weight: 600 }
.banner { border-color: transparent; background: var(--accent-soft) }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: var(--accent-2) }
button.link { color: var(--accent) }
.tabs a.on, .tabs a:hover { color: var(--accent); border-bottom-color: var(--accent) }
.svc, .svc-mini, .ch-item, .others, .chart-card { border-color: var(--line) }
.svc { box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 10px 22px -16px rgba(0, 0, 0, .3) }
.group-title, .others summary, .card-help .ch-group, .dash-group h2, h2.sub, .sub { color: var(--accent) }
.svc .sub { color: var(--accent) }
.uni { background: #fff }
.theme-toggle { font-size: 15px; line-height: 1 }
.rp-help-btn { background: var(--surface); color: var(--accent) }
.rp-help-btn:hover, .rp-help-btn[aria-expanded=true] { border-color: var(--accent-2); background: var(--accent-soft) }
.rp-help-pop { border-inline-start-color: var(--accent) }
.rp-help-h { color: var(--accent) }
.skip { color: var(--accent) }

/* the public top menu (landing page, Student Portal, the mobile app, visitors): kit colours, same layout */
header.top { background: color-mix(in srgb, var(--surface) 88%, transparent) }
.nav a.on, .nav a:hover, .dd[open] summary, .dd summary:hover, .dd summary.on { background: var(--accent-soft); color: var(--accent) }
.dd-menu a:hover, .dd-menu a.on, .dd-menu button.link:hover { background: var(--accent-soft); color: var(--accent) }
.dd-menu { box-shadow: var(--shadow) }
.brand b { font-family: var(--display); font-weight: 600 }
.brand img { box-shadow: 0 0 0 3px var(--accent-2) }
footer img { background: #fff }

/* 2. The shell of the signed-in working pages ------------------------------------------------------------- */
body.has-shell { display: block }
.has-shell .shell { min-height: 100vh }
.has-shell .side .brand img { box-shadow: none; border-radius: 50%; background: #fff }
.has-shell .side .brand b { font-size: 16px }
.has-shell .side .brand span { min-width: 0 }
.has-shell .side .brand small { display: block; white-space: normal; line-height: 1.35 }
.has-shell .side .badge { display: inline-block }
.has-shell header.top { flex-wrap: wrap; gap: 12px; padding: 10px 24px; background: var(--surface); backdrop-filter: none; z-index: 20 }
.has-shell .top .title { min-width: 0 }
.has-shell .top .crumb { font: 600 15px/1.2 var(--display); color: var(--muted) }
.has-shell .top .tools form { margin: 0 }
.has-shell .top .who { color: var(--muted); text-decoration: none; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.has-shell .top .who:hover { color: var(--accent) }
.has-shell .top .rp-help-btn { width: 30px; height: 30px; font-size: 15px }
.has-shell main.content { max-width: 1320px; margin: 0; padding: 22px 24px 40px; flex: 1 }
.has-shell main.content.narrow { max-width: 620px; margin-inline: auto }
.has-shell main.content.narrow.wide { max-width: 900px }
.has-shell main.content > h1:first-child, .has-shell main.content > .head:first-child h1 { margin-top: 0 }
@media (max-width: 960px) { .has-shell .side .brand img { width: 40px; height: 40px } }
@media (max-width: 560px) {
  .has-shell header.top { padding: 8px 12px; gap: 8px }
  .has-shell main.content { padding: 14px 12px 30px }
  .has-shell .top .title { display: none }
  .has-shell .top .tools { gap: 6px; margin-inline-start: auto }
}
/* 2026-11-07 owner: the platform home (Rashad mark + name, to "/") and the university logo in the shell's top bar.
   Desktop with the side menu open: the mark only (the side menu shows the name). rashad-brand.css section 9 shrinks
   both when the bar is short of room (rb-fit-txt = the name, .rb-uni img = the logo). */
.has-shell .top .rb-app-home { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ink); text-decoration: none;
  font: 600 15px/1.2 var(--display, inherit); border-radius: 10px; white-space: nowrap }
.has-shell .top .rb-app-home:hover { color: var(--accent) }
.has-shell .top .rb-app-home img { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line) }
@media (min-width: 961px) { html:not(.side-closed) body.has-shell .top .rb-app-home .rb-fit-txt { display: none } }
.has-shell .top .rb-app-uni { display: block; flex: none; line-height: 0; border-radius: 10px }
.has-shell .top .rb-app-uni img { display: block; height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 2px 6px }
.has-shell .top .rb-user-panel .rb-phone-only { display: none }
@media (max-width: 560px) {
  .has-shell .top .rb-app-home .rb-fit-txt { display: none }
  .has-shell .top .rb-app-home img { width: 28px; height: 28px }
  .has-shell .top .rb-app-uni img { height: 28px; padding: 2px 4px }
  /* one row on phones: the language and light/dark are in the person's menu here; smaller gaps and buttons */
  .has-shell header.top { gap: 6px; padding-inline: 8px }
  .has-shell .top .tools { gap: 4px }
  .has-shell .top .tools > :is(.theme-toggle, .rb-lang) { display: none }
  .has-shell .top .tools > .btn.small, .has-shell .top .tools > a.btn.small { padding-inline: 6px }
  .has-shell .top .menu-toggle { padding-inline: 8px }
  .has-shell .top .rb-user-panel .rb-phone-only { display: flex }
}
@media (max-width: 380px) {
  .has-shell header.top { gap: 4px; padding-inline: 6px }
  .has-shell .top .tools { gap: 2px }
  .has-shell .top .rb-app-uni img { height: 22px; padding: 2px 3px }
}
@media (max-width: 340px) { .has-shell .top .tools > .rp-help-btn { display: none } }   /* "Help on this page" stays in the side menu */

/* 3. Sign-in page (kit .auth: coloured art panel + form) --------------------------------------------------- */
body.signin { display: block }
.auth .auth-art .hero img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35) }
.auth .auth-art p { font-size: 15.5px }
/* 2026-10-25: the guide's full figure, big, between the university logo and the title (hidden on phones with the panel) */
.auth .auth-art .hero-figure { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center }
.auth .auth-art .hero-figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(56vh, 520px);
  border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28)) }
.auth .auth-art .hero-figure picture { display: contents }
.auth .auth-art .hero img { width: 72px; max-width: 72px }
main.auth-form.svc-head { text-align: start; border-top: 0; gap: 4px; max-width: none; margin: 0; padding: 32px max(24px, 6vw) }
.auth-form > * { width: 100%; max-width: 460px }
.auth-form .auth-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px }
.auth-form .auth-tools .grow { flex: 1 }
.auth-form .svc-logo { width: 84px; height: 84px; margin: 0 0 6px; filter: none; border-radius: 50% }
.auth-form h2 { font-size: 24px; margin: 6px 0 4px }
.auth-form h2 + p { margin: 0 0 4px }
.auth-form .form { margin-top: 12px }
.auth-form .btn.big { padding: 11px 18px; font-size: 15px }
.auth-form .links { margin-top: 14px }
.auth-form details { margin-top: 10px }
.auth-form .msg { margin: 8px 0 0 }

/* 4. Class names shared by the hub and the kit ------------------------------------------------------------- */
/* the dashboard's side legend (ul.legend.side) is not the side menu */
ul.legend.side, .legend.side, body.menu-open .legend.side {
  position: static; height: auto; width: auto; padding: 0; background: none; border: 0; overflow: visible;
  transform: none; visibility: visible; box-shadow: none; z-index: auto }
/* hub .pager is centred text; the kit's is a flex row */
.pager { display: block }
