/* PlacementFlow public navigation (4 Nov 2026): the homepage's bar, with one light dropdown for each audience.
   Shared by the local Students, Clinicians and Medical Schools previews. The bar itself, its logo, its actions and the
   phone sheet are home.css, read unchanged; this file adds the dropdowns, the current-page mark, the bar over a blue
   band (as the homepage draws it), and the phone sheet's expandable groups. Prefix pn-. */

.nav.pn-nav { overflow: visible; }
.pn-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }

/* each audience: the label opens its overview; the chevron beside it opens its pages. One pill behind both */
.pn-item { position: relative; display: flex; align-items: center; border-radius: 9px; transition: background .15s; }
.pn-item:hover, .pn-item.is-open { background: rgba(7, 20, 38, .06); }
.pn .pn-top { position: relative; padding: 0 6px 0 12px; border-radius: 9px 0 0 9px; }
.pn .pn-top[aria-current="page"] { font-weight: 500; }
.pn .pn-top:hover { background: none; }
.pn-tog { display: grid; place-items: center; width: 28px; height: 40px; padding: 0 4px 0 0; border: 0; border-radius: 0 9px 9px 0; background: none; color: var(--muted); font: inherit; cursor: pointer; transition: color .15s; }
.pn-tog svg { width: 14px; height: 14px; transition: transform .26s var(--ease-out); }
.pn-item:hover .pn-tog, .pn-item.is-open .pn-tog { color: var(--ink); }
.pn-item.is-open .pn-tog svg { transform: rotate(180deg); }
.pn .pn-top:focus-visible, .pn-tog:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 9px; }

/* the section you are in: its label in ink, underlined in blue */
.pn .pn-item.is-here .pn-top { color: var(--ink); }
.pn .pn-item.is-here .pn-top::after { content: ""; position: absolute; left: 12px; right: 6px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--blue); }

/* the panel: a light card under its label, never wider than it needs */
.pn-panel { position: absolute; left: -6px; top: calc(100% + 16px); z-index: 60; width: 356px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(7, 20, 38, .07), 0 18px 44px -18px rgba(7, 20, 38, .34), 0 3px 8px rgba(7, 20, 38, .05);
  opacity: 0; visibility: hidden; transform: translate(var(--pn-x, 0), -6px); transform-origin: 30px 0; transition: opacity .14s ease, transform .2s var(--ease-out), visibility 0s linear .2s; }
