/* Landing page v2 (helper landing-v2, 2026-10-24): top-bar menus "Journals" and "For students", the
   "Students: secure sign-in" button, the announcement strip, the "Main page" link and the public /students/ page.
   Colours from the theme tokens (light / dark follow html[data-theme] or the device); logical properties for Arabic. */
.fm-panel{min-width:320px;max-width:min(420px,calc(100vw - 24px));padding:8px}
.fm-h{margin:4px 8px 6px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
[dir="rtl"] .fm-h{text-transform:none;letter-spacing:0}
.fm-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;max-height:min(46vh,360px);overflow-y:auto}
.dd-menu a.fm-j{display:flex;align-items:center;gap:10px;white-space:normal}
.fm-badge{flex:none;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;font:700 11px/1 var(--display,inherit);
  color:#fff;background:linear-gradient(135deg,#BE185D,#9D174D);letter-spacing:.02em;box-shadow:0 2px 6px rgba(190,24,93,.3)}
.fm-tx{display:flex;flex-direction:column;min-width:0}
.fm-tx b{font-weight:700;line-height:1.3}
.fm-tx small,.fm-s small{display:block;font-weight:500;font-size:12px;color:var(--muted);line-height:1.3}
.fm-tx small.fm-open{color:var(--accent)}
.fm-note{margin:4px 8px 8px;font-size:13px;color:var(--muted)}
.fm-links{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:6px 0 2px;padding-top:6px;border-top:1px solid var(--line)}
.dd-menu .fm-links a{white-space:normal;font-size:13px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;text-align:center}
.dd-menu a.fm-all{white-space:normal;font-size:13px;color:var(--accent);margin-top:2px}
.dd-menu a.fm-s{white-space:normal;line-height:1.3}
.dd-menu a.fm-s b{display:block}
.dd-menu a.fm-secure{display:flex;align-items:center;gap:10px;margin-top:4px;border:1.5px solid var(--accent);background:var(--accent-soft)}
.fm-lock{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.fm-secure .fm-lock{color:var(--accent);width:26px;height:26px}
/* the button in the top bar */
.btn.fm-student-btn{border-color:var(--accent);color:var(--accent);font-weight:700;white-space:nowrap}
.btn.fm-student-btn:hover{background:var(--accent-soft)}
.btn.fm-student-btn .fm-lock{width:18px;height:18px}
.btn.fm-student-btn:focus-visible,.fm-dd summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
/* slim top bar (landing v2 fit, 2026-10-24): ONE row of about 58 px on the pages with the top menu (visitors, the
   signed-in home, the Student Portal). Tagline only from 1440 px; below 1180 px (signed in: 1500 px) Journals and
   For students move into "More"; on phones the directory joins them and the brand keeps only its logo. */
header.top.slim{flex-wrap:nowrap;gap:10px;padding:8px max(14px,2vw);min-height:58px}
header.top.slim .brand{gap:8px}
header.top.slim .brand img{width:38px;height:38px}
header.top.slim .brand b{font-size:16.5px;line-height:1.2}
header.top.slim .brand small{font-size:11.5px}
header.top.slim .nav a,header.top.slim .dd summary{padding:6px 10px}
header.top.slim .right{gap:6px}
header.top.slim .right .btn{padding:6px 11px}
header.top.slim .uni{height:32px;padding:2px 6px}
.fm-more{display:none}
.dd-menu a.fm-more-dir{display:none}
@media (max-width:1439px){header.top.slim .brand small{display:none}}
@media (max-width:1180px){header.top.slim .nav .fm-dd:not(.fm-more){display:none}header.top.slim .fm-more{display:block}
  header.top.slim .uni{display:none}}
@media (max-width:1499px){header.top.slim.is-in .nav .fm-dd:not(.fm-more){display:none}header.top.slim.is-in .fm-more{display:block}}
@media (max-width:900px){
  header.top.slim.is-out{flex-wrap:nowrap}
  header.top.slim.is-out .nav{order:0;width:auto;flex-wrap:nowrap}
  header.top.slim.is-out .nav-dir{display:none}
  header.top.slim .dd-menu a.fm-more-dir{display:block}
  header.top.slim .fm-more .dd-menu{position:fixed;top:60px;inset-inline:8px;width:auto;max-width:none;max-height:calc(100vh - 76px);overflow-y:auto}}
@media (max-width:560px){header.top.slim.is-out .brand span{display:none}header.top.slim{padding-inline:8px;gap:4px}
  header.top.slim .right{gap:4px}header.top.slim .right .btn{padding:6px 8px;font-size:12.5px}
  header.top.slim .nav a,header.top.slim .dd summary{padding:6px 6px}}

/* visitors' top bar (landing redesign 2026-10-25, base.html header.vbar): brand | find a person | Journals ...
   students' sign-in | Sign in | language. Wide: the search box is in the bar. Phones (<=760px): the brand keeps its
   logo, the box folds into the magnifier button and opens as a row under the bar (.find-open, base.html script). */
header.vbar{flex-wrap:nowrap}
.vb-find{display:flex;align-items:center;gap:6px;flex:0 1 340px;min-width:0;margin:0;position:relative}
.vb-find .vb-glass{position:absolute;inset-inline-start:10px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.vb-find input{flex:1;min-width:0;margin:0;padding:7px 10px;padding-inline-start:34px;border-radius:999px;font-size:14px}
.vb-find .vb-go{padding:6px 12px;border-radius:999px}
.vb-glass{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.vb-menus{display:flex;align-items:center;flex:none}
.vb-find-btn{display:none;padding:6px 9px}
.vbar .btn.fm-student-btn .vb-short{display:none}
.btn.fm-student-btn.vb-student{gap:6px}
@media (max-width:1180px){.vbar .btn.fm-student-btn .vb-long{display:none}.vbar .btn.fm-student-btn .vb-short{display:inline}}
@media (max-width:1000px){.vb-find .vb-go{display:none}}
@media (max-width:760px){
  header.vbar .brand span{display:none}
  .vb-find-btn{display:inline-flex}
  .vb-find{display:none;position:absolute;top:100%;inset-inline:0;padding:8px 10px;background:var(--surface,var(--card));
    border-bottom:1px solid var(--line);box-shadow:0 8px 18px -10px rgba(0,0,0,.3);flex:none}
  header.vbar.find-open .vb-find{display:flex}
  header.vbar.find-open .vb-find .vb-go{display:inline-flex}
  .vb-find .vb-glass{inset-inline-start:20px}
  header.vbar .right{gap:4px}
  header.vbar .right .btn{padding:6px 8px;font-size:12.5px}
  .vb-menus .dd summary{padding:6px 6px}
  .vb-menus .fm-dd .dd-menu{position:fixed;top:60px;inset-inline:8px;width:auto;max-width:none;max-height:calc(100vh - 76px);overflow-y:auto}}
@media (max-width:400px){.vbar .btn.fm-student-btn .vb-short{display:none}.btn.fm-student-btn.vb-student{padding-inline:8px}}

/* signed-in home (2026-10-25): the "Rashad services" heading with the guide's face */
.group-title.family-title{display:flex;align-items:center;gap:10px}
.family-title picture,.family-title img{display:block;width:34px;height:34px;border-radius:50%;flex:none}
.family-title img{box-shadow:0 0 0 2px var(--line)}

/* the menus in the signed-in working pages' top bar (side menu layout) */
.fm-shell{display:flex;gap:2px;align-items:center;margin-inline-start:auto}
.fm-shell + .tools{margin-inline-start:8px}
@media (max-width:1100px){.btn.fm-student-btn span{display:none}.btn.fm-student-btn{padding-inline:10px}}
@media (max-width:900px){.fm-panel{min-width:0;width:calc(100vw - 24px)}
  .nav .fm-dd .dd-menu{position:fixed;top:auto;inset-inline-start:12px;inset-inline-end:12px;margin-top:6px}
  .fm-shell{display:none}}
@media (max-width:420px){.fm-links{grid-template-columns:1fr}}

/* the News ticker (visitor landing page, 2026-10-24 fit + ticker): one slim row (~34 px) under the top bar.
   .moving (front-strip.js, only when the items are wider than the strip): the track holds the list twice and slides by
   one list (-50%) in a loop - right-to-left in English, left-to-right in Arabic; hover, focus, a tap (.held) and the
   button (.stopped) pause it. .rm = reduced motion: one item at a time with < > buttons. No scrollbar anywhere. */
.ann-strip{display:flex;align-items:center;gap:0;height:34px;margin:0 0 10px;border:1px solid var(--line);border-radius:999px;
  background:var(--surface);overflow:hidden}
.ann-strip .ann-h{flex:none;display:flex;align-items:center;gap:6px;margin:0;height:100%;padding:0 12px;background:var(--accent);
  color:var(--on-accent,#fff);font-weight:700;font-size:12.5px;line-height:1}
.ann-strip .ann-h svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ann-btn{flex:none;width:30px;height:100%;border:0;border-inline-end:1px solid var(--line);background:transparent;color:var(--ink);
  cursor:pointer;font-size:11px;line-height:1;display:grid;place-items:center;padding:0}
.ann-btn[hidden]{display:none}
.ann-btn:hover{background:var(--accent-soft)}
.ann-btn:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.ann-next{border-inline-end:0;border-inline-start:1px solid var(--line)}
.ann-toggle .play{display:none}.ann-strip.stopped .ann-toggle .play{display:inline}.ann-strip.stopped .ann-toggle .pause{display:none}
.ann-view{flex:1;min-width:0;height:100%;overflow:hidden;display:flex;align-items:center}
.ann-track{display:flex;width:max-content;flex:none;will-change:transform}
.ann-list{list-style:none;margin:0;padding:0 8px 0 8px;display:flex;gap:8px;align-items:center;flex:none}
.ann-clone{display:none}
.ann-strip.moving .ann-clone{display:flex}
.ann-strip.moving .ann-track{animation:ann-ltr var(--ann-dur,40s) linear infinite}
[dir="rtl"] .ann-strip.moving .ann-track{animation-name:ann-rtl}
@keyframes ann-ltr{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes ann-rtl{from{transform:translateX(0)}to{transform:translateX(50%)}}
.ann-strip:hover .ann-track,.ann-strip:focus-within .ann-track,.ann-strip.stopped .ann-track,.ann-strip.held .ann-track{animation-play-state:paused}
.ann-strip li{flex:none}
.ann-strip li a,.ann-strip li span.ann-t{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12.5px;
  font-weight:600;color:var(--ink);text-decoration:none;background:var(--accent-soft);white-space:nowrap;line-height:1.35}
.ann-strip li a:hover{text-decoration:underline}
.ann-strip li a:focus-visible{outline:3px solid var(--accent);outline-offset:-2px}
.ann-strip li.k-message a,.ann-strip li.k-message span.ann-t{background:color-mix(in srgb,var(--amber,#b45309) 16%,var(--surface))}
.ann-strip .ann-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex:none}
.ann-strip li.k-message .ann-dot{background:var(--amber,#b45309)}
/* reduced motion: one item at a time (front-strip.js), or - without the script - the items as they fit */
.ann-strip.rm .ann-clone{display:none}
.ann-strip.rm .ann-list li{display:none}.ann-strip.rm .ann-list li.cur{display:block;min-width:0}
.ann-strip.rm .ann-list li.cur a,.ann-strip.rm .ann-list li.cur span.ann-t{overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ann-strip.rm .ann-list{min-width:0;flex:1}.ann-strip.rm .ann-track{width:100%}
@media (prefers-reduced-motion:reduce){.ann-strip .ann-track{animation:none !important}.ann-strip .ann-clone{display:none !important}}
@media (max-width:640px){.ann-strip{height:32px;margin-bottom:8px}.ann-strip .ann-h{padding:0 10px}.ann-strip .ann-h svg{display:none}}

/* the student card on the landing page */
.entry-card.student-card{border:1.5px solid var(--accent);background:linear-gradient(180deg,var(--accent-soft),var(--surface) 70%)}
.student-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--accent);color:var(--on-accent,#fff);flex:none}
.student-ic .fm-lock{width:26px;height:26px}

/* "Main page" link (People Directory pages) */
.back-main{margin:0 0 10px}
.back-main a{display:inline-flex;align-items:center;gap:6px;font-weight:600;text-decoration:none;color:var(--accent);
  padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.back-main a:hover{background:var(--accent-soft)}
.back-main a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* public /students/ page */
.stu{max-width:1100px;margin:0 auto}
.stu-hero{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.stu-hero h1{margin:0}
.stu-nav{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:0;list-style:none}
.stu-nav a{display:inline-block;padding:6px 12px;border-radius:999px;border:1px solid var(--line);text-decoration:none;font-weight:600;
  font-size:13px;color:var(--ink);background:var(--surface)}
.stu-nav a:hover{background:var(--accent-soft)}
.stu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:14px}
.stu-sec{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius,14px);padding:16px 18px;scroll-margin-top:90px;min-width:0}
.stu-sec h2{margin:0 0 8px;font-size:1.1rem;display:flex;align-items:center;gap:8px}
.stu-sec h2 img{width:30px;height:30px;border-radius:50%}
.stu-sec ul,.stu-sec ol{margin:6px 0 8px;padding-inline-start:20px}
.stu-sec li{margin:3px 0}
.stu-sec .muted{font-size:13px}
.stu-sec .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.stu-sec details{margin:6px 0}
.stu-sec details summary{cursor:pointer;font-weight:600}
.stu-secure{border:1.5px solid var(--accent);background:linear-gradient(180deg,var(--accent-soft),var(--surface) 70%)}

/* phones, signed in (2026-11-14 scenario round, helper D): the one-row bar was 670-730 px wide at 390 px, so every
   Hub page scrolled sideways (and the fixed tour layer grew with it). Below 560 px the bar takes two rows: brand +
   tools on the first, the menus (Services, Directory, Help, Administration) wrapped on the second; the user button is
   cut to a short width and the university logo is smaller. */
@media (max-width:560px){
  header.top.slim.is-in{flex-wrap:wrap;row-gap:6px}
  header.top.slim.is-in .brand span{display:none}
  header.top.slim.is-in .nav{order:3;flex:1 1 100%;min-width:0;flex-wrap:wrap;row-gap:2px}
  header.top.slim.is-in .right{flex:1 1 0;min-width:0;justify-content:flex-end;flex-wrap:wrap;row-gap:4px}
  header.top.slim.is-in .right img.uni-big{height:30px!important;padding:2px 5px!important}
  header.top.slim.is-in .right details.dd>summary.btn{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  header.top.slim.is-in .right .dd-menu.end{position:fixed;top:60px;inset-inline:8px;width:auto;max-width:none}
}

/* phones (2026-11-15 owner: "all of the menus are blurred and can not be seen on the mobile version ... everything can be
   reached"). 1. The top bar is solid on phones: no see-through blur (the blur also made the bar the frame of its
   fixed menus, so they opened in the wrong place, partly off the screen). 2. Every menu of the bar opens as a full-width
   panel right under the bar and scrolls inside itself when long. 3. The signed-in bar (2-3 rows on a phone) slides away
   while the page scrolls down and comes back on any scroll up (base.html script, class rb-up), so it never covers a
   third of the screen and every menu is one flick away; the services' find bar scrolls with the page. 4. The
   visitors' bar takes two rows so Sign in, Help and the language are never pushed off the screen. 5. Long labels wrap. */
@media (max-width:760px){
  header.top.slim{background:var(--surface,var(--card));-webkit-backdrop-filter:none;backdrop-filter:none}
  header.top.slim.is-in{transition:transform .2s ease}
  header.top.slim.is-in.rb-up{transform:translateY(-100%)}
  header.top.slim :is(.dd,.pf-bell-wrap){position:static}
  header.top.slim .dd-menu,header.top.slim .dd-menu.end,header.top.slim .fm-more .dd-menu,header.top.slim .fm-dd .dd-menu{
    position:absolute!important;top:calc(100% + 4px)!important;bottom:auto!important;inset-inline:8px!important;
    width:auto!important;min-width:0!important;max-width:none!important;max-height:min(72vh,600px);overflow-y:auto;
    overscroll-behavior:contain;margin:0!important;transform:none!important;z-index:60}
  header.top.slim .fm-panel{width:auto;min-width:0;max-width:none}
  header.top.slim .pf-pop{top:calc(100% + 4px)!important;inset-inline:8px!important;width:auto!important;max-height:min(72vh,600px)}
  main .svc-bar{position:static;background:var(--card);-webkit-backdrop-filter:none;backdrop-filter:none}
  main .pill{white-space:normal;max-width:100%}
}
@media (max-width:560px){
  header.vbar{flex-wrap:wrap;row-gap:6px}
  header.vbar .right{flex:1 1 100%;min-width:0;justify-content:flex-end;flex-wrap:wrap;row-gap:4px}
  header.vbar .right .rb-uni{margin-inline-end:auto}
  header.vbar .right .rb-uni img{height:32px!important;padding:2px 6px!important}
  header.top.slim.is-in .right .rb-uni img{height:28px!important;padding:2px 4px!important}
  header.top.slim.is-in .right details.dd>summary.btn{max-width:84px}
}
@media (prefers-reduced-motion:reduce){header.top.slim.is-in{transition:none}}
