/* Masarok guide: shared styles for the English and Arabic homepages */
/* Layout: full-bleed night-sky hero where Najd dunes meet Sydney Harbour under the Southern Cross, Al Sadu woven bands as dividers, then a calm reading column of guide sections. */
:root{
  /* the whole site sits under the night sky */
  --bg:#0B1626;
  --surface:rgba(16,34,60,.82);
  --ink:#E8EDF3;
  --muted:#AEBBCB;
  --line:rgba(238,242,247,.14);
  --green:#6CCB98;
  --green-soft:rgba(91,192,138,.14);
  --sand:#E2B66C;
  --sand-soft:rgba(226,182,108,.11);
  --harbour:#86AEE0;
  color-scheme:dark;

  /* the hero and footer are always night scenes */
  --night:#0B1626;
  --night-2:#173252;
  --night-ink:#EEF2F7;
  --night-dim:#A9B8CB;
  --gold:#E2B66C;

  --f-display:"Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body:"Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono:"IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-ar:"IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;

  --step-0:1.0625rem;
  --step-1:1.25rem;
  --step-2:clamp(1.5rem, 1.2vw + 1.1rem, 1.85rem);
  --step-3:clamp(2.2rem, 4.5vw + 1rem, 3.8rem);
  --radius:10px;
  --sadu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Crect width='48' height='18' fill='%232A1612'/%3E%3Crect width='48' height='2' fill='%23C99A5B'/%3E%3Crect y='16' width='48' height='2' fill='%23C99A5B'/%3E%3Cpath d='M0 2h8l-4 5zM8 2h8l-4 5zM16 2h8l-4 5zM24 2h8l-4 5zM32 2h8l-4 5zM40 2h8l-4 5zM0 16h8l-4-5zM8 16h8l-4-5zM16 16h8l-4-5zM24 16h8l-4-5zM32 16h8l-4-5zM40 16h8l-4-5z' fill='%239C2A22'/%3E%3Cpath d='M24 5l4 4-4 4-4-4z' fill='%23F3EBDD'/%3E%3Cpath d='M8 7.5l1.5 1.5L8 10.5 6.5 9zM40 7.5l1.5 1.5-1.5 1.5L38.5 9z' fill='%23C99A5B'/%3E%3C/svg%3E");
}
*{box-sizing:border-box}
html{background:var(--night)}
body{
  background:transparent; color:var(--ink);
  font-family:var(--f-body); font-size:var(--step-0); line-height:1.65;
}
.wrap{max-width:50rem; margin-inline:auto; padding-inline:16px}
a{color:var(--gold); text-underline-offset:3px}
a:focus-visible, button:focus-visible, input:focus-visible{outline:3px solid var(--sand); outline-offset:2px; border-radius:4px}
h1,h2,h3{font-family:var(--f-display); line-height:1.15; text-wrap:balance; margin:0}
h2{font-size:var(--step-2); font-weight:700; letter-spacing:-.01em}
h3{font-size:var(--step-1); font-weight:700}
p{margin:0}
.eyebrow{font-family:var(--f-mono); font-size:.8125rem; color:var(--sand); display:flex; align-items:center; gap:10px}
.eyebrow::before{content:""; width:9px; height:9px; background:var(--sand); transform:rotate(45deg); flex:none}

/* hero: night sky, Southern Cross, dunes meeting the harbour */
/* the night sky is fixed behind the whole page; the hero only adds the Southern Cross and the skyline */
body::before{content:""; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:radial-gradient(110% 80% at 85% 0%, var(--night-2) 0%, var(--night) 62%)}
[dir="rtl"] body::before{background:radial-gradient(110% 80% at 15% 0%, var(--night-2) 0%, var(--night) 62%)}
.hero{position:relative; overflow:hidden; color:var(--night-ink); background:transparent; padding-inline:16px}
.hero-inner{position:relative; z-index:2; max-width:62rem; margin-inline:auto}
.sky, .cross, .scene{position:absolute; pointer-events:none}
.hero .sky{position:fixed; inset:0; width:100%; height:100%; z-index:-1}
.cross{top:72px; right:max(16px, calc(50% - 31rem)); width:150px; height:150px; z-index:1}
.scene{left:0; bottom:18px; width:100%; height:200px; z-index:1}
.sadu{height:18px; background:var(--sadu) repeat-x left center; background-size:auto 18px}
.hero > .sadu{position:absolute; left:0; right:0; bottom:0; z-index:2}