/* the gap between the label and the panel still belongs to the menu, so the pointer can cross it */
.pn-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.pn-item.is-open .pn-panel { opacity: 1; visibility: visible; transform: translate(var(--pn-x, 0), 0); transition: opacity .18s ease, transform .26s var(--ease-out), visibility 0s; }
/* moving from one open menu to the next swaps them at once, without two panels crossing */
.pn-nav.is-swapping .pn-panel { transition: none; }
.pn-menu { display: grid; gap: 1px; list-style: none; margin: 0; padding: 0; }
.pn .pn-menu a { position: relative; display: grid; min-height: 0; padding: 10px 34px 10px 12px; border-radius: 8px; color: var(--ink); font-size: inherit; font-weight: 400; transition: background .15s; }
.pn-menu b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }
.pn-menu small { margin-top: 1px; font-size: 13.5px; line-height: 1.38; color: var(--muted); text-wrap: balance; }
.pn-menu svg { position: absolute; right: 12px; top: 50%; margin-top: -7.5px; width: 15px; height: 15px; color: var(--blue); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .2s var(--ease-out); }
.pn .pn-menu a:hover, .pn .pn-menu a:focus-visible { background: var(--canvas); }
.pn-menu a:hover svg, .pn-menu a:focus-visible svg { opacity: 1; transform: none; }
.pn .pn-menu a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.pn .pn-menu a[aria-current="page"] { background: var(--p-tint); }
.pn-menu a[aria-current="page"] b { color: var(--p-brand-2); }
/* the action that leaves the page for the enquiry form sits apart, under a hairline */
.pn-menu .pn-act { margin-top: 4px; padding-top: 5px; border-top: 1px solid #eef1f5; }
.pn-menu .pn-act b { color: var(--p-brand-2); }

/* the bar over a blue band, as the homepage draws it: light on blue until the band has scrolled away */
html:not(.no-js) .nav.pn-nav.is-over-blue { background: var(--pn-over-bg, var(--cl-band, var(--blue))); box-shadow: none; }
html:not(.no-js) .nav.pn-nav.is-over-blue.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .14); }
.nav.pn-nav { transition: background .22s ease, box-shadow .22s ease; }
.pn-nav .word, .pn-nav .word i, .pn-nav .mark, .pn-nav .login, .pn-nav .cta, .pn-nav .menu > summary, .pn .pn-top, .pn-tog { transition-property: color, background, box-shadow; transition-duration: .22s; }
html:not(.no-js) .pn-nav.is-over-blue .mark { background: #fff; color: var(--blue); }
html:not(.no-js) .pn-nav.is-over-blue .word, html:not(.no-js) .pn-nav.is-over-blue .word i { color: #fff; }
html:not(.no-js) .pn-nav.is-over-blue .pn-top, html:not(.no-js) .pn-nav.is-over-blue .pn-tog, html:not(.no-js) .pn-nav.is-over-blue .login, html:not(.no-js) .pn-nav.is-over-blue .menu > summary { color: #fff; }
html:not(.no-js) .pn-nav.is-over-blue .pn .pn-item.is-here .pn-top { color: #fff; }
html:not(.no-js) .pn-nav.is-over-blue .pn .pn-item.is-here .pn-top::after { background: #fff; }
html:not(.no-js) .pn-nav.is-over-blue .pn-item:hover, html:not(.no-js) .pn-nav.is-over-blue .pn-item.is-open, html:not(.no-js) .pn-nav.is-over-blue .login:hover { background: rgba(255, 255, 255, .14); }
html:not(.no-js) .pn-nav.is-over-blue .cta { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .72); }
html:not(.no-js) .pn-nav.is-over-blue .cta:hover { background: rgba(255, 255, 255, .12); }
html:not(.no-js) .pn-nav.is-over-blue :is(a, button, summary):focus-visible { outline-color: #fff; }
html:not(.no-js) .pn-nav.is-over-blue .pn-panel :is(a, button):focus-visible { outline-color: var(--blue); }

/* the secondary action beside Log in: a text link, like Log in */
.pn-nav .nav-r .login + .login { margin-left: -2px; }

/* the phone's sheet: each audience opens in place; the sheet scrolls rather than running off the screen */
.pn-nav .sheet { box-sizing: border-box; max-height: calc(100svh - var(--nav-h) - 18px); overflow-y: auto; overscroll-behavior: contain; gap: 0; }
.pn-grp + .pn-grp { border-top: 1px solid #eef1f5; }
.pn-grp-h { display: flex; align-items: center; }
.sheet .pn-grp-h a { flex: 1 1 auto; font-weight: 600; }
.sheet .pn-grp-h a[aria-current="page"], .sheet .pn-grp-l a[aria-current="page"] { color: var(--p-brand-2); }
.pn-grp-t { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.pn-grp-t svg { width: 16px; height: 16px; transition: transform .26s var(--ease-out); }
.pn-grp-t[aria-expanded="true"] svg { transform: rotate(180deg); }
/* a hover tint only for a real pointer, so a tapped button does not stay grey */
@media (hover: hover) { .pn-grp-t:hover { background: rgba(7, 20, 38, .05); color: var(--ink); } }
.pn-grp-t:focus-visible, .sheet a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.pn-grp-w { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .26s var(--ease-out), visibility 0s linear .26s; }
.pn-grp.is-open .pn-grp-w { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .26s var(--ease-out), visibility 0s; }
.pn-grp-l { min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: 0 0 0 12px; }
.pn-grp-l li:last-child { padding-bottom: 8px; }
.sheet .pn-grp-l a { min-height: 44px; font-size: 15.5px; color: var(--ink-2); }
.sheet .pn-plain { border-top: 1px solid #eef1f5; border-radius: 0; }
.pn-sheet-acts { position: sticky; bottom: -8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px -8px -8px; padding: 10px 8px 8px; border-top: 1px solid #eef1f5; background: #fff; }
.pn-nav .menu > summary .pn-x { display: none; }
.pn-nav .menu[open] > summary .pn-x { display: block; }
.pn-nav .menu[open] > summary .pn-burger { display: none; }
.sheet .pn-sheet-acts a { justify-content: center; min-height: 46px; border-radius: 10px; font-weight: 600; }
.sheet .pn-sheet-acts a:first-child { background: var(--p-tint); color: var(--p-brand-2); }
.sheet .pn-sheet-acts a:last-child { box-shadow: inset 0 0 0 1.5px #c9d6ea; color: var(--ink); }

/* reduced motion: menus appear and close without travel */
html.reduce .pn-panel, html.reduce .pn-item.is-open .pn-panel { transition: none; transform: translate(var(--pn-x, 0), 0); }
html.reduce .pn-grp-w, html.reduce .pn-grp.is-open .pn-grp-w, html.reduce .pn-tog svg, html.reduce .pn-grp-t svg, html.reduce .pn-menu svg { transition: none; }
html.reduce .pn-menu svg { transform: none; }
/* without JavaScript every panel opens on hover and on focus, and every phone group stays open */
html.no-js .pn-item:hover .pn-panel, html.no-js .pn-item:focus-within .pn-panel { opacity: 1; visibility: visible; transform: none; }
html.no-js .pn-tog, html.no-js .pn-grp-t { display: none; }
html.no-js .pn-grp-w { grid-template-rows: 1fr; visibility: visible; }

/* a narrower desktop bar keeps every label on one line */
@media (max-width: 1180px) and (min-width: 1024px) {
  .links.pn { margin-left: 8px; }
  .pn .pn-top { padding-left: 10px; }
  .pn-nav .nav-r .login { padding: 0 9px; }
}

/* Our Story is a direct destination after the audience disclosures. */
.pn .pn-direct .pn-top { padding-inline: 12px; border-radius: 9px; white-space: nowrap; }
.pn .pn-direct .pn-top:hover { background: rgba(7, 20, 38, .06); }
.pn .pn-direct .pn-top.on-blue:hover,
html:not(.no-js) .pn-nav.is-over-blue .pn-direct .pn-top:hover { background: rgba(255, 255, 255, .14); }
.pn .pn-direct.is-here .pn-top { color: var(--ink); }
.pn .pn-direct.is-here .pn-top::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--blue); }
.sheet .pn-plain[aria-current="page"] { color: var(--p-brand-2); font-weight: 600; }

/* Keep the full desktop navigation and account actions at narrower widths. */
@media (max-width: 1180px) and (min-width: 1024px) {
  .pn-nav .nav-in { gap: 12px; }
  .pn-nav .links.pn { margin-left: 4px; flex-shrink: 0; }
}
/* An early-access label on a menu entry (Societies & events). */
.pn-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--p-tint); color: var(--p-brand-2); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.6; vertical-align: 1px; white-space: nowrap; }
