/* =====================================================================================
   CollegeFit "Campus" theme (matches the Base44 "Campus" design)
   Loaded after styles.css and only changes the look: a full-width campus photo under a navy scrim with
   the top bar floating over it, a light headline, a floating white search bar, photo-topped result cards,
   pill buttons and small uppercase eligibility pills. Every feature and layout rule from styles.css still applies.
   University cards show each university's own logo. The home-page photo is a generic Unsplash photo (free to use
   under the Unsplash licence); offline (school server with no internet) it doesn't load and navy shows instead.
   To use your own hero photo: put it in public/img/ and set  :root{ --hero-photo: url("../img/hero.jpg"); }
   ===================================================================================== */
:root{
  --bg:#F3F1EC; --bg2:#ECEFF5; --surface:#FFFFFF; --taupe:#DFE5EF;
  --ink:#0B1F4B; --muted:#56607A; --line:#DCE1EA; --line-soft:#E8EBF1;
  --accent:#1084F5; --accent-strong:#0B1F4B; --accent-deep:#132B63; --accent-text:#0B66C9; --on-accent:#FFFFFF;
  --navy:#0B1F4B; --btn:#0A6CD6; --btn-hover:#0B1F4B; --sky:#7CC0FF;
  --shadow:0 18px 50px -34px rgba(11,31,75,.55); --shadow-lg:0 30px 80px -30px rgba(0,0,0,.6); --ring:rgba(16,132,245,.28);
  --hero-photo:url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1800&q=80");
  --top-h:76px;
  --cf-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
:root[data-theme="dark"]{
  --bg:#081022; --bg2:#14203C; --surface:#0F1A33; --taupe:#1C2A4B;
  --ink:#EDF1F8; --muted:#A7B2C8; --line:#25345A; --line-soft:#1A2746;
  --accent:#4DA3F7; --accent-strong:#4DA3F7; --accent-deep:#7DBDF7; --accent-text:#8CC4FA; --on-accent:#081022;
  --navy:#060D1E; --btn:#4DA3F7; --btn-hover:#7DBDF7;
}

/* ---- type: the system sans (Segoe UI on Windows, SF on Apple), light headlines ---- */
body,h1,h2,h3,h4,.ex-card h4,.panel h2,
.gd-hi,.rs-l,.pct,.rq-title,.rs-cell .rs-big,.rs-card h4,.rs-strong .rs-rank,.uni-logo .mono,.total-v,.cm-table tr.cm-group th,.db-tile strong{font-family:var(--cf-font)}
h1,h2,h3,.panel h2{font-weight:500;letter-spacing:-.02em}
html[lang="ar"] body,html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] h4{font-family:"IBM Plex Sans Arabic",var(--cf-font);letter-spacing:0}

/* ---- surfaces ---- */
.panel{background:var(--surface);border:0 !important;border-radius:24px;box-shadow:var(--shadow),0 0 0 1px rgba(11,31,75,.06)}
:root[data-theme="dark"] .panel{box-shadow:0 0 0 1px var(--line-soft)}
.callout{background:var(--bg2);border-color:var(--line-soft)}
.sys-status{background:var(--surface);border-color:var(--line-soft);border-radius:999px;padding:8px 16px}
.content{display:flex;flex-direction:column}
.content>*{min-width:0}
body[data-page="dashboard"] #view-dashboard{order:-1}
.db-tile{background:var(--surface);border-color:var(--line-soft);border-radius:18px}
.db-tile strong{font-weight:600}