.top{display:flex; justify-content:space-between; align-items:center; gap:12px 20px; flex-wrap:wrap; padding-block:20px; border-bottom:1px solid rgba(238,242,247,.12)}
.brand{font-family:var(--f-display); font-weight:800; font-size:1.25rem; color:var(--night-ink); text-decoration:none; display:flex; align-items:baseline; gap:10px}
.brand .ar{font-family:var(--f-ar); font-weight:500; color:var(--gold); font-size:1.0625rem}
.top nav{display:flex; gap:6px 18px; flex-wrap:wrap; font-size:.9375rem}
.top nav a{color:var(--night-dim); text-decoration:none}
.top nav a:hover{color:var(--night-ink)}
.top nav a.lang{border:1px solid rgba(238,242,247,.35); border-radius:999px; padding:1px 12px; color:var(--night-ink)}
.top nav a.lang:lang(ar){font-family:var(--f-ar)}
.top nav a.lang:hover{border-color:var(--gold); color:var(--gold)}

.hero-copy{display:grid; gap:20px; max-width:38rem; padding-block:56px 240px}
.hero h1{font-size:var(--step-3); font-weight:800; letter-spacing:-.025em; color:var(--night-ink)}
.hero h1 em{font-style:normal; color:var(--gold)}
.hero .lede{color:#C8D3E0; font-size:1.0625rem; max-width:34rem}
.hero .tagline{font-family:var(--f-ar); color:var(--gold); font-size:1.25rem; width:fit-content}
.hero .cta{display:flex; flex-wrap:wrap; gap:10px}
.trust{display:flex; flex-wrap:wrap; gap:6px 18px; font-family:var(--f-mono); font-size:.8125rem; color:var(--night-dim)}
.trust span{display:flex; align-items:center; gap:8px}
.trust span::before{content:""; width:6px; height:6px; background:var(--gold); transform:rotate(45deg)}
.btn{display:inline-block; font-family:var(--f-body); font-weight:700; font-size:.9375rem; padding:11px 18px; border-radius:8px; text-decoration:none; border:1.5px solid transparent}
.btn-primary{background:var(--gold); color:#1A1206}
.btn-ghost{border-color:rgba(238,242,247,.35); color:var(--night-ink)}
.btn:hover{filter:brightness(1.08)}

section{padding-block:56px 0; display:grid; gap:18px}
section > *{min-width:0}
.cc-block{display:grid; gap:18px; min-width:0}
.cc-pick{grid-template-columns:repeat(auto-fill, minmax(9rem, 1fr))} /* lets wide tables scroll inside their box on phones */
section > p.intro{color:var(--muted); max-width:40rem}

/* author note */
.author{display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:start; padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); margin-top:22px}
.avatar{width:52px; height:52px; border-radius:50%; background:rgba(226,182,108,.14); color:var(--gold); display:grid; place-items:center; font-family:var(--f-display); font-weight:800; font-size:1.25rem}
.author p{color:var(--muted)}
.author strong{color:var(--ink)}

/* study options: parallel choices, not a sequence */
.group-label{font-family:var(--f-mono); font-size:.8125rem; color:var(--night-dim); margin-top:6px}
.options{display:grid; grid-template-columns:repeat(auto-fit, minmax(17rem, 1fr)); gap:14px}
.option{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; display:grid; gap:10px; align-content:start; min-width:0}
.option .ticket{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; font-family:var(--f-mono); font-size:.8125rem; color:var(--muted); padding-bottom:10px; border-bottom:1px dashed var(--line)}
.option .ticket b{font-weight:500; color:var(--sand)}
.option p{color:var(--muted); font-size:.9375rem}
.option dl{margin:0; display:grid; gap:8px}
.option dt{font-weight:700; font-size:.9375rem; color:var(--ink)}
.option dd{margin:0; color:var(--muted); font-size:.9375rem}
.option .sacm{background:var(--green-soft); border-radius:6px; padding:10px 12px; font-size:.9375rem; color:var(--ink)}
.option .sacm b{color:var(--gold)}

/* SACM section */
.tracks{display:grid; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); gap:12px}
.track{border:1px solid var(--line); border-radius:8px; padding:14px 16px; background:var(--surface); display:grid; gap:4px; align-content:start; min-width:0}
.track .name{display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap}
.track .name .ar{font-family:var(--f-ar); color:var(--night-dim); font-size:1.0625rem}
.track p{color:var(--muted); font-size:.9375rem}
.track .tag{font-family:var(--f-mono); font-size:.8125rem; color:var(--sand)}
.rules{list-style:none; margin:0; padding:0; display:grid; gap:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius)}
.rules li{display:grid; grid-template-columns:minmax(0, 13rem) minmax(0, 1fr); gap:6px 20px; padding:14px 18px; border-top:1px solid var(--line)}
.rules li:first-child{border-top:0}
.rules .r-k{font-weight:700}
.rules .r-v{color:var(--muted); font-size:.9375rem}
.phase{display:grid; gap:14px}
.phase h3 .ar{font-family:var(--f-ar); font-weight:500; color:var(--night-dim); font-size:1.0625rem; margin-inline-start:8px}
code.inline{font-family:var(--f-mono); font-size:.9em; background:var(--green-soft); padding:1px 6px; border-radius:4px; overflow-wrap:anywhere}
@media (max-width:560px){ .rules li{grid-template-columns:1fr} }
/* allowance + budget */
.allowance{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden}
.amount{background:rgba(6,12,22,.55); color:var(--night-ink); border-inline-end:1px solid var(--line); padding:24px; display:grid; gap:6px; align-content:center}
.amount .k{font-family:var(--f-mono); font-size:.8125rem; color:var(--night-dim)}
.amount .fig{font-family:var(--f-display); font-weight:800; font-size:clamp(2.4rem, 5vw + 1rem, 3.4rem); line-height:1; color:var(--gold); font-variant-numeric:tabular-nums}
.amount .per{color:#C8D3E0; font-size:.9375rem}
.budget{padding:20px 22px; display:grid; gap:12px; min-width:0}
.budget h3{font-size:1.0625rem}
.budget .hint{color:var(--muted); font-size:.9375rem}
.brow{display:grid; grid-template-columns:minmax(0,1fr) 7.5rem; gap:12px; align-items:center}
.brow label{font-size:.9375rem}
.brow label small{display:block; color:var(--muted); font-size:.8125rem}
.money-in{display:flex; align-items:center; border:1px solid var(--line); border-radius:6px; background:var(--bg); padding-inline:8px}
.money-in span{color:var(--muted); font-size:.9375rem}
.money-in input{width:100%; border:0; background:transparent; color:var(--ink); font:inherit; padding:7px 4px; font-variant-numeric:tabular-nums; text-align:right; min-width:0}
.totals{border-top:1px solid var(--line); padding-top:12px; display:grid; gap:6px; font-variant-numeric:tabular-nums}
.totals div{display:flex; justify-content:space-between; gap:12px}
.totals .left b{font-size:1.25rem}
.totals .left.ok b{color:var(--green)}
.totals .left.low b{color:#FF8E7E}
@media (max-width:640px){ .allowance{grid-template-columns:1fr} }


.note{background:var(--sand-soft); border-inline-start:3px solid var(--sand); padding:12px 16px; border-radius:6px; color:var(--ink); font-size:.9375rem}

/* checklists */
.checklist{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:6px 0}
.cl-head{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 18px 8px; flex-wrap:wrap}
.progress{font-family:var(--f-mono); font-size:.8125rem; color:var(--muted); font-variant-numeric:tabular-nums; display:flex; align-items:center; gap:10px}
.bar{width:90px; height:6px; border-radius:3px; background:var(--line); overflow:hidden}
.bar i{display:block; height:100%; width:0; background:var(--gold); transition:width .25s var(--spring, ease)}
.checklist ul{list-style:none; margin:0; padding:0}
.checklist li{border-top:1px solid var(--line)}
.checklist label{display:grid; grid-template-columns:22px 1fr; gap:12px; padding:12px 18px; cursor:pointer; align-items:start}
.checklist input{width:20px; height:20px; margin:3px 0 0; accent-color:var(--green)}
.checklist .t{font-weight:700}
.checklist .d{display:block; color:var(--muted); font-size:.9375rem; font-weight:400}
.checklist input:checked + span .t{text-decoration:line-through; text-decoration-color:var(--green); color:var(--muted)}
.reset{background:none; border:0; color:var(--muted); font:inherit; font-size:.8125rem; text-decoration:underline; cursor:pointer; padding:0}

/* two-column facts */
.facts{display:grid; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); gap:14px}
.fact{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; display:grid; gap:8px; align-content:start; min-width:0}
.fact p{color:var(--muted); font-size:.9375rem}
.fact .k{font-family:var(--f-mono); font-size:.8125rem; color:var(--night-dim)}

/* lessons */
.lessons{counter-reset:none; display:grid; gap:14px; margin:0; padding:0; list-style:none}
.lessons li{display:grid; gap:4px; padding-inline-start:16px; border-inline-start:2px solid rgba(226,182,108,.5)}
.lessons li p{color:var(--muted)}

/* links */
.links{display:grid; grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr)); gap:10px}
.links a{display:grid; gap:2px; padding:14px 16px; border:1px solid var(--line); border-radius:8px; background:var(--surface); text-decoration:none; color:var(--ink); min-width:0}
.links a:hover{border-color:var(--gold)}
.links a span{font-weight:700}
.links a small{color:var(--muted); font-size:.8125rem; overflow-wrap:anywhere}

