/* =============================================================================
   PlacementFlow — "Your future" hub + Electives topic page.
   Scoped to body.your-future-page and body.electives-page. Reuses the app token
   grammar (blue #1f6fd6, ink #16233f, IBM Plex display) with one identity moment
   per page: the "Route to F1" spine on the hub, the "departures" countdown on
   the Electives guide. No !important.
   ============================================================================= */
body.your-future-page, body.electives-page {
  --el-brand:#1f6fd6; --el-brand-2:#1559b0; --el-brand-tint:#eaf2fd;
  --el-ink:#16233f; --el-slate:#5d6b84; --el-mist:#8a97ad;
  --el-line:#e9edf4; --el-line-soft:#f1f4f9; --el-ground:#f6f8fc; --el-surface:#fff;
  --el-go:#0b7a70; --el-go-tint:#e9f7f5; --el-go-line:#bfe3de;
  --el-amber:#f4b64e; --el-amber-soft:#f9d79a; --el-night:#101d38; --el-night-2:#1b2c53;
  --el-warn-ink:#a25a12; --el-warn-tint:#fff3e2;
  --el-r:16px; --el-sh:0 1px 2px rgba(20,33,64,.05), 0 2px 8px rgba(20,33,64,.05);
  --el-disp: var(--font-application-display);
}
body.your-future-page .app-content, body.electives-page .app-content { background: var(--pf-canvas, #fff); }
body.your-future-page .app-inner { max-width: 860px; }
body.electives-page .app-inner { max-width: 1000px; }

/* ---------- shared bits ---------- */
.el-eyebrow { font: 500 11px/1 var(--font-application-ui); letter-spacing:.13em; text-transform:uppercase; color: var(--el-brand-2); margin:0 0 10px; }
.el-h1 { font-family: var(--el-disp); font-weight:600; font-size:26px; letter-spacing:-.02em; margin:0 0 6px; color: var(--el-ink); text-wrap:balance; }
.el-lede { color: var(--el-slate); font-size:15px; margin:0 0 20px; max-width:60ch; }

/* The uniform mobile masthead (.pp-mobhead, student-sidebar.js) already shows
   "YOUR FUTURE / Electives" — hide the page's own duplicate header under it. */
@media (max-width:768px) {
  body.electives-page.pp-has-mobhead .el-eyebrow,
  body.electives-page.pp-has-mobhead .el-h1,
  body.electives-page.pp-has-mobhead .el-lede,
  body.your-future-page.pp-has-mobhead .el-eyebrow,
  body.your-future-page.pp-has-mobhead .el-h1,
  body.your-future-page.pp-has-mobhead .el-lede { display:none; }
}

/* ===========================================================================
   YOUR FUTURE HUB — "Route to F1" spine
   =========================================================================== */
.pf-future-status { margin:6px 0 18px; padding:20px; border:1px solid var(--el-line); border-radius:var(--el-r); background:var(--pf-canvas,#fff); }
.pf-future-status[hidden] { display:none; }
.pf-page:not(.pf-stage-checking):not(.pf-future-pending) > .pf-future-status { display:none; }
.pf-future-status h2 { margin:0 0 10px; font-size:18px; color:var(--el-ink); }
.pf-future-status p { margin:8px 0; color:var(--el-slate); line-height:1.5; }
.pf-future-status nav { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:14px; }
.pf-future-status a { display:inline-flex; align-items:center; min-height:44px; color:var(--el-brand); font-weight:600; }
.pf-stage-checking > .rt,
.pf-future-pending > .rt { display:none; }
.rt { position:relative; margin-top:6px; }
.rt::before { content:""; position:absolute; left:15px; top:10px; bottom:26px; width:2px; border-radius:2px;
  background:linear-gradient(180deg, var(--el-brand) 0 30%, #cdd7e6 30%); }
.rt-stop { position:relative; padding:0 0 18px 46px; }
.rt-dot { position:absolute; left:8px; top:4px; width:16px; height:16px; border-radius:50%; background:#fff; border:2.5px solid var(--el-brand); z-index:1; box-sizing:border-box; }
.rt-stop.now .rt-dot { background: var(--el-brand); box-shadow:0 0 0 5px rgba(31,111,214,.16); }
.rt-stop.soon .rt-dot { border-color:#c3cdde; }
.rt-stop.end .rt-dot { border-color: var(--el-ink); background: var(--el-ink); width:12px; height:12px; left:10px; }
.rt-now-lbl { font: 600 11px/1.4 var(--font-application-ui); letter-spacing:.1em; text-transform:uppercase; color: var(--el-brand-2); padding-top:3px; }
.rt-now-sub { font-size:12.5px; color: var(--el-slate); }
.rt-card { background: var(--el-surface); border:1px solid var(--el-line); border-radius: var(--el-r); box-shadow: var(--el-sh); padding:16px 17px; }
.rt-card .top { display:flex; align-items:center; gap:9px; margin-bottom:3px; }
.rt-card .top h2 { font-family: var(--el-disp); font-weight:600; font-size:17px; letter-spacing:-.01em; margin:0; color: var(--el-ink); }
.rt-tag { font: 500 9.5px/1 var(--font-application-ui); letter-spacing:.05em; text-transform:uppercase; padding:3px 8px; border-radius:999px; background: var(--el-brand-tint); color: var(--el-brand-2); }
.rt-tag.soon { background: var(--el-ground); color: var(--el-mist); border:1px solid var(--el-line); }
.rt-card .sub { font-size:12.5px; color: var(--el-slate); margin-bottom:12px; }
.rt-stop.soon .rt-card { opacity:.78; }
.rt-stop.soon .rt-card .sub { margin-bottom:0; }
.rt-board { border-radius:13px; padding:13px 15px; color:#eaf0fb; display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  background:radial-gradient(120% 130% at 88% -12%, rgba(244,182,78,.30) 0%, rgba(244,182,78,0) 46%), linear-gradient(158deg,var(--el-night-2),var(--el-night) 74%); }
.rt-board[hidden] { display:none; }
.rt-board .cnt { display:flex; align-items:baseline; gap:7px; }
.rt-board .cnt .n { font-family: var(--el-disp); font-weight:600; font-size:34px; line-height:.9; letter-spacing:-.03em; color:#fff; font-variant-numeric:tabular-nums; }
.rt-board .cnt .u { font-family: var(--el-disp); font-weight:600; font-size:12px; line-height:1.2; color: var(--el-amber-soft); }
.rt-board .facts { flex:1 1 180px; min-width:150px; }
.rt-board .facts .b { font: 600 13px/1.35 var(--font-application-ui); color:#eaf0fb; }
.rt-board .facts .s { font-size:11.5px; color:#b8c6e2; }
.el-due { display:inline-flex; align-items:center; gap:7px; font: 600 11px/1.2 var(--font-application-ui); color:#3c2c0d; background: var(--el-amber); border-radius:999px; padding:6px 11px; white-space:nowrap; }
.rt-meta { display:flex; align-items:center; gap:14px; margin-top:12px; flex-wrap:wrap; }
.rt-meta .m { font-size:12.5px; color: var(--el-slate); }
.rt-meta .m b { color: var(--el-ink); font-weight:700; }
.rt-cta { margin-left:auto; font: 600 13px/1 var(--font-application-ui); color:#fff; background: var(--el-brand); border-radius:10px; padding:10px 15px; text-decoration:none; }
.rt-cta:hover { background: var(--el-brand-2); }
.rt-cta:focus-visible { outline:2px solid var(--el-brand); outline-offset:2px; }
/* "Ahead in Year 6": the place a call to action sits for a student whose turn
   has not come yet. Quiet on purpose — it is information, not an invitation. */
.rt-ahead { margin:0 0 0 auto; font: 600 12.5px/1.4 var(--font-application-ui); color:#5d6b84; text-align:right; max-width:62%; }
.rt-end-lbl { font-family: var(--el-disp); font-weight:600; font-size:12px; color: var(--el-ink); padding-top:1px; }
.rt-end-sub { font-size:11.5px; color: var(--el-mist); }

/* ===========================================================================
   ELECTIVES TOPIC PAGE
   =========================================================================== */
/* segmented Guide / From students */
.el-seg { display:inline-flex; gap:3px; background:#e8ecf3; border-radius:12px; padding:3px; margin:2px 0 20px; }
.el-seg button { border:0; background:transparent; padding:9px 16px; border-radius:9px; font: 600 13.5px/1 var(--font-application-ui); color: var(--el-slate); cursor:pointer; display:inline-flex; align-items:center; gap:8px; -webkit-tap-highlight-color:transparent; }
.el-seg button .cnt { font: 600 10.5px/1 var(--font-application-ui); padding:2px 6px; border-radius:999px; background:#d4dbe6; color:#54617a; }
/* An empty count still painted a small grey pill, which reads as a number that
   has not arrived yet. "From students" has no published count and no promised
   one, so the chip disappears entirely rather than implying a pending figure. */
.el-seg button .cnt:empty { display:none; }
/* A disabled view control must look unavailable, not merely unselected. */
.el-seg button[disabled] { opacity:.55; cursor:default; }
.el-seg button.on { background: var(--el-surface); color: var(--el-ink); box-shadow:0 1px 2px rgba(16,33,64,.12); }
.el-seg button.on .cnt { background: var(--el-brand-tint); color: var(--el-brand-2); }
.el-seg button:focus-visible { outline:2px solid var(--el-brand); outline-offset:2px; }
.el-view { display:none; }
.el-view.on { display:block; }

/* fail-closed gate state */
.el-gate { background: var(--el-surface); border:1px dashed #d3dbe8; border-radius: var(--el-r); padding:28px 22px; text-align:center; color: var(--el-slate); }
.el-gate h3 { font-family: var(--el-disp); color: var(--el-ink); margin:0 0 8px; font-size:17px; }
.el-gate p { margin:0 auto; max-width:46ch; font-size:14px; }

/* countdown identity moment — merged hero (block dates + paperwork deadline live
   here now; the old separate key-date tile row repeated the same facts) */
.el-hero { position:relative; overflow:hidden; border-radius:18px; padding:18px 19px; margin-bottom:20px;
  background: radial-gradient(120% 120% at 85% -10%, rgba(244,182,78,.28) 0%, rgba(244,182,78,0) 46%), linear-gradient(158deg,var(--el-night-2),var(--el-night) 74%);
  color:#eaf0fb; box-shadow:0 14px 30px -16px rgba(16,29,56,.5); }
.el-hero .k { font: 600 10.5px/1 var(--font-application-ui); letter-spacing:.16em; text-transform:uppercase; color: var(--el-amber-soft); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.el-hero .k .dot { width:6px; height:6px; border-radius:50%; background: var(--el-amber); box-shadow:0 0 0 4px rgba(244,182,78,.18); }
.el-hero-row { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.el-hero .count { display:flex; align-items:baseline; gap:9px; }
.el-hero .count .n { font-family: var(--el-disp); font-weight:600; font-size:42px; line-height:.9; letter-spacing:-.03em; color:#fff; font-variant-numeric:tabular-nums; }
.el-hero .count .u { font-family: var(--el-disp); font-weight:600; font-size:14px; line-height:1.15; color: var(--el-amber-soft); }
.el-hero .facts { flex:1 1 200px; min-width:170px; }
.el-hero .facts .b { font: 600 13.5px/1.4 var(--font-application-ui); color:#eaf0fb; }
.el-hero .facts .s { font-size:12px; color:#b8c6e2; }

/* draft — net-new content pending faculty confirmation */
.el-draft{border:1px dashed #c9b8e6;background:#faf7ff;border-radius:12px;padding:12px 14px;margin:0 0 12px}
.el-draft .dh{font-family: var(--el-disp);font-weight:600;font-size:13.5px;color:#5a3ea6;display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:4px}
.el-draft .dtag{font: 600 9.5px/1 var(--font-application-ui);letter-spacing:.04em;text-transform:uppercase;color:#6a44c4;background:#efe7fb;border:1px solid #ddd0f2;border-radius:5px;padding:3px 7px}
.el-draft p{font-size:13px;line-height:1.55;margin:0;color:#4a4066}

/* ---------- guide layout: sticky spine rail (desktop) + docked chips (mobile) */
.el-guide-cols { display:flex; gap:18px; align-items:flex-start; }
.el-gmain { flex:1 1 auto; min-width:0; }
.el-grail { flex:0 0 208px; position:sticky; top:14px; }
.el-grail .cap { font: 600 9.5px/1 var(--font-application-ui); letter-spacing:.11em; text-transform:uppercase; color: var(--el-mist); margin:2px 0 8px 2px; }
.el-grail a { display:flex; align-items:center; gap:9px; text-decoration:none; padding:8px 10px; border-radius:10px; font: 600 12.5px/1.3 var(--font-application-ui); color: var(--el-slate); }
.el-grail a .no { width:20px; height:20px; border-radius:50%; flex:0 0 auto; background: var(--el-brand-tint); color: var(--el-brand-2); font: 600 10px/20px var(--font-application-ui); text-align:center; }
.el-grail a:hover { background:#eef2f9; }
.el-grail a.cur { background: var(--el-brand-tint); color: var(--el-brand-2); }
.el-grail a.cur .no { background: var(--el-brand); color:#fff; }
.el-grail a .tick { margin-left:auto; color: var(--el-go); font-size:11px; }
.el-grail a:focus-visible { outline:2px solid var(--el-brand); outline-offset:2px; }
.el-chipbar { display:none; }

/* ---------- collapsible stages ---------- */
.el-stage { background: var(--el-surface); border:1px solid var(--el-line); border-radius: var(--el-r); box-shadow: var(--el-sh); margin-bottom:10px; overflow:hidden; scroll-margin-top:84px; }
.el-stage-h { margin:0; }
.el-stage-head { display:flex; align-items:center; gap:12px; padding:13px 15px; cursor:pointer; background:none; border:0; width:100%; text-align:left; font: inherit; color:inherit; -webkit-tap-highlight-color:transparent; }
.el-stage-head:focus-visible { outline:2px solid var(--el-brand); outline-offset:-2px; }
.el-stage-no { font-family: var(--el-disp); font-weight:600; font-size:12px; color:#fff; background: var(--el-brand); width:25px; height:25px; border-radius:8px; display:grid; place-items:center; flex:0 0 auto; font-variant-numeric:tabular-nums; }
.el-stage.done .el-stage-no { background: var(--el-go); }
.el-stage-t { flex:1 1 auto; min-width:0; }
.el-stage-t .t { display:block; font-family: var(--el-disp); font-weight:600; font-size:15.5px; letter-spacing:-.01em; color: var(--el-ink); }
.el-stage-t .g { display:block; font-size:12px; color: var(--el-slate); margin-top:1px; }
.el-stage-m { font: 600 11px/1 var(--font-application-ui); color: var(--el-mist); white-space:nowrap; display:flex; align-items:center; gap:9px; }
.el-stage-m .due { color: var(--el-warn-ink); background: var(--el-warn-tint); border:1px solid #f4dcae; padding:4px 8px; border-radius:999px; }
.el-chev { color: var(--el-mist); transition:transform .18s ease; flex:0 0 auto; }
.el-stage.open .el-chev { transform:rotate(90deg); }
.el-stage-body { display:none; border-top:1px solid var(--el-line); padding:14px 15px 15px; }
.el-stage.open .el-stage-body { display:block; }
.el-prog { display:inline-block; font: 600 11px/1 var(--font-application-ui); color: var(--el-go); background: var(--el-go-tint); border:1px solid var(--el-go-line); border-radius:999px; padding:4px 9px; margin-top:6px; }
.el-stage-xlink { display:flex; align-items:center; gap:8px; padding:11px 4px 2px; font: 600 13px/1.4 var(--font-application-ui); color: var(--el-brand-2); background:none; border:0; cursor:pointer; }
.el-stage-xlink:hover { text-decoration:underline; }

.el-section { background: var(--el-surface); border:1px solid var(--el-line); border-radius:12px; padding:14px 16px; margin-bottom:10px; scroll-margin-top:84px; }
.el-section > h3 { font-family: var(--el-disp); font-weight:600; font-size:16px; letter-spacing:-.01em; margin:0 0 10px; color: var(--el-ink); }
.el-section p { font-size:14px; line-height:1.62; color:#31405c; margin:0 0 10px; max-width:65ch; }
.el-section p:last-child { margin-bottom:0; }

.el-list, .el-steps, .el-actions { margin:0 0 10px; padding:0; }
.el-list li { list-style:none; position:relative; padding:4px 0 4px 20px; font-size:14px; line-height:1.55; color:#31405c; }
.el-list li::before { content:""; position:absolute; left:4px; top:12px; width:5px; height:5px; border-radius:50%; background: var(--el-mist); }
.el-steps { counter-reset:elstep; }
.el-steps li { list-style:none; position:relative; padding:6px 0 6px 32px; font-size:14px; line-height:1.55; color:#31405c; }
.el-steps li::before { counter-increment:elstep; content:counter(elstep); position:absolute; left:0; top:5px; width:20px; height:20px; border-radius:50%; background: var(--el-brand-tint); color: var(--el-brand-2); font: 600 11px/20px var(--font-application-ui); text-align:center; }
.el-actions-label { font: 500 11px/1 var(--font-application-ui); letter-spacing:.06em; text-transform:uppercase; color: var(--el-brand-2); margin:0 0 8px; }
/* "You need to" → tickable checklist (persisted locally per user) */
.el-actions li { list-style:none; padding:0; }
.el-check { display:flex; align-items:flex-start; gap:10px; padding:6px 0; font-size:14px; line-height:1.5; color:#31405c; cursor:pointer; }
.el-check input { appearance:none; -webkit-appearance:none; width:17px; height:17px; border:1.7px solid var(--el-brand); border-radius:5px; margin:2px 0 0; cursor:pointer; flex:0 0 auto; display:grid; place-items:center; background:#fff; }
.el-check input:checked { background: var(--el-brand); }
.el-check input:checked::after { content:"\2713"; color:#fff; font: 600 11px/1 var(--font-application-ui); }
.el-check input:focus-visible { outline:2px solid var(--el-brand); outline-offset:2px; }
.el-check input:checked + span { color: var(--el-mist); text-decoration:line-through; }

/* callouts */
.el-callout { border-radius:12px; padding:12px 14px; margin:0 0 12px; border:1px solid; }
.el-callout .ct { font-family: var(--el-disp); font-weight:600; font-size:13.5px; margin:0 0 4px; display:flex; align-items:center; gap:8px; }
.el-callout p { font-size:13px; line-height:1.55; margin:0; max-width:64ch; }
.el-callout--deadline { background:#fff8ee; border-color:#f4dcae; color: var(--el-warn-ink); }
.el-callout--deadline .ct { color:#93500f; }
.el-callout--must { background: var(--el-brand-tint); border-color:#cfe1f8; }
.el-callout--must .ct { color: var(--el-brand-2); }
.el-callout--warning { background:#fdecec; border-color:#f3c9c9; }
.el-callout--warning .ct { color:#a83232; }
.el-callout--info { background: var(--el-go-tint); border-color: var(--el-go-line); }
.el-callout--info .ct { color: var(--el-go); }
.el-callout .cico { flex:0 0 auto; }

/* The source calendar is mostly text: native rows stay crisp at every zoom. */
.el-calendar { width:100%; border-collapse:separate; border-spacing:0; margin:0 0 14px; font-size:13px; line-height:1.65; color:var(--el-ink); border:1px solid var(--el-line); border-radius:9px; overflow:hidden; }
.el-calendar caption { text-align:left; font-weight:600; padding:0 0 7px; }
.el-calendar th, .el-calendar td { padding:8px 10px; text-align:left; vertical-align:top; border-bottom:1px solid var(--el-line-soft); }
.el-calendar thead th { color:var(--el-slate); background:var(--el-ground); font-weight:500; font-size:12px; }
.el-calendar tbody th { width:95px; font-weight:600; }
.el-calendar tr:last-child > * { border-bottom:0; }
.el-calendar--vacation { background:#f4f5f7; }
.el-calendar--pfa { background:#fcf9df; }
.el-calendar--elective { background:#eef7e9; }
.el-calendar--resit { background:#f8ebf8; }
.el-calendar time { white-space:nowrap; display:inline-block; }
.el-calendar-separator { color:var(--el-mist); }

/* links + provenance */
.el-links { display:flex; flex-direction:column; gap:6px; margin-top:12px; }
.el-link { display:inline-flex; align-items:center; gap:9px; text-decoration:none; font-size:13px; font-weight:500; color: var(--el-brand-2); padding:7px 9px; border-radius:9px; background: var(--el-ground); border:1px solid var(--el-line-soft); }
.el-link:hover { border-color:#d3ddec; }
.el-link--unavailable { color:var(--el-slate); font-weight:400; cursor:default; justify-content:space-between; flex-wrap:wrap; }
.el-resource-status { flex:0 0 auto; padding:2px 7px; border-radius:999px; border:1px solid var(--el-line-soft); font-size:11px; font-weight:500; }
.el-link .lk-ic { width:26px; height:26px; border-radius:7px; flex:0 0 auto; display:grid; place-items:center; background: var(--el-brand-tint); color: var(--el-brand-2); }
.el-link .lk-ic.form { background:#eef4ec; color:#3d7a2f; } .el-link .lk-ic.download { background:#fdefe0; color:#b06d18; } .el-link .lk-ic.email { background:#f0e9fb; color:#6a44c4; }
.el-email { display:flex; flex-wrap:wrap; gap:6px; align-items:stretch; }
.el-email > .el-link { flex:1 1 180px; min-width:0; }
.el-email-label { min-width:0; }
.el-email-address { display:block; font-size:12px; font-weight:400; color:var(--el-slate); overflow-wrap:anywhere; user-select:text; }
.el-copy-email { border:1px solid var(--el-line); border-radius:9px; background:var(--el-surface); color:var(--el-brand-2); padding:8px 12px; font:500 12px var(--font-application-ui); cursor:pointer; }
.el-copy-email:hover { background:var(--el-brand-tint); }
.el-copy-email:focus-visible, .el-inline-email:focus-visible, .el-email .el-link:focus-visible { outline:2px solid var(--el-brand); outline-offset:2px; }
.el-email-status { flex-basis:100%; font-size:12px; color:var(--el-slate); }
.el-email-status:empty { display:none; }
.el-inline-email { color:inherit; text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
.el-uncertain { display:flex; gap:9px; align-items:flex-start; margin-top:12px; padding:9px 11px; border-radius:9px; background:#fff8ee; border:1px solid #f4dcae; font-size:12px; color:#93500f; line-height:1.5; }
.el-src { margin-top:12px; font-size:11px; color: var(--el-mist); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.el-src a { color: var(--el-mist); text-decoration:underline; }

/* ---------- From students ---------- */
/* Step 7B4 — the destination explorer. The tab is open to an approved Imperial
   Year 6 account; the individual student reports are a separate, still-closed
   decision, which the notice below states plainly rather than leaving implied. */
.el-dnotice { background: var(--el-brand-tint); border:1px solid #dbe4f5; border-radius:11px; padding:10px 12px; margin:0 0 12px; font-size:12.5px; line-height:1.55; color: var(--el-slate); }

/* region filter — a single-select chip row, wrapping on narrow screens */
.el-dregions { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.el-dregion { font: 500 12px/1 var(--font-application-ui); color: var(--el-slate); background: var(--el-surface); border:1px solid var(--el-line); border-radius:999px; padding:7px 12px; cursor:pointer; }
.el-dregion:hover { border-color:#cfd8e8; color: var(--el-ink); }
.el-dregion.on { background: var(--el-ink); border-color: var(--el-ink); color:#fff; }
.el-dregion:focus-visible { outline:2px solid var(--el-brand); outline-offset:2px; }
.el-dtotal { font-size:12px; color: var(--el-mist); margin:0 0 10px; }
/* the detail view lists every specialty, so it is not clipped to three */
.el-dchips.wide { margin:0 0 14px; }

.el-rep-search { display:flex; align-items:center; gap:8px; background: var(--el-surface); border:1px solid var(--el-line); border-radius:11px; padding:9px 12px; margin-bottom:9px; }
.el-rep-search input { border:0; outline:0; background:transparent; font-size:14px; color: var(--el-ink); width:100%; }
.el-dscap { font-size:12.5px; color: var(--el-slate); margin:0 0 14px; }
.el-dscap b { color: var(--el-ink); font-weight:700; }
.el-empty { text-align:center; color: var(--el-slate); padding:30px; font-size:14px; }

/* destination tiles (country grid, photo-first) */
.el-dtiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(215px,1fr)); gap:12px; }
.el-dtile { position:relative; border:0; border-radius:15px; overflow:hidden; aspect-ratio:16/10.5; display:flex; align-items:flex-end; cursor:pointer; padding:0; text-align:left; background-size:cover; background-position:center; box-shadow:0 2px 10px rgba(20,33,64,.08); font: inherit; }
.el-dtile:focus-visible { outline:2px solid var(--el-brand); outline-offset:2px; }
/* the licensed photo, painted over the tile's own gradient (which is therefore
   both the loading placeholder and the fallback if the photo fails) */
.el-dtile .ph { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.el-dtile .ph.off { display:none; }
.el-dtile .scrim { position:absolute; inset:0; background:linear-gradient(180deg, rgba(9,16,32,.02) 30%, rgba(9,16,32,.42) 68%, rgba(9,16,32,.78) 100%); }
.el-dtile .lbl { position:relative; padding:11px 13px; width:100%; display:flex; align-items:flex-end; gap:8px; }
.el-dtile .fl { font-size:16px; line-height:1; margin-bottom:2px; }
.el-dtile .nm { flex:1 1 auto; min-width:0; }
.el-dtile .nm .c { display:block; font-family: var(--el-disp); font-weight:600; font-size:15px; letter-spacing:-.01em; color:#fff; text-shadow:0 1px 6px rgba(0,0,0,.45); }
.el-dtile .nm .s { display:block; font: 600 10.5px/1.3 var(--font-application-ui); color:rgba(255,255,255,.85); text-shadow:0 1px 4px rgba(0,0,0,.4); margin-top:2px; }
.el-dtile .ct { font: 600 11px/1 var(--font-application-ui); color:#fff; background:rgba(9,16,32,.44); border-radius:999px; padding:5px 9px; backdrop-filter:blur(2px); font-variant-numeric:tabular-nums; }
/* on a tile the credit stays a subtle chip: lighter than the city hero's, and
   never wider than the card (a very long name ellipsizes — the title attribute
   and the profile link still carry it in full) */
.el-dtile .el-dcity-credit { top:8px; right:9px; max-width:calc(100% - 18px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.el-dcity-credit.tight { font: 500 8px/1 var(--font-application-ui); color:rgba(255,255,255,.72); background:rgba(9,16,32,.26); padding:3px 6px; }
.el-dcity-credit.tight:hover { color:rgba(255,255,255,.95); background:rgba(9,16,32,.44); }
.el-dtile--more { background: var(--el-surface); border:1px dashed #c9d3e3; box-shadow:none; }
.el-dtile--more .lbl { justify-content:center; align-items:center; height:100%; }
.el-dtile--more .t { text-align:center; color: var(--el-brand-2); font: 600 13px/1.4 var(--font-application-ui); }
.el-dtile--more .t small { display:block; color: var(--el-mist); font: 500 11px/1.4 var(--font-application-ui); }
.el-dother { margin-top:12px; font-size:12px; color: var(--el-mist); }

/* ---------- destinations directory (Country → Hospital) ---------- */
.el-dback { border:1px solid var(--el-line); background: var(--el-surface); color: var(--el-brand-2); border-radius:9px; padding:7px 12px; font: 600 13px/1 var(--font-application-ui); cursor:pointer; margin-bottom:12px; }
.el-dback:hover { border-color:#d3ddec; }
.el-dsubh { font: 600 11.5px/1 var(--font-application-ui); letter-spacing:.02em; color: var(--el-slate); margin:2px 2px 12px; }
.el-dcrow { display:flex; align-items:center; gap:13px; width:100%; text-align:left; background: var(--el-surface); border:1px solid var(--el-line); border-radius:13px; padding:12px 14px; margin-bottom:8px; cursor:pointer; box-shadow: var(--el-sh); }
.el-dcrow:hover { border-color:#d3ddec; }
.el-dcrow--muted { opacity:.72; cursor:default; }
.el-dflag { width:34px; height:34px; border-radius:9px; flex:0 0 auto; display:grid; place-items:center; font-size:19px; background: var(--el-ground); }
.el-dcname { flex:1 1 auto; font-size:15px; font-weight:600; letter-spacing:-.01em; color: var(--el-ink); }
.el-dcname small { display:block; font-size:11.5px; color: var(--el-mist); font-weight:400; margin-top:1px; }
.el-dct { font: 600 12px/1 var(--font-application-ui); color: var(--el-brand-2); background: var(--el-brand-tint); padding:5px 9px; border-radius:999px; font-variant-numeric:tabular-nums; }
.el-dchev { color: var(--el-mist); flex:0 0 auto; }

.el-dhrow { display:block; width:100%; text-align:left; background: var(--el-surface); border:1px solid var(--el-line); border-radius:13px; padding:13px 14px; margin-bottom:9px; cursor:pointer; box-shadow: var(--el-sh); }
.el-dhrow:hover { border-color:#d3ddec; }
.el-dhrow .top { display:flex; align-items:flex-start; gap:11px; }
.el-dhic { width:32px; height:32px; border-radius:9px; flex:0 0 auto; display:grid; place-items:center; background: var(--el-go-tint); color: var(--el-go); }
.el-dhn { flex:1 1 auto; min-width:0; }
.el-dhn .n { display:block; font-size:14px; font-weight:600; letter-spacing:-.005em; color: var(--el-ink); }
.el-dhn .c { display:block; font-size:11.5px; color: var(--el-mist); margin-top:1px; }
.el-drev { font: 600 11px/1 var(--font-application-ui); color: var(--el-brand-2); white-space:nowrap; }
.el-drev.hot { color: var(--el-warn-ink); }
.el-dchips { display:flex; gap:5px; flex-wrap:wrap; margin-top:9px; }
.el-dchip { font: 500 10px/1 var(--font-application-ui); color: var(--el-slate); background: var(--el-ground); border:1px solid var(--el-line); border-radius:6px; padding:3px 7px; }

/* ---------- collapsible city cards (hospitals nested inside a city) ---------- */
.el-dcities { display:flex; flex-direction:column; gap:11px; }
.el-dcity { border:1px solid var(--el-line); border-radius:15px; overflow:hidden; background: var(--el-surface); box-shadow: var(--el-sh); }
.el-dcity-head { position:relative; display:block; width:100%; border:0; cursor:pointer; text-align:left; background-position:center; background-size:cover; min-height:104px; }
.el-dcity-head.plain { min-height:0; background: var(--el-ground); padding:2px; }
.el-dcity-head:focus-visible { outline:2px solid var(--el-brand); outline-offset:-2px; }
.el-dcity-scrim { position:absolute; inset:0; background:linear-gradient(180deg, rgba(9,16,32,.05) 0%, rgba(9,16,32,.28) 46%, rgba(9,16,32,.74) 100%); }
.el-dcity-lbl { position:relative; display:flex; align-items:flex-end; gap:10px; padding:13px 15px; min-height:104px; box-sizing:border-box; }
.el-dcity-head.plain .el-dcity-lbl { min-height:0; padding:13px 15px; align-items:center; }
.el-dcity-meta { flex:1 1 auto; min-width:0; }
.el-dcity-name { display:block; font-family: var(--el-disp); font-weight:600; font-size:17px; letter-spacing:-.01em; color:#fff; text-shadow:0 1px 6px rgba(0,0,0,.42); }
.el-dcity-sub { display:block; font: 600 11.5px/1 var(--font-application-ui); color:rgba(255,255,255,.86); margin-top:3px; text-shadow:0 1px 4px rgba(0,0,0,.4); }
.el-dcity-head.plain .el-dcity-name { color: var(--el-ink); text-shadow:none; font-size:14.5px; }
.el-dcity-head.plain .el-dcity-sub { color: var(--el-mist); text-shadow:none; }
.el-dcity-chev { flex:0 0 auto; align-self:center; color:#fff; opacity:.9; transition:transform .18s ease; }
.el-dcity-chev:not(.light) { color: var(--el-mist); }
.el-dcity-chev svg { transform:rotate(90deg); }
.el-dcity.open .el-dcity-chev svg { transform:rotate(-90deg); }
.el-dcity-credit { position:absolute; right:9px; top:8px; z-index:2; font: 600 9px/1 var(--font-application-ui); color:rgba(255,255,255,.82); background:rgba(9,16,32,.34); border-radius:6px; padding:4px 7px; text-decoration:none; backdrop-filter:blur(2px); }
.el-dcity-credit:hover { color:#fff; background:rgba(9,16,32,.5); }
.el-dcity-credit a { color:inherit; text-decoration:none; }
.el-dcity-credit a:hover { color:#fff; text-decoration:underline; }
.el-dcity-body { display:none; padding:11px 12px 3px; }
.el-dcity.open .el-dcity-body { display:block; animation: el-dcity-in .2s ease; }
.el-dcity-body .el-dhrow { box-shadow:none; }
@keyframes el-dcity-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }

/* The two REPORT-GROUP routes: a country whose hospitals are not identified,
   and the reports with no location at all. Same components as a city card and a
   destination row, deliberately — they are a way into reports, so they should
   look like one. What they do NOT get is a photograph, a gradient or a hero:
   those say "here is a place", and a group is not a place. A dashed edge and
   the plain ground say "this is a grouping" without shouting it. */
.el-dcity-unresolved { border-style:dashed; box-shadow:none; }
.el-dcity-unresolved .el-dcity-head.plain { background:transparent; }
.el-dunassigned { display:flex; width:100%; align-items:center; gap:11px; text-align:left; margin-top:14px;
  background: var(--el-ground); border:1px dashed var(--el-line); border-radius:13px; padding:13px 15px; cursor:pointer; }
.el-dunassigned:hover { border-color:#d3ddec; }
.el-dunassigned:focus-visible { outline:2px solid var(--el-brand); outline-offset:2px; }
.el-dunassigned-lbl { flex:1 1 auto; min-width:0; }
.el-dunassigned-lbl .t { display:block; font: 600 14px/1.25 var(--font-application-ui); color: var(--el-ink); }
.el-dunassigned-lbl .s { display:block; font: 500 11.5px/1.3 var(--font-application-ui); color: var(--el-mist); margin-top:3px; }

.el-dhead { background:linear-gradient(158deg,var(--el-night-2),var(--el-night)); border-radius:16px; padding:16px 17px; color:#eaf0fb; margin-bottom:12px; }
.el-dhead .fl { font-size:22px; }
.el-dhead h3 { font-family: var(--el-disp); font-weight:600; font-size:19px; margin:8px 0 3px; letter-spacing:-.01em; }
.el-dhead .loc { font-size:12.5px; color:#b8c6e2; }
.el-dsec { background: var(--el-surface); border:1px solid var(--el-line); border-radius:14px; padding:14px 15px; margin-bottom:11px; box-shadow: var(--el-sh); }
.el-dsec h4 { font-family: var(--el-disp); font-weight:600; font-size:14.5px; margin:0 0 9px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.el-ddraft { font: 600 9px/1 var(--font-application-ui); letter-spacing:.05em; text-transform:uppercase; color:#6a44c4; background:#f0e9fb; border:1px solid #ddd0f2; border-radius:5px; padding:3px 6px; }
.el-dsec p { font-size:13px; line-height:1.55; color:#33415c; margin:0; }
.el-dslot { border:1px dashed #cdd6e4; border-radius:10px; padding:11px 12px; color: var(--el-slate); font-size:12.5px; background: var(--el-ground); }
/* report list — grouped by year */
.el-dyear { display:flex; align-items:center; gap:8px; padding:10px 0 4px; }
.el-dyear .y { font-family: var(--el-disp); font-weight:600; font-size:11px; color: var(--el-ink); background: var(--el-ground); border:1px solid var(--el-line); border-radius:7px; padding:5px 8px; font-variant-numeric:tabular-nums; }
.el-dyear .k { font-size:11px; color: var(--el-mist); }
.el-drev-row { display:flex; align-items:center; gap:11px; padding:8px 2px 8px 6px; border-bottom:1px solid var(--el-line-soft); }
.el-drev-row:last-child { border-bottom:0; }
.el-drm { flex:1 1 auto; min-width:0; }
.el-drm .t { display:block; font-size:13px; font-weight:500; }
.el-drm .m { display:block; font-size:11px; color: var(--el-mist); margin-top:1px; }
.el-dopen { font: 600 12px/1 var(--font-application-ui); color: var(--el-brand-2); white-space:nowrap; text-decoration:none; display:inline-flex; align-items:center; gap:5px; }
.el-dopen[aria-disabled="true"] { color: var(--el-mist); pointer-events:none; }

@media (max-width:760px) {
  .el-guide-cols { display:block; }
  .el-grail { display:none; }
  .el-chipbar { position:sticky; top:0; z-index:5; display:flex; gap:7px; overflow-x:auto; padding:9px 2px; margin:0 -2px 12px; background: var(--el-ground); -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .el-chipbar::-webkit-scrollbar { display:none; }
  .el-chipbar button { flex:0 0 auto; font: 600 11.5px/1 var(--font-application-ui); color: var(--el-slate); background: var(--el-surface); border:1px solid var(--el-line); border-radius:999px; padding:8px 12px; display:inline-flex; gap:6px; align-items:center; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .el-chipbar button.cur { background: var(--el-brand); border-color: var(--el-brand); color:#fff; }
  .el-stage { scroll-margin-top:56px; }
  .el-stage-tag { margin-left:0; }
}
@media (prefers-reduced-motion: reduce) {
  .el-dcity.open .el-dcity-body { animation:none; }
  .el-dcity-chev, .el-chev { transition:none; }
}

/* ---------------------------------------------------------------------------
   Student reports inside a destination.

   A report row is a title and a download, and nothing else: the safe projection
   the server returns carries no excerpt, author or source filename to render.
   The list lives inside the destination's own .el-dsec card, so it inherits the
   surface and only needs its own rhythm.
   --------------------------------------------------------------------------- */
.el-drep-count { font-size:12px; color: var(--el-slate); margin:0 0 8px; }
.el-dreps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.el-drep {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  border:1px solid var(--el-line); border-radius:10px;
  padding:9px 11px; background: var(--el-ground);
}
.el-drep-main { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1 1 200px; }
.el-drep-title { font-size:13px; font-weight:600; color:#1e293b; overflow-wrap:anywhere; }
.el-drep-meta { font-size:11.5px; color: var(--el-slate); }
.el-drep-dl {
  flex:0 0 auto;
  font:inherit; font-size:12.5px; font-weight:600;
  border:1px solid var(--el-line); border-radius:8px;
  background:#fff; color:#1d4ed8;
  padding:7px 13px; cursor:pointer;
  /* A comfortable target on a phone without making the row taller than the
     title it belongs to. */
  min-height:36px;
}
.el-drep-dl:hover:not(:disabled) { background:#f1f5ff; }
.el-drep-dl:focus-visible { outline:2px solid #1d4ed8; outline-offset:2px; }
.el-drep-dl:disabled { opacity:.6; cursor:default; }
.el-drep-err { flex:1 0 100%; font-size:12px; color: var(--danger, #b42318); }

@media (max-width: 480px) {
  /* The action goes full width rather than squeezing beside a wrapped title. */
  .el-drep-dl { flex:1 1 100%; }
}

/* ---------------------------------------------------------------------------
   A destination with no curated write-up.

   Deliberately NOT styled as a warning or an empty state. It is an ordinary
   destination that simply has no PlacementFlow article yet — the student
   reports below it are the point of the page — so it gets the same quiet slot
   treatment as any other note, with no heading above an empty box.
   --------------------------------------------------------------------------- */
.el-dsec-plain { background: transparent; border: 0; box-shadow: none; padding: 0; margin-bottom: 11px; }
.el-dsec-plain .el-dslot { line-height: 1.55; }

/* Directory load state. One line, quiet, and only shown when the list on
   screen is NOT known to be complete. */
.el-dnote {
  font-size: 12px; color: var(--el-slate);
  margin: 0 2px 10px; display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
}
.el-dnote[data-directory-state="error"] { color: var(--danger, #b42318); }
.el-dnote .el-gate-retry { font-size: 12px; padding: 4px 10px; }
.el-dnote[data-library-state="error"] { color: var(--danger, #b42318); }

/* ORIGINAL-SOURCE DELIVERY.

   The Open action is an <a> for a link-only report and a <button> for a
   file-backed one, because they are different actions. They must look
   identical, so the button is stripped back to the anchor's own appearance
   rather than the anchor being restyled to look like a button. */
.el-dopen {
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; font-family: inherit;
}
.el-dopen[aria-busy="true"] { color: var(--el-mist); pointer-events: none; }

/* The honest limit, stated once per hospital page where a student is about to
   open a document this product does not host. Quiet, but not hidden: it sits in
   the report section, after the rows, in the body text colour's lighter tone. */
.el-dsrc-note {
  margin: 12px 2px 0; font-size: 11.5px; line-height: 1.55;
  color: var(--el-mist);
}
/* A per-row failure — a blocked pop-up, a refused resolution. It belongs beside
   the row that failed, not in a page-level banner that loses which one it was. */
.el-dsrc-error {
  flex: 0 0 100%; order: 3; margin-top: 4px;
  font-size: 11.5px; color: var(--danger, #b42318);
}
.el-drev-row { flex-wrap: wrap; }

/* An approved-session revisit retains the ordinary page shell. Placeholder
   geometry contains no Guide text and never communicates an access grant. */
.el-guide-pending { min-height: 18rem; padding: 1rem 0; color: var(--el-slate); font-size: 13px; }
.el-guide-placeholder { height: 12rem; margin-top: 1rem; border-radius: var(--el-r); background: linear-gradient(var(--el-line-soft) 0 12px, transparent 12px 28px, var(--el-line-soft) 28px 40px, transparent 40px); max-width: 44rem; }