/* ---- buttons and fields ---- */
.cb-btn{border-radius:999px;padding-inline:16px}
.cb-btn.primary{background:var(--btn);border-color:var(--btn);color:#fff}
.cb-btn.primary:hover{background:var(--btn-hover);border-color:var(--btn-hover);color:#fff}
:root[data-theme="dark"] .cb-btn.primary,:root[data-theme="dark"] .cb-btn.primary:hover{color:#081022}
.cb-btn.big{border-radius:16px}
.seg{border-radius:999px}.seg button{border-radius:999px}
.fld input:not([type=checkbox]):not([type=radio]),.af-f input,.af-f select,select,.ex-search{border-radius:14px}
.ex-search{background:var(--surface);border:1px solid var(--line)}

/* ---- top bar ---- */
header.topbar{background:var(--navy);border-bottom:0;color:#fff;-webkit-backdrop-filter:none;backdrop-filter:none;min-height:var(--top-h)}
.top-brand{display:none;align-items:center;gap:12px;text-decoration:none;color:#fff;line-height:1;flex:none}
.cp-logo{display:block;height:48px;width:auto;background:#fff;border-radius:10px;padding:6px 8px}
.cp-mark{width:36px;height:36px;flex:none}
.cp-word{display:flex;flex-direction:column;gap:5px}
.cp-name{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:#fff}
.cp-tag{font-size:10px;letter-spacing:.26em;text-transform:uppercase;color:rgba(255,255,255,.55);white-space:nowrap}
html[lang="ar"] .cp-tag{letter-spacing:0;font-size:11px}
.top-nav{display:none}
.top-nav a{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 2px;color:rgba(255,255,255,.75);text-decoration:none;font-size:.82rem;white-space:nowrap}
.top-nav a:hover,.top-nav a[aria-current="page"]{color:#fff}
.top-nav a[aria-current="page"]::after{content:"";position:absolute;inset-inline:0;bottom:8px;height:2px;border-radius:2px;background:var(--sky)}
.top-nav a[hidden]{display:none}
.top-nav .nav-count{background:var(--accent);color:#fff;min-width:18px;height:18px;font-size:.66rem}
.topbar .tool-btn{background:transparent;color:rgba(255,255,255,.8);border-color:transparent;font-size:.82rem;font-weight:500}
.topbar .tool-btn:hover{color:#fff;background:rgba(255,255,255,.08)}
.topbar .tool-btn[aria-pressed="true"]{background:transparent;color:#fff}
.topbar .acct .tool-btn .ico{display:none}
.topbar .acct-reg,.topbar .tool-btn.primary{background:#fff;color:var(--navy) !important;border-color:#fff;border-radius:999px;font-weight:600;padding:8px 16px}
.topbar .acct-reg:hover{background:var(--accent);color:#fff !important;border-color:var(--accent)}
.topbar .acct-btn{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.22)}
.topbar .avatar{background:var(--accent);color:#fff}
.topbar .save-ind{color:rgba(255,255,255,.75)}
.topbar .save-ind.error,.topbar .save-ind.signedOut{color:#FFB7A3}
.topbar .link-btn{color:#9FD0FF}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.topbar :focus-visible,.side :focus-visible,.cp-hero :focus-visible{outline-color:#9FD0FF}

@media (min-width:1200px){
  .app,:root[data-side="rail"] .app,:root[data-side="full"] .app{display:block}
  .side{display:none}
  .app-main{overflow-x:clip}
  header.topbar{padding:20px max(28px,calc((100% - 1280px)/2 + 28px));gap:20px}
  .top-brand{display:flex}
  .top-nav{display:flex;align-items:center;gap:clamp(14px,1.6vw,26px);flex:1 1 auto;justify-content:center;min-width:0}
  .top-tools{gap:4px}
  header.topbar .top-tag{display:none}
  #themeBtn .tool-txt{display:none}
  #themeBtn{width:40px;padding:0;justify-content:center}
  #cvHeaderBtn{display:none}                         /* CV upload lives in Student Profile */
  .content{max-width:1152px}
  /* on the home page the bar floats over the photo, like the design */
  body[data-page="dashboard"] header.topbar{position:absolute;inset-inline:0;top:0;background:transparent;z-index:50}
}

/* ---- tablet rail ---- */
.side{background:var(--navy);border-inline-end:0;color:#fff}
.side .logo-light{display:none !important}
.side .logo-dark{display:block !important}
.side .nav-links a{color:rgba(255,255,255,.8)}
.side .nav-links a:hover{background:rgba(255,255,255,.08);color:#fff}
.side .nav-links a[aria-current="page"]{background:var(--accent);color:#fff}
.side .nav-count{background:#fff;color:var(--navy)}
.side-toggle{background:transparent;color:#fff;border-color:rgba(255,255,255,.25)}
.side-toggle:hover{background:rgba(255,255,255,.08)}
.side-badge{background:rgba(255,255,255,.08);color:rgba(255,255,255,.85)}
.side-mark{background:#fff;border-radius:14px;padding:6px;box-sizing:border-box}
@media (max-width:1199.98px){
  .topbar .acct .tool-btn .ico{display:inline-block}
  .topbar .tool-btn{border-color:rgba(255,255,255,.22)}
}

/* ---- phone ---- */
@media (max-width:767.98px){
  header.topbar{min-height:60px}
  .top-brand{display:flex}
  .cp-logo{height:40px;padding:5px 6px;border-radius:8px}
  .cp-mark{width:30px;height:30px}
  .cp-name{font-size:1.05rem}
  .cp-tag{display:none}
  .bottom-nav{background:var(--surface)}
  .ex-tools{background:var(--bg)}
}

/* ---- home: full-width campus photo under a navy scrim ---- */
.cp-hero{position:relative;color:#fff;overflow:hidden;
  margin:-20px -28px 0;min-height:560px;display:flex;align-items:flex-end;
  background:
    linear-gradient(180deg,rgba(11,31,75,.88) 0%,rgba(11,31,75,.70) 50%,rgba(11,31,75,.92) 100%),
    var(--hero-photo) center/cover no-repeat,
    #0B1F4B}
.cp-hero-in{position:relative;width:100%;max-width:1152px;margin:0 auto;padding:144px 32px 96px}
.cp-eyebrow{margin:0;font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:var(--sky)}
h2.cp-hero-h{font-family:var(--cf-font);font-weight:300;font-size:clamp(2.25rem,5.4vw,3.75rem);line-height:1.08;letter-spacing:-.025em;color:#fff;max-width:48rem;margin:20px 0 0}
h2.cp-hero-h:focus{outline:none}
.cp-hero-sub{margin:20px 0 0;max-width:36rem;font-size:14px;line-height:1.65;color:rgba(255,255,255,.72)}
.cp-search{display:flex;gap:8px;align-items:center;max-width:48rem;margin-top:32px;background:rgba(255,255,255,.95);border-radius:24px;padding:10px;box-shadow:var(--shadow-lg)}
.cp-search input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:.875rem;color:#0B1F4B;padding:12px 16px;min-height:44px;border-radius:16px}
.cp-search input::placeholder{color:rgba(11,31,75,.4)}
.cp-search input:focus{outline:none}
.cp-search:focus-within{box-shadow:0 0 0 3px rgba(124,192,255,.65),var(--shadow-lg)}
.cp-search-btn{flex:none;border:0;border-radius:16px;background:var(--btn);color:#fff;font:inherit;font-size:.78rem;font-weight:600;letter-spacing:.02em;padding:0 24px;min-height:44px;cursor:pointer}
:root[data-theme="dark"] .cp-search-btn{background:#0A6CD6;color:#fff}
.cp-search-btn:hover{background:#0B1F4B}
.cp-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.hero-chip{border:1px solid rgba(255,255,255,.25);background:transparent;color:rgba(255,255,255,.82);border-radius:999px;padding:6px 14px;min-height:32px;font:inherit;font-size:11px;cursor:pointer}
.hero-chip:hover{border-color:#fff;color:#fff}
/* the dashboard card overlaps the bottom of the photo, like the result cards in the design */
#view-dashboard>.panel{position:relative;z-index:1;margin-top:-56px}
@media (min-width:1200px){
  .cp-hero{min-height:620px;margin:-20px calc(50% - 50vw) 0}
  .cp-hero-in{padding:176px 32px 112px}
}
@media (min-width:768px) and (max-width:1199.98px){ .cp-hero{margin:-18px -22px 0} .cp-hero-in{padding:96px 28px 96px} }
@media (max-width:767.98px){
  .cp-hero{margin:-14px -16px 0;min-height:0}
  .cp-hero-in{padding:56px 18px 84px}
  .cp-search{flex-direction:column;align-items:stretch;border-radius:20px;padding:8px}
  .cp-search-btn{min-height:46px}
  #view-dashboard>.panel{margin-top:-48px}
}
@media (pointer:coarse){ .hero-chip{min-height:44px;font-size:12px} }
html[lang="ar"] .cp-eyebrow{letter-spacing:0;font-size:13px}
html[lang="ar"] h2.cp-hero-h{letter-spacing:0;line-height:1.3;font-weight:400}

/* ---- university cards: photo cover with place, name and fit score ---- */
.ex-card{padding:0 0 16px;overflow:hidden;border:0 !important;border-radius:24px;background:var(--surface);box-shadow:var(--shadow),0 0 0 1px rgba(11,31,75,.06);gap:8px;transition:transform .2s ease,box-shadow .2s ease}
.ex-card:hover{transform:translateY(-2px);box-shadow:0 26px 60px -34px rgba(11,31,75,.6),0 0 0 1px rgba(11,31,75,.06)}
.ex-card.on{box-shadow:0 0 0 2px var(--accent),var(--shadow)}
.ex-card>:not(.ex-cover){margin-inline:16px}
.ex-cover{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"logo fit" "text text";align-content:space-between;gap:12px 10px;min-height:168px;padding:16px;margin:0 0 6px;color:#fff;
  background:linear-gradient(0deg,rgba(11,31,75,.82) 0%,rgba(11,31,75,0) 85%),var(--cover,none) center/cover no-repeat,
    radial-gradient(380px 160px at 100% 0%,rgba(16,132,245,.5),transparent 70%),linear-gradient(135deg,#1C4A9A,#0B1F4B 75%)}
/* the university's logo on a white tile */
.ex-cover .uni-logo{grid-area:logo;justify-self:start;display:flex;width:auto;min-width:64px;max-width:100%;height:64px;padding:8px 12px;margin:0;border:0;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.ex-cover .uni-logo img{height:44px;width:auto;max-width:190px;max-height:none;object-fit:contain}
.ex-cover .uni-logo:not(.wide) img{height:48px;max-width:48px}
/* logos made for dark backgrounds sit straight on the navy cover */
.ex-cover .uni-logo.on-dark{background:rgba(255,255,255,.06);box-shadow:none}
.ex-cover .uni-logo:has(.mono){background:#fff}
.ex-cover .uni-logo .mono{color:#0B1F4B;font-size:1.05rem}
.ex-cover .fit-chip{grid-area:fit;align-self:start}
.ex-cover-t{grid-area:text}
.ex-cover-t{min-width:0;align-self:end}
.ex-place{margin:0 !important;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.75)}
.ex-cover h4{color:#fff;font-size:1.125rem;font-weight:500;line-height:1.2;margin:2px 0 0;letter-spacing:-.01em}
.fit-chip{flex:none;display:inline-flex;align-items:baseline;gap:4px;background:rgba(255,255,255,.95);color:#0B1F4B;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:600;white-space:nowrap}
.fit-chip strong{font-weight:600}
.fit-chip{font-weight:400;color:rgba(11,31,75,.5)}.fit-chip strong{color:#0B1F4B}
.ex-card .ex-elig .fit:not(.none){display:none}
.ex-card .ex-why{font-size:12.5px;color:var(--muted)}
.ex-card .ex-key{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:11px;color:var(--muted)}
.ex-card .ex-key dt{font-size:10px;letter-spacing:.08em}
.ex-card .ex-actions{margin-top:auto;padding-top:12px;border-top:1px solid var(--line-soft);gap:12px}
.ex-card .ex-actions .cb-btn.primary{background:none;border:0;color:var(--accent-text);padding:0;font-size:.82rem;min-height:36px}
.ex-card .ex-actions .cb-btn.primary:hover{text-decoration:underline;background:none}
.ex-card .ex-actions .save-btn{background:none;border:0;color:var(--muted);padding:0;font-size:.82rem;min-height:36px}
.ex-card .ex-actions .save-btn.on,.ex-card .ex-actions .save-btn:hover{color:var(--ink)}
.ex-card .cmp-check{font-size:.82rem;border:0;padding:0}
@media (pointer:coarse){ .ex-card .ex-actions .cb-btn,.ex-card .cmp-check{min-height:44px} }
html[lang="ar"] .ex-place{letter-spacing:0;font-size:11px}

/* ---- eligibility pills: small, uppercase, with a ring ---- */
.mpill{border-radius:999px;padding:4px 10px;font-size:9.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;line-height:1.35;border:0;box-shadow:inset 0 0 0 1px currentColor}
.mpill.st-met{background:rgba(15,107,71,.1);color:#0F6B47;box-shadow:inset 0 0 0 1px rgba(15,107,71,.25)}
.mpill.st-not{background:rgba(154,52,18,.09);color:#983413;box-shadow:inset 0 0 0 1px rgba(154,52,18,.25)}
.mpill.st-missing{background:rgba(154,91,0,.1);color:#8A5200;box-shadow:inset 0 0 0 1px rgba(154,91,0,.25)}
:root[data-theme="dark"] .mpill.st-met{background:#11331F;color:#A6DDB8;box-shadow:inset 0 0 0 1px #245C38}
:root[data-theme="dark"] .mpill.st-not{background:#3A1E15;color:#F6B79E;box-shadow:inset 0 0 0 1px #6C3A26}
:root[data-theme="dark"] .mpill.st-missing{background:#352B12;color:#EBD08A;box-shadow:inset 0 0 0 1px #625024}
html[lang="ar"] .mpill{letter-spacing:0;text-transform:none;font-size:11px}

/* ---- search filters panel ---- */
#explore.ex-wide .ex-side{background:var(--surface);border:0;border-radius:20px;box-shadow:0 0 0 1px var(--line-soft)}

/* ---- footer ---- */
.site-ft .badge{display:inline-block;margin-inline-end:8px;background:var(--bg2)}