.site-foot{margin-top:72px; background:rgba(6,12,22,.6); color:var(--night-dim); font-size:.9375rem}
.site-foot .wrap{display:grid; gap:10px; padding-block:28px 40px}
.site-foot b{color:var(--night-ink)}
.site-foot .ar{font-family:var(--f-ar); color:var(--gold)}
.contact{display:grid; gap:16px; padding:20px; border:1px solid rgba(226,182,108,.28); border-radius:16px; background:linear-gradient(135deg, rgba(226,182,108,.07), rgba(255,255,255,.02))}
.contact-head{display:grid; gap:4px}
.contact-head h2{font-size:1.25rem; color:var(--night-ink); margin:0}
.contact-head p{margin:0; color:var(--night-dim); font-size:.9375rem}
.socials{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px}
.soc{display:flex; align-items:center; gap:12px; min-width:0; padding:12px 14px; border:1px solid rgba(238,242,247,.16); border-radius:12px; background:rgba(6,12,22,.45); color:var(--night-ink); text-decoration:none; transition:border-color .2s var(--spring, ease), background-color .2s var(--spring, ease), translate .2s var(--spring, ease)}
.soc:hover{border-color:var(--gold); background:rgba(226,182,108,.08); translate:0 -2px}
.soc:focus-visible{outline:2px solid var(--gold); outline-offset:2px}
.soc-ic{flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:rgba(226,182,108,.12); color:var(--gold)}
.soc-ic svg{width:20px; height:20px}
.soc-tx{display:grid; gap:1px; min-width:0}
.soc-tx b{font-size:.9375rem}
.soc-tx small{color:var(--night-dim); font-size:.8125rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:start}
[dir="rtl"] .soc-tx small{text-align:right}
.soc-go{margin-inline-start:auto; color:var(--night-dim); font-size:.9375rem}
[dir="rtl"] .soc-go{scale:-1 1}
.soc:hover .soc-go{color:var(--gold)}
.foot-acts{display:flex; flex-wrap:wrap; gap:8px 10px}
.foot-acts:empty{display:none}
.foot-acts .app-foot{margin-inline-start:0}
.site-foot .foot-note{display:grid; gap:8px; margin-top:4px; padding-top:16px; border-top:1px solid rgba(238,242,247,.1)}
.site-foot .foot-note p{margin:0}
@media (max-width:720px){ .socials{grid-template-columns:1fr; gap:8px} .contact{padding:16px} .soc{padding:10px 12px} .soc-ic{width:36px; height:36px} .site-foot .wrap{padding-bottom:104px} }


