/* Applicant site frame: navy header, left menu + contact, page, optional
   right column (Important Dates on the home page). */
:root {
  --pf-navy: #121852;
  --pf-navy-2: #1f2f86;
  --pf-cyan: #12bfe6;
  --pf-blue: #2f6bff;
  --pf-sky: #e6f7fc;
  --pf-sky-line: #c9ecf6;
  --pf-sky-ink: #0a5f7c;
  --pf-ink: #18202d;
  --pf-ink-2: #4b5565;
  --pf-line: #e5e9f0;
  --pf-page: #f1f4f9;
  --pf-radius: 14px;
  --pf-shadow: 0 1px 2px rgba(16, 24, 64, .05), 0 8px 24px -12px rgba(16, 24, 64, .18);
  --pf-shadow-lg: 0 2px 4px rgba(16, 24, 64, .05), 0 22px 44px -22px rgba(16, 24, 64, .35);
}

.pf-body {
  min-height: 100vh; display: flex; flex-direction: column; color: var(--pf-ink);
  background: radial-gradient(1200px 380px at 50% -120px, rgba(18, 191, 230, .10), transparent 70%), var(--pf-page);
}
.pf-wrap { width: 100%; margin: 0; padding: 0 12px; }

/* ---------- Header ---------- */
.pf-header {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(600px 220px at 85% -40px, rgba(18, 191, 230, .28), transparent 70%),
              radial-gradient(500px 200px at 10% 140%, rgba(47, 107, 255, .30), transparent 70%),
              linear-gradient(120deg, var(--pf-navy) 0%, var(--pf-navy-2) 100%);
}
.pf-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--pf-cyan), var(--pf-blue), #7c5cff); }
.pf-header-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.05rem; padding-bottom: 1.15rem; }
.pf-brand { display: flex; align-items: center; gap: 1rem; color: #fff; text-decoration: none; min-width: 0; }
.pf-brand:hover { color: #fff; }
.pf-logo {
  flex: none; width: 64px; height: 64px; display: grid; place-items: center; padding: 6px; border-radius: 16px;
  background: #fff; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.pf-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pf-logo-mark { color: var(--pf-navy); font-weight: 800; letter-spacing: .02em; }
.pf-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pf-brand-name { font-weight: 800; font-size: 1.55rem; letter-spacing: -.01em; }
.pf-brand-sub { font-weight: 600; font-size: 1.15rem; color: rgba(255, 255, 255, .82); margin-top: .15rem; }
.pf-head-actions { flex: none; display: flex; align-items: center; gap: .6rem; }
.pf-status {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .9);
}
.pf-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff9b8f; }
.pf-status.is-open .pf-status-dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .22); }
.pf-user { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; color: #fff; }
/* the header band is dark, so the application number is white on it, not the brand colour it wears on a page */
.pf-user .app-no { color: #fff; }

/* ---------- Grid: menu + contact | page | dates ---------- */
.pf-grid {
  flex: 1 0 auto; display: grid; gap: 20px; padding-top: 22px; padding-bottom: 32px; align-items: start;
  grid-template-columns: 290px minmax(0, 1fr);
  grid-template-areas: "menu main" "contact main";
  grid-template-rows: auto 1fr;
}
.pf-grid.has-aside { grid-template-columns: 290px minmax(0, 1fr) 300px; grid-template-areas: "menu main aside" "contact main aside"; }
.pf-menu { grid-area: menu; }
.pf-main { grid-area: main; }
.pf-aside { grid-area: aside; }
.pf-contact { grid-area: contact; }

/* ---------- Side boxes ---------- */
.pf-box { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow); overflow: hidden; }
.pf-box-title {
  margin: 0; padding: .9rem 1.1rem; display: flex; align-items: center; gap: .6rem; font-size: 1.12rem; font-weight: 700; color: var(--pf-navy);
  background: linear-gradient(180deg, var(--pf-sky), #f5fcfe); border-bottom: 1px solid var(--pf-sky-line);
}
.pf-box-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: .95rem; background: linear-gradient(135deg, var(--pf-cyan), var(--pf-blue)); box-shadow: 0 6px 14px -6px rgba(47, 107, 255, .6); }
.pf-box-body { padding: .9rem 1.1rem 1.1rem; }

.pf-menu { padding: .5rem; }
.pf-menu ul { display: flex; flex-direction: column; gap: 2px; }
.pf-menu form { margin: 0; }
.pf-menu-link {
  position: relative; display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 10px;
  background: transparent; text-align: left; color: var(--pf-ink); font-size: 1rem; font-weight: 500; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.pf-menu-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--pf-sky); color: var(--pf-sky-ink); transition: background .15s ease, color .15s ease; }
