/* Rashad brand signatures, theme kit add-on, 2026-10-24 (v1). Plain CSS, no framework, no external files.
   Works with kit v2 tokens (--accent, --surface, --ink, --muted, --line, --soft, --radius) and falls back without them.
   Parts: 1 handoff screen  2 the Rashad loader  3 service colour line + palette  4 empty / error states
          5 step celebration (nod + "Well done")  6 reduced motion and print  7 the family look (2026-10-30)
          10 accessibility (2026-11-08, ?v=g4: link contrast, skip link, the accessibility menu's looks).
   Images are relative to this file: rashad-mark-192.webp, rashad-figure-336.webp (same folder).
   Guide: C:\RashadPlatform\docs\brand-2026-10-24\BRAND-KIT.md */
/* family look 2026-10-30: Readex Pro for headings AND text (the whole weight range, so 300/400 text is not drawn from 500).
   Must stay the first rule of the file (an @import after any other rule is ignored). */
@import url("https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300..700&display=swap");

/* ---------- 3. service colour (one value per service) ---------- */
/* Images are written as url() inside each rule (relative to this file); a page may override them with
   --rb-mark-img / --rb-figure-img set in its own stylesheet (a url() there is relative to that stylesheet). */
:root { --rb-service: var(--accent, #10b981);
  --rb-surface: var(--surface, #fff); --rb-ink: var(--ink, #14201b); --rb-muted: var(--muted, #56665e); --rb-line: var(--line, #d9e0dc) }
/* one colour per service, 2026-11-14 (= service-colours.json) */
[data-rb-service="all"] { --rb-service: #10B981 } [data-rb-service="reg"] { --rb-service: #2563EB }
[data-rb-service="edu"] { --rb-service: #C8A24A } [data-rb-service="erp"] { --rb-service: #0F766E }
[data-rb-service="res"] { --rb-service: #7C3AED } [data-rb-service="tqm"] { --rb-service: #E11D48 }
[data-rb-service="lms"] { --rb-service: #EA580C } [data-rb-service="academy"] { --rb-service: #076D87 }
[data-rb-service="people"] { --rb-service: #16A085 } [data-rb-service="portal"] { --rb-service: #7C2E11 }
[data-rb-service="qa"] { --rb-service: #15803D } [data-rb-service="rank"] { --rb-service: #C4751C }
[data-rb-service="advising"] { --rb-service: #0D9488 } [data-rb-service="library"] { --rb-service: #92400E }
[data-rb-service="publishing"] { --rb-service: #875C07 } [data-rb-service="courses"] { --rb-service: #8516A0 }
[data-rb-service="eservices"] { --rb-service: #AE4B09 } [data-rb-service="helpdesk"] { --rb-service: #113C7C }
[data-rb-service="archive"] { --rb-service: #09A3AE } [data-rb-service="committees"] { --rb-service: #168BF2 }
[data-rb-service="alumni"] { --rb-service: #7F8707 } [data-rb-service="events"] { --rb-service: #0909AE }
[data-rb-service="housing"] { --rb-service: #4D7C0F } [data-rb-service="clearance"] { --rb-service: #A01660 }
[data-rb-service="drill"] { --rb-service: #B91C1C } [data-rb-service="showcase"] { --rb-service: #44403C }
[data-rb-service="aiacops"] { --rb-service: #4EA016 } [data-rb-service="studio"] { --rb-service: #C026D3 }
[data-rb-service="wellbeing"] { --rb-service: #F216A9 } [data-rb-service="website"] { --rb-service: #870729 }

/* The 3 px line under the top bar. Opt in with <html class="rb-line"> (kit .top, which is sticky) or put data-rb-line on any
   top bar. The bar must be positioned (relative, sticky or fixed); class rb-line-pos adds position: relative for a static one. */
.rb-line-pos { position: relative }
html.rb-line .top::after, [data-rb-line]::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px;
  background: var(--rb-service); pointer-events: none }
/* dark: a lighter tint of the same colour so the 3 px line stays visible on a dark page (mixed here, where the
   element's own --rb-service is known; a mix declared on :root would freeze the root's colour for every child) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]).rb-line .top::after, :root:not([data-theme="light"]) [data-rb-line]::after {
  background: color-mix(in srgb, var(--rb-service) 70%, #fff) } }
:root[data-theme="dark"].rb-line .top::after, :root[data-theme="dark"] [data-rb-line]::after { background: color-mix(in srgb, var(--rb-service) 70%, #fff) }

/* The "Rashad Platform" home link (templates/django/_rb_home.html): the mark + "Platform", always to the hub. */
.rb-home { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 3px 11px 3px 3px; border-radius: 999px;
  border: 1px solid var(--rb-line); background: var(--rb-surface); color: var(--rb-ink); text-decoration: none;
  font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap }
[dir="rtl"] .rb-home { padding: 3px 3px 3px 11px }
.rb-home img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px #10b981; background: #fff }
.rb-home:hover { border-color: #10b981; text-decoration: none }
.rb-home:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px }
.rb-home-float { position: absolute; z-index: 60; top: 12px; inset-inline-start: 12px; box-shadow: 0 4px 14px -6px rgba(10, 30, 20, .35) }
body:has(header .rb-home:not(.rb-home-float)) .rb-home-float, body:has(.top .rb-home:not(.rb-home-float)) .rb-home-float { display: none }
@media (max-width: 560px) { .top .rb-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
  .top .rb-home { padding: 3px } }
@media print { .rb-home { display: none !important } }

.rb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }

/* ---------- 2. the Rashad loader ---------- */
/* <span class="rloader" role="status"><span class="rloader-mark" aria-hidden="true"></span><span class="rloader-label">Loading…</span></span>
   or <rashad-loader size="sm|md|lg" label="…"></rashad-loader>, or RashadLoader.show(el). */
rashad-loader { display: inline-flex }
.rloader { --rl-size: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--rb-muted); font-size: 13px; line-height: 1.3; vertical-align: middle }
.rloader.is-sm, rashad-loader[size="sm"] .rloader { --rl-size: 22px; gap: 6px }
.rloader.is-lg, rashad-loader[size="lg"] .rloader { --rl-size: 76px; flex-direction: column; gap: 12px; font-size: 14px }
.rloader-mark { position: relative; flex: none; width: var(--rl-size); height: var(--rl-size); border-radius: 50%;
  background: var(--rb-surface) var(--rb-mark-img, url("rashad-mark-192.webp?v=rc1117")) center / cover no-repeat; animation: rb-bob 1.3s ease-in-out infinite; transform-origin: 50% 80% }
.rloader-mark::before { content: ""; position: absolute; inset: calc(var(--rl-size) * -0.1); border-radius: 50%;
  background: conic-gradient(from 0deg, var(--rb-service), color-mix(in srgb, var(--rb-service) 30%, #f59e0b), var(--rb-service) 60%, transparent 75%, var(--rb-service));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: rb-spin 1.1s linear infinite }
.rloader.is-sm .rloader-mark::before, rashad-loader[size="sm"] .rloader-mark::before { inset: -3px }
.rloader-label:empty { display: none }
.rloader.is-quiet .rloader-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
@keyframes rb-spin { to { transform: rotate(360deg) } }
@keyframes rb-bob { 0%, 100% { transform: translateY(0) rotate(0) } 25% { transform: translateY(-2px) rotate(-5deg) } 75% { transform: translateY(-1px) rotate(5deg) } }
@keyframes rb-pulse { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }

/* over an element (RashadLoader.show(el)) */
.rb-busy { position: relative }
.rloader-veil { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; border-radius: inherit;
  background: color-mix(in srgb, var(--rb-surface) 78%, transparent); animation: rb-in .2s ease-out both }
/* over the page (RashadLoader.show() / long form submit) */
.rloader-page { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--rb-surface) 82%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: rb-in .25s ease-out both }
.rloader-page .rloader { padding: 22px 28px; border-radius: 18px; background: var(--rb-surface); color: var(--rb-ink);
  box-shadow: 0 12px 30px -12px rgba(10, 30, 20, .35); border: 1px solid var(--rb-line) }
/* a submit button that is working: its own small loader, the text stays */
.rb-btn-busy { position: relative; pointer-events: none; opacity: .92 }
.rb-btn-busy .rloader { margin-inline-end: 6px; color: inherit }
@keyframes rb-in { from { opacity: 0 } to { opacity: 1 } }

/* ---------- 1. handoff screen "Rashad is opening <service>…" ---------- */
.rb-handoff { position: fixed; inset: 0; z-index: 2147483200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: color-mix(in srgb, var(--rb-surface) 90%, var(--rb-service)); color: var(--rb-ink); font-family: inherit; text-align: center; padding: 16px;
  animation: rb-in .14s ease-out both }
.rb-handoff-stage { position: relative; width: 132px; height: 132px }
.rb-handoff-stage img, .rb-handoff-mark { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover }
.rb-handoff-mark { background: var(--rb-surface) var(--rb-mark-img, url("rashad-mark-192.webp?v=rc1117")) center / cover no-repeat; animation: rb-mark-out .46s cubic-bezier(.4, 0, .2, 1) both }
.rb-handoff-logo { opacity: 0; transform: scale(.86) rotate(-8deg); animation: rb-logo-in .46s cubic-bezier(.2, .8, .2, 1) .1s both }
.rb-handoff-ring { position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(var(--rb-service) var(--rb-p, 0%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: rb-ring .5s linear both }
.rb-handoff.is-waiting .rb-handoff-ring { background: conic-gradient(from 0deg, var(--rb-service), transparent 70%, var(--rb-service)); animation: rb-spin 1.1s linear infinite }
.rb-handoff-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--rb-muted); max-width: 34ch }
.rb-handoff-text b { display: block; color: var(--rb-ink); font-size: 20px; font-weight: 700 }
@property --rb-p { syntax: "<percentage>"; inherits: false; initial-value: 0% }
@keyframes rb-ring { from { --rb-p: 0% } to { --rb-p: 100% } }
@keyframes rb-mark-out { 0% { opacity: 1; transform: scale(1) } 60% { opacity: .2; transform: scale(.9) } 100% { opacity: 0; transform: scale(.86) } }
@keyframes rb-logo-in { to { opacity: 1; transform: none } }

/* ---------- 4. empty / error states ---------- */
/* <section class="rb-state" data-kind="empty|search|404|403|500|maintenance|offline"> … partial _rb_state.html */
.rb-state { display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: center; max-width: 720px; margin: 24px auto; padding: 24px;
  border: 1px dashed var(--rb-line); border-radius: var(--radius, 14px); background: var(--rb-surface); color: var(--rb-ink) }
.rb-state.is-page { border: 0; margin: 6vh auto; background: transparent }
.rb-state-art { position: relative; width: 120px; height: 120px; border-radius: 50%; background: var(--soft, #f3f5f4) var(--rb-mark-img, url("rashad-mark-192.webp?v=rc1117")) center / cover no-repeat;
  box-shadow: 0 0 0 4px var(--rb-surface), 0 0 0 6px color-mix(in srgb, var(--rb-service) 40%, transparent) }
.rb-state.is-page .rb-state-art { width: 168px; height: 196px; border-radius: 0; box-shadow: none; background: var(--rb-figure-img, url("rashad-figure-336.webp?v=rc1117")) center bottom / contain no-repeat }
.rb-state-badge { position: absolute; inset-inline-end: -4px; bottom: -4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rb-service); color: #fff; box-shadow: 0 0 0 3px var(--rb-surface); font: 700 18px/1 system-ui, sans-serif }
.rb-state-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.rb-state.is-page .rb-state-badge { bottom: 6px; inset-inline-end: 0 }
.rb-state-code { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: color-mix(in srgb, var(--rb-service) 70%, #000) }   /* g4: 4.6:1 or more for every service colour */
.rb-state h2, .rb-state h1 { margin: 0 0 6px; font-size: 20px; line-height: 1.35 }
.rb-state.is-page h1 { font-size: 26px }
.rb-state p { margin: 0 0 12px; color: var(--rb-muted); line-height: 1.6 }
.rb-state-actions { display: flex; flex-wrap: wrap; gap: 8px }
.rb-state-ref { margin-top: 10px; font: 12px/1.4 var(--mono, Consolas, monospace); color: var(--rb-muted) }
/* poses from the same art, CSS only: thinking (search), resting (empty), a softer grey for 403, a tilt for 500, paused for maintenance */
.rb-state[data-kind="search"] .rb-state-art { animation: rb-bob 3.2s ease-in-out infinite }
.rb-state[data-kind="403"] .rb-state-badge { background: #b45309 }
.rb-state[data-kind="500"] .rb-state-art { transform: rotate(-6deg) }
.rb-state[data-kind="500"] .rb-state-badge { background: #b42318 }
.rb-state[data-kind="maintenance"] .rb-state-badge, .rb-state[data-kind="offline"] .rb-state-badge { background: #475569 }
.rb-state[data-kind="maintenance"] .rb-state-art { filter: saturate(.75) }
@media (max-width: 560px) { .rb-state { grid-template-columns: 1fr; justify-items: center; text-align: center } .rb-state-actions { justify-content: center } }

/* ---------- 5. step celebration ---------- */
/* rashad-brand.js adds .rb-nod to a step that became done since the user's last visit, and shows .rb-cheer once per journey */
.rsteps-step.rb-nod .rsteps-n { animation: rb-nod .9s cubic-bezier(.3, .7, .4, 1) var(--rb-delay, 0s) both }
@keyframes rb-nod { 0% { transform: scale(.6); box-shadow: 0 0 0 0 color-mix(in srgb, var(--rb-service) 55%, transparent) }
  35% { transform: scale(1.18) rotate(-8deg) } 55% { transform: scale(1) rotate(6deg) } 75% { transform: rotate(-3deg) }
  100% { transform: none; box-shadow: 0 0 0 10px transparent } }
.rb-cheer { position: fixed; z-index: 2147482500; inset-inline: 0; top: calc(var(--top-h, 60px) + 14px); margin-inline: auto; width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: var(--rb-surface); color: var(--rb-ink);
  border: 1px solid color-mix(in srgb, var(--rb-service) 45%, var(--rb-line)); box-shadow: 0 12px 30px -12px rgba(10, 30, 20, .4);
  animation: rb-cheer-in .45s cubic-bezier(.2, .8, .2, 1) both }
.rb-cheer.is-out { animation: rb-cheer-out .3s ease-in both }
.rb-cheer-mark { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--rb-surface) var(--rb-mark-img, url("rashad-mark-192.webp?v=rc1117")) center / cover no-repeat;
  box-shadow: 0 0 0 3px var(--rb-service); animation: rb-nod-head 1.2s ease-in-out .3s 2 both; transform-origin: 50% 85% }
.rb-cheer b { display: block; font-size: 15px } .rb-cheer span { font-size: 13px; color: var(--rb-muted) }
.rb-cheer-close { flex: none; border: 0; background: transparent; color: var(--rb-muted); font-size: 20px; line-height: 1; width: 32px; height: 32px; border-radius: 50%; cursor: pointer }
.rb-cheer-close:hover { background: var(--soft, #f3f5f4) } .rb-cheer-close:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px }
@keyframes rb-nod-head { 0%, 100% { transform: rotate(0) } 30% { transform: translateY(2px) rotate(6deg) } 60% { transform: translateY(0) rotate(-2deg) } }
@keyframes rb-cheer-in { from { opacity: 0; transform: translateY(-12px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes rb-cheer-out { to { opacity: 0; transform: translateY(-8px) } }
[dir="rtl"] .rb-cheer { padding: 10px 10px 10px 14px }

/* ---------- 6. reduced motion, print ---------- */
@media (prefers-reduced-motion: reduce) {
  .rloader .rloader-mark, .rloader .rloader-mark::before { animation: none !important }
  .rloader .rloader-mark { animation: rb-pulse 2.4s ease-in-out infinite !important }   /* a slow fade still says "working" */
  .rb-state .rb-state-art, .rsteps-step.rb-nod .rsteps-n, .rb-cheer .rb-cheer-mark { animation: none !important }
  .rb-cheer, .rloader-veil, .rloader-page { animation: none !important }
}
@media print { .rloader-veil, .rloader-page, .rb-handoff, .rb-cheer { display: none !important } html.rb-line .top::after { display: none } }

/* ---------- 8. thinking: "Rashad is searching…" (rashad-brand.js section 6, 2026-10-31) ---------- */
.rb-thinking { position: fixed; z-index: 2147482400; display: flex; align-items: center; gap: 12px; max-width: min(92vw, 300px);
  padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--rb-surface); color: var(--rb-ink);
  border: 1px solid color-mix(in srgb, var(--rb-service) 40%, var(--rb-line));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 10px -2px rgba(10, 30, 20, .12), 0 16px 30px -14px rgba(10, 30, 20, .35);
  font-size: 14px; font-weight: 600; line-height: 1.3; animation: rb-in .15s ease-out both; pointer-events: none }
[dir="rtl"] .rb-thinking { padding: 8px 8px 8px 16px }
.rb-thinking.is-centred { top: 50%; left: 50%; transform: translate(-50%, -50%); flex-direction: column; gap: 10px; padding: 18px 22px;
  border-radius: 18px; text-align: center }
.rb-thinking-face { position: relative; flex: none; width: 40px; height: 40px }
.rb-thinking.is-centred .rb-thinking-face { width: 64px; height: 64px }
.rb-thinking-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; display: block }
.rb-thinking-ring { position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--rb-service), transparent 70%, var(--rb-service));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: rb-spin 1.1s linear infinite }
.rb-thinking-dots { display: inline-flex; gap: 3px; margin-inline-start: 4px; vertical-align: middle }
.rb-thinking-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--rb-service); animation: rb-dot 1.2s ease-in-out infinite }
.rb-thinking-dots i:nth-child(2) { animation-delay: .2s } .rb-thinking-dots i:nth-child(3) { animation-delay: .4s }
@keyframes rb-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0) } 40% { opacity: 1; transform: translateY(-3px) } }
@media (prefers-reduced-motion: reduce) {
  .rb-thinking { animation: none } .rb-thinking-ring { animation: none !important }
  .rb-thinking-dots i { animation: rb-dot-calm 1.6s ease-in-out infinite !important }
  .rb-thinking-dots i:nth-child(2) { animation-delay: .3s !important } .rb-thinking-dots i:nth-child(3) { animation-delay: .6s !important }
}
@keyframes rb-dot-calm { 0%, 100% { opacity: .3 } 50% { opacity: 1 } }
@media print { .rb-thinking { display: none !important } }

/* ---------- 9. the one-line top bar (topbar-one-line 2026-10-31) ---------- */
/* User: "make the services menu in one line not 2". Opt in with data-rb-topbar on the signed-in top bar. Order in the bar:
   side-menu button first (next to the side menu: left in English, right in Arabic), the university logo, the title,
   then the tools: search (an icon that opens the field), the ONE Rashad Platform menu (mark + "Rashad Platform", shortened
   to "Platform" / "المنصة" when space is short), the page tools, the language, and the person's menu with Sign out inside.
   rashad-brand.js section 7 measures the bar and adds rb-fit-1..4 (cumulative) only when the row would not fit:
   1 "Platform" instead of "Rashad Platform"   2 the person's button shows the initial only (the name stays in the menu)
   3 the platform button shows the mark only   4 the title and the university logo get smaller (phones)
   5 (2026-11-14) the tools move to a second row and wrap (small phones)
   Without the script, media queries give the same steps by window width. */
[data-rb-topbar] { flex-wrap: nowrap !important; min-width: 0; max-width: 100% }
[data-rb-topbar] > * { flex-shrink: 0 }
[data-rb-topbar] > :is(.title, h1, .crumbs, .top-title) { flex: 1 1 auto !important; min-width: 0 !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
[data-rb-topbar] > .title :is(h1, p, span, a) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100% }
[data-rb-topbar] :is(.tools, .topbar-actions, .actions) { flex-wrap: nowrap !important; flex: 0 0 auto; min-width: 0 }
[data-rb-topbar] form { margin: 0 }
/* the platform home pill is not repeated in the bar: the platform menu below holds "Platform home" and every service */
[data-rb-topbar] .rb-home:not(.rb-home-float) { display: none !important }
body:has([data-rb-topbar]) .rb-home-float { display: none }

/* the Rashad Platform menu button: the mark + the label */
.rb-pl-btn { display: inline-flex !important; align-items: center; gap: 7px; white-space: nowrap; flex: none }
.rb-pl-btn .rb-pl-mark { width: 24px !important; height: 24px !important; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #10b981; object-fit: cover }
.rb-pl-btn .rb-pl-label { font-weight: 600; font-size: 13px; line-height: 1.2 }
.rb-pl-short { display: none }
.rb-caret { width: 10px; height: 10px; flex: none; opacity: .65; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
details[open] > summary .rb-caret { transform: rotate(180deg) }

/* search as an icon: <div class="rb-search" data-rb-search><button class="rb-search-btn" aria-controls="ID" aria-expanded="false">
   <form id="ID" class="rb-search-pop" hidden> ... the same fields as before ... </form></div> */
.rb-search { position: relative; display: inline-flex; flex: none }
.rb-search-pop { position: absolute; z-index: 45; top: calc(100% + 8px); inset-inline-end: 0; display: flex; align-items: center; gap: 8px;
  width: min(420px, calc(100vw - 24px)); padding: 8px; border-radius: 12px; background: var(--rb-surface); color: var(--rb-ink);
  border: 1px solid var(--rb-line); box-shadow: 0 12px 30px -12px rgba(10, 30, 20, .35) }
.rb-search-pop[hidden] { display: none !important }
.rb-search-pop :is(input[type="search"], input[type="text"], input:not([type])) { flex: 1 1 auto; min-width: 0 }
[data-rb-topbar] .rb-icon-only :is(.txt, kbd, .search-label) { display: none !important }
.rb-icon-only { flex: none !important; width: auto !important; min-width: 0 !important }

/* the person's menu: <details class="drop rb-user"><summary class="rb-user-btn"> initial + name/role + caret </summary>
   <div class="panel rb-user-panel"> head, the links that were there, Sign out (a POST form, the same address and token) */
.rb-user { position: relative; flex: none }
.rb-user > summary { list-style: none; cursor: pointer }
.rb-user > summary::-webkit-details-marker { display: none }
.rb-user-btn { display: inline-flex !important; align-items: center; gap: 8px; max-width: 260px; white-space: nowrap; text-align: start }
.rb-avatar { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rf-fill, var(--rb-service)); color: #fff; font: 700 13px/1 var(--rf-font, inherit); text-transform: uppercase }
.rb-user-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15 }
.rb-user-txt b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px }
.rb-user-txt small { font-size: 11px; color: var(--rb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px }
.rb-user-panel { position: absolute; z-index: 45; top: calc(100% + 6px); inset-inline-end: 0; min-width: 230px; max-width: min(92vw, 320px); padding: 8px;
  border-radius: 12px; background: var(--rb-surface); color: var(--rb-ink); border: 1px solid var(--rb-line); box-shadow: 0 12px 30px -12px rgba(10, 30, 20, .35) }
.rb-user-head { padding: 6px 8px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--rb-line); line-height: 1.35 }
.rb-user-head b { display: block; font-size: 14px } .rb-user-head small { display: block; color: var(--rb-muted); font-size: 12px }
.rb-user-panel > a, .rb-user-panel form > button, .rb-user-panel > button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px;
  border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 14px; text-align: start; text-decoration: none; cursor: pointer }
.rb-user-panel > a:hover, .rb-user-panel form > button:hover, .rb-user-panel > button:hover { background: var(--soft, #f3f5f4) }
.rb-user-panel form { margin: 0; display: block }
.rb-user-panel .rb-signout { margin-top: 4px; border-top: 1px solid var(--rb-line); border-radius: 0 0 8px 8px; color: #b42318 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rb-user-panel .rb-signout { color: #fda29b } }
:root[data-theme="dark"] .rb-user-panel .rb-signout { color: #fda29b }
.rb-user-panel svg { width: 16px; height: 16px; flex: none }

/* the steps (cumulative classes from rashad-brand.js; media queries as the no-script fallback) */
[data-rb-topbar].rb-fit-1 .rb-pl-long { display: none } [data-rb-topbar].rb-fit-1 .rb-pl-short { display: inline }
/* g4 (accessibility): squeezed labels are hidden from the eye only, so the buttons keep their names for screen readers */
[data-rb-topbar].rb-fit-2 :is(.rb-user-txt, .rb-fit-txt), [data-rb-topbar].rb-fit-3 .rb-pl-label {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important }
[data-rb-topbar].rb-fit-3 :is(.rb-uni img, img.uni-big, img.uni, .rs-uni) { height: 34px !important }
[data-rb-topbar].rb-fit-4 :is(.rb-uni img, img.uni-big, img.uni, .rs-uni) { height: 28px !important; padding: 2px 4px !important }
[data-rb-topbar].rb-fit-4 { gap: 6px !important }
[data-rb-topbar].rb-fit-4 :is(.tools, .topbar-actions, .actions) { gap: 4px !important }
/* 5 (2026-11-14, phones about 390 px): when 1-4 are not enough (7-9 buttons), the tools take their own second row
   and wrap, so the page never scrolls sideways (it was 427-549 px wide at 390 px) */
[data-rb-topbar].rb-fit-5 { flex-wrap: wrap !important; row-gap: 6px }
[data-rb-topbar].rb-fit-5 :is(.tools, .topbar-actions, .actions) { flex: 1 1 100% !important; flex-wrap: wrap !important;
  justify-content: flex-end; row-gap: 4px; max-width: 100% }
@media (max-width: 480px) { html:not(.rb-fit-js) [data-rb-topbar] { flex-wrap: wrap !important }
  html:not(.rb-fit-js) [data-rb-topbar] :is(.tools, .topbar-actions, .actions) { flex: 1 1 100% !important; flex-wrap: wrap !important; justify-content: flex-end } }
html:not(.rb-fit-js) [data-rb-topbar] .rb-pl-long { display: none }
html:not(.rb-fit-js) [data-rb-topbar] .rb-pl-short { display: inline }
@media (min-width: 1280px) { html:not(.rb-fit-js) [data-rb-topbar] .rb-pl-long { display: inline } html:not(.rb-fit-js) [data-rb-topbar] .rb-pl-short { display: none } }
@media (max-width: 760px) { html:not(.rb-fit-js) [data-rb-topbar] :is(.rb-user-txt, .rb-pl-label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap } }
@media (max-width: 560px) { [data-rb-topbar] .rb-user-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap } [data-rb-topbar] .rb-search-pop { position: fixed; top: calc(var(--top-h, 60px) + 6px); inset-inline: 12px; width: auto } }
/* "Things waiting for you" (2026-11-07, rashad-brand.js section 9): the checklist icon to the Hub's My tasks + its count */
.rb-tasks { position: relative; display: inline-flex !important; align-items: center; justify-content: center; flex: none; min-width: 32px; min-height: 32px; color: inherit }
.rb-tasks svg { width: 18px; height: 18px; display: block; flex: none }
.rb-tasks-n { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: #dc2626; color: #fff; font: 700 11px/18px var(--rf-font, system-ui, sans-serif); text-align: center; pointer-events: none }
/* 2026-11-08 owner: the icon is Rashad's face (one guide since 2026-11-16)
   with the count as the last circle of the stack (no count: just the face). Hub (.pf-tasks) and services (.rb-tasks). */
.rb-faces { display: inline-flex; align-items: center; flex: none; direction: ltr; line-height: 0 }
.rb-faces > img, .rb-faces > .rb-faces-n { width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box; flex: none;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); background: #fff; object-fit: cover }
.rb-faces > * + * { margin-left: -9px }
.rb-faces > img:nth-child(1) { z-index: 3; position: relative }
.rb-faces > img:nth-child(2) { z-index: 2; position: relative }
.rb-faces > .rb-faces-n { z-index: 4; position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 26px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff;
  font: 700 11.5px/1 var(--rf-font, system-ui, sans-serif) }
:is(.rb-tasks, .pf-tasks):has(.rb-faces) { padding-inline: 4px !important; min-width: 0 }
:is(.rb-tasks, .pf-tasks):is(:hover, :focus-visible) .rb-faces > img { transform: translateY(-1px); transition: transform .15s }
@media (max-width: 560px) { .rb-faces > img, .rb-faces > .rb-faces-n { width: 22px; height: 22px; min-width: 22px } .rb-faces > * + * { margin-left: -8px } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rb-faces > :is(img, .rb-faces-n) { border-color: #1f2937 } }
:root[data-theme="dark"] .rb-faces > :is(img, .rb-faces-n) { border-color: #1f2937 }
/* 2026-11-08 owner ("the declaration check box is hidden ... compressed in a small area"): the theme gives every input
   min-width:0, so a checkbox next to a long label shrank to nothing in a flex row; and a checkbox field in a form grid
   sat in one 250 px column. Checkboxes and radios never shrink, and a checkbox field takes the whole row of a form grid. */
input[type="checkbox"], input[type="radio"] { flex: none }
:is(.field.check, label.check, .check) > input:is([type="checkbox"], [type="radio"]) { flex: none; margin-top: 2px }
:is(.form-grid, .grid-form, .fields) > :is(.field.check, .check) { grid-column: 1 / -1 }
:is(.field.check, .check) label { white-space: normal; overflow-wrap: anywhere; max-width: 72ch; line-height: 1.55 }
/* "Report a problem" (2026-11-08, rashad-brand.js section 10): a small round flag in the bottom corner, tuckable */
.rb-report-dock { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 14px; z-index: 850; line-height: 0 }
.rb-report-dock > :is(.rb-report, .ue-report-fab) { position: static !important; display: inline-flex !important; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 0; padding: 0 !important; margin: 0; box-sizing: border-box; border-radius: 50% !important;
  background: #fff; color: #b45309; border: 1px solid #e5e7eb; box-shadow: 0 4px 12px rgba(0, 0, 0, .16); cursor: pointer; text-decoration: none; opacity: .9 }
.rb-report-dock > :is(.rb-report, .ue-report-fab):is(:hover, :focus-visible) { opacity: 1; transform: translateY(-1px) }
.rb-report-dock > .ue-report-fab > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.rb-report-dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor }
.rb-report-x { position: absolute; top: -10px; inset-inline-end: -10px; width: 24px; height: 24px; padding: 0; border: 3px solid transparent; border-radius: 50%;
  background: #374151 padding-box; color: #fff; font: 700 12px/18px system-ui, sans-serif; text-align: center; cursor: pointer; opacity: 0; transition: opacity .15s }
.rb-report-dock:is(:hover, :focus-within) .rb-report-x { opacity: 1 }
@media (hover: none) { .rb-report-x { opacity: .85 } }
.rb-report-tab { display: none }
.rb-report-dock.is-tucked { inset-inline-start: 0 }
.rb-report-dock.is-tucked > :not(.rb-report-tab) { display: none !important }
/* g4: the tab is a 24 x 34 px target (WCAG 2.5.8) that still looks like a thin 9 px strip at the edge */
.rb-report-dock.is-tucked .rb-report-tab { display: block; width: 24px; height: 34px; padding: 0; border: 0; border-inline-end: 15px solid transparent;
  cursor: pointer; opacity: .55; background: #b45309 padding-box; border-start-end-radius: 8px; border-end-end-radius: 8px }
.rb-report-dock.is-tucked .rb-report-tab:is(:hover, :focus-visible) { opacity: 1; border-inline-end-width: 10px }
:root[data-theme="dark"] .rb-report-dock > :is(.rb-report, .ue-report-fab) { background: #1f2937; border-color: #374151; color: #fbbf24 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rb-report-dock > :is(.rb-report, .ue-report-fab) { background: #1f2937; border-color: #374151; color: #fbbf24 } }
@media print { .rb-report-dock { display: none !important } }
@media print { .rb-user, .rb-search, .rb-pl-btn { display: none !important } }

/* ---------- 7. the family look (family-look 2026-10-30) ---------- */
/* One visual family for the hub and every service, each in its own accent: the public website's design system
   (C:\RashadWebsite\app\core\static\website\site.css :root; guide C:\RashadPlatform\docs\visual-identity\project\README.md).
   Shared: Readex Pro for headings and text (Arabic and English); the website's eight-point-star lattice on coloured bands,
   drawn in the service's own accent; 3D cards (layered accent-tinted shadows, white top highlight, 16 px radius, a lift
   with a gold hairline on hover/focus); a 48 x 2 px gold rule under section headings; 3 px gold focus rings; 10 px buttons
   and pill chips filled with the accent; the 8 px rhythm for everything added here.
   Per service: the accent (--accent, else data-rb-service), the icon and the name stay; so do menus, navigation, layout
   and page structure (nothing here sets display, grid, position of a menu, or a size of a layout box).
   Contrast: fills behind white text use --rf-fill (the accent with 14% black), which keeps 4.5:1 for most service colours;
   services with a light accent (archive, aiacops, people) set a darker --rf-fill of their own (2026-11-14). */
:root {
  --rf-accent: var(--accent, var(--rb-service));
  --rf-fill: color-mix(in srgb, var(--rf-accent) 86%, #000);
  --rf-fill-hover: color-mix(in srgb, var(--rf-accent) 72%, #000);
  --rf-tint: color-mix(in srgb, var(--rf-accent) 45%, #0b1a14);          /* shadow colour: the accent, deepened */
  --rf-gold: #B08D3C; --rf-gold-300: #E2C77E;
  --rf-font: "Readex Pro", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --rf-radius: 16px; --rf-radius-sm: 10px;
  --rf-s-1: 8px; --rf-s-2: 16px; --rf-s-3: 24px; --rf-s-4: 32px; --rf-s-5: 40px; --rf-s-6: 48px;
  --rf-ease: cubic-bezier(.2, .7, .2, 1);
  --rf-hi: inset 0 1px 0 rgba(255, 255, 255, .95);                      /* the white top highlight */
  --rf-sh-1: var(--rf-hi), 0 1px 2px color-mix(in srgb, var(--rf-tint) 8%, transparent),
             0 4px 10px -2px color-mix(in srgb, var(--rf-tint) 9%, transparent), 0 16px 30px -16px color-mix(in srgb, var(--rf-tint) 26%, transparent);
  --rf-sh-2: var(--rf-hi), 0 2px 4px color-mix(in srgb, var(--rf-tint) 7%, transparent),
             0 14px 26px -8px color-mix(in srgb, var(--rf-tint) 18%, transparent), 0 34px 54px -22px color-mix(in srgb, var(--rf-tint) 40%, transparent);
  /* the website's lattice (--pattern-gold / --pattern-soft) as a mask: the colour comes from the element, so each
     service draws it in its own accent */
  --rf-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M25.3 25.3h37.4v37.4H25.3z'/%3E%3Cpath d='M44 17.6 70.4 44 44 70.4 17.6 44z'/%3E%3Cpath d='M0 44h17.6M70.4 44H88M44 0v17.6M44 70.4V88M0 0l25.3 25.3M88 0 62.7 25.3M0 88l25.3-25.3M88 88 62.7 62.7'/%3E%3C/g%3E%3C/svg%3E");
  --focus: 0 0 0 3px var(--rf-gold);
}
/* type: one face for both languages; the services' own font variables point at it too */
html:root, html:root[lang], html:root[dir], html:root body {
  --display: var(--rf-font); --body: var(--rf-font); --font: var(--rf-font); --font-ar: var(--rf-font);
  --display-font: var(--rf-font); --font-body: var(--rf-font); --font-display: var(--rf-font) }
html:root body { font-family: var(--rf-font) }
html:root body :is(button, input, select, textarea, optgroup) { font-family: inherit }
h1, h2, h3, h4, h5, h6 { font-family: var(--rf-font) }   /* element level only: a styled heading (the hub's slogan) keeps its face */

/* 3D cards: the same depth in every service, tinted by its accent */
:is(.card, .tile, .entry-card, .chart-card, .module-card, .project-card, .mode-card, .course-card, .public-card, .table-card,
    .queue-card, .review-card, .flow-card, .rank-card, .qcard, .enrol-card, .center-card, .auth-card, .login-card) {
  border-radius: var(--rf-radius); box-shadow: var(--rf-sh-1) }
/* cards that are links (or whose title is the link) lift on hover / keyboard focus, with a gold hairline */
:is(a.card, a.tile, a.entry-card, a.course-card, a.project-card, a.module-card, a.rank-card, a.public-card, button.card,
    .card[tabindex], .card:has(> :is(h2, h3) > a:only-child), .card:has(> a.stretched)) {
  transition: transform .2s var(--rf-ease), box-shadow .2s var(--rf-ease), border-color .2s var(--rf-ease) }
:is(a.card, a.tile, a.entry-card, a.course-card, a.project-card, a.module-card, a.rank-card, a.public-card, button.card,
    .card[tabindex], .card:has(> :is(h2, h3) > a:only-child), .card:has(> a.stretched)):is(:hover, :focus-visible, :focus-within) {
  transform: translateY(-3px); box-shadow: var(--rf-sh-2); border-color: var(--rf-gold) }

/* the thin gold rule under section headings (48 x 2 px; the website's .w-h2) */
:is(.section-title > h2, .section-title > h3, .page-head h1, .rf-rule)::after {
  content: ""; display: block; width: 48px; height: 2px; margin-top: var(--rf-s-1); border-radius: 2px;
  background: linear-gradient(90deg, var(--rf-gold), var(--rf-gold-300)) }
[dir="rtl"] :is(.section-title > h2, .section-title > h3, .page-head h1, .rf-rule)::after { background: linear-gradient(270deg, var(--rf-gold), var(--rf-gold-300)) }

/* gold focus rings (3 px) */
:focus-visible { outline: 3px solid var(--rf-gold); outline-offset: 2px }
html:root :is(a, button, summary, [tabindex], .btn):focus-visible { outline: 3px solid var(--rf-gold); outline-offset: 2px }
html:root :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
  outline: 3px solid var(--rf-gold); outline-offset: 1px; box-shadow: none }
.rb-home:focus-visible, .rb-cheer-close:focus-visible { outline-color: var(--rf-gold) }

/* buttons (radius 10 px) and chips (pills), filled with the service accent */
.btn, a.btn, button.btn { border-radius: var(--rf-radius-sm) }
.btn.small, .btn-sm { border-radius: var(--rf-s-1) }
.btn.primary, button.primary, a.btn.primary {
  background-color: var(--rf-fill); border-color: var(--rf-fill); color: var(--on-accent, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px -8px color-mix(in srgb, var(--rf-tint) 70%, transparent) }
.btn.primary:hover, button.primary:hover, a.btn.primary:hover { background-color: var(--rf-fill-hover); border-color: var(--rf-fill-hover); color: var(--on-accent, #fff) }
.btn:focus-visible, .btn.primary:focus-visible { box-shadow: var(--focus) }
.chips > a, .chips > button, .chip { border-radius: 999px }
.chips > .on, .chips > [aria-pressed="true"], .chips > [aria-current] { background: var(--rf-fill); border-color: var(--rf-fill); color: var(--on-accent, #fff) }

/* the lattice on coloured bands (sign-in art panels, hero bands, page heads with a colour fill), in the accent:
   a light tint of the accent on its own colour, never behind text without the band's solid colour under it */
:is(.auth-art, .auth-brand, .hero-ev, .hero:has(> .pattern), .rf-band) { position: relative; isolation: isolate }
:is(.auth-art, .auth-brand, .hero-ev, .hero:has(> .pattern), .rf-band)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: color-mix(in srgb, var(--rf-accent) 30%, #fff); opacity: .22;
  -webkit-mask: var(--rf-lattice) 0 0 / 88px 88px repeat; mask: var(--rf-lattice) 0 0 / 88px 88px repeat }
/* the soft lattice for a light section (opt in; the website's --pattern-soft): the accent at 6% */
.rf-band-soft { position: relative; isolation: isolate }
.rf-band-soft::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: var(--rf-accent); opacity: .06; -webkit-mask: var(--rf-lattice) 0 0 / 88px 88px repeat; mask: var(--rf-lattice) 0 0 / 88px 88px repeat }

/* dark: no white highlight, deeper shadows */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --rf-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --rf-sh-1: var(--rf-hi), 0 1px 2px rgba(0, 0, 0, .3), 0 10px 24px -12px rgba(0, 0, 0, .6);
  --rf-sh-2: var(--rf-hi), 0 2px 4px rgba(0, 0, 0, .3), 0 22px 40px -16px rgba(0, 0, 0, .75) } }
:root[data-theme="dark"] {
  --rf-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --rf-sh-1: var(--rf-hi), 0 1px 2px rgba(0, 0, 0, .3), 0 10px 24px -12px rgba(0, 0, 0, .6);
  --rf-sh-2: var(--rf-hi), 0 2px 4px rgba(0, 0, 0, .3), 0 22px 40px -16px rgba(0, 0, 0, .75) }

@media (prefers-reduced-motion: reduce) {
  :is(a.card, a.tile, a.entry-card, a.course-card, a.project-card, a.module-card, a.rank-card, a.public-card, button.card,
      .card[tabindex], .card:has(> :is(h2, h3) > a:only-child), .card:has(> a.stretched)):is(:hover, :focus-visible, :focus-within) { transform: none }
}
@media print {
  :is(.card, .tile, .entry-card, .chart-card, .module-card, .project-card, .course-card, .table-card) { box-shadow: none }
  :is(.auth-art, .auth-brand, .hero-ev, .hero:has(> .pattern), .rf-band, .rf-band-soft)::before { display: none }
}

/* ---------- 10. accessibility (2026-11-08, wave 3, helper g7-access, kit ?v=g4; rashad-brand.js section 12) ---------- */
/* WCAG 2.2 AA. (a) Kit-wide fixes that need no choice: link colour 4.5:1 on the page background, focus never hidden under
   the sticky top bar, a skip link. (b) The person's choices from the accessibility menu, as classes on <html>:
   rb-a11y-t1 / -t2 larger text, rb-a11y-hc high contrast, rb-a11y-rm reduce motion, rb-a11y-ul underline links. */

/* (a) links in running text: the accent with 22% black (the theme's own --accent-strong mix), which keeps 4.5:1 on the
   tinted page background for every service accent (the pure accent fell to 3.4-4.5:1 for Clearance, Events, Studio,
   EDU, Alumni, Ranking and Quality). Light pages only; links without a class only, at the theme's own `a` weight (0,0,1),
   so every styled link (buttons, menus, cards) keeps its colour. */
:root { --rf-link: color-mix(in srgb, var(--rf-accent) 78%, #000) }
@media not (prefers-color-scheme: dark) { :where(:root:not([data-theme="dark"])) a:where(:not([class])) { color: var(--rf-link) } }
:where(:root[data-theme="light"]) a:where(:not([class])) { color: var(--rf-link) }
/* the service name in the side menu (theme v2 .brand b, the pure accent: Clearance 3.8:1) */
@media not (prefers-color-scheme: dark) { :where(:root:not([data-theme="dark"])) .brand b { color: var(--rf-link) } }
:where(:root[data-theme="light"]) .brand b { color: var(--rf-link) }
/* the "faint" grey of the services that have one (EDU .faint: #82948d was 3.0:1 on its page background) -> 4.8:1 */
@media not (prefers-color-scheme: dark) { html:root:not([data-theme="dark"]) { --faint: #5f716a } }
html:root[data-theme="light"] { --faint: #5f716a }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rb-state-code { color: color-mix(in srgb, var(--rb-service) 60%, #fff) } }
:root[data-theme="dark"] .rb-state-code { color: color-mix(in srgb, var(--rb-service) 60%, #fff) }

/* a focused field or link is never hidden under the sticky top bar or the bottom dock (2.4.11 Focus not obscured) */
html { scroll-padding-top: calc(var(--top-h, 60px) + 16px); scroll-padding-bottom: 64px }

/* "Skip to content" (added by the kit when a page has none): off screen until it gets the keyboard focus */
.rb-skip { position: absolute; z-index: 2147483300; top: 8px; inset-inline-start: 8px; padding: 10px 16px; border-radius: 10px;
  background: #fff; color: #0b1f17; font: 600 14px/1.3 var(--rf-font, system-ui, sans-serif); text-decoration: underline;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transform: translateY(-200%) }
.rb-skip:focus, .rb-skip:focus-visible { transform: none; outline: 3px solid #0b1f17; outline-offset: 2px }
:is(main, [role="main"], #main, #content, #rb-main)[tabindex="-1"]:focus { outline: none }

/* the menu button and its panel */
.rb-a11y { position: relative; display: inline-flex; flex: none; vertical-align: middle }
.rb-a11y-btn { display: inline-flex !important; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; color: inherit; cursor: pointer }
.rb-a11y-btn svg { width: 18px; height: 18px; display: block; flex: none }
.rb-a11y.is-strip { margin-inline-start: 10px }
.rb-a11y.is-strip.is-alt { display: none }                 /* the trial-strip twin: phones only (no room in the bar) */
@media (max-width: 560px) { html.rb-a11y-alt [data-rb-topbar] .rb-a11y { display: none } html.rb-a11y-alt .rb-a11y.is-strip.is-alt { display: inline-flex } }
.rb-a11y.is-strip .rb-a11y-btn { width: 26px; height: 26px; min-width: 26px; min-height: 26px; padding: 0; border: 1px solid #c9a227; border-radius: 50%;
  background: #fff; color: #5C4100 }
.rb-a11y-panel { position: absolute; z-index: 2147483050; top: calc(100% + 8px); inset-inline-end: 0; width: 270px; max-width: calc(100vw - 24px);
  box-sizing: border-box; padding: 12px; border-radius: 12px; background: #fff; color: #14201b; border: 1px solid #c9d6d1;
  box-shadow: 0 12px 30px -12px rgba(10, 30, 20, .4); text-align: start; font: 400 14px/1.4 var(--rf-font, system-ui, sans-serif) }
.rb-a11y-panel[hidden] { display: none !important }
.rb-a11y-h { margin: 0 0 8px; font-weight: 700; font-size: 15px }
.rb-a11y-l { margin: 0 0 6px; font-size: 13px; color: #3d4b45 }
.rb-a11y-sizes { display: flex; gap: 6px; margin-bottom: 10px }
.rb-a11y-panel button { font: inherit; color: inherit; cursor: pointer }
.rb-a11y-size { flex: 1 1 0; min-height: 36px; padding: 4px 6px; border: 1px solid #8a9a93; border-radius: 8px; background: #fff; font-weight: 600 !important }
.rb-a11y-size.is-t1 { font-size: 15.5px !important } .rb-a11y-size.is-t2 { font-size: 17px !important }
.rb-a11y-size[aria-pressed="true"] { background: #0b4a3c; border-color: #0b4a3c; color: #fff !important }
.rb-a11y-sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 6px 4px;
  border: 0; border-top: 1px solid #e3e9e6; background: none; text-align: start }
.rb-a11y-knob { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #8a9a93; transition: background .15s }
.rb-a11y-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s }
.rb-a11y-sw[aria-checked="true"] .rb-a11y-knob { background: #0b4a3c }
.rb-a11y-sw[aria-checked="true"] .rb-a11y-knob::after { transform: translateX(16px) }
[dir="rtl"] .rb-a11y-knob::after { left: auto; right: 3px }
[dir="rtl"] .rb-a11y-sw[aria-checked="true"] .rb-a11y-knob::after { transform: translateX(-16px) }
.rb-a11y-reset { width: 100%; min-height: 36px; margin-top: 6px; border: 1px solid #8a9a93; border-radius: 8px; background: #fff }
.rb-a11y-panel button:hover { background-color: #eef3f1 } .rb-a11y-size[aria-pressed="true"]:hover { background-color: #0b4a3c }
.rb-a11y-panel button:focus-visible { outline: 3px solid #B08D3C; outline-offset: 2px }
.rb-a11y-note { margin: 8px 0 0; font-size: 12px; color: #3d4b45 }
:root[data-theme="dark"] .rb-a11y-panel { background: #1f2937; color: #f3f4f6; border-color: #374151 }
:root[data-theme="dark"] :is(.rb-a11y-l, .rb-a11y-note) { color: #d1d5db }
:root[data-theme="dark"] .rb-a11y-panel :is(.rb-a11y-size, .rb-a11y-reset) { background: #111827; border-color: #6b7280 }
:root[data-theme="dark"] .rb-a11y-panel button:hover { background-color: #374151 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not(.rb-a11y-hc) .rb-a11y-panel { background: #1f2937; color: #f3f4f6; border-color: #374151 }
  :root:not([data-theme="light"]):not(.rb-a11y-hc) :is(.rb-a11y-l, .rb-a11y-note) { color: #d1d5db }
  :root:not([data-theme="light"]):not(.rb-a11y-hc) .rb-a11y-panel :is(.rb-a11y-size, .rb-a11y-reset) { background: #111827; border-color: #6b7280 }
  :root:not([data-theme="light"]):not(.rb-a11y-hc) .rb-a11y-panel button:hover { background-color: #374151 } }
@media print { .rb-a11y, .rb-skip { display: none !important } }

/* (b1) larger text: the whole page is drawn 112.5 % / 125 % (zoom keeps every px-sized service text in proportion);
   boxes that are one screen high are shrunk back so their bottom stays on screen */
html.rb-a11y-t1 { --rb-zoom: 1.125 } html.rb-a11y-t2 { --rb-zoom: 1.25 }
@supports (zoom: 1.25) {
  html:is(.rb-a11y-t1, .rb-a11y-t2) body { zoom: var(--rb-zoom) }
  html:is(.rb-a11y-t1, .rb-a11y-t2) :is(.side, .sidebar, aside.nav) { height: calc(100vh / var(--rb-zoom)) !important; max-height: calc(100vh / var(--rb-zoom)) }
}
@supports not (zoom: 1.25) { html.rb-a11y-t1 { font-size: 112.5% } html.rb-a11y-t2 { font-size: 125% } }

/* (b2) high contrast: black text on white, dark lines, underlined links, a black-and-yellow focus ring (light scheme) */
html:root.rb-a11y-hc { color-scheme: light;
  --ink: #000; --muted: #1f1f1f; --line: #4d4d4d; --soft: #f0f0f0; --bg: #fff; --surface: #fff; --surface-2: #fff;
  --rb-ink: #000; --rb-muted: #1f1f1f; --rb-line: #4d4d4d; --rb-surface: #fff }
html:root.rb-a11y-hc body { background: #fff !important; color: #000 !important }
html.rb-a11y-hc :is(.muted, small, .small, .xsmall, .help, .helptext, .hint, .lead, .meta, figcaption, .crumbs, .crumbs a) { color: #1f1f1f !important }
html.rb-a11y-hc ::placeholder { color: #3a3a3a !important; opacity: 1 !important }
html.rb-a11y-hc :is(input, select, textarea, .btn, button.btn, a.btn, .card, .tile, table, th, td) { border-color: #4d4d4d !important }
html.rb-a11y-hc a:not(.btn):not([role="button"]) { text-decoration: underline !important; text-underline-offset: .18em }
html.rb-a11y-hc :focus-visible { outline: 3px solid #000 !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px #ffd60a !important }
html.rb-a11y-hc :is(.rf-band, .auth-art, .auth-brand, .hero-ev)::before { display: none }

/* (b3) reduce motion: no animations or transitions anywhere, no smooth scrolling */
html.rb-a11y-rm, html.rb-a11y-rm * { scroll-behavior: auto !important }
html.rb-a11y-rm *, html.rb-a11y-rm *::before, html.rb-a11y-rm *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
  transition-duration: .001ms !important; transition-delay: 0s !important }

/* (b4) underline links (buttons and button-like links stay as they are) */
html.rb-a11y-ul a:not(.btn):not([role="button"]):not(.rb-skip):not(.rb-tasks):not(.rb-report):not(.ue-report-fab) {
  text-decoration: underline !important; text-decoration-thickness: from-font; text-underline-offset: .18em }

/* ---------- 11. the notifications bell (2026-11-08, wave 5, helper w5-platform, kit ?v=g5; rashad-brand.js section 13) ---------- */
/* The bell sits right after "Things waiting for you"; its panel is the next element in the page (Tab reaches it). */
.rb-bell { position: relative; display: inline-flex; flex: none; vertical-align: middle }
.rb-bell-btn { position: relative; display: inline-flex !important; align-items: center; justify-content: center; flex: none; min-width: 32px; min-height: 32px; color: inherit }
.rb-bell-btn svg { width: 18px; height: 18px; display: block; flex: none }
.rb-bell-n { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: #dc2626; color: #fff; font: 700 11px/18px var(--rf-font, system-ui, sans-serif); text-align: center; pointer-events: none }
.rb-bell-pop { position: absolute; z-index: 2147483050; top: calc(100% + 8px); inset-inline-end: 0; width: 340px; max-width: calc(100vw - 24px);
  max-height: 70vh; overflow: auto; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; background: #fff; color: #14201b;
  border: 1px solid #c9d6d1; box-shadow: 0 12px 30px -12px rgba(10, 30, 20, .4); text-align: start; font: 400 14px/1.4 var(--rf-font, system-ui, sans-serif) }
.rb-bell-pop[hidden] { display: none !important }
.rb-bell[hidden] { display: none !important }   /* 2026-11-13 g6 one bell: hidden until the Hub answers */
.rb-bell-h { margin: 8px 0 4px; font-size: 13px; font-weight: 700; color: #3d4b45 }
.rb-bell-h:first-child { margin-top: 0 }
.rb-bell-list { list-style: none; margin: 0; padding: 0 }
.rb-bell-list a { display: block; padding: 6px 6px; border-radius: 8px; color: inherit !important; text-decoration: none; overflow-wrap: anywhere }
.rb-bell-list a:hover { background: #eef3f1 }
.rb-bell-list small { display: block; color: #3d4b45; font-size: 12px }
.rb-bell-c { float: inline-end; margin-inline-start: 8px; font-weight: 700 }
.rb-bell-empty { margin: 4px 0; color: #3d4b45 }
.rb-bell-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e3e9e6 }
.rb-bell-foot a { color: #0b4a3c; font-weight: 600; min-height: 24px; display: inline-flex; align-items: center }
.rb-bell-pop a:focus-visible { outline: 3px solid #B08D3C; outline-offset: 2px }
:root[data-theme="dark"] .rb-bell-pop { background: #1f2937; color: #f3f4f6; border-color: #374151 }
:root[data-theme="dark"] :is(.rb-bell-h, .rb-bell-empty, .rb-bell-list small) { color: #d1d5db }
:root[data-theme="dark"] .rb-bell-list a:hover { background: #374151 }
:root[data-theme="dark"] .rb-bell-foot a { color: #9fe0c9 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not(.rb-a11y-hc) .rb-bell-pop { background: #1f2937; color: #f3f4f6; border-color: #374151 }
  :root:not([data-theme="light"]):not(.rb-a11y-hc) :is(.rb-bell-h, .rb-bell-empty, .rb-bell-list small) { color: #d1d5db }
  :root:not([data-theme="light"]):not(.rb-a11y-hc) .rb-bell-list a:hover { background: #374151 }
  :root:not([data-theme="light"]):not(.rb-a11y-hc) .rb-bell-foot a { color: #9fe0c9 } }
@media (max-width: 560px) { [data-rb-topbar] .rb-bell-pop { position: fixed; top: calc(var(--top-h, 60px) + 6px); inset-inline: 12px; width: auto; transform: none !important } }
@media print { .rb-bell { display: none !important } }