@media (max-width:560px){
  .author{grid-template-columns:1fr}
  .cross{width:96px; height:96px; top:120px; opacity:.8}
  .scene{height:150px}
  .hero-copy{padding-block:40px 180px}
}
@media (prefers-reduced-motion: reduce){ .bar i{transition:none} }
/* ---------- motion ---------- */
@keyframes twinkle{0%,100%{opacity:.18}50%{opacity:.95}}
@keyframes glow{0%,100%{opacity:.08; transform:scale(.85)}50%{opacity:.3; transform:scale(1.15)}}
@keyframes sway{0%,100%{transform:rotate(-1.2deg)}50%{transform:rotate(1.2deg)}}
@keyframes ripple{0%,100%{transform:translateX(-8px); opacity:.5}50%{transform:translateX(8px); opacity:1}}
@keyframes sadu{to{background-position:480px center}}
@keyframes rise{from{opacity:0; transform:translateY(14px)}to{opacity:1; transform:none}}
@keyframes shoot{0%{opacity:0; transform:translate(0,0) rotate(-19deg)}1.5%{opacity:1}7%{opacity:0; transform:translate(-300px,104px) rotate(-19deg)}100%{opacity:0; transform:translate(-300px,104px) rotate(-19deg)}}
@keyframes pop{50%{transform:scale(1.25)}}

