@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(/fonts/open-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-700.woff2) format("woff2"); }
:root { --purple: #87396c; --teal: #004a60; --gold: #a9915d; --text: #555; --head: #1a4859; --line: #dfe3e6; --soft: #f4f5f7; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--soft); color: var(--text); font: 400 1rem/1.6 "Open Sans", Arial, sans-serif; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; }
.w { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.topbar { background: var(--purple); color: #fff; font-size: .85rem; }
.topbar .w { display: flex; justify-content: flex-end; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { text-decoration: none; }
.topbar a:hover, .topbar a:focus-visible { text-decoration: underline; }

/* the laboratory's bar on inner pages: its name goes home; the applications as coloured chips */
.sitebar { background: #fff; border-bottom: 1px solid var(--line); }
.sitebar .w { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.home { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--head); border-radius: 8px; padding: 2px 10px 2px 2px; margin-left: -2px; }
.home:hover, .home:focus-visible { background: var(--soft); }
.home img { width: 64px; height: 64px; }
.home span { font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.home small { display: block; font-weight: 400; font-size: .95rem; color: #8a7443; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--head); font-size: .92rem; font-weight: 600; border: 1px solid var(--line); border-radius: 100px; padding: 7px 16px 7px 12px; background: #fff; }
.chip:hover, .chip:focus-visible { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on .dot { background: #fff; }
.chip .dot { width: 9px; height: 9px; }

footer { background: #00303f; color: #d6e0e4; font-size: .84rem; }
footer .w { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding-top: 18px; padding-bottom: 20px; }
footer a:hover, footer a:focus-visible { color: #fff; }

/* the portal */
.masthead { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); position: relative; z-index: 1; }
.masthead .w { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.masthead img { width: 88px; height: 88px; flex: none; }
.lab { font-size: 1.3rem; line-height: 1.3; color: var(--head); margin: 0; font-weight: 600; }
.uni { font-size: .9rem; color: #8a7443; margin: 4px 0 0; }
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, #00384a, var(--teal) 50%, #00657f); }
.hero::before { content: ""; position: absolute; inset: 0; background: url(/img/hero.svg) center / cover no-repeat; }
.hero .w { position: relative; display: flex; justify-content: center; padding-top: 64px; padding-bottom: 64px; }
.panel { background: rgba(0, 28, 38, .62); border-radius: 8px; padding: 34px 44px 38px; max-width: 760px; text-align: center; }
.status { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1c1c1c; background: #d9c48f; border-radius: 100px; padding: 6px 16px; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 600; line-height: 1.15; margin: 18px 0 12px; }
.hero p { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.55; }
.apps { flex: 1; }
.apps .w { padding-top: 48px; padding-bottom: 60px; }
.apps h2 { color: var(--head); font-size: 1.6rem; font-weight: 600; text-align: center; margin: 0 0 8px; }
.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 auto 34px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.app { position: relative; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.app:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .16); transform: translateY(-3px); }
.app:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.thumb { position: relative; height: 170px; }
.thumb .art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.code { position: absolute; left: 18px; bottom: 14px; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; padding: 3px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.body { padding: 22px 24px 20px; border-top: 4px solid var(--accent); display: flex; flex-direction: column; flex: 1; }
.app h3 { color: var(--head); font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.go { text-decoration: none; }
.app .go::after { content: ""; position: absolute; inset: 0; }
.app .go:focus-visible { outline: none; }
.app p { margin: 0 0 18px; font-size: .95rem; line-height: 1.55; flex: 1; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.url { font-size: .82rem; color: #5f6b75; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", "Droid Sans Mono", monospace; }
.cta { color: #fff; background: var(--accent); border-radius: 100px; padding: 6px 16px; font-size: .85rem; font-weight: 700; }
.app:hover .cta { background: var(--hover); }

/* an application's sign-in page */
.split { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.side { position: relative; overflow: hidden; color: #fff; background: var(--c1); min-height: 560px; }
.side .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.side-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 40px 48px 48px; background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%); }
.side .code { position: static; display: inline-block; font-size: 1rem; padding: 6px 14px; }
.side h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.15; margin: 0 0 12px; max-width: 18ch; }
.side p { margin: 0; max-width: 44ch; font-size: 1rem; opacity: .92; }
.form { background: #fff; display: flex; align-items: center; justify-content: center; padding: 48px 32px; border-top: 6px solid var(--accent); }
.box { width: 100%; max-width: 400px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; margin-bottom: 30px; color: #5f6b75; }
.crumbs a { color: var(--head); text-decoration: none; font-weight: 600; }
.crumbs a:hover, .crumbs a:focus-visible { text-decoration: underline; }
.crumbs b { color: #5f6b75; font-weight: 400; }
.other { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.other p { margin: 0 0 10px; font-size: .84rem; color: #5f6b75; }
.missing { flex: 1; }
.missing .w { max-width: 760px; padding-top: 56px; padding-bottom: 64px; }
.missing .big { margin: 0; font-size: 4rem; font-weight: 700; line-height: 1; color: var(--purple); }
.missing h1 { color: var(--head); font-size: 1.6rem; margin: 10px 0 8px; }
.lost-head { display: flex; align-items: center; gap: 24px; margin-bottom: 10px; }
.broken { width: 132px; height: 110px; flex: none; }
.broken .rib { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.broken .gone { stroke: var(--gold); stroke-dasharray: 4 7; animation: gone 2.4s ease-in-out infinite; }
.broken circle { fill: var(--gold); }
@keyframes gone { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 130px; padding: 14px 16px; border-radius: 10px; overflow: hidden; text-decoration: none; color: #fff; border-bottom: 4px solid var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: transform .15s, box-shadow .15s; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .1) 75%); }
.tile-code, .tile-name { position: relative; z-index: 2; }
.tile-code { font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.tile-name { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.tile:hover, .tile:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .2); }
.home-link { color: var(--head); font-weight: 600; }
@media (max-width: 480px) { .lost-head { gap: 16px; } .broken { width: 90px; height: 75px; } .missing .big { font-size: 3rem; } .tiles { gap: 10px; } .tile { min-height: 110px; } }
@media (prefers-reduced-motion: reduce) { .broken .gone { animation: none; opacity: .7; } .tile { transition: none; } }
.to { margin: 0; font-size: .85rem; color: #5f6b75; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.form h2 { display: flex; align-items: center; gap: 10px; color: var(--head); font-size: 1.45rem; font-weight: 700; line-height: 1.25; margin: 4px 0 2px; }
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.form .url { display: block; margin: 0 0 22px; }
.lead { margin: 8px 0 26px; }
.notice { background: #fbf4e6; border: 1px solid #ecdcb4; color: #7a5a1a; border-radius: 6px; padding: 10px 14px; font-size: .86rem; line-height: 1.45; margin: 0 0 22px; }
label { display: block; color: var(--head); font-size: .85rem; font-weight: 600; margin: 0 0 6px; }
input { width: 100%; font: inherit; color: var(--head); padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin-bottom: 18px; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.btn { display: block; width: 100%; text-align: center; text-decoration: none; background: var(--accent); color: #fff; font: 700 1rem/1 "Open Sans", Arial, sans-serif; padding: 14px; border: 0; border-radius: 6px; cursor: pointer; }
.btn:hover, .btn:focus-visible { background: var(--hover); }
.sso { margin: 16px 0 0; text-align: center; font-size: .86rem; color: #5f6b75; }
.back { margin: 26px 0 0; font-size: .9rem; }
.back a { color: var(--head); }

/* a sign-in page: the application's drawing fills the screen, the card holds the form */
body.signin { background: var(--c1); }
.backdrop { position: fixed; inset: 0; z-index: 0; background: var(--c1) var(--bg) center / cover no-repeat; }
@media (prefers-reduced-motion: reduce) { .backdrop { background-image: var(--still); } }
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%); }
.stage { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 24px; }
.back-pill { align-self: center; width: 100%; max-width: 440px; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0; color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; }
.back-pill svg { width: 34px; height: 34px; flex: none; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.back-pill:hover svg, .back-pill:focus-visible svg { background: rgba(255, 255, 255, .3); }
.back-pill:hover, .back-pill:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.card { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.band { display: flex; align-items: center; gap: 12px; background: var(--accent); color: #fff; padding: 12px 22px; }
.band .code { position: static; flex: none; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }
.band-name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.card-in { padding: 26px 30px 26px; }
.signin .home { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--head); margin: 0 0 24px; padding: 0; }
.signin .home img { width: 60px; height: 60px; }
.signin .home span { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.signin .home small { display: block; font-weight: 400; font-size: .86rem; color: #8a7443; margin-top: 2px; }
.signin h1 { color: var(--head); font-size: 1.9rem; font-weight: 700; line-height: 1.15; margin: 0; }
.signin .app-to { display: flex; align-items: center; gap: 9px; margin: 6px 0 20px; color: var(--head); font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.signin .app-to .dot { width: 12px; height: 12px; }
.signin input { padding: 13px 14px; font-size: 1rem; }
.signin input::placeholder { color: #6b7680; }
.signin .btn { padding: 15px; font-size: 1.05rem; border-radius: 8px; margin-top: 4px; }
.signin .other { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.signin .other > span { font-size: .84rem; color: #5f6b75; }
.signin .chips { gap: 8px; }
.signin .chip { padding: 6px 12px 6px 10px; font-size: .85rem; }
.fine { margin: 18px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .85); text-align: center; max-width: 440px; line-height: 1.6; }
.fine a { color: inherit; text-decoration: none; }
.fine a:hover, .fine a:focus-visible { text-decoration: underline; }
.err, .ok { border-radius: 6px; padding: 10px 14px; font-size: .9rem; line-height: 1.45; margin: 0 0 18px; }
.err { background: #fdecec; border: 1px solid #f1c0c0; color: #8a1f1f; }
.ok { background: #e9f6ee; border: 1px solid #bfe3cc; color: #1d5b35; }
.sso a { color: var(--head); font-weight: 600; }
.signin form + form, .signin form + .sso { margin-top: 0; }

/* Account forms share the public site's navy and white surfaces. */
.account-content { max-width: 940px; margin: auto; }
.account-content section { background: #fff; border: 1px solid #dce4eb; border-top: 3px solid #004a80; padding: 24px; margin-bottom: 24px; border-radius: 8px; overflow-x: auto; }
.account-content form { max-width: 560px; margin-bottom: 20px; }
.account-content label { display: block; margin-top: 12px; font-weight: 600; }
.account-content input { width: 100%; padding: 10px; border: 1px solid #899ba8; border-radius: 4px; margin: 6px 0 14px; }
.account-content table { width: 100%; border-collapse: collapse; text-align: left; }
.account-content td, .account-content th { padding: 10px; border-bottom: 1px solid #dce4eb; }
.account-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.account-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.avatar { object-fit: cover; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.check input { width: auto; margin: 0; }
fieldset { border: 1px solid #dce4eb; padding: 12px; margin-bottom: 16px; }
/* the Director's admin panel */
.admin { flex: 1; }
.admin .w { padding-top: 32px; padding-bottom: 56px; }
.admin-head { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-head h1 { color: var(--head); font-size: 1.8rem; margin: 0; }
.admin-head p { margin: 0; flex: 1; font-size: .9rem; }
.admin-head a { color: var(--head); font-weight: 600; }
.admin section { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); padding: 20px 22px; margin-top: 22px; overflow-x: auto; }
.admin h2 { color: var(--head); font-size: 1.15rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.count { font-size: .8rem; background: var(--purple); color: #fff; border-radius: 100px; padding: 1px 10px; }
.admin table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #5f6b75; font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.admin td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--head); }
.admin td small { display: block; color: #5f6b75; font-size: .82rem; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.acts form { margin: 0; }
.mini { font: 600 .84rem/1 "Open Sans", Arial, sans-serif; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--head); cursor: pointer; white-space: nowrap; }
.mini:hover, .mini:focus-visible { border-color: var(--teal); }
.mini.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.mini.danger { color: #9b1c1c; }
.mini.danger:hover, .mini.danger:focus-visible { border-color: #9b1c1c; }
.st { font-size: .8rem; font-weight: 600; border-radius: 100px; padding: 2px 10px; background: var(--soft); }
.st.active { background: #e9f6ee; color: #1d5b35; }
.st.approved { background: #fbf4e6; color: #7a5a1a; }
.st.disabled, .st.rejected { background: #f1f1f1; color: #777; }
.tag { font-size: .72rem; background: var(--purple); color: #fff; border-radius: 4px; padding: 1px 6px; vertical-align: 2px; }
.none, .hint { margin: 0; color: #5f6b75; font-size: .9rem; }
.hint { margin-bottom: 12px; }
.add { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: flex-end; }
.add div { flex: 1 1 220px; }
.add .mini { margin-bottom: 18px; padding: 12px 18px; }
.box { border-radius: 10px; padding: 16px 20px; margin-top: 20px; }
.box.ok { margin-bottom: 0; }
.box.warn { background: #fbf4e6; border: 1px solid #ecdcb4; color: #7a5a1a; }
.box p { margin: 0 0 10px; }
.box .link { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.log { list-style: none; margin: 0; padding: 0; font-size: .86rem; max-height: 320px; overflow-y: auto; }
.log li { padding: 5px 0; border-bottom: 1px solid var(--soft); }
.log time { color: #5f6b75; margin-right: 8px; font-variant-numeric: tabular-nums; }


/* the home page, laid out like FORTH's */
body.landing { background: #fff; color: #2e3136; --navy: #004a80; --navy2: #174374; --grey: #f4f4f4; }
.fh { background: #fff; position: relative; z-index: 10; }
.fh-top { display: flex; justify-content: flex-end; align-items: center; gap: 22px; padding-top: 12px; font-size: .8rem; }
.fh-top > a { color: #6b7680; text-decoration: none; }
.fh-top > a:hover, .fh-top > a:focus-visible { color: var(--navy); }
.fh-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 6px; padding-bottom: 16px; }
.fh-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.fh-logo img { width: 74px; height: 74px; }
.fh-logo b { display: block; font-size: 2.35rem; line-height: 1; font-weight: 800; letter-spacing: .01em; color: #8a8d91; }
.fh-logo small { display: block; margin-top: 4px; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #2e3136; }
.fh-nav { display: flex; gap: 4px; }
.dd { position: relative; }
.dd > a { display: flex; align-items: center; gap: 7px; padding: 12px 12px; color: #111; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.chev { width: 9px; height: 6px; fill: none; stroke: #8a8d91; stroke-width: 1.6; }
.dd > a:hover, .dd:focus-within > a { color: var(--navy); }
.dd-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 250px; background: #fff; border-top: 3px solid var(--navy); box-shadow: 0 12px 30px rgba(0, 0, 0, .14); padding: 8px 0; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 18px; color: #2e3136; text-decoration: none; font-size: .9rem; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--grey); color: var(--navy); }
.account { position: relative; }
.signin-btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .02em; text-transform: uppercase; padding: 7px 16px; }
.signin-btn:hover, .signin-btn:focus-visible { background: var(--navy2); }
.user summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; color: #111; }
.user summary::-webkit-details-marker { display: none; }
.user summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid #8a8d91; border-bottom: 2px solid #8a8d91; transform: rotate(45deg) translateY(-2px); }
.user summary:hover, .user summary:focus-visible, .user[open] summary { color: var(--navy); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.user-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: #fff; border-top: 3px solid var(--navy); box-shadow: 0 12px 30px rgba(0, 0, 0, .16); padding: 8px 0; z-index: 30; }
.user-menu p { margin: 4px 18px 8px; font-size: .82rem; color: #6b7680; word-break: break-all; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; font: 400 .9rem/1.3 "Open Sans", Arial, sans-serif; color: #2e3136; background: none; border: 0; padding: 9px 18px; text-decoration: none; cursor: pointer; }
.user-menu a:hover, .user-menu a:focus-visible, .user-menu button:hover, .user-menu button:focus-visible { background: var(--grey); color: var(--navy); }
.user-menu form { margin: 6px 0 0; border-top: 1px solid var(--line); padding-top: 6px; }
.fh-hero { position: relative; height: 460px; overflow: hidden; background: var(--navy); }
.fh-hero-art { position: absolute; inset: 0 0 0 30%; background: #0b3a5c var(--art) center / cover no-repeat; }
.fh-hero-panel { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 74, 128, .96), rgba(0, 74, 128, .96)), url(/img/hero.svg) center / cover; clip-path: polygon(0 0, 44% 0, 25% 100%, 0 100%); }
.fh-hero-panel .w { height: 100%; display: flex; align-items: center; }
.fh-hero-text { max-width: 330px; color: #fff; }
.fh-hero-text p { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c9d8e6; }
.fh-hero-text h1 { margin: 0; font-size: 1.5rem; line-height: 1.3; font-weight: 700; }
.fh-box { background: var(--grey); margin-top: 18px; padding: 48px 48px 40px; }
.fh-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; padding: 10px 0 26px; }
.fh-box h2, .hl h2 { margin: 0; font-size: 1.35rem; line-height: 1.25; font-weight: 700; color: #111; }
.inst-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 20px; }
.inst { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #2e3136; font-size: .86rem; line-height: 1.3; padding: 6px; border-radius: 4px; }
.inst img { width: 56px; height: 56px; flex: none; border-radius: 6px; border-bottom: 3px solid var(--accent); object-fit: cover; }
.inst:hover, .inst:focus-visible { background: #fff; color: var(--navy); }
.access { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.access p { margin: 0; max-width: 62ch; font-size: .92rem; line-height: 1.7; }
.access a:not(.fh-more) { color: var(--navy2); font-weight: 600; }
.fh-more { color: var(--navy2); font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.fh-more:hover, .fh-more:focus-visible { text-decoration: underline; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 48px; margin-top: 40px; }
.facts-text h2 { margin-bottom: 26px; }
.facts-text p { margin: 0 0 18px; font-size: .9rem; line-height: 1.8; color: #5f6b75; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; text-align: center; }
.figures p { margin: 0; font-size: 1.05rem; font-weight: 600; color: #111; }
.figures b { display: block; font-size: 4rem; line-height: 1.05; font-weight: 800; color: #111; }
.hl { margin-top: 48px; padding-bottom: 64px; }
.hl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 0 20px; }
.hl .label { background: var(--navy); color: #fff; padding: 8px 22px; min-width: 45%; }
.hl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 20px; }
.hl-card { background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); padding: 18px 18px 26px; }
.hl-card img { display: block; width: 100%; height: 240px; object-fit: cover; object-position: top left; }
.hl-card h3 { margin: 22px 0 14px; font-size: 1rem; line-height: 1.45; font-weight: 700; }
.hl-card h3 a { color: var(--navy2); text-decoration: underline; text-underline-offset: 3px; }
.hl-card .hl-lead { font-weight: 700; color: #2e3136; font-size: .86rem; }
.hl-card p { margin: 0 0 14px; font-size: .9rem; line-height: 1.75; color: #2e3136; }
.fh-foot { background: #2e3136; color: #c9cdd1; font-size: .88rem; }
.fh-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 36px; }
.fh-foot img { width: 64px; height: 64px; margin-bottom: 10px; }
.fh-foot p { margin: 0 0 8px; line-height: 1.6; }
.fh-foot ul { list-style: none; margin: 0; padding: 0; }
.fh-foot li { margin: 0 0 9px; }
.fh-foot .ft { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.fh-foot a { color: #c9cdd1; text-decoration: none; }
.fh-foot a:hover, .fh-foot a:focus-visible { color: #fff; text-decoration: underline; }
.fh-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 22px; font-size: .8rem; color: #9aa0a6; }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; align-content: center; gap: 5px; padding: 0 10px; border: 1px solid var(--line); }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span { display: block; height: 2px; background: #111; }
.burger[open] summary { border-color: var(--navy); }
.burger-menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, 86vw); background: #fff; border-top: 3px solid var(--navy); box-shadow: 0 12px 30px rgba(0, 0, 0, .16); padding: 8px 0; z-index: 30; }
.burger-menu a { display: block; padding: 11px 18px; color: #2e3136; text-decoration: none; font-size: .95rem; }
.burger-menu a:hover, .burger-menu a:focus-visible { background: var(--grey); color: var(--navy); }
@media (max-width: 1060px) { .inst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fh-row { grid-template-columns: 1fr; gap: 16px; } .facts { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .fh-nav { display: none; } .burger { display: block; } .fh-hero { height: 340px; } .fh-hero-panel { clip-path: polygon(0 0, 78% 0, 52% 100%, 0 100%); } .hl-grid { grid-template-columns: 1fr; } .hl .label { min-width: 0; } .fh-cols { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 560px) { .fh-top > a { display: none; } .fh-box, .facts { padding: 32px 20px; } .inst-grid { grid-template-columns: 1fr; } .figures b { font-size: 3rem; } .fh-logo b { font-size: 1.8rem; } .fh-logo img { width: 58px; height: 58px; } .hl-head, .hl-grid { padding: 0; } .fh-hero-text h1 { font-size: 1.2rem; } .fh-hero-text { max-width: 220px; } }

@media (prefers-reduced-motion: reduce) { .app { transition: none; } .app:hover { transform: none; } }
/* any upright screen, phones and tablets whatever their width: the drawing is a banner, the form follows at once */
@media (orientation: portrait), (max-width: 860px) {
  .split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { min-height: 0; }
  .side-in { height: auto; min-height: max(230px, 30vh); gap: 40px; padding: 24px 24px 26px; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .25) 100%); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
  .side h1 { font-size: clamp(1.5rem, 5.5vw, 2.2rem); max-width: none; }
  .form { align-items: flex-start; padding: 30px 24px 40px; }
  .box { max-width: 560px; }
  body.signin { background: #fff; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .hero .w { padding-top: 36px; padding-bottom: 36px; }
  .panel { padding: 26px 22px 30px; }
  .masthead img { width: 64px; height: 64px; }
  .lab { font-size: 1rem; }
  .uni { font-size: .8rem; }
  .form { padding: 26px 18px 36px; }
}
@media (max-width: 560px) {
  .w { padding-left: 16px; padding-right: 16px; }
  .topbar .w { justify-content: space-between; gap: 12px; font-size: .78rem; }
  .sitebar .w { gap: 12px; }
  .home { gap: 13px; }
  .home img { width: 56px; height: 56px; }
  .home span { font-size: 1.2rem; }
  .home small { font-size: .88rem; }
  .sitebar .chips { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .sitebar .chips::-webkit-scrollbar { display: none; }
  .sitebar .chip { flex: 1 0 auto; justify-content: center; font-size: .86rem; padding: 7px 12px; }
  .list .url { display: none; }
}

/* keep the administration navigation visible beside wide tables */
.admin-page { --head: #004a80; --accent: #004a80; }
.admin-page .topbar, .admin .mini.primary { background: #004a80; }
.admin .admin-layout { max-width: 1560px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; align-self: start; background: #fff; border-top: 4px solid #004a80; padding: 12px; }
.admin-nav a { color: #004a80; padding: 9px 12px; text-decoration: none; font-weight: 600; }
.admin-nav a:hover, .admin-nav a:focus-visible { background: #edf3f8; text-decoration: underline; }
.admin-content { min-width: 0; }
.admin .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.admin .metrics section { border-top: 3px solid #004a80; }
.admin .metrics strong { color: #004a80; font-size: 2rem; }
.admin .filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: end; }
.admin .filters div { flex: 1 1 130px; }
.admin .filters input { margin-bottom: 0; }
.admin .failed td { background: #fff0ee; color: #8a1f1f; }
.admin td { overflow-wrap: anywhere; }
@media (max-width: 860px) { .admin .admin-layout { grid-template-columns: 1fr; } .admin-nav { flex-direction: row; flex-wrap: wrap; } }
@media print { .admin-page .topbar, .admin-page .sitebar, .admin-nav, .admin-page footer, .admin form, .admin .filters { display: none; } .admin .admin-layout { display: block; max-width: none; padding: 0; } .admin section { box-shadow: none; padding: 8px 0; overflow: visible; } .admin table { font-size: 9pt; } .admin a { color: #000; text-decoration: none; } .admin tr { break-inside: avoid; } }

.landing a:focus-visible, .landing summary:focus-visible, .landing button:focus-visible { outline: 3px solid #0078aa; outline-offset: 4px; }
.landing [aria-current="page"] { text-decoration: underline; text-decoration-color: #004a80; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.landing .fh-logo b { color: #62666b; }
.fh-logo { min-width: 0; }
.fh-logo small { max-width: 350px; }
.page-band { background: linear-gradient(115deg, var(--band1, #004a80), var(--band2, #174374)); color: #fff; padding: 28px 0 48px; }
.page-band h1 { margin: 20px 0 0; max-width: 950px; font-size: clamp(1.8rem, 3.3vw, 2.8rem); line-height: 1.25; }
.page-band ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; font-size: .8rem; }
.page-band li + li::before { content: '/'; margin-right: 10px; }
.page-band a { color: #fff; }
.page-band [aria-current="page"] { text-decoration: none; }
.fh-logo[aria-current] { text-decoration: none; }
.dd > a[aria-current="true"] { color: #004a80; text-decoration: underline; text-decoration-color: #004a80; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.page-content { padding-top: 56px; padding-bottom: 64px; }
.page-content h2 { color: #004a80; font-size: 1.6rem; margin: 0 0 24px; line-height: 1.3; }
.page-content h3 { line-height: 1.4; }
.page-content p, .page-content li { line-height: 1.85; }
.page-content a { color: #004a80; }
.page-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 64px; }
.prose { max-width: 780px; }
.prose section { margin-bottom: 40px; }
.prose p { margin: 0 0 22px; }
.prose li { margin-bottom: 10px; }
.side-card { position: sticky; top: 24px; padding: 26px; background: #f4f4f4; border-top: 4px solid #004a80; }
.side-card img { width: 100%; height: auto; display: block; margin-bottom: 24px; }
.side-card p { font-size: .85rem; margin: 16px 0 0; }
.side-card .public-btn { display: block; margin-top: 20px; }
.section-links a { display: block; padding: 14px 0; border-top: 1px solid #d8dde1; }
.section-links h2 { font-size: 1.1rem; }
.application-grid, .research-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.application-card { min-width: 0; background: #f4f4f4; border: 1px solid #e1e4e7; transition: box-shadow .2s; }
.application-card:hover { box-shadow: 0 8px 24px #17334d18; }
.application-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; }
.application-copy { padding: 24px; }
.application-copy h3 { font-size: 1.06rem; margin: 10px 0; }
.application-copy h3 a { text-decoration: none; }
.application-copy h3 a:hover { text-decoration: underline; }
.application-copy p { font-size: .9rem; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.status { display: inline-block; padding: 4px 10px; border-radius: 3px; font-size: .75rem; font-weight: 700; margin: 8px 0 18px; }
.available { color: #215539; background: #dfede5; }
.development { color: #674b18; background: #f2e7cf; }
.application-copy > .fh-more { display: block; white-space: normal; }
.application-list { display: grid; gap: 28px; }
.application-card.wide { display: grid; grid-template-columns: 30% minmax(0, 1fr); }
.application-card.wide > a { display: flex; }
.application-card.wide img { height: 100%; min-height: 260px; }
.application-card.wide .application-copy { padding: 32px; }
.application-card.wide h3 { font-size: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-content .public-btn { background: #004a80; color: #fff; border: 1px solid #004a80; padding: 12px 20px; text-decoration: none; font-size: .85rem; font-weight: 700; text-align: center; }
.page-content .public-btn:hover { background: #173c60; }
.page-content .secondary { background: #fff; color: #004a80; }
.page-content .secondary:hover { background: #e3edf5; }
.research-home { margin-top: 60px; }
.research-tile { background: #f4f4f4; padding: 24px; text-decoration: none; border-top: 3px solid #004a80; }
.research-tile h3 { margin: 0 0 14px; font-size: 1rem; }
.research-tile p { color: #454b52; font-size: .88rem; margin: 0; }
.research-tile:hover { background: #e8eef3; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; background: #edf2f6; border-left: 4px solid #004a80; padding: 26px 32px; margin-top: 48px; }
.cta-band strong { margin-right: auto; }
.cta-band a { font-size: .9rem; font-weight: 700; }
.access-steps { list-style: none; counter-reset: step; padding: 0; }
.access-steps li { counter-increment: step; position: relative; padding: 0 0 24px 68px; }
.access-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; background: #edf2f6; color: #004a80; width: 44px; height: 44px; display: grid; place-items: center; font-weight: 700; }
.access-steps h3 { margin-bottom: 10px; }
.application-preview { margin: 56px 0; background: #f4f4f4; padding: 24px; }
.application-preview img { width: 100%; max-height: 540px; object-fit: contain; display: block; }
.application-preview figcaption { color: #535e68; font-size: .8rem; margin-top: 14px; }
.other-applications { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu-group > p { margin: 14px 18px 5px; font-size: .75rem; font-weight: 700; color: #004a80; text-transform: uppercase; }
.burger-menu { max-height: 70vh; overflow-y: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) { .application-grid, .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fh-logo small { max-width: 260px; } .fh-nav { gap: 0; } .dd > a { padding: 12px 8px; } .page-columns { gap: 32px; } }
@media (max-width: 860px) { .page-columns { grid-template-columns: 1fr; } .side-card { position: static; } .side-card > img { max-width: 320px; } .page-content { padding-top: 36px; padding-bottom: 40px; } .fh-hero-panel { clip-path: none; background: linear-gradient(90deg, #004a80f5, #004a8080); } .fh-hero-text { max-width: 420px; } .fh-hero-text h1 { font-size: 1.7rem; } }
@media (max-width: 560px) { .application-grid, .research-grid { grid-template-columns: 1fr; } .application-card.wide { grid-template-columns: 1fr; } .application-card.wide img { min-height: 0; height: auto; } .application-card.wide .application-copy { padding: 24px; } .fh-logo small { font-size: .55rem; max-width: 190px; } .fh-main { gap: 12px; } .page-band { padding-bottom: 32px; } .cta-band { padding: 22px; align-items: flex-start; flex-direction: column; } .application-preview { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .application-card { transition: none; } }

:root { --navy: #004a80; --navy2: #174374; }
body > main { flex: 1; }
body > header, body > footer, body > .page-band { flex-shrink: 0; }
.account-content { max-width: none; margin: 0; text-align: left; }
.application-card { display: flex; flex-direction: column; }
.application-copy { display: flex; flex-direction: column; flex: 1; }
.application-copy > .status { margin-top: auto; align-self: flex-start; }
.application-copy .actions { align-items: center; min-height: 52px; }
.hl-head, .hl-grid { padding-left: 0; padding-right: 0; }
.hl-head { align-items: baseline; }
.status.no-access { color: #505961; background: #e8ebed; }
.admin-head p { margin-left: auto; flex: none; color: #66717b; }
.admin .metrics section { display: flex; flex-direction: column; min-height: 160px; margin-top: 0; }
.admin .metrics strong { margin-top: auto; }
.admin .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.admin .filters input, .admin .filters select { width: 100%; height: 44px; margin: 6px 0 0; padding: 8px; border: 1px solid #899ba8; border-radius: 4px; background: white; font: inherit; }
.filter-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.admin .filters { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.admin td.device, .admin td:last-child { white-space: nowrap; }
.page-content .tile, .page-content .tile span { color: #fff; text-decoration: none; }
.page-content .tile-name { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.lost-head .big { margin: 0; font-size: 4rem; font-weight: 800; line-height: 1; color: #004a80; }
.lost-head h1, .lost-head h2 { margin: 6px 0 0; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.admin table { min-width: 720px; }
.admin td { overflow-wrap: normal; }
.admin td.nowrap { white-space: nowrap; }
.admin td.path { overflow-wrap: anywhere; min-width: 180px; }
.session-id { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.avatar { background: #004a80; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.landing a:focus-visible, .landing button:focus-visible, .landing summary:focus-visible { outline: 2px solid #004a80; outline-offset: 3px; }
.actions > a, .acts button, .filter-actions > * { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.fh-foot .fh-cols { display: grid; }
