/* Nawl · UTAS Al Musannah IT department portal. Generated from design/university-en.html, then extended for RTL and inner pages. */
  :root {
    --brand: #2A2A8A; --brand-deep: #1B1B5E; --accent: #FC8A30; --on-accent: #1E1306; --on-brand: #FFFFFF; --on-brand-2: #C9CBF0; --brand-rule: #3B3BA0;
    --u-blue: #3654A2; --u-indigo: #2A2A8A; --u-orange: #FC8A30; --u-orange-2: #EA662A;
    --ink: #1B1C1E; --text: #3B3D41; --muted: #6C6F75; --line: #DEDFE2; --bg: #FFFFFF; --bg-alt: #F4F4F2;
    --photo: #ECECEA; --photo-ink: #D3D3CF;
    --lec: #3654A2; --oh: #E0761F; --duty: #8A2D6B; --free: #2E8B57; --off: #8B8D92;
    --f-display: "Libre Caslon Display", "Amiri", "Libre Caslon Text", Georgia, serif;
    --f-serif: "Libre Caslon Text", "Amiri", Georgia, serif;
    --f-sans: "Libre Franklin", "Noto Sans Arabic", "Franklin Gothic Book", Arial, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
  }
  [data-palette="utasblue"] { --brand: #3654A2; --brand-deep: #22397A; --on-brand-2: #CCD7F2; --brand-rule: #4864B0; }
  [data-palette="utaslight"] { --brand: #EEF0FA; --brand-deep: #2A2A8A; --accent: #EA662A; --on-accent: #FFFFFF; --on-brand: #2A2A8A; --on-brand-2: #4A5288; --brand-rule: #D9DCF0; }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --ink: #F0EEEA; --text: #CFCDC8; --muted: #9C9A95; --line: #34332F; --bg: #131312; --bg-alt: #1B1B19;
      --photo: #252522; --photo-ink: #3D3C38; --lec: #8DB0E6; --oh: #6CC3A6; --duty: #DA8DB0; --free: #A9C46A; --off: #8E8C86; color-scheme: dark; }
    :root:not([data-theme="light"])[data-palette="utaslight"] { --brand: #1C1C3A; --on-brand: #FFFFFF; --on-brand-2: #B9BCE6; --brand-rule: #2E2E5A; }
    :root:not([data-theme="light"]) { --lec: #8FA6E6; --oh: #FFA75E; --duty: #DA8DC0; --free: #6CCB92; }
  }
  :root[data-theme="dark"] { --ink: #F0EEEA; --text: #CFCDC8; --muted: #9C9A95; --line: #34332F; --bg: #131312; --bg-alt: #1B1B19;
    --photo: #252522; --photo-ink: #3D3C38; --lec: #8DB0E6; --oh: #6CC3A6; --duty: #DA8DB0; --free: #A9C46A; --off: #8E8C86; color-scheme: dark; }

  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--f-sans); -webkit-font-smoothing: antialiased; transition: background-color .4s; }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero, .utility, footer, .masthead .bar, .search button, .chip[aria-pressed="true"] { transition: background-color .45s var(--ease), color .45s var(--ease); }

  /* ---------- utility bar + masthead ---------- */
  .utility { background: var(--brand-deep); color: #C9CBD0; font-size: 13.5px; }

  .utility .wrap { display: flex; justify-content: space-between; gap: 16px; height: 36px; align-items: center; }
  .utility nav { display: flex; gap: 22px; }
  .utility a:hover { color: #fff; }
  .masthead { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
  .masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
  .wordmark { display: flex; align-items: center; gap: 14px; color: var(--ink); }
  .wordmark .bar { width: 4px; align-self: stretch; margin: 18px 0; background: var(--accent); }
  .wordmark .bar { background: linear-gradient(var(--u-blue) 0 34%, var(--u-indigo) 34% 67%, var(--u-orange) 67%); }
  .wordmark b { display: block; font: 400 26px/1.2 var(--f-serif); }
  .wordmark .logo { display: block; height: 80px; width: auto; animation: rise .8s var(--ease) both .15s; }
  /* university-style masthead: logo row, then the menu in its own row */
  .masthead { position: static; }
  .masthead .wrap { flex-wrap: wrap; min-height: 0; padding-top: 16px; gap: 0 24px; }
  .mainnav { flex-basis: 100%; border-top: 1px solid var(--line); margin-block: 14px 0; margin-inline: -12px 0; padding-top: 2px; }
  .mainnav a { padding: 11px 12px; }
  .wordmark .sep { width: 1px; align-self: stretch; margin: 18px 6px; background: var(--line); }
  .wordmark .dept { animation: rise .8s var(--ease) both .3s; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark .logo { background: #fff; padding: 5px 9px; border-radius: 4px; } }
  :root[data-theme="dark"] .wordmark .logo { background: #fff; padding: 5px 9px; border-radius: 4px; }
  .wordmark small { display: block; font-size: 13px; color: var(--muted); }
  .mainnav { display: flex; gap: 2px; flex-wrap: wrap; position: relative; }
  .mainnav a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 12px; position: relative; }
  .mainnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .mainnav a:hover::after, .mainnav a[aria-current="page"]::after { transform: scaleX(1); }

  /* ---------- hero with the smart search ---------- */
  .hero { background: var(--brand); color: var(--on-brand); position: relative; z-index: 10; }
  .hero .wrap { padding-top: 42px; padding-bottom: 40px; }
  .hero h1 { margin: 0; font: 400 60px/1.06 var(--f-display); color: var(--on-brand); }
  .hero h1 span { display: inline-block; }
  .hero p { margin: 12px 0 0; font-size: 18.5px; color: var(--on-brand-2); max-width: 640px; }
  .ask { margin-top: 28px; max-width: 760px; position: relative; z-index: 5; }
  .search { display: flex; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
  [data-palette="utaslight"] .search { box-shadow: 0 0 0 1px #CED2EA; }
  .search .ico { display: grid; place-items: center; padding-inline-start: 16px; color: #8A8C90; }
  .search input { flex: 1; min-width: 0; border: 0; padding: 17px 14px; font: 500 17.5px var(--f-sans); color: #1B1C1E; background: transparent; }
  .search input::placeholder { color: #8A8C90; }
  .search input:focus { outline: none; }
  .search:focus-within { outline: 3px solid var(--accent); }
  .search kbd { align-self: center; margin-inline-end: 14px; font: 600 12px var(--f-sans); color: #8A8C90; border: 1px solid #D5D6D9; padding: 1px 7px; }
  .suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg); color: var(--text); box-shadow: 0 18px 50px -18px rgba(0,0,0,.45), 0 0 0 1px var(--line);
    max-height: min(480px, 62vh); overflow: auto; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  .suggest.open { opacity: 1; transform: none; pointer-events: auto; }
  .suggest h3 { margin: 0; padding: 12px 18px 4px; font: 700 11.5px var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .suggest a { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 9px 18px; cursor: pointer; }
  .suggest a[aria-selected="true"], .suggest a:hover { background: var(--bg-alt); }
  .suggest .mono { width: 34px; height: 34px; display: grid; place-items: center; background: var(--bg-alt); color: var(--ink); font: 600 11px var(--f-sans); border: 1px solid var(--line); }
  .suggest a[aria-selected="true"] .mono, .suggest a:hover .mono { background: var(--bg); }
  .suggest b { display: block; color: var(--ink); font: 400 16px/1.3 var(--f-serif); }
  .suggest small { display: block; color: var(--muted); font-size: 13px; }
  .suggest .go { font-size: 12.5px; color: var(--muted); }
  .suggest .none { padding: 16px 18px; color: var(--muted); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .chip { appearance: none; border: 1px solid color-mix(in srgb, var(--on-brand) 35%, transparent); background: transparent; color: var(--on-brand); font: 500 14px var(--f-sans);
    padding: 6px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease); }
  .chip:hover { border-color: var(--on-brand); }
  .chip:active { transform: scale(.97); }
  .chip i { width: 8px; height: 8px; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .75); }
  /* on the UTAS-blue hero the blue blade would vanish: lighten it */
  [data-palette="utasblue"] .brandart .s2 path { fill: #6F8BD6; }
  .chip b { font-weight: 700; }
  .chip[aria-pressed="true"] { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }

  /* ---------- now ribbon ---------- */
  .now { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
  .now .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 34px; padding-top: 16px; padding-bottom: 16px; }
  .now h2 { margin: 0; font: italic 400 19px var(--f-serif); color: var(--ink); }
  .now .when { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .now select, .now input, .bar-tools select { font: 500 14px var(--f-sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 5px 8px; }
  .live { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; color: var(--muted); }
  .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--free); position: relative; }
  .live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--free); animation: ping 2.4s var(--ease) infinite; }
  @keyframes ping { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
  .facts { display: flex; margin-inline-start: auto; }
  .facts div { padding: 0 18px; border-inline-start: 1px solid var(--line); text-align: center; }
  .facts div:first-child { border-inline-start: 0; }
  .facts b { display: block; font: 400 32px/1.1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
  .facts span { font-size: 13px; color: var(--muted); }

  /* ---------- results ---------- */
  .results { padding-top: 34px; padding-bottom: 80px; }
  .results-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 28px; }
  .results-head h2 { margin: 0; font: 400 32px/1.1 var(--f-display); color: var(--ink); }
  .results-head p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
  .bar-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
  .scope { margin: -12px 0 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14.5px; color: var(--text); animation: fade .35s var(--ease) both; }
  .scope button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
  .view-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 36px 26px; }

  /* view switcher */
  .views { display: inline-flex; border: 1px solid var(--line); position: relative; }
  .views button { appearance: none; background: none; border: 0; padding: 6px 14px; font: 600 13.5px var(--f-sans); color: var(--muted); cursor: pointer; position: relative; z-index: 1; transition: color .25s; display: inline-flex; gap: 7px; align-items: center; }
  .views button svg { width: 15px; height: 15px; }
  .views button[aria-pressed="true"] { color: var(--bg); }
  .views .pill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--ink); transition: transform .35s var(--ease), width .35s var(--ease); }

  /* 1 · flip cards */
  .flip { display: block; perspective: 1400px; color: inherit; animation: rise .55s var(--ease) both; animation-delay: calc(min(var(--i), 16) * 35ms); }
  .flip-in { position: relative; transform-style: preserve-3d; transition: transform .75s var(--ease); }
  .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .front .cap { padding-top: 12px; }
  .front .name { font: 400 18.5px/1.3 var(--f-serif); color: var(--ink); display: block; }
  .front .role { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
  .front .dot { display: flex; gap: 8px; align-items: baseline; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13.5px; }
  /* every card in a row is as tall as the tallest one; the status line sits at the bottom so the rows line up */
  .flip { display: flex; flex-direction: column; }
  .flip-in, .front { flex: 1; display: flex; flex-direction: column; }
  .front .cap { flex: 1; display: flex; flex-direction: column; }
  .front .role { margin-bottom: 10px; }
  .front .dot i { width: 9px; height: 9px; background: var(--c); flex: none; transform: translateY(-1px); }
  .back { position: absolute; inset: 0; transform: rotateY(180deg); background: var(--brand); color: var(--on-brand); padding: 18px 18px 16px; display: flex; flex-direction: column; border-top: 5px solid var(--c); overflow: hidden; }
  .back small { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-brand-2); }
  .back .bname { font: 400 21px/1.2 var(--f-display); margin-top: 6px; }
  .back .bst { margin-top: 14px; font: 400 19px/1.25 var(--f-serif); }
  .back .bwhere { margin: 4px 0 0; font-size: 14px; color: var(--on-brand-2); }
  .back dl { margin: auto 0 0; font-size: 13px; display: grid; gap: 6px; }
  .back dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-brand-2); }
  .back dd { margin: 0; overflow-wrap: anywhere; }
  .back .more { margin-top: 12px; font-weight: 700; font-size: 13.5px; border-top: 1px solid color-mix(in srgb, var(--on-brand) 25%, transparent); padding-top: 10px; }
  @media (hover: hover) { .flip:hover .flip-in { transform: rotateY(180deg); } }
  .flip:focus-visible .flip-in { transform: rotateY(180deg); }
  @media (hover: none) { .back { display: none; } }

  /* 2 · A-Z index */
  .az { display: flex; flex-wrap: wrap; gap: 2px; margin: -8px 0 22px; }
  .az a, .az span { width: 30px; height: 30px; display: grid; place-items: center; font: 400 17px var(--f-serif); }
  .az a { color: var(--ink); transition: background-color .2s, color .2s; }
  .az a:hover { background: var(--ink); color: var(--bg); }
  .az span { color: var(--line); }
  .ix-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding: 14px 0 18px; animation: rise .5s var(--ease) both; animation-delay: calc(min(var(--i), 10) * 50ms); scroll-margin-top: 100px; }
  .ix-letter { font: 400 76px/0.9 var(--f-display); color: var(--ink); position: sticky; top: 96px; align-self: start; }
  .ix-list { list-style: none; margin: 0; padding: 0; }
  .ix-list a { display: grid; grid-template-columns: 12px auto minmax(24px, 1fr) auto; gap: 12px; align-items: baseline; padding: 7px 0; color: inherit; }
  .ix-list i { width: 9px; height: 9px; background: var(--c); transform: translateY(-1px); }
  .ix-name { font: 400 19px/1.3 var(--f-serif); color: var(--ink); transition: color .2s; }
  .ix-name small { font: 400 13px var(--f-sans); color: var(--muted); margin-inline-start: 8px; }
  .ix-dots { border-bottom: 1px dotted var(--muted); transform: translateY(-5px); opacity: .55; transition: opacity .2s; }
  .ix-where { font-size: 13.5px; color: var(--text); text-align: end; white-space: nowrap; }
  .ix-list a:hover .ix-dots { opacity: 1; }
  .ix-list a:hover .ix-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .peek { position: fixed; left: 0; top: 0; z-index: 30; width: 170px; pointer-events: none; background: var(--bg); box-shadow: 0 20px 40px -18px rgba(0,0,0,.45), 0 0 0 1px var(--line);
    opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(.94); transition: opacity .18s, transform .12s linear; }
  .peek.on { opacity: 1; transform: translate(var(--x, 0), var(--y, 0)) scale(1); }
  .peek .photo { aspect-ratio: 4 / 5; }
  .peek div.t { padding: 8px 10px 10px; font-size: 12.5px; color: var(--muted); }
  .peek div.t b { display: block; font: 400 15px/1.25 var(--f-serif); color: var(--ink); }

  /* 3 · right-now lanes */
  .lane { margin-bottom: 34px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
  .lane-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; }
  .lane-head h3 { margin: 0; font: 400 24px var(--f-serif); color: var(--ink); display: flex; gap: 10px; align-items: center; }
  .lane-head h3 i { width: 12px; height: 12px; background: var(--c); }
  .lane-head h3 span { font: 400 15px var(--f-sans); color: var(--muted); }
  .lane-nav button { appearance: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 34px; height: 30px; cursor: pointer; font-size: 15px; transition: border-color .2s; }
  .lane-nav button:hover { border-color: var(--ink); }
  .lane-track { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: thin; }
  .mini { scroll-snap-align: start; color: inherit; display: block; }
  .mini .photo svg { transition: transform .5s var(--ease); }
  .mini:hover .photo svg { transform: scale(1.05); }
  .mini b { display: block; margin-top: 9px; font: 400 16px/1.3 var(--f-serif); color: var(--ink); }
  .mini small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .mini:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .card { display: block; color: inherit; cursor: pointer; animation: rise .55s var(--ease) both; animation-delay: calc(min(var(--i), 16) * 35ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .photo { aspect-ratio: 4 / 5; background: var(--photo); position: relative; overflow: hidden; }
  .photo svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 86%; color: var(--photo-ink); transition: transform .6s var(--ease); transform-origin: 50% 100%; }
  .card:hover .photo svg { transform: scale(1.05); }
  .photo .state { position: absolute; left: 0; bottom: 0; right: 0; padding: 7px 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); font-size: 12.5px; color: var(--ink);
    display: flex; gap: 7px; align-items: center; transform: translateY(100%); transition: transform .35s var(--ease); }
  .photo .state i { width: 8px; height: 8px; background: var(--c); flex: none; }
  .card:hover .photo .state, .card:focus-visible .photo .state { transform: none; }
  .card .name { display: inline; margin-top: 12px; font: 400 18.5px/1.3 var(--f-serif); color: var(--ink);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
  .card:hover .name { background-size: 100% 1px; }
  .card .name-wrap { margin-top: 12px; }
  .card .role { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
  .status { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--text); }
  .status i { flex: none; width: 9px; height: 9px; background: var(--c, var(--off)); transform: translateY(-1px); }
  .status .t { white-space: nowrap; }
  .empty { padding: 40px 0; color: var(--muted); animation: fade .3s both; }

  /* ---------- side panel (profile / room / course) ---------- */
  .scrim { position: fixed; inset: 0; background: rgba(12, 12, 14, .45); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); z-index: 40; }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .panel { position: fixed; top: 0; inset-inline-end: 0; bottom: 0; width: min(640px, 100%); background: var(--bg); z-index: 50; overflow-y: auto; transform: translateX(104%);
    transition: transform .45s var(--ease); box-shadow: -30px 0 60px -30px rgba(0,0,0,.4); }
  .panel.open { transform: none; }
  .panel-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; background: var(--brand); color: var(--on-brand); }
  .panel-top small { font-size: 13px; color: var(--on-brand-2); }
  .close { appearance: none; background: none; border: 1px solid color-mix(in srgb, var(--on-brand) 40%, transparent); color: var(--on-brand); font: 600 13.5px var(--f-sans); padding: 5px 12px; cursor: pointer; }
  .close:hover { border-color: var(--on-brand); }
  .panel-body { padding: 28px; }
  .panel-body > * { animation: rise .5s var(--ease) both; }
  .panel-body > *:nth-child(2) { animation-delay: 60ms; } .panel-body > *:nth-child(3) { animation-delay: 120ms; } .panel-body > *:nth-child(4) { animation-delay: 180ms; }
  .who { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: end; }
  .who h2 { margin: 0; font: 400 38px/1.08 var(--f-display); color: var(--ink); }
  .who p { margin: 6px 0 0; color: var(--muted); }
  .nowbox { margin-top: 24px; padding: 14px 18px; background: var(--bg-alt); border-inline-start: 4px solid var(--c, var(--off)); }
  .nowbox small { display: block; font-size: 12.5px; color: var(--muted); }
  .nowbox b { font: 400 21px var(--f-serif); color: var(--ink); }
  .nowbox p { margin: 2px 0 0; font-size: 14.5px; }
  .contact { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
  .contact div { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .contact div:nth-child(odd) { padding-inline-end: 16px; }
  .contact dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .contact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
  .contact dd.missing { color: var(--muted); }
  .contact a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
  .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 28px; position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .tabs button { appearance: none; background: none; border: 0; padding: 10px 12px; font: 600 15px var(--f-sans); color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .2s; }
  .tabs button[aria-selected="true"] { color: var(--ink); }
  .tabs .ind { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--ink); transition: transform .35s var(--ease), width .35s var(--ease); }
  .tabpanel { padding-top: 22px; animation: fade .3s both; }
  .tt-wrap { overflow-x: auto; }
  table.tt { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12.5px; }
  table.tt th, table.tt td { border: 1px solid var(--line); padding: 5px; text-align: center; height: 48px; }
  table.tt thead th { height: auto; font: 600 12px var(--f-sans); color: var(--muted); background: var(--bg-alt); }
  table.tt tbody th { width: 46px; font: 700 12.5px var(--f-sans); color: var(--ink); background: var(--bg-alt); }
  table.tt td.slot { text-align: start; vertical-align: top; border-top: 3px solid var(--c); background: color-mix(in srgb, var(--c) 7%, var(--bg)); }
  table.tt td.slot b { display: block; font: 600 12.5px var(--f-sans); color: var(--ink); }
  table.tt td.slot small { display: block; font-size: 11.5px; color: var(--muted); }
  table.tt td.slot.cur { outline: 2px solid var(--ink); outline-offset: -2px; }
  .key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
  .key span { display: inline-flex; gap: 7px; align-items: center; }
  .key i { width: 12px; height: 3px; background: var(--c); }
  ul.rows { list-style: none; margin: 0; padding: 0; }
  ul.rows li { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; align-items: baseline; }
  ul.rows li b { color: var(--ink); font-weight: 600; }
  ul.rows li small { color: var(--muted); }
  ul.rows li .r { text-align: end; color: var(--muted); font-size: 13.5px; }
  ul.rows li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); color: var(--ink); }
  .courses { display: flex; flex-wrap: wrap; gap: 10px; }
  .courses button { appearance: none; border: 1px solid var(--line); background: var(--bg); padding: 7px 14px; font: 600 14px var(--f-sans); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
  .courses button:hover { border-color: var(--ink); transform: translateY(-1px); }
  .note { font-size: 13px; color: var(--muted); margin-top: 14px; }
  h3.sec { font: 400 22px var(--f-serif); color: var(--ink); margin: 26px 0 8px; }

  /* ---------- footer ---------- */
  footer { background: var(--brand-deep); color: #B9BBC0; font-size: 14px; }
  footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 30px; }
  footer b { display: block; color: #fff; font: 400 19px var(--f-serif); margin-bottom: 6px; }
  footer h4 { margin: 0 0 8px; color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }
  footer a { display: block; padding: 2px 0; color: #D7D8DB; }
  footer a:hover { color: #fff; }
  footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 12.5px; color: #8F9196; }

  /* ---------- prototype-only palette switcher ---------- */

  /* ---------- load-in motion ---------- */
  .reveal { animation: rise .7s var(--ease) both; }
  .reveal.d1 { animation-delay: 80ms; } .reveal.d2 { animation-delay: 160ms; } .reveal.d3 { animation-delay: 240ms; }

  /* brand shapes floating in the hero (taken from the logo's geometry) */
  .hero { overflow: visible; isolation: isolate; }
  .hero > .wrap { position: relative; z-index: 2; }
  .brandart { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
  .brandart .set { position: absolute; inset-inline-end: max(-40px, calc((100vw - 1200px) / 2 - 40px)); top: 50%; width: 520px; height: 520px; transform: translate(calc(var(--px, 0) * -18px), calc(-50% + var(--py, 0) * -18px)); transition: transform .6s var(--ease); }
  .brandart svg { position: absolute; overflow: visible; }
  .brandart .s1 { width: 300px; left: 40px; top: 210px; animation: float1 9s ease-in-out infinite; transform-origin: 50% 50%; }
  .brandart .s2 { width: 150px; left: 300px; top: 40px; animation: float2 7s ease-in-out infinite; }
  .brandart .s3 { width: 150px; left: 360px; top: 150px; animation: float3 8s ease-in-out infinite; }
  .brandart .s4 { width: 70px; left: 70px; top: 90px; animation: float2 6s ease-in-out infinite reverse; }
  .brandart .grow { animation: grow 1.1s var(--ease) both; animation-delay: .5s; transform-box: fill-box; transform-origin: 50% 100%; }
  @keyframes float1 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-4deg); } }
  @keyframes float2 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(14px) rotate(5deg); } }
  @keyframes float3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, -12px); } }
  @keyframes grow { from { transform: scale(.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(255, 255, 255, .09), transparent 60%); }
  [data-palette="utaslight"] .hero::after { background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(54, 84, 162, .10), transparent 60%); }

  /* headline: words rise out of a mask */
  .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .hero h1 .w > span { display: inline-block; animation: wordUp .9s var(--ease) both; animation-delay: calc(var(--wi) * 90ms + .25s); }
  @keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }
  .hero h1 .accent { color: var(--accent); }

  /* opening sweep in the logo colours (once per visit) */
  .curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: grid; grid-template-rows: 1fr 1fr 1fr; }
  .curtain span { transform-origin: right; animation: sweep .95s var(--ease) both; }
  .curtain span:nth-child(1) { background: var(--u-indigo); animation-delay: .05s; }
  .curtain span:nth-child(2) { background: var(--u-blue); animation-delay: .14s; }
  .curtain span:nth-child(3) { background: var(--u-orange); animation-delay: .23s; }
  @keyframes sweep { from { transform: scaleX(1); } to { transform: scaleX(0); } }

  /* live ticker */
  .ticker { background: var(--brand-deep); color: #fff; overflow: hidden; white-space: nowrap; font-size: 14px; position: relative; }
  .ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; }
  .ticker::before { left: 0; background: linear-gradient(90deg, var(--brand-deep), transparent); }
  .ticker::after { right: 0; background: linear-gradient(-90deg, var(--brand-deep), transparent); }
  .ticker .lbl { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding-block: 0; padding-inline: 24px 16px; background: var(--u-orange); color: #1E1306; font: 700 12px var(--f-sans); letter-spacing: .12em; text-transform: uppercase; }
  .ticker .lbl i { width: 7px; height: 7px; border-radius: 50%; background: #1E1306; animation: blink 1.2s steps(2) infinite; }
  @keyframes blink { 50% { opacity: .2; } }
  .ticker-track { display: inline-flex; gap: 0; padding-block: 11px; padding-inline: 150px 0; animation: tick var(--dur, 60s) linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .ticker-track a { color: #fff; display: inline-flex; gap: 8px; align-items: center; padding: 0 22px; border-inline-end: 1px solid rgba(255,255,255,.18); }
  .ticker-track a:hover { color: var(--u-orange); }
  .ticker-track a i { width: 8px; height: 8px; background: var(--c); }
  .ticker-track a b { font-weight: 600; }
  @keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* scroll reveal */
  .rv { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
  .rv.in { opacity: 1; transform: none; }
  .flip.rv, .lane.rv, .ix-group.rv { animation: none; }
  .results-head h2 { position: relative; padding-bottom: 12px; }
  .results-head h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 4px; width: 64px; background: var(--u-orange); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .2s; }
  .results-head.in h2::after { transform: none; }

  /* tilt on the small cards */
  .mini { transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .25s var(--ease); }
  .facts b { transition: color .3s; }
  .facts div:hover b { color: var(--u-orange-2); }

  @media (max-width: 1320px) { .brandart .set { inset-inline-end: -170px; } }
  @media (max-width: 960px) {
    .brandart .set { opacity: .35; inset-inline-end: -220px; }
    .masthead { position: static; }
    .masthead .wrap { flex-direction: column; align-items: flex-start; padding-top: 14px; padding-bottom: 6px; gap: 6px; }
    .mainnav { margin-inline-start: -12px; }
    .facts { margin-inline-start: 0; }
    footer .wrap { grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .utility nav a:nth-child(2) { display: none; }
    .mainnav a { padding: 6px 9px; font-size: 14.5px; }
    .wordmark { flex-wrap: wrap; gap: 6px 12px; }
    .wordmark .logo { height: 50px; }
    .wordmark .sep { display: none; }
    .wordmark .dept { flex-basis: 100%; }
    .wordmark b { font-size: 20px; }
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 16.5px; }
    .search kbd { display: none; }
    .view-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
    .front .name { font-size: 16.5px; }
    .ix-group { grid-template-columns: 1fr; gap: 4px; }
    .ix-letter { position: static; font-size: 52px; }
    .ix-list a { grid-template-columns: 12px minmax(0, 1fr) auto; }
    .ix-dots { display: none; }
    .ix-name small { display: block; margin: 0; }
    .ix-where { white-space: normal; max-width: 130px; }
    .lane-track { grid-auto-columns: 140px; gap: 12px; }
    .views button span { display: none; }
    .card .name { font-size: 16.5px; }
    .facts div { padding: 0 11px; }
    .facts b { font-size: 25px; }
    .panel-body { padding: 20px 16px; }
    .panel-top { padding: 12px 16px; }
    .who { grid-template-columns: 96px 1fr; gap: 16px; }
    .who h2 { font-size: 29px; }
    .contact { grid-template-columns: 1fr; }
    .contact div:nth-child(odd) { padding-inline-end: 0; }
    ul.rows li { grid-template-columns: 1fr auto; }
    ul.rows li > :first-child { grid-column: 1 / -1; }
  }

  /* ================================================================ right-to-left */
  [dir="rtl"] body { line-height: 1.8; }
  [dir="rtl"] .hero h1 { line-height: 1.25; }
  [dir="rtl"] .panel { transform: translateX(-104%); box-shadow: 30px 0 60px -30px rgba(0,0,0,.4); }
  [dir="rtl"] .panel.open { transform: none; }
  [dir="rtl"] .ticker::before { background: linear-gradient(-90deg, var(--brand-deep), transparent); }
  [dir="rtl"] .ticker::after { background: linear-gradient(90deg, var(--brand-deep), transparent); }
  [dir="rtl"] .ticker-track { animation-name: tick-rtl; }
  @keyframes tick-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
  [dir="rtl"] .curtain span { transform-origin: left; }
  [dir="rtl"] .brandart .set { transform: translate(calc(var(--px, 0) * 18px), calc(-50% + var(--py, 0) * -18px)) scaleX(-1); }
  [dir="rtl"] .wordmark b, [dir="rtl"] .hero h1, [dir="rtl"] .page-hero h1 { font-family: "Amiri", var(--f-display); font-weight: 700; }
  .ltr { direction: ltr; unicode-bidi: isolate; }
  [dir="rtl"] .name, [dir="rtl"] .bname, [dir="rtl"] .ix-name, [dir="rtl"] .mini b, [dir="rtl"] .who h2, [dir="rtl"] .person-h1 { unicode-bidi: plaintext; text-align: right; }

  /* ================================================================ language switch */
  .utility .lang { font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 1px 10px; }
  .utility .lang:hover { border-color: #fff; }

  /* ================================================================ inner pages */
  .page-hero { background: var(--brand); color: var(--on-brand); }
  .page-hero .wrap { padding-top: 26px; padding-bottom: 30px; }
  .crumbs { font-size: 13.5px; color: var(--on-brand-2); margin-bottom: 10px; }
  .crumbs a { color: var(--on-brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
  .crumbs span { margin: 0 8px; opacity: .6; }
  .page-hero h1 { margin: 0; font: 400 46px/1.1 var(--f-display); }
  .page-hero p { margin: 8px 0 0; color: var(--on-brand-2); font-size: 17px; }
  .page-hero .sub { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 12px; font-size: 15px; color: var(--on-brand-2); }
  .page-hero .sub a { color: var(--on-brand); }
  .page { padding-block: 34px 70px; display: grid; gap: 34px; }
  .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 34px; align-items: start; }
  .block h2 { margin: 0 0 12px; font: 400 26px/1.15 var(--f-display); color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
  .block h2 small { font: 400 14px var(--f-sans); color: var(--muted); }
  .note { font-size: 13.5px; color: var(--muted); }
  .muted { color: var(--muted); }
  .tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 9px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
  .tag.warn { border-color: color-mix(in srgb, var(--u-orange-2) 50%, transparent); color: var(--u-orange-2); }
  .tag.sample { border-color: var(--u-orange); color: var(--u-orange-2); }
  .btn { appearance: none; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); padding: 7px 16px; font: 600 14px var(--f-sans); cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s; }
  .btn:hover { background: var(--ink); color: var(--bg); }
  .btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .btn.accent:hover { filter: brightness(.95); }
  .btn.on { background: var(--ink); color: var(--bg); }
  .toolbar { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; }
  .toolbar select, .toolbar input[type=search], .toolbar input[type=month], .toolbar input[type=text], textarea.field { font: 500 14.5px var(--f-sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 7px 10px; }
  table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
  table.data th { text-align: start; font: 700 11.5px var(--f-sans); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--ink); padding: 9px 10px; white-space: nowrap; }
  [dir="rtl"] table.data th { letter-spacing: 0; font-size: 13px; }
  table.data td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; color: var(--text); }
  table.data tr:hover td { background: var(--bg-alt); }
  table.data a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
  table.data a:hover { text-decoration-color: var(--ink); }
  .tbl { overflow-x: auto; }
  .num { font-variant-numeric: tabular-nums; }
  .kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0; }
  .kv div { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .kv div:nth-child(odd) { padding-inline-end: 16px; }
  .kv dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  [dir="rtl"] .kv dt { letter-spacing: 0; font-size: 13px; }
  .kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
  .kv dd.missing { color: var(--muted); }
  .grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 26px; }
  .grid-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .grid-list a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
  .grid-list .t { font: 400 17px/1.3 var(--f-serif); }
  .grid-list small { color: var(--muted); font-size: 13px; white-space: nowrap; }
  .roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 26px; }
  .roster a { display: grid; gap: 1px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .roster a b { font: 400 16px/1.3 var(--f-serif); }
  .roster a small { color: var(--muted); font-size: 12.5px; }
  .roster a:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .profile-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding-block: 34px 70px; }
  .profile-page .photo { aspect-ratio: 4 / 5; }
  .person-h1 { margin: 0; font: 400 50px/1.08 var(--f-display); color: var(--ink); }
  .messages { display: grid; gap: 8px; margin-top: 18px; }
  .msg { padding: 10px 14px; border-inline-start: 4px solid var(--lec); background: var(--bg-alt); color: var(--ink); }
  .msg.success { border-color: var(--free); }
  .msg.error, .msg.warning { border-color: var(--u-orange-2); }
  .tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 34px; }
  .tool { padding: 18px 0 22px; border-top: 2px solid var(--ink); display: grid; gap: 8px; align-content: start; }
  .tool h3 { margin: 0; font: 400 22px var(--f-serif); color: var(--ink); }
  .tool p { margin: 0; color: var(--text); font-size: 14.5px; }
  .tool input[type=file] { font: 13.5px var(--f-sans); }
  .demo-note { padding: 12px 16px; border: 1px dashed var(--u-orange); background: color-mix(in srgb, var(--u-orange) 8%, var(--bg)); color: var(--ink); font-size: 14.5px; }
  .stat-row { display: flex; gap: 0; flex-wrap: wrap; }
  .stat-row a { padding: 6px 22px; border-inline-start: 1px solid var(--line); color: var(--ink); text-align: center; }
  .stat-row a:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .stat-row b { display: block; font: 400 34px/1.1 var(--f-display); }
  .stat-row span { font-size: 13px; color: var(--muted); }
  @media (max-width: 960px) {
    .two-col, .profile-page { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .profile-page aside { display: grid; grid-template-columns: 130px 1fr; gap: 18px; }
  }
  @media (max-width: 640px) {
    .page-hero h1 { font-size: 34px; }
    .person-h1 { font-size: 34px; }
    .kv { grid-template-columns: 1fr; }
    .kv div:nth-child(odd) { padding-inline-end: 0; }
    .profile-page aside { grid-template-columns: 100px 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .curtain { display: none; }
    .rv { opacity: 1; transform: none; }
  }

/* real staff photos (when uploaded) fill the frame */
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.flip:hover .photo img, .mini:hover .photo img { transform: scale(1.04); }

.subtitle { font-size: 18px; color: var(--muted); margin-top: 6px; }
[dir="rtl"] .roster b, [dir="rtl"] .grid-list .t { unicode-bidi: plaintext; text-align: right; }

/* grid children may shrink below their content (wide timetables scroll inside their own box) */
.page > *, .profile-page > *, .two-col > *, .block { min-width: 0; }

/* marks table on the section page */
table.marks th, table.marks td { white-space: nowrap; }
table.marks td:first-child { white-space: normal; min-width: 200px; }
table.marks tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; color: var(--ink); font-size: 13px; }
.abs { display: inline-block; padding: 0 8px; font-weight: 600; }
.abs.ok { color: var(--free); }
.abs.warn { background: color-mix(in srgb, var(--u-orange) 18%, transparent); color: var(--u-orange-2); }
.abs.limit { background: var(--u-orange-2); color: #fff; }

/* sign-out button in the utility bar (online copy) */
.utility .signout { display: inline; margin: 0; }
.utility .signout button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; opacity: .85; }
.utility .signout button:hover { opacity: 1; text-decoration: underline; }