.sky circle:nth-child(3n){animation:twinkle 5s ease-in-out infinite}
.sky circle:nth-child(4n){animation:twinkle 7s ease-in-out -2s infinite}
.sky circle:nth-child(7n){animation:twinkle 3.5s ease-in-out -1s infinite}
.cross circle[opacity]{transform-box:fill-box; transform-origin:center; animation:glow 6s ease-in-out infinite}
.cross circle[opacity]:nth-of-type(2){animation-delay:-1.5s}
.cross circle[opacity]:nth-of-type(3){animation-delay:-3s}
.palms{transform-box:fill-box; transform-origin:50% 100%; animation:sway 7s ease-in-out infinite}
.ripples{animation:ripple 6s ease-in-out infinite}
.landmark .glow{transform-box:fill-box; transform-origin:center; animation:glow 5s ease-in-out infinite}
.sadu{animation:sadu 60s linear infinite}
.shoot{position:fixed; z-index:-1; top:16%; left:62%; width:130px; height:1.5px; border-radius:2px; pointer-events:none;
  background:linear-gradient(90deg, rgba(255,243,214,.95), rgba(255,243,214,0)); opacity:0; animation:shoot 13s ease-out 3s infinite}

.hero-copy > *{animation:rise .8s cubic-bezier(.2,.7,.2,1) both}
.hero-copy > :nth-child(2){animation-delay:.12s}
.hero-copy > :nth-child(3){animation-delay:.22s}
.hero-copy > :nth-child(4){animation-delay:.32s}
.hero-copy > :nth-child(5){animation-delay:.42s}

/* reading progress */
.read-bar{position:fixed; top:0; left:0; right:0; height:3px; z-index:50; background:var(--gold); transform-origin:0 50%; transform:scaleX(0); pointer-events:none}
[dir="rtl"] .read-bar{transform-origin:100% 50%}