.pf-menu-text { flex: 1 1 auto; min-width: 0; }
.pf-menu-go { font-size: .8rem; opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; color: var(--pf-ink-2); }
.pf-menu-link:hover { background: #f3f8fc; color: var(--pf-navy); }
.pf-menu-link:hover .pf-menu-go { opacity: 1; transform: none; }
.pf-menu-link.active { background: linear-gradient(135deg, var(--pf-cyan), var(--pf-blue)); color: #fff; font-weight: 600; box-shadow: 0 10px 20px -12px rgba(47, 107, 255, .8); }
.pf-menu-link.active .pf-menu-ico { background: rgba(255, 255, 255, .2); color: #fff; }
.pf-menu-link.active .pf-menu-go { opacity: 1; transform: none; color: #fff; }

.pf-contact-item { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem 0; color: var(--pf-ink-2); }
.pf-contact-item + .pf-contact-item { border-top: 1px dashed var(--pf-line); }
.pf-contact-item > .min-w-0 { display: flex; flex-direction: column; }
.pf-contact-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pf-sky); color: var(--pf-sky-ink); }
.pf-contact-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a93a3; }
.pf-contact-item a { color: var(--pf-ink); font-weight: 500; text-decoration: none; }
.pf-contact-item a:hover { color: var(--pf-blue); text-decoration: underline; }

/* ---------- Main card ---------- */
.pf-card { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow-lg); overflow: hidden; }
.pf-card-head {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.5rem; color: #fff; overflow: hidden;
  background: radial-gradient(420px 160px at 100% 0, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(120deg, var(--pf-cyan) 0%, var(--pf-blue) 100%);
}
.pf-card-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); }
.pf-card-kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin-bottom: .15rem; }
.pf-card-title { margin: 0; color: #fff; font-size: 1.3rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.pf-card-body { padding: 1.5rem 1.75rem 1.75rem; }
.pf-card-sub {
  display: flex; align-items: center; gap: .5rem; font-size: 1.08rem; font-weight: 700; color: var(--pf-navy);
  margin: 0 0 .9rem; padding-bottom: .65rem; border-bottom: 1px solid var(--pf-line);
}
.pf-card-sub i { color: var(--pf-blue); }

/* Eligibility table: the admin Units list design (admin/core.css .un-*) */
.pf-g-science { --g: #0e9f8e; --g-bg: rgba(14, 159, 142, .09); }
.pf-g-humanities { --g: #7c5cdb; --g-bg: rgba(124, 92, 219, .09); }
.pf-g-business { --g: #c98a12; --g-bg: rgba(201, 138, 18, .1); }
.pf-un-card { background: #fff; border: 1px solid var(--pf-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 64, .05); overflow: hidden; margin-bottom: 1.6rem; }
.pf-un-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--pf-line); }
.pf-un-head h3 { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .95rem; font-weight: 700; color: var(--pf-ink); }
.pf-un-legend { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; color: #6b7587; }
.pf-un-legend span { padding: .05rem .5rem; border-radius: 999px; font-weight: 700; color: var(--pf-ink-2); background: #f6f8fb; border: 1px solid #eef1f6; }
.pf-un-table { --bs-table-bg: transparent; }
.pf-un-table thead th { padding: .7rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: #6b7587; background: #f6f8fb; border-bottom: 1px solid var(--pf-line); }
.pf-un-table th.pf-un-th { color: var(--g); box-shadow: inset 0 -2px 0 var(--g); }
.pf-un-table td, .pf-un-table tbody th { padding: .8rem .7rem; border-color: #eef1f6; }
.pf-un-table tbody tr { transition: background .15s ease; }
.pf-un-table tbody tr:hover { background: rgba(47, 107, 255, .03); }
.pf-un-unit { display: flex; align-items: center; gap: .65rem; }
.pf-un-code {
  flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  font-weight: 800; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--pf-navy-2), var(--pf-blue)); box-shadow: 0 4px 10px rgba(47, 107, 255, .25);
}
.pf-un-name { font-weight: 700; color: var(--pf-ink); white-space: nowrap; }
.pf-un-gpa { display: inline-grid; grid-template-columns: repeat(3, auto); gap: .2rem; padding: .3rem; border-radius: 12px; background: var(--g-bg); border: 1px solid color-mix(in srgb, var(--g) 22%, transparent); }
.pf-un-gpa span { display: flex; flex-direction: column; align-items: center; min-width: 2.75rem; padding: .2rem .3rem; border-radius: 9px; }
.pf-un-gpa small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7587; }
.pf-un-gpa b { font-size: .92rem; color: var(--pf-ink); font-variant-numeric: tabular-nums; }
.pf-un-gpa .tot { background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 64, .08); }
.pf-un-gpa .tot b { color: var(--g); }
.pf-un-no { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; white-space: nowrap; color: #6b7587; background: #f6f8fb; border: 1px dashed var(--pf-line); }

/* Steps */
.pf-steps { counter-reset: pf-step; list-style: none; padding: 0; margin: 0 0 1rem; color: var(--pf-ink); line-height: 1.65; }
.pf-steps > li { counter-increment: pf-step; position: relative; display: flex; gap: .85rem; padding: .55rem 0; }
.pf-steps > li::before {
  content: counter(pf-step); flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  font-weight: 800; font-size: .88rem; color: var(--pf-blue); background: #eef4ff; box-shadow: inset 0 0 0 1px #d6e3ff;
}
.pf-steps > li + li { border-top: 1px dashed var(--pf-line); }
.pf-step-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.pf-step-tags > span { padding: .2rem .65rem; border-radius: 8px; font-size: .86rem; font-weight: 600; background: #f3f6fb; color: var(--pf-ink-2); border: 1px solid var(--pf-line); }


/* Apply */
.pf-card-foot { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.4rem 1rem 0; border-top: 1px solid var(--pf-line); text-align: center; }
.pf-apply {
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.9rem; border-radius: 12px; border: 0; font-size: 1.08rem; font-weight: 700;
  color: #fff; text-decoration: none; background: linear-gradient(135deg, #2f80ff, #1d4ed8); box-shadow: 0 14px 28px -14px rgba(29, 78, 216, .9);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pf-apply:hover, .pf-apply:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(29, 78, 216, .95); }
.pf-apply i { transition: transform .15s ease; }
.pf-apply:hover i { transform: translateX(3px); }
.pf-apply.disabled { background: #b8c2d3; box-shadow: none; pointer-events: none; }

/* ---------- Important Dates timeline ---------- */
.pf-timeline { list-style: none; margin: 0; padding: .25rem 0 0; }
.pf-timeline > li { position: relative; padding: 0 0 1.15rem 1.6rem; }
.pf-timeline > li::before { content: ""; position: absolute; left: 5px; top: 1.2rem; bottom: 0; width: 2px; background: var(--pf-line); }
.pf-timeline > li:last-child { padding-bottom: 0; }
.pf-timeline > li:last-child::before { display: none; }
.pf-timeline > li::after { content: ""; position: absolute; left: 0; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #b8c2d3; }
.pf-timeline > li.is-running::after { border-color: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.pf-timeline > li.is-upcoming::after { border-color: var(--pf-blue); }
.pf-date-title { font-weight: 700; color: var(--pf-navy); line-height: 1.35; }
.pf-date-when { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; font-size: .9rem; color: var(--pf-ink-2); font-variant-numeric: tabular-nums; }
.pf-date-when i { color: #9aa3b2; }
.pf-date-to { color: #9aa3b2; }
.pf-date-state { display: inline-block; margin-top: .4rem; padding: .1rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #f1f4f9; color: #6b7587; }
.is-running > .pf-date-state { background: #e7f8ee; color: #15803d; }
.is-upcoming > .pf-date-state { background: #eef4ff; color: #2257d6; }

/* ---------- Footer ---------- */
.pf-footer { background: linear-gradient(120deg, var(--pf-navy), var(--pf-navy-2)); color: rgba(255, 255, 255, .78); font-size: .88rem; }
.pf-footer a { color: #fff; }
.pf-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1rem; padding-bottom: 1rem; }

/* Pages that had their own coloured hero keep it inside the page column. */
.pf-main > .hero, .pf-main > section.hero { border-radius: var(--pf-radius); margin-bottom: 20px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1199.98px) {
  .pf-grid, .pf-grid.has-aside { grid-template-columns: 260px minmax(0, 1fr); }
  .pf-grid.has-aside { grid-template-areas: "menu main" "aside main" "contact main"; grid-template-rows: auto auto 1fr; }
}
@media (max-width: 991.98px) {
  .pf-grid, .pf-grid.has-aside { gap: 16px; padding-top: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "menu" "main" "aside" "contact"; grid-template-rows: none; }
  .pf-brand-name { font-size: 1.12rem; }
  .pf-brand-sub { font-size: .95rem; }
  .pf-logo { width: 50px; height: 50px; border-radius: 13px; padding: 5px; }
  .pf-status { display: none; }
  .pf-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-menu-link { font-size: .95rem; padding: .5rem; }
  .pf-menu-ico { width: 30px; height: 30px; }
  .pf-menu-go { display: none; }
  .pf-card-head { padding: 1rem 1.1rem; }
  .pf-card-ico { width: 42px; height: 42px; font-size: 1.15rem; }
  .pf-card-title { font-size: 1.1rem; }
  .pf-card-body { padding: 1.1rem 1.1rem 1.4rem; }
}
@media (max-width: 575.98px) {
  .pf-header-in { padding-top: .85rem; padding-bottom: .95rem; }
  .pf-user .app-no { display: none; }
  .pf-card-ico { display: none; }
}

/* Find page: the heading is one small line */
.hd-hero-title.hd-hero-title-sm { font-size: 1.4rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .hd-hero-title.hd-hero-title-sm { font-size: 1.1rem; white-space: normal; } }
.hd-hero.hd-hero-compact { padding: .8rem 1.25rem; align-items: center; gap: .75rem; border-radius: 16px; }
.hd-hero-compact .hd-hero-main { align-items: center; gap: .8rem; }
.hd-hero-compact .hd-hero-icon { flex-basis: 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 12px; font-size: 1.2rem; }
@media (max-width: 575.98px) { .hd-hero.hd-hero-compact { padding: .75rem .9rem; } }

/* Notices: a slim header band; the table sits below it instead of overlapping */
.pf-main > .hero.nb-hero { padding: 1rem 0; }
.pf-main > .hero.nb-hero h1 { margin: 0; font-size: 1.6rem; }
.pf-main .nb-wrap { margin-top: 0; max-width: none; }

/* Side panels scroll with the page: a sticky panel taller than the screen could never show its lower part. */
@media (min-width: 992px) { .pf-main .pub-aside { position: static; } }

/* Prospectus */
.pf-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.pf-doc { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--pf-line); border-radius: 12px; background: linear-gradient(180deg, #fbfdff, #f6f9fd); }
.pf-doc-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 1.35rem; color: #c2410c; background: #fff1e8; }
.pf-doc-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.pf-doc-title { font-weight: 700; color: var(--pf-navy); }
.pf-doc-meta { font-size: .85rem; color: #6b7587; }
.pf-doc-body { font-size: .92rem; color: var(--pf-ink-2); margin-top: .25rem; }
.pf-doc-actions { flex: none; display: flex; gap: .5rem; }
.pf-doc-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 10px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--pf-blue); background: #fff; border: 1px solid #cfdcff; }
.pf-doc-btn:hover { color: var(--pf-blue); background: #eef4ff; }
.pf-doc-btn.is-solid { color: #fff; border-color: transparent; background: linear-gradient(135deg, #2f80ff, #1d4ed8); }
.pf-doc-btn.is-solid:hover { color: #fff; filter: brightness(1.05); }
.pf-empty { display: flex; align-items: center; gap: .75rem; padding: 1.5rem; border: 1px dashed var(--pf-line); border-radius: 12px; color: #6b7587; background: #fbfcfe; }
.pf-empty i { font-size: 1.5rem; color: #9aa3b2; }
@media (max-width: 575.98px) {
  .pf-doc { flex-wrap: wrap; }
  .pf-doc-actions { width: 100%; }
  .pf-doc-btn { flex: 1 1 0; justify-content: center; }
}

/* FAQ */
.pf-faq { display: grid; gap: .6rem; }
.pf-faq-item { border: 1px solid var(--pf-line); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.pf-faq-item[open] { border-color: #cfdcff; box-shadow: var(--pf-shadow); }
.pf-faq-item summary { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--pf-ink); }
.pf-faq-item summary::-webkit-details-marker { display: none; }
.pf-faq-item summary:hover { background: #f8fafd; }
.pf-faq-no { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .82rem; font-weight: 800; color: var(--pf-blue); background: #eef4ff; }
.pf-faq-q { flex: 1 1 auto; min-width: 0; }
.pf-faq-item summary > i { flex: none; color: #9aa3b2; transition: transform .2s ease; }
.pf-faq-item[open] summary > i { transform: rotate(180deg); color: var(--pf-blue); }
.pf-faq-a { padding: 0 1rem 1rem 3.4rem; color: var(--pf-ink-2); line-height: 1.65; }
.pf-faq-more { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--pf-line); color: #6b7587; }
@media (max-width: 575.98px) { .pf-faq-a { padding-left: 1rem; } }

/* ---------- One colour scheme everywhere ----------
   The pages under the frame were built in emerald + gold; here they take the
   frame's navy, cyan and blue, so buttons, links, chips and bands match. */
body.applicant.pf-body {
  --brand: #2f6bff; --brand-600: #2259e6; --brand-700: #1d4ed8; --brand-50: #eef4ff; --brand-100: #dbe7ff; --brand-rgb: 47, 107, 255;
  --accent: #12bfe6; --accent-50: #e6f7fc;
  --canvas: var(--pf-page);
}
body.applicant.pf-body { --bs-link-color: #2f6bff; --bs-link-color-rgb: 47, 107, 255; --bs-link-hover-color: #1d4ed8; --bs-link-hover-color-rgb: 29, 78, 216; }

/* Coloured bands: Notices, Find, Help desk, Equivalence, dashboard */
.pf-body .hero,
.pf-body .hd-hero,
.pf-body .pp-greet,
.pf-body .pub-split {
  background: radial-gradient(520px 240px at 100% 0%, rgba(18, 191, 230, .30), transparent 65%),
              radial-gradient(460px 240px at 0% 120%, rgba(124, 92, 255, .22), transparent 60%),
              linear-gradient(120deg, var(--pf-navy) 0%, var(--pf-navy-2) 60%, #2f5be8 100%);
  box-shadow: 0 20px 40px -26px rgba(18, 24, 82, .75);
}
.pf-body .hd-steps li.is-current { color: var(--pf-navy); }
.pf-body .hd-steps li.is-current span,
.pf-body .pub-title .icon-chip.accent { background: linear-gradient(135deg, var(--pf-cyan), var(--pf-blue)); color: #fff; box-shadow: 0 8px 16px -8px rgba(47, 107, 255, .7); }
.pf-body .hd-steps span { color: var(--pf-navy); }
.pf-body .pub-steps li.current { border-color: rgba(47, 107, 255, .45); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.pf-body .step-list li.current .step-dot { box-shadow: 0 0 0 4px rgba(18, 191, 230, .2); }
.pf-body .fd-exam-badge { color: var(--pf-navy-2); }

/* The gold Apply button and the notice PDF button become blue */
.pf-body .btn-apply {
  --bs-btn-color: #fff; --bs-btn-bg: #2f6bff; --bs-btn-border-color: #2f6bff;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1d4ed8; --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #1a44c2; --bs-btn-active-border-color: #1a44c2;
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #b8c2d3; --bs-btn-disabled-border-color: #b8c2d3;
  box-shadow: 0 10px 22px -12px rgba(29, 78, 216, .8);
}
.pf-body .nb-pdf-btn { background: linear-gradient(135deg, #2f80ff, #1d4ed8); }

/* Find and Notices use the home page card: a gradient head with its own tools on the right */
.pf-card-head-split { flex-wrap: wrap; row-gap: .75rem; }
.pf-card-head-split .pf-card-title { flex: 1 1 auto; min-width: 0; }
.pf-card-head .hd-steps { flex: none; }
.pf-card-head .hd-steps li { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); color: #fff; }
.pf-card-head .hd-steps li.is-current { background: #fff; color: var(--pf-navy); }
.pf-head-search { flex: 0 1 26rem; min-width: 14rem; margin: 0; }
.pf-card-form { border-radius: 0; }
.pf-card-form .hd-form-foot { background: #f8fafd; }
.pf-card-alert { margin: 1.25rem 2rem 0; }
.pf-card .nb-wrap { max-width: none; margin: 0; }
@media (max-width: 991.98px) {
  .pf-head-search { flex-basis: 100%; }
  .pf-card-head .hd-steps { flex: 1 1 100%; min-width: 0; }
  .pf-card-alert { margin: 1rem 1.1rem 0; }
}

/* Foreign student form: two steps */
.fs-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; }
.fs-steps li { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem .4rem .4rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #6b7587; background: #f3f6fb; border: 1px solid var(--pf-line); }
.fs-steps li span { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; font-weight: 800; background: #fff; color: #6b7587; border: 1px solid var(--pf-line); }
.fs-steps li.is-current { color: var(--pf-navy); background: #eef4ff; border-color: #cfdcff; }
.fs-steps li.is-current span { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--pf-cyan), var(--pf-blue)); }
.fs-steps li.is-done span { color: #fff; border-color: transparent; background: #22c55e; }

/* Foreign students: application fee card on the status page */
.fs-pay { border: 1px solid #cfe0f5; border-left: 4px solid var(--pf-blue, #1d6fd8); border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 37, 77, .06); }
.fs-pay.is-paid { border-color: #bfe5cf; border-left-color: #198754; background: #f4fbf7; }
.fs-pay-in { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fs-pay-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--pf-navy, #0b2a5b), var(--pf-blue, #1d6fd8)); }
.fs-pay.is-paid .fs-pay-ico { background: #198754; }
.fs-pay-text { flex: 1 1 260px; }
.fs-pay-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .2rem; color: var(--pf-navy, #0b2a5b); }
.fs-pay-sub { font-size: .875rem; color: #475569; }
.fs-pay-amount { font-weight: 800; font-size: 1.15rem; color: #198754; white-space: nowrap; }
.fs-pay-form { margin: 0; }
@media (max-width: 575.98px) { .fs-pay-form, .fs-pay-form .btn { width: 100%; } }

/* …and on the form's fee step: what happens after submitting */
.fs-pay-how { margin: .9rem 0 0; padding-left: 1.1rem; font-size: .875rem; color: #475569; }
.fs-pay-how li + li { margin-top: .25rem; }
.fs-pay-test { margin-top: .9rem; font-size: .85rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: .5rem .7rem; }

/* The signed-in applicant's own photo and signature, over the menu */
.pf-me { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .35rem .35rem 1rem; margin-bottom: .6rem; border-bottom: 1px solid var(--pf-line); }
.pf-me-photo { width: 7.5rem; height: 9rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--pf-line); background: #f3f6fb; }
.pf-me-sign { width: 7.5rem; height: 2.8rem; object-fit: contain; border-radius: 8px; border: 1px dashed var(--pf-line); background: #fff; padding: .2rem; }
.pf-me-blank { display: grid; place-items: center; gap: .15rem; color: #8b96a7; font-size: .75rem; text-align: center; }
.pf-me-blank .bi { font-size: 1.9rem; }
/* A menu row for a step that has nowhere to go yet */
.pf-menu-link.is-off { color: #9aa5b5; cursor: default; }
.pf-menu-link.is-off .pf-menu-ico { background: #f1f4f8; color: #9aa5b5; }

/* Prospectus: the video manual (YouTube, 16:9, two a row on wide screens) */
.pf-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.pf-video { margin: 0; border: 1px solid #dbe5f3; border-radius: 12px; overflow: hidden; background: #fff; }
.pf-video-frame { position: relative; aspect-ratio: 16 / 9; background: #0b1b33; }
.pf-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-video-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .75rem; padding: .6rem .8rem; font-size: .9rem; }
.pf-video-cap span { font-weight: 600; color: var(--pf-navy, #0b2a5b); }
.pf-video-cap a { font-size: .82rem; white-space: nowrap; }