/* nav underline */
.top nav a:not(.lang){background:linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 1px; padding-bottom:2px; transition:background-size .3s var(--spring, ease), color .2s}
[dir="rtl"] .top nav a:not(.lang){background-position:100% 100%}
.top nav a:not(.lang):hover{background-size:100% 1px}

/* interactive surfaces */
.btn{transition:translate .2s var(--spring, ease), box-shadow .2s var(--spring, ease), filter .2s}
.btn:hover{translate:0 -2px; box-shadow:0 10px 22px -12px rgba(0,0,0,.55)}
.option, .fact, .track, .links a, .checklist, .allowance{transition:translate .25s var(--spring, ease), box-shadow .25s var(--spring, ease), border-color .25s var(--spring, ease)}
.option:hover, .fact:hover, .track:hover, .links a:hover{translate:0 -4px; box-shadow:0 16px 30px -16px rgba(0,0,0,.6); border-color:color-mix(in srgb, var(--sand) 45%, var(--line))}
.checklist input:checked{animation:pop .25s ease}

/* scroll reveal (only when JS turns it on) */
.anim .reveal{opacity:0; transform:translateY(18px); transition:opacity .7s var(--spring, ease), transform .7s var(--spring, ease)}
.anim .reveal.in{opacity:1; transform:none}


/* ---------- university picker ---------- */
.picker-open, .picker-open body{overflow:hidden}
.picker{position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:16px}
.picker[hidden]{display:none}
.pk-backdrop{position:absolute; inset:0; background:rgba(6,12,22,.72); backdrop-filter:blur(6px)}
.pk-panel{position:relative; width:min(60rem, 100%); max-height:calc(100dvh - 32px); overflow:auto; background:var(--night); color:var(--night-ink);
  border-radius:16px; box-shadow:0 30px 80px -20px rgba(0,0,0,.7); animation:rise .45s cubic-bezier(.2,.7,.2,1) both}
.pk-panel > .sadu{position:sticky; top:0; z-index:2}
.pk-body{position:relative; padding:28px clamp(18px, 4vw, 40px) 32px; display:grid; gap:16px}
.pk-body h2{font-size:clamp(1.7rem, 2.5vw + 1rem, 2.4rem); color:var(--night-ink)}
.pk-body .eyebrow{color:var(--gold)}
.pk-body .eyebrow::before{background:var(--gold)}
.pk-sub{color:#C8D3E0; max-width:40rem}
.pk-x{position:absolute; top:14px; inset-inline-end:14px; width:40px; height:40px; border-radius:50%; border:1px solid rgba(238,242,247,.25); background:transparent; color:var(--night-ink); font-size:1.5rem; line-height:1; cursor:pointer}
.pk-x:hover{border-color:var(--gold); color:var(--gold)}
.pk-group{display:grid; gap:8px}
.pk-city{font-family:var(--f-mono); font-size:.8125rem; color:var(--night-dim)}
.pk-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(12.5rem, 1fr)); gap:10px}
.uni-card{display:grid; gap:2px; text-align:start; padding:14px 16px; border-radius:10px; border:1px solid rgba(238,242,247,.16); background:rgba(255,255,255,.04);
  color:var(--night-ink); font:inherit; cursor:pointer; transition:translate .2s var(--spring, ease), border-color .2s var(--spring, ease), background-color .2s var(--spring, ease)}
.uni-card:hover{translate:0 -3px; border-color:var(--gold); background:rgba(226,182,108,.08)}
.uni-card:focus-visible{outline:3px solid var(--gold); outline-offset:2px}
.uni-card[aria-pressed="true"]{border-color:var(--gold); background:rgba(226,182,108,.14)}
.uc-short{font-family:var(--f-display); font-weight:800; font-size:1.25rem}
.uc-name{font-size:.9375rem; color:#C8D3E0}
.uc-campus{font-size:.8125rem; color:var(--night-dim)}
.uni-all{text-align:center; font-weight:700; padding:13px 16px; border-style:dashed}
.pk-note{font-size:.9375rem; color:#C8D3E0; background:rgba(226,182,108,.08); border-inline-start:3px solid var(--gold); padding:10px 14px; border-radius:6px}
.pk-note a, .pk-note b{color:var(--gold)}
.pk-restore{font:inherit; color:var(--gold); background:none; border:0; padding:0; cursor:pointer; text-decoration:underline; text-underline-offset:3px; text-align:start}

.uni-chip{display:inline-flex; align-items:center; gap:6px; border:1px solid var(--gold); background:rgba(226,182,108,.12); color:var(--night-ink);
  border-radius:999px; padding:1px 12px; font:inherit; font-size:.9375rem; cursor:pointer}
.uni-chip span{color:var(--night-dim)}
.uni-chip:hover{background:rgba(226,182,108,.25)}

.glance{margin:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr)); gap:12px}
.glance > div{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; display:grid; gap:4px; min-width:0}
.glance dt{font-family:var(--f-mono); font-size:.8125rem; color:var(--sand)}
.glance dd{margin:0; color:var(--ink); overflow-wrap:anywhere}
.glance dd small{display:block; color:var(--muted); font-size:.9375rem}
.table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface)}
#uni-table{width:100%; border-collapse:collapse; font-size:.9375rem; min-width:38rem}
#uni-table th, #uni-table td{padding:10px 14px; text-align:start; border-top:1px solid var(--line); vertical-align:top}
#uni-table thead th{border-top:0; font-family:var(--f-mono); font-size:.8125rem; color:var(--muted); font-weight:500}
.linkish{background:none; border:0; padding:0; font:inherit; font-weight:700; color:var(--gold); cursor:pointer; text-align:start; text-decoration:underline; text-underline-offset:3px}
.btn-outline{border-color:var(--line); color:var(--ink); background:var(--surface); justify-self:start; cursor:pointer; font-family:var(--f-body)}
.btn-outline:hover{border-color:var(--sand)}


/* three-step picker */
.pk-steps{list-style:none; margin:0 0 4px; padding:0; display:flex; flex-wrap:wrap; gap:6px 18px; padding-inline-end:48px}
.pk-steps button{display:inline-flex; align-items:center; gap:8px; background:none; border:0; padding:4px 0; color:var(--night-dim); font:inherit; font-size:.9375rem; cursor:pointer}
.pk-steps button span{display:grid; place-items:center; width:24px; height:24px; border-radius:50%; border:1px solid rgba(238,242,247,.3); font-size:.8125rem; font-variant-numeric:tabular-nums}
.pk-steps li.done button{color:var(--night-ink)}
.pk-steps li.done button span{background:rgba(226,182,108,.18); border-color:var(--gold); color:var(--gold)}
.pk-steps li.on button{color:var(--gold); font-weight:700}
.pk-steps li.on button span{background:var(--gold); border-color:var(--gold); color:#1A1206}
.pk-divider{margin-top:6px; padding-top:12px; border-top:1px solid rgba(238,242,247,.14); color:var(--night-dim); font-size:.9375rem}
.pk-dim .uni-card{background:rgba(255,255,255,.02)}
.pk-levels{grid-template-columns:repeat(2, minmax(0, 1fr))}
@media (max-width:560px){ .pk-levels{grid-template-columns:1fr} }
.pk-back{justify-self:start; background:none; border:0; color:var(--night-dim); font:inherit; cursor:pointer; padding:4px 0; text-decoration:underline; text-underline-offset:3px}
.pk-back:hover{color:var(--gold)}
.level-banner{display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; background:var(--green-soft); border-radius:8px; padding:10px 14px; font-size:.9375rem}
.level-banner b{color:var(--gold)}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{animation:none !important; transition:none !important}
  .anim .reveal{opacity:1; transform:none}
  .shoot{display:none}
}
html[data-no-f] [data-needs-f], html[data-no-f] .col-f{display:none !important}
