:root {
  --ink: #12231e;
  --muted: #65736e;
  --paper: #f7f8f3;
  --white: #fff;
  --green: #135c46;
  --green-dark: #0b3b2d;
  --lime: #c9f05b;
  --mint: #dcefe7;
  --line: #dfe5df;
  --orange: #f4a261;
  --red: #c75252;
  --shadow: 0 18px 50px rgba(19, 54, 43, .1);
}

/* V3 laboratory workflow: task-first hierarchy and compact responsive controls. */
.booking-system-shell { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 32px 56px; }
.booking-system-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; border: 1px solid var(--lab-line, #d7dee5); background: var(--lab-surface, #fff); border-radius: 10px; }
.booking-system-nav p { margin: 0 10px 10px; color: var(--lab-muted, #64748b); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.booking-system-nav button { min-height: 42px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--lab-text, #173b63); text-align: left; font-weight: 700; cursor: pointer; }
.booking-system-nav button:hover, .booking-system-nav button.active { background: var(--lab-primary, #173f6d); color: #fff; }
.booking-system-nav button b { float: right; min-width: 22px; padding: 2px 5px; border-radius: 10px; background: #e45757; color: #fff; text-align: center; font-size: 11px; }
.booking-main { min-width: 0; }
.booking-title { align-items: end; margin-bottom: 22px; }
.booking-title h1 { margin: 4px 0 0; font-size: clamp(28px, 4vw, 44px); }
.booking-title small { display: block; margin-top: 8px; color: var(--lab-muted, #64748b); }
.booking-dashboard { gap: 18px; }
.booking-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.booking-metrics article { min-height: 112px; padding: 18px; border: 1px solid var(--lab-line, #d7dee5); border-radius: 8px; background: var(--lab-surface, #fff); }
.booking-form-card, .approval-panel, .instrument-management, .my-bookings { border-radius: 10px; }
.booking-form-card form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.booking-form-card form > label:first-child, .booking-form-card form > .sample-requirement, .booking-form-card form > label:nth-last-of-type(-n+2), .booking-form-card form > button { grid-column: 1 / -1; }
.booking-form-card .booking-fields { grid-column: 1 / -1; }
.booking-form-card textarea { min-height: 92px; resize: vertical; }
.sample-requirement { margin: 0; padding: 14px 16px; border-left: 4px solid var(--lab-accent, #cf4354); background: #f4f7fa; }
.booking-service-picker { display: block; }
.booking-field-label { display: block; color: var(--lab-text, #173b63); font-size: 12px; font-weight: 700; }
.booking-multi-select { position: relative; margin-top: 8px; }
.booking-multi-select summary { min-height: 42px; padding: 11px 13px; border: 1px solid var(--lab-line, #d7dee5); border-radius: 6px; color: var(--lab-text, #173b63); background: var(--lab-surface, #fff); cursor: pointer; list-style: none; }
.booking-multi-select summary::-webkit-details-marker { display: none; }
.booking-multi-select summary::after { content: "▾"; float: right; color: var(--lab-muted, #64748b); }
.booking-multi-select[open] summary { border-color: var(--lab-primary, #173f6d); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.booking-multi-select-options { position: absolute; z-index: 5; left: 0; right: 0; max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid var(--lab-primary, #173f6d); border-top: 0; border-radius: 0 0 6px 6px; background: #fff; box-shadow: 0 14px 26px rgba(16,43,75,.14); }
.booking-multi-select-options label { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 4px; cursor: pointer; }
.booking-multi-select-options label:hover { background: #f1f5f8; }
.booking-multi-select-options input { margin-top: 3px; accent-color: var(--lab-primary, #173f6d); }
.booking-multi-select-options span, .booking-multi-select-options small { display: block; }
.booking-multi-select-options b { color: var(--lab-text, #173b63); font-size: 12px; }
.booking-multi-select-options small { margin-top: 3px; color: var(--lab-muted, #64748b); font-size: 10px; }
.booking-calendar { gap: 10px; }
.booking-calendar > article { min-height: 220px; border-radius: 8px; }
.calendar-toolbar { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--lab-line, #d7dee5); border-radius: 8px; background: var(--lab-surface, #fff); }
.calendar-toolbar button { min-height: 36px; }
.approval-item { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--lab-line, #d7dee5); border-radius: 8px; background: var(--lab-surface, #fff); }
.instrument-management { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 18px; }
.instrument-form-panel { position: sticky; top: 24px; align-self: start; border-radius: 10px; }
.instrument-form-panel textarea { resize: vertical; }
.instrument-form-panel small { display: block; margin-top: 6px; color: var(--lab-muted, #64748b); line-height: 1.4; }

@media (max-width: 900px) {
  .booking-system-shell { grid-template-columns: 1fr; padding: 18px 16px 40px; }
  .booking-system-nav { position: sticky; top: 0; z-index: 4; flex-direction: row; overflow-x: auto; padding: 8px; }
  .booking-system-nav p { display: none; }
  .booking-system-nav button { flex: 0 0 auto; white-space: nowrap; }
  .booking-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instrument-management { grid-template-columns: 1fr; }
  .instrument-form-panel { position: static; }
  .approval-item { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .booking-metrics, .booking-form-card form { grid-template-columns: 1fr; }
  .booking-form-card form > label, .booking-form-card form > .sample-requirement, .booking-form-card form > .booking-fields, .booking-form-card form > button { grid-column: auto; }
  .booking-title { align-items: start; flex-direction: column; gap: 12px; }
  .booking-title .booking-primary { width: 100%; }
  .calendar-toolbar { align-items: stretch; flex-direction: column; }
  .booking-calendar { overflow-x: auto; grid-template-columns: repeat(7, minmax(150px, 1fr)); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#app { min-height: 100vh; }
html.media-loading-home #app { opacity: 0; }
html.media-ready #app { opacity: 1; transition: opacity .16s ease-out; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: 84px; padding: 0 5vw; display: flex; align-items: center; gap: 38px;
  background: rgba(247,248,243,.88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(19,92,70,.08);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--lime); }
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: -.2px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }
.main-nav { display: flex; gap: 28px; color: #40504a; font-size: 13px; font-weight: 600; }
.main-nav a { position: relative; padding: 33px 0; }
.main-nav a.mobile-lab-nav { display: none; }
.main-nav a::after { content: ""; position: absolute; bottom: 23px; left: 0; right: 100%; height: 2px; background: var(--green); transition: .25s; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.portal-button { border: 0; border-radius: 9px; padding: 11px 16px; color: white; background: var(--green); cursor: pointer; font-size: 12px; font-weight: 700; }
.portal-button span { padding-left: 5px; color: var(--lime); }
.menu-button { display: none; border: 0; background: transparent; font-weight: 700; }
.page-section { scroll-margin-top: 80px; }
.hero { min-height: 760px; padding: 135px 5vw 0; overflow: hidden; }
.hero-grid { max-width: 1350px; min-height: 570px; margin: auto; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 5vw; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow span { width: 25px; height: 2px; background: currentColor; }
.hero h1, h2 { margin: 20px 0; font-family: Manrope, sans-serif; letter-spacing: -2.5px; line-height: 1.08; }
.hero h1 { max-width: 710px; font-size: clamp(45px, 5.6vw, 78px); }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-content > p { max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 0; border-radius: 8px; padding: 13px 19px; cursor: pointer; font-size: 13px; font-weight: 700; }
.button-primary { background: var(--green); color: white; }
.button-primary span { color: var(--lime); }
.button-quiet { border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.hero-meta { display: flex; gap: 42px; margin-top: 47px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: Manrope; font-size: 18px; }
.hero-meta span { margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .9px; }
.hero-visual { position: relative; min-height: 530px; border-radius: 38% 62% 65% 35% / 43% 33% 67% 57%; background: radial-gradient(circle at 55% 45%, #cce5d8, #8ab8a6 55%, #1b6550 100%); }
.hero-visual::before { content: ""; position: absolute; inset: 25px; border: 1px solid rgba(255,255,255,.35); border-radius: inherit; }
.visual-card { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.8); box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.battery-card { top: 25%; left: 23%; width: 235px; padding: 24px; border-radius: 20px; transform: rotate(-4deg); }
.visual-label { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.battery { position: relative; height: 72px; margin: 20px 4px 14px; padding: 8px; display: flex; gap: 5px; align-items: end; border: 3px solid var(--green); border-radius: 10px; }
.battery::after { content: ""; position: absolute; right: -10px; top: 23px; width: 7px; height: 22px; border-radius: 0 3px 3px 0; background: var(--green); }
.battery span { flex: 1; border-radius: 3px; background: var(--lime); }
.battery span:nth-child(1) { height: 25%; } .battery span:nth-child(2) { height: 45%; } .battery span:nth-child(3) { height: 70%; } .battery span:nth-child(4) { height: 95%; }
.battery-card p { margin: 0; color: var(--muted); font-size: 11px; }
.orb { position: absolute; border-radius: 50%; box-shadow: inset -15px -15px 25px rgba(0,0,0,.1), 0 15px 30px rgba(10,70,52,.2); }
.orb-one { width: 80px; height: 80px; top: 7%; right: 16%; background: var(--lime); }
.orb-two { width: 45px; height: 45px; bottom: 17%; left: 12%; background: #f5c283; }
.molecule { position: absolute; width: 125px; height: 80px; }
.molecule::before, .molecule::after { content: ""; position: absolute; top: 38px; width: 58px; height: 2px; background: rgba(255,255,255,.75); }
.molecule::before { left: 8px; transform: rotate(-28deg); } .molecule::after { right: 8px; transform: rotate(28deg); }
.molecule i { position: absolute; width: 19px; height: 19px; border: 3px solid white; border-radius: 50%; }
.molecule i:nth-child(1) { left: 0; bottom: 0; }.molecule i:nth-child(2) { left: 53px; top: 0; }.molecule i:nth-child(3) { right: 0; bottom: 0; }
.molecule-one { top: 12%; left: -2%; transform: scale(.8) rotate(-15deg); }
.molecule-two { bottom: 6%; right: 4%; transform: scale(.65) rotate(20deg); }
.visual-note { position: absolute; z-index: 3; right: -5%; bottom: 24%; padding: 14px 18px; display: flex; gap: 11px; align-items: center; border-radius: 12px; background: white; box-shadow: var(--shadow); }
.visual-note strong, .visual-note small { display: block; }.visual-note strong { font-size: 11px; }.visual-note small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,240,91,.25); }
.affiliation { max-width: 1350px; height: 70px; margin: 10px auto 0; display: flex; align-items: center; justify-content: center; gap: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.affiliation strong { color: var(--green); }.affiliation i { width: 4px; height: 4px; border-radius: 50%; background: #aab5af; }
.research-section, .members-section, .publications-section, .contact-section { padding: 105px 5vw; }
.research-section { background: var(--white); }
.section-heading { max-width: 1350px; margin: 0 auto 52px; display: flex; justify-content: space-between; align-items: end; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(38px, 4vw, 57px); }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.research-grid { max-width: 1350px; margin: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.research-card { position: relative; min-height: 330px; padding: 27px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #f9faf7; transition: .25s; grid-column: span 2; }
.research-card:nth-child(4), .research-card:nth-child(5) { grid-column: span 3; min-height: 260px; }
.research-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #bed2c8; }
.research-card .number { color: #9aaba4; font-size: 10px; font-weight: 700; }
.research-card h3 { max-width: 245px; margin: auto 0 10px; font-family: Manrope; font-size: 22px; }
.research-card p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.research-icon { position: absolute; top: 30px; right: 27px; width: 61px; height: 61px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 25px; }
.members-section { background: #eef2ec; }
.member-grid { max-width: 1350px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member-card { overflow: hidden; border-radius: 15px; background: white; }
.member-image { height: 270px; display: grid; place-items: end center; background: linear-gradient(145deg, #cdded5, #7fa895); overflow: hidden; }
.member-image .portrait { width: 160px; height: 210px; display: grid; place-items: center; border-radius: 90px 90px 0 0; background: rgba(255,255,255,.5); color: var(--green); font-family: Manrope; font-size: 45px; font-weight: 800; }
.member-card:nth-child(2) .member-image { background: linear-gradient(145deg, #f0d9b8, #c79e69); }
.member-card:nth-child(3) .member-image { background: linear-gradient(145deg, #d6d1e6, #948baa); }
.member-card:nth-child(4) .member-image { background: linear-gradient(145deg, #b9dce0, #6c9da3); }
.member-info { padding: 20px; }.member-info h3 { margin: 0 0 4px; font-family: Manrope; font-size: 16px; }.member-info p { margin: 0; color: var(--green); font-size: 11px; font-weight: 700; }.member-info small { display: block; margin-top: 10px; color: var(--muted); }
.publications-section { background: white; }
.text-button { border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 12px; font-weight: 700; }
.publication-list { max-width: 1350px; margin: auto; border-top: 1px solid var(--line); }
.publication { padding: 24px 4px; display: grid; grid-template-columns: 65px 1fr 190px 35px; gap: 22px; align-items: center; border-bottom: 1px solid var(--line); }
.publication .year { color: var(--green); font-family: Manrope; font-size: 13px; font-weight: 800; }
.publication h3 { margin: 0 0 6px; font-family: Manrope; font-size: 15px; }.publication p, .publication .journal { margin: 0; color: var(--muted); font-size: 11px; }.publication .journal { font-style: italic; }
.publication button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.opportunities-section { padding: 0 5vw 105px; background: white; }
.opportunities-card { max-width: 1350px; min-height: 330px; margin: auto; padding: 65px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; overflow: hidden; position: relative; border-radius: 20px; color: white; background: var(--green-dark); }
.opportunities-card::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; border: 1px solid rgba(201,240,91,.3); border-radius: 50%; box-shadow: 0 0 0 70px rgba(201,240,91,.05), 0 0 0 140px rgba(201,240,91,.03); }
.eyebrow.light { color: var(--lime); }.opportunities-card h2 { font-size: clamp(36px, 4vw, 54px); }
.opportunity-copy { position: relative; z-index: 2; }.opportunity-copy p { color: #c4d3ce; font-size: 14px; line-height: 1.7; }.button-light { margin-top: 15px; background: var(--lime); color: var(--green-dark); }
.contact-section { max-width: 1350px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.contact-section h2 { font-size: 48px; }.contact-section p { max-width: 560px; color: var(--muted); }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-details > * { padding: 20px 0; border-top: 1px solid var(--line); }.contact-details span, .contact-details strong, .contact-details a { display: block; }.contact-details span { margin-bottom: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; }.contact-details strong, .contact-details a { font-size: 13px; }.contact-details a { width: fit-content; color: var(--green); border-bottom: 1px solid var(--green); font-weight: 700; }
footer { padding: 25px 5vw; display: flex; justify-content: space-between; color: var(--muted); background: #edf0ea; font-size: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; visibility: hidden; opacity: 0; background: rgba(7,28,22,.65); backdrop-filter: blur(8px); transition: .25s; }
.modal-backdrop.open { visibility: visible; opacity: 1; }
.login-modal { position: relative; width: min(440px, calc(100% - 30px)); padding: 42px; border-radius: 20px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.25); transform: translateY(15px); transition: .25s; }
.modal-backdrop.open .login-modal { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 17px; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.login-mark { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 13px; background: var(--green); color: var(--lime); font-family: Manrope; font-size: 13px; font-weight: 800; }
.login-modal h2 { margin: 27px 0 8px; font-size: 30px; letter-spacing: -1px; }.login-modal > p { margin: 0 0 25px; color: var(--muted); font-size: 13px; }
.login-modal label { display: block; margin-bottom: 16px; color: #4e5e58; font-size: 11px; font-weight: 700; }
.login-modal input[type=email], .login-modal input[type=password] { width: 100%; margin-top: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); }
.login-modal input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(19,92,70,.1); }
.form-row { margin: 0 0 20px; display: flex; justify-content: space-between; align-items: center; color: var(--green); font-size: 10px; }
.form-row .check { margin: 0; display: flex; gap: 6px; align-items: center; font-weight: 500; }.form-row .check input { width: auto; margin: 0; }
.full { width: 100%; }.demo-hint { display: block; margin-top: 17px; text-align: center; color: #8b9893; }
.dashboard { position: fixed; inset: 0; z-index: 80; display: none; background: #f4f6f3; }
.dashboard.open { display: flex; }
.sidebar { width: 230px; padding: 24px 16px 16px; display: flex; flex-direction: column; color: #d8e5df; background: #0e3328; }
.dashboard-brand { padding: 0 8px 27px; display: flex; gap: 11px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.09); }
.login-mark.small { width: 38px; height: 38px; border-radius: 9px; color: var(--green-dark); background: var(--lime); }
.dashboard-brand strong, .dashboard-brand small { display: block; }.dashboard-brand strong { font-family: Manrope; font-size: 14px; }.dashboard-brand small { margin-top: 2px; color: #7fa095; font-size: 9px; }
.sidebar nav { margin-top: 21px; }.sidebar nav p { margin: 24px 10px 8px; color: #688b80; font-size: 8px; letter-spacing: 1.2px; font-weight: 800; }
.sidebar nav button { width: 100%; margin: 3px 0; padding: 11px 12px; display: flex; gap: 11px; align-items: center; border: 0; border-radius: 7px; color: #a9beb7; background: transparent; cursor: pointer; text-align: left; font-size: 11px; }
.sidebar nav button span { width: 17px; color: #75998d; font-size: 15px; }.sidebar nav button b { margin-left: auto; padding: 2px 7px; border-radius: 8px; color: #9fb6ae; background: rgba(255,255,255,.08); font-size: 8px; }.sidebar nav button b.alert { color: #40230c; background: var(--orange); }
.sidebar nav button:hover, .sidebar nav button.active { color: white; background: #1d4a3c; }.sidebar nav button.active span { color: var(--lime); }
.sidebar-user { margin-top: auto; padding: 14px 7px 2px; display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.09); }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: #b6d9c7; font-size: 10px; font-weight: 800; }
.sidebar-user strong, .sidebar-user small { display: block; }.sidebar-user strong { font-size: 10px; }.sidebar-user small { margin-top: 2px; color: #75998d; font-size: 8px; }.sidebar-user button { margin-left: auto; border: 0; color: #86a398; background: transparent; cursor: pointer; }
.dashboard-main { flex: 1; overflow: auto; }
.dashboard-header { height: 105px; padding: 22px 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: white; }
.dashboard-header > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }.dashboard-header h1 { margin: 0; font-family: Manrope; font-size: 20px; letter-spacing: -.5px; }.dashboard-header p { grid-column: 2; margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.dash-menu { display: none; grid-row: span 2; border: 0; background: none; }
.header-actions { display: flex; gap: 8px; align-items: center; }.icon-button { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }.notification i { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }.small-button { padding: 10px 14px; font-size: 10px; }
.dashboard-content { padding: 27px 34px 50px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.metric-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--mint); font-size: 15px; }.metric-icon.orange { color: #8d541d; background: #fbe7d2; }.metric-icon.red { color: #963d3d; background: #f7dddd; }.metric-icon.blue { color: #346d7b; background: #dceff2; }
.metric-value { margin: 15px 0 6px; display: flex; align-items: end; gap: 8px; font-family: Manrope; font-size: 28px; font-weight: 800; }.metric-value small { margin-bottom: 4px; padding: 2px 5px; border-radius: 4px; color: var(--green); background: #e7f4eb; font-family: DM Sans; font-size: 8px; }
.metric-card > small { color: var(--muted); font-size: 8px; }
.dashboard-grid { margin-top: 17px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 17px; }
.panel { border: 1px solid var(--line); border-radius: 11px; background: white; overflow: hidden; }
.panel-head { padding: 17px 19px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }.panel-head h2 { margin: 0; font-family: Manrope; font-size: 13px; letter-spacing: -.2px; }.panel-head button { border: 0; color: var(--green); background: none; cursor: pointer; font-size: 9px; font-weight: 700; }
.lab-table { width: 100%; border-collapse: collapse; }.lab-table th { padding: 10px 15px; color: #8b9893; background: #fafbf9; font-size: 8px; text-align: left; text-transform: uppercase; letter-spacing: .6px; }.lab-table td { padding: 13px 15px; border-top: 1px solid #edf0ed; font-size: 9px; }.lab-table td strong { display: block; font-size: 10px; }.lab-table td small { color: var(--muted); font-size: 8px; }
.status { display: inline-block; padding: 4px 7px; border-radius: 10px; color: #24654d; background: #e2f2e9; font-size: 7px; font-weight: 800; text-transform: uppercase; }.status.warning { color: #9a5a18; background: #fbe8ce; }.status.danger { color: #a34141; background: #f8dddd; }.status.info { color: #316a78; background: #dfeff3; }
.schedule-list { padding: 4px 18px; }.schedule-item { padding: 14px 0; display: grid; grid-template-columns: 44px 4px 1fr; gap: 10px; border-bottom: 1px solid #edf0ed; }.schedule-item:last-child { border: 0; }.schedule-item time { color: var(--muted); font-size: 9px; }.schedule-item i { border-radius: 3px; background: var(--green); }.schedule-item:nth-child(2) i { background: var(--orange); }.schedule-item:nth-child(3) i { background: #6e8fa9; }.schedule-item strong, .schedule-item small { display: block; }.schedule-item strong { font-size: 9px; }.schedule-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.wide-panel { margin-top: 17px; }.panel-toolbar { padding: 14px 18px; display: flex; gap: 9px; border-bottom: 1px solid var(--line); }.search-field { flex: 1; max-width: 300px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; outline: none; }.filter-button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 9px; cursor: pointer; }
.empty-panel { min-height: 460px; display: grid; place-items: center; text-align: center; }.empty-panel div { max-width: 340px; }.empty-panel span { width: 60px; height: 60px; margin: auto; display: grid; place-items: center; border-radius: 18px; color: var(--green); background: var(--mint); font-size: 27px; }.empty-panel h2 { margin: 20px 0 8px; font-size: 21px; letter-spacing: -.6px; }.empty-panel p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 150; padding: 13px 18px; display: flex; gap: 11px; align-items: center; border-radius: 10px; color: white; background: var(--green-dark); box-shadow: var(--shadow); transform: translateY(90px); opacity: 0; transition: .3s; }.toast.show { transform: translateY(0); opacity: 1; }.toast > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--lime); font-weight: 800; }.toast strong, .toast small { display: block; }.toast strong { font-size: 10px; }.toast small { margin-top: 2px; color: #a9beb7; font-size: 8px; }

@media (max-width: 1000px) {
  .main-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; padding: 20px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }.main-nav a { padding: 11px; }.main-nav a::after { display: none; }.menu-button { display: block; }.portal-button { margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; }.hero { padding-top: 130px; }.hero-visual { min-height: 430px; margin-top: 30px; }.affiliation { display: none; }
  .research-grid { grid-template-columns: repeat(2,1fr); }.research-card, .research-card:nth-child(4), .research-card:nth-child(5) { grid-column: span 1; }
  .member-grid { grid-template-columns: repeat(2,1fr); }.publication { grid-template-columns: 50px 1fr 30px; }.publication .journal { display: none; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }.dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .site-header { height: 70px; padding: 0 18px; }.brand small { display: none; }.portal-button { padding: 10px; font-size: 10px; }
  .hero { padding: 115px 20px 60px; }.hero-grid { min-height: auto; }.hero h1 { font-size: 43px; }.hero-meta { gap: 23px; }.hero-visual { min-height: 350px; }.battery-card { left: 16%; top: 22%; width: 200px; }.visual-note { right: 1%; }.research-section, .members-section, .publications-section, .contact-section { padding: 75px 20px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }.research-grid, .member-grid { grid-template-columns: 1fr; }.research-card { min-height: 250px; }.opportunities-section { padding: 0 20px 75px; }.opportunities-card { padding: 40px 25px; grid-template-columns: 1fr; gap: 10px; }.contact-section { grid-template-columns: 1fr; }.contact-details { grid-template-columns: 1fr; } footer { gap: 15px; flex-direction: column; }
  .sidebar { position: absolute; z-index: 3; left: -230px; top: 0; bottom: 0; transition: .25s; }.sidebar.open { left: 0; }.dash-menu { display: block; }.dashboard-header { height: auto; min-height: 90px; padding: 18px; }.dashboard-header p { display: none; }.dashboard-header h1 { font-size: 16px; }.header-actions .icon-button { display: none; }.dashboard-content { padding: 18px; }.metric-grid { grid-template-columns: 1fr 1fr; }.metric-card { padding: 14px; }.metric-value { font-size: 22px; }.lab-table th:nth-child(3), .lab-table td:nth-child(3), .lab-table th:nth-child(4), .lab-table td:nth-child(4) { display: none; }.login-modal { padding: 32px 25px; }
}

/* Research publications: compact, readable records without the old empty middle column. */
.research-publications-panel .publication-browser.in-research {
  display: grid;
  gap: 12px;
}

.research-publications-panel .publication-row {
  min-width: 0;
  margin: 0;
  padding: 24px 28px;
  grid-template-columns: 76px minmax(0, 1fr) 116px;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 52, 74, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.research-publications-panel .publication-row:hover {
  border-color: rgba(19, 92, 70, .38);
  box-shadow: 0 12px 30px rgba(24, 52, 74, .09);
  transform: translateY(-1px);
}

.research-publications-panel .publication-year {
  padding-top: 3px;
  color: var(--green);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

.research-publications-panel .publication-content {
  min-width: 0;
}

.research-publications-panel .publication-row h2 {
  margin: 0 0 9px;
  color: var(--green-dark, var(--green));
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.22;
  letter-spacing: -.02em;
}

.research-publications-panel .publication-row .publication-authors {
  margin-bottom: 5px;
  color: #304b5e;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.research-publications-panel .publication-row .publication-source {
  color: #71808b;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
}

.research-publications-panel .publication-link {
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(19, 92, 70, .35);
  color: var(--green);
  background: #f7fbf9;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  text-transform: var(--theme-button-case);
  transition: color .2s ease, background .2s ease;
}

.research-publications-panel .publication-link b {
  font-size: 14px;
  line-height: 1;
}

.research-publications-panel .publication-link:hover {
  color: #fff;
  background: var(--green);
}

@media (max-width: 700px) {
  .research-publications-panel .publication-row {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .research-publications-panel .publication-year {
    padding: 0;
    font-size: 12px;
  }

  .research-publications-panel .publication-link {
    justify-self: start;
    margin-top: 4px;
  }
}

/* Editable portal theme */
.public-portal {
  min-height: 100vh;
  padding-top: 91px;
  color: var(--ink);
  background: var(--paper);
  font-size: var(--theme-body-size);
}
.public-portal .site-header {
  position: fixed;
  top: 0;
}
.public-portal h1,
.public-portal h2,
.public-portal h3 {
  color: var(--theme-heading);
}
.public-portal .hero h1 {
  font-size: clamp(36px, 5vw, var(--theme-hero-size));
  text-transform: var(--theme-hero-case);
}
.public-portal .section-heading h2,
.public-portal .contact-section h2,
.public-portal .network-column h2 {
  font-size: clamp(28px, 4vw, var(--theme-section-size));
  text-transform: var(--theme-section-case);
}
.public-portal .project-card h3,
.public-portal .research-card h3,
.public-portal .member-info h3,
.public-portal .application-steps h3,
.public-portal .benefit-grid h3 {
  font-size: var(--theme-card-size);
  text-transform: var(--theme-card-case);
}
.public-portal p,
.public-portal li,
.public-portal dd {
  font-size: var(--theme-body-size);
}
.public-portal main p,
.public-portal main li,
.public-portal main dd {
  text-transform: var(--theme-body-case);
}
.public-portal .main-nav {
  font-size: var(--theme-nav-size);
  text-transform: var(--theme-nav-case);
}
.public-portal .section-number,
.public-portal .academic-kicker,
.public-portal .role-label,
.public-portal .project-card > span,
.public-portal .project-copy > span {
  font-size: var(--theme-label-size);
  text-transform: var(--theme-label-case);
}
.public-portal .button,
.public-portal .portal-button,
.public-portal .admin-link,
.public-portal .profile-links a,
.public-portal .project-copy a,
.public-portal .update-copy a {
  text-transform: var(--theme-button-case);
}
.public-portal .members-section,
.public-portal .updates-section,
.public-portal .faq-section {
  background: var(--theme-soft-surface);
}
.public-portal .why-join-section,
.public-portal .group-members-section,
.public-portal .research-section,
.public-portal .publications-section {
  background: var(--white);
}

/* Project summary, listing and detail pages */
.homepage-project-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.homepage-project-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border-top: 4px solid var(--green);
}
.homepage-project-card > img { width: 100%; height: 185px; display: block; object-fit: cover; }
.homepage-project-card > div { padding: 25px; }
.homepage-project-card h3 { margin: 25px 0 12px; color: var(--green); font-family: "Source Serif 4", serif; font-size: var(--theme-card-size); }
.homepage-project-card p { min-height: 70px; color: var(--muted); font-family: "Source Serif 4", serif; line-height: 1.65; }
.homepage-project-card a, .project-list-card a, .back-link { display: inline-block; margin-top: 19px; padding-bottom: 3px; border-bottom: 1px solid var(--green); color: var(--green); font-size: 9px; font-weight: 700; text-transform: var(--theme-button-case); }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-meta > span { color: var(--lime); font-size: var(--theme-label-size); font-weight: 700; letter-spacing: .07em; text-transform: var(--theme-label-case); }
.project-status { padding: 4px 7px; font-size: 7px; letter-spacing: .07em; text-transform: uppercase; }
.status-open { color: #205b43; background: #dceee5; }.status-upcoming { color: #82551b; background: #f3e6cf; }.status-closed { color: #7a464b; background: #eedcdf; }
.project-levels { display: flex; gap: 6px; flex-wrap: wrap; }.project-levels span { padding: 5px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.projects-footer { max-width: 1350px; margin: 25px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.projects-footer .availability-note { margin: 0; }
.projects-page, .project-detail-page, .research-page, .apply-page { padding-top: 0; min-height: calc(100vh - 100px); background: var(--paper); }
.subpage-hero { padding: 48px max(5vw, calc((100vw - 1350px) / 2)) 46px; color: #fff; background: var(--green-dark); }
.subpage-hero > * { width: min(1350px, 100%); max-width: 1350px; margin-left: 0; margin-right: auto; }.subpage-hero h1 { margin: 0 0 16px; color: #fff; font-family: "Source Serif 4", serif; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.08; }.subpage-hero > p:last-child { color: #c4d0db; font-family: "Source Serif 4", serif; line-height: 1.65; }
.project-browser { max-width: 1350px; margin: auto; padding: 45px 0 90px; }
.project-filters { margin-bottom: 28px; padding: 16px; display: flex; align-items: end; gap: 14px; border: 1px solid var(--line); background: var(--white); }.project-filters label { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }.project-filters select { min-width: 160px; margin-top: 6px; padding: 9px; display: block; border: 1px solid var(--line); background: var(--white); }.project-filters > span { margin-left: auto; padding-bottom: 9px; color: var(--muted); font-size: 9px; }
.project-list-grid { display: grid; gap: 18px; }.project-list-card { display: grid; grid-template-columns: 310px 1fr; overflow: hidden; border: 1px solid var(--line); background: var(--white); }.project-list-card > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }.project-list-copy { padding: 32px; }.project-list-copy h2 { margin: 25px 0 12px; color: var(--green); font-family: "Source Serif 4", serif; font-size: 29px; }.project-list-copy p { max-width: 760px; color: var(--muted); font-family: "Source Serif 4", serif; line-height: 1.7; }
.project-empty, .project-not-found { padding: 90px 5vw; color: var(--muted); text-align: center; }
.project-detail-hero { max-width: 1350px; margin: auto; padding: 75px 0 55px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 65px; align-items: center; }.project-detail-hero h1 { margin: 30px 0 17px; color: var(--green); font-family: "Source Serif 4", serif; font-size: clamp(40px, 5vw, var(--theme-hero-size)); line-height: 1.08; }.project-detail-hero > div > p { color: var(--muted); font-family: "Source Serif 4", serif; font-size: 16px; line-height: 1.7; }.project-detail-hero > img { width: 100%; height: 390px; object-fit: cover; }
.project-detail-grid { max-width: 1350px; margin: auto; padding: 0 0 100px; display: grid; grid-template-columns: 1fr 340px; gap: 60px; }.project-description { border-top: 1px solid var(--ink); }.project-description section { padding: 30px 0; border-bottom: 1px solid var(--line); }.project-description h2 { color: var(--green); font-family: "Source Serif 4", serif; font-size: 25px; }.project-description p { color: var(--muted); font-family: "Source Serif 4", serif; font-size: var(--theme-body-size); line-height: 1.8; }
.project-facts { align-self: start; padding: 25px; color: #fff; background: var(--green-dark); }.project-facts div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }.project-facts span, .project-facts strong { display: block; }.project-facts span { margin-bottom: 6px; color: #aebdca; font-size: 8px; text-transform: uppercase; }.project-facts strong { font-family: "Source Serif 4", serif; font-size: 13px; }.project-facts .button { margin-top: 24px; width: 100%; background: var(--lime); }
@media (max-width: 1000px) { .homepage-project-grid { grid-template-columns: 1fr 1fr; padding: 0 5vw; }.projects-footer, .project-browser, .project-detail-hero, .project-detail-grid { margin-left: 5vw; margin-right: 5vw; }.project-detail-hero { grid-template-columns: 1fr; }.project-detail-grid { grid-template-columns: 1fr; }.project-facts { max-width: 500px; } }
@media (max-width: 700px) { .homepage-project-grid { grid-template-columns: 1fr; }.projects-footer { align-items: flex-start; flex-direction: column; }.project-filters { align-items: stretch; flex-direction: column; }.project-filters > span { margin-left: 0; }.project-list-card { grid-template-columns: 1fr; }.project-list-card > img { min-height: 220px; }.project-detail-hero > img { height: 260px; } }

/* Research listing, detail and application pathways */
.section-action { max-width: 1350px; margin: 28px auto 0; text-align: right; }
.research-section .research-card:last-child { grid-column: span 1; min-height: 305px; }
.research-section .research-card a { display: inline-block; margin-top: auto; padding-top: 18px; color: var(--green); border-bottom: 1px solid var(--green); font-size: 9px; font-weight: 700; text-transform: var(--theme-button-case); }
.research-list-grid { max-width: 1350px; margin: auto; padding: 55px 0 100px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.research-list-card { min-height: 350px; display: grid; grid-template-columns: 42% 1fr; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.research-list-card img { width: 100%; height: 100%; object-fit: cover; }
.research-list-card img.research-image-contain { object-fit: contain; background: #fff; }
.research-list-card > div { padding: 34px; }
.research-list-card span { color: var(--lime); font-size: var(--theme-label-size); font-weight: 700; letter-spacing: .08em; }
.research-list-card h2 { margin: 35px 0 13px; color: var(--green); font-family: "Source Serif 4", serif; font-size: 27px; }
.research-list-card p { color: var(--muted); font-family: "Source Serif 4", serif; line-height: 1.7; }
.research-list-card a { display: inline-block; margin-top: 22px; color: var(--green); border-bottom: 1px solid var(--green); font-size: 9px; font-weight: 700; }
.research-overview-grid { grid-template-columns: 1fr; max-width: 1180px; }
.research-overview-grid .research-list-card { min-height: 330px; grid-template-columns: 31% 1fr; }
.research-overview-grid .research-list-card > div { padding: 30px 36px; }
.research-overview-grid .research-list-card h2 { margin-top: 20px; }
.research-overview-details { margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.research-overview-details div { border-top: 1px solid var(--line); padding-top: 12px; }
.research-overview-details dt { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.research-overview-details dd { margin: 8px 0 0; color: var(--muted); font-family: "Source Serif 4", serif; font-size: 14px; line-height: 1.55; }
.research-detail-hero { max-width: 1350px; margin: auto; padding: 75px 0 55px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 65px; align-items: center; }
.research-detail-hero h1 { margin: 20px 0 17px; color: var(--green); font-family: "Source Serif 4", serif; font-size: clamp(40px, 5vw, var(--theme-hero-size)); line-height: 1.08; }
.research-detail-hero > div > p:last-child { color: var(--muted); font-family: "Source Serif 4", serif; font-size: 16px; line-height: 1.7; }
.research-detail-hero img { width: 100%; height: 390px; object-fit: cover; }
.research-detail-grid { max-width: 1350px; margin: auto; padding-bottom: 100px; display: grid; grid-template-columns: 1fr 360px; gap: 60px; }
.research-detail-copy { border-top: 1px solid var(--ink); }
.research-detail-copy section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.research-detail-copy h2, .pathway-detail h2, .pathway-detail h3 { color: var(--green); font-family: "Source Serif 4", serif; }
.research-detail-copy h2 { font-size: 25px; }
.research-detail-copy p { color: var(--muted); font-family: "Source Serif 4", serif; line-height: 1.8; }
.related-projects { align-self: start; padding: 27px; color: #fff; background: var(--green-dark); }
.related-projects article { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.2); }
.related-projects h3 { font-family: "Source Serif 4", serif; font-size: 17px; }
.related-projects span { color: #d4a8ae; font-size: 8px; text-transform: uppercase; }
.related-projects a { color: #fff; border-bottom: 1px solid #fff; font-size: 8px; font-weight: 700; }
.apply-browser { max-width: 1150px; margin: auto; padding: 55px 0 100px; }
.pathway-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.pathway-tabs button { padding: 18px; border: 0; border-right: 1px solid var(--line); color: var(--green); background: var(--white); font-weight: 700; cursor: pointer; }
.pathway-tabs button:last-child { border-right: 0; }
.pathway-tabs button.active { color: #fff; background: var(--green); }
.pathway-detail { padding: 48px; border: 1px solid var(--line); border-top: 0; background: var(--white); }
.pathway-detail header > p:last-child { max-width: 750px; color: var(--muted); font-family: "Source Serif 4", serif; line-height: 1.7; }
.pathway-label { margin: 0 0 12px; color: var(--lime); font-size: var(--theme-label-size); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pathway-detail h2 { margin: 8px 0 15px; font-size: 38px; }
.pathway-columns { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.pathway-columns section { padding-top: 22px; border-top: 1px solid var(--ink); }
.pathway-columns h3 { font-size: 21px; }
.pathway-columns li { margin-bottom: 13px; padding-left: 7px; color: var(--muted); font-family: "Source Serif 4", serif; line-height: 1.6; }
.requirement-note, .verification-note { padding: 16px; color: var(--muted); background: var(--theme-soft-surface); font-size: 10px; line-height: 1.6; }
.apply-actions { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.text-link { color: var(--green); border-bottom: 1px solid var(--green); font-size: 9px; font-weight: 700; }
.verification-note { margin-top: 18px; border-left: 3px solid var(--lime); }

/* Homepage member slider */
.member-slider { max-width: 1350px; margin: auto; position: relative; }
.member-slider-controls { margin-bottom: 14px; display: flex; justify-content: flex-end; gap: 8px; }
.member-slider-controls button { padding: 9px 14px; border: 1px solid var(--green); color: var(--green); background: transparent; font-size: 8px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.member-slider-controls button:hover { color: #fff; background: var(--green); }
.member-slider-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--green) var(--theme-soft-surface); }
.member-slider-track .member-card { min-width: calc((100% - 36px) / 3); scroll-snap-align: start; }

@media (max-width: 1000px) {
  .research-list-grid, .research-detail-hero, .research-detail-grid, .apply-browser { margin-left: 5vw; margin-right: 5vw; }
  .research-list-grid { grid-template-columns: 1fr; }
  .research-detail-hero, .research-detail-grid { grid-template-columns: 1fr; }
  .related-projects { max-width: 520px; }
  .member-slider-track .member-card { min-width: calc((100% - 18px) / 2); }
}
@media (max-width: 700px) {
  .section-action { text-align: left; }
  .research-list-card { grid-template-columns: 1fr; }
  .research-list-card img { height: 230px; }
  .research-overview-details { grid-template-columns: 1fr; gap: 12px; }
  .research-detail-hero img { height: 260px; }
  .pathway-tabs, .pathway-columns { grid-template-columns: 1fr; }
  .pathway-tabs button { border-right: 0; border-bottom: 1px solid var(--line); }
  .pathway-detail { padding: 30px 22px; }
  .member-slider-track .member-card { min-width: 86%; }
}

/* Academic visual system */
:root {
  --ink: #172238;
  --muted: #5e6673;
  --paper: #f7f6f2;
  --white: #fff;
  --green: #173d68;
  --green-dark: #102b4b;
  --lime: #9f2333;
  --mint: #e8edf3;
  --line: #d8d9d6;
  --orange: #a96423;
  --red: #9f2333;
  --shadow: 0 12px 35px rgba(22, 34, 56, .08);
}

body {
  background: var(--paper);
  font-family: "Libre Franklin", Arial, sans-serif;
}

.institution-bar {
  display: none;
  height: 31px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--green-dark);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 91px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 3px solid var(--green);
  backdrop-filter: none;
}

.brand-seal {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.brand-logo-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 70px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 48px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.institutional-logo {
  width: 58px;
  background: #fff;
}

.combined-logo {
  width: clamp(186px, 15.6vw, 240px);
  flex-basis: clamp(186px, 15.6vw, 240px);
  overflow: hidden;
}

.combined-logo img {
  width: 138%;
  max-width: none;
  object-position: left center;
}

.group-logo {
  width: 62px;
  height: 62px;
  padding: 0 0 0 8px;
  border-left: 1px solid rgba(16, 44, 73, .12);
  border-radius: 0;
  background: transparent;
  flex-basis: 70px;
}

.group-logo img {
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
}

.brand-text-logo {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--green);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.brand strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .09em;
}

.main-nav {
  gap: 25px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.main-nav a {
  padding: 37px 0;
}

.main-nav a::after {
  bottom: 24px;
  background: var(--lime);
}

.portal-button {
  min-width: 118px;
  padding: 9px 13px;
  display: grid;
  gap: 2px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 0;
  color: var(--green);
  background: transparent;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.portal-button strong {
  font-size: 10px;
  line-height: 1;
}

.portal-button span {
  padding: 0;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
}

.header-system-links {
  display: flex;
  align-items: stretch;
}

.booking-link {
  padding: 10px 14px;
  border: 1px solid var(--green);
  border-left: 0;
  color: #fff;
  background: var(--green);
  font-size: 9px;
  font-weight: 700;
  text-transform: var(--theme-button-case);
}

.hero {
  position: relative;
  min-height: 710px;
  padding-top: 172px;
  background:
    linear-gradient(rgba(23, 61, 104, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 61, 104, .035) 1px, transparent 1px),
    #f7f6f2;
  background-size: 42px 42px;
}

.hero-art {
  position: absolute;
  inset: 0 0 0 41%;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(247,246,242,.86) 12%, rgba(247,246,242,.12) 43%, transparent 67%),
    linear-gradient(0deg, rgba(16,43,75,.2), transparent 45%),
    url("assets/images/research-hero.png") 58% center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 60%, rgba(16,43,75,.08));
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 485px;
  grid-template-columns: 1fr;
}

.hero-content {
  max-width: 820px;
}

.academic-kicker,
.section-number {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.recruitment-status {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.65);
  color: #fff;
  background: #102b4b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-content > p.recruitment-status {
  color: #fff;
}

.recruitment-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e3b95f;
  box-shadow: 0 0 0 3px rgba(227,185,95,.18);
}

.hero h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -.025em;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(43px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.07;
}

.hero-abstract {
  max-width: 720px !important;
  margin-top: 27px;
  padding-left: 20px;
  border-left: 3px solid var(--lime);
  color: #4f5967 !important;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.hero-microcopy {
  margin-top: 19px;
  color: #58616d !important;
  font-size: 9px !important;
  letter-spacing: .03em;
}

.button {
  border-radius: 0;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.button-primary {
  background: var(--green);
}

.button-quiet {
  border-color: #aeb5bd;
  background: transparent;
}

.why-join-section,
.projects-section,
.faq-section {
  padding: 95px 5vw;
}

.why-join-section {
  background: #fff;
}

.benefit-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.benefit-grid article {
  min-height: 245px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit-grid b {
  color: var(--lime);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}

.benefit-grid h3 {
  margin: 48px 0 12px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
}

.benefit-grid p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12px;
  line-height: 1.65;
}

.candidate-strip {
  max-width: 1350px;
  margin: 24px auto 0;
  padding: 18px 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-left: 4px solid var(--lime);
  background: #edf1f5;
}

.candidate-strip strong {
  margin-right: auto;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13px;
}

.candidate-strip span {
  padding: 7px 9px;
  border: 1px solid #c3cad1;
  color: #4f5a66;
  background: #fff;
  font-size: 8px;
}

.projects-section {
  color: #fff;
  background: var(--green-dark);
}

.projects-section .section-heading {
  border-color: rgba(255,255,255,.35);
}

.projects-section .section-heading h2 {
  color: #fff;
}

.projects-section .section-heading > p {
  color: #bec9d4;
}

.project-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  min-height: 255px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.045);
  transition: .25s;
}

.project-card:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.075);
  transform: translateY(-3px);
}

.project-card > span,
.project-copy > span {
  color: #dfb6bc;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 30px 0 13px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
}

.project-card p {
  color: #c4ced8;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12px;
  line-height: 1.7;
}

.project-card small {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.17);
  color: #9faebb;
  font-size: 8px;
}

.featured-project {
  min-height: 390px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column: span 2;
  background: #fff;
  color: var(--ink);
}

.project-image {
  min-height: 390px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-copy {
  padding: 42px;
}

.project-copy h3 {
  margin-top: 15px;
  color: var(--green);
  font-size: 30px;
}

.project-copy p {
  color: var(--muted);
}

.project-copy ul {
  padding-left: 16px;
  color: #545e69;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 11px;
  line-height: 1.8;
}

.project-copy a {
  display: inline-block;
  margin-top: 15px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.availability-note {
  max-width: 1350px;
  margin: 22px auto 0;
  color: #aebbc7;
  font-size: 8px;
}

.availability-note strong {
  color: #fff;
}

.affiliation {
  position: relative;
  z-index: 2;
  padding: 0 22px;
  background: rgba(247,246,242,.92);
  height: 64px;
  margin-top: 0;
  justify-content: space-between;
  border-top: 1px solid #bfc3c4;
  font-size: 9px;
}

.research-section,
.members-section,
.publications-section,
.contact-section,
.approach-section {
  padding: 95px 5vw;
}

.section-heading {
  align-items: start;
  border-top: 1px solid #aeb3b8;
  padding-top: 23px;
}

.section-heading h2 {
  margin-top: 0;
  font-size: clamp(37px, 4vw, 53px);
  font-weight: 600;
}

.section-heading > p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
}

.research-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.research-card,
.research-card:nth-child(4),
.research-card:nth-child(5) {
  min-height: 305px;
  padding: 30px;
  grid-column: span 1;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.research-thumb {
  height: 92px;
  margin: -30px -30px 24px;
  border-bottom: 1px solid var(--line);
  background-color: #dce3e8;
  background-image:
    linear-gradient(90deg, rgba(16,43,75,.82), rgba(16,43,75,.12)),
    url("assets/images/polymer-electrolyte.png");
  background-size: cover;
}

.research-thumb-1 { background-position: center 42%; filter: saturate(.82); }
.research-thumb-2 { background-position: center 55%; filter: hue-rotate(-8deg) saturate(.8); }
.research-thumb-3 { background-position: 72% 35%; filter: hue-rotate(18deg) saturate(.72); }
.research-thumb-4 { background-position: 25% 52%; filter: grayscale(.35) sepia(.08); }
.research-thumb-5 { background-position: 55% 72%; filter: hue-rotate(28deg) saturate(.62); }

.research-card:last-child {
  grid-column: span 2;
  min-height: 245px;
}

.research-card:hover {
  transform: none;
  box-shadow: inset 5px 0 var(--lime);
}

.research-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b9198;
  font-size: 9px;
}

.research-index b {
  color: #c2c5c8;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 38px;
  font-weight: 500;
}

.research-card h3 {
  max-width: none;
  margin: 38px 0 13px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}

.research-card p {
  max-width: 560px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13px;
  line-height: 1.7;
}

.research-card ul {
  margin: 5px 0 22px;
  padding-left: 16px;
  color: #555f6b;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 11px;
  line-height: 1.7;
}

.research-card small {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #e2e3e1;
  color: var(--lime);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.approach-section {
  color: #fff;
  background: var(--green-dark);
}

.highlights-section {
  max-width: 1350px;
  margin: 0 auto;
  padding: 80px 0 95px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}

.highlight-tag {
  display: inline-block;
  padding: 5px 8px;
  color: #fff;
  background: var(--lime);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.highlight-lead h2 {
  margin: 18px 0;
  font-size: 38px;
  font-weight: 600;
}

.highlight-lead > p:not(.section-number) {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
  line-height: 1.75;
}

.highlight-lead a,
.update-copy a {
  display: inline-block;
  margin-top: 15px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.highlight-figure {
  min-height: 350px;
  padding: 0;
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #b8c0c8;
  background: #edf1f4;
}

.highlight-figure img {
  width: 100%;
  height: 350px;
  display: block;
  object-fit: cover;
}

.highlight-figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  background: linear-gradient(transparent, rgba(8,27,48,.92));
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13px;
}

.highlight-figure figcaption small {
  color: #d0d9e1;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 8px;
  text-transform: uppercase;
}

.approach-section .section-heading {
  border-color: rgba(255,255,255,.35);
}

.approach-section h2 {
  color: #fff;
}

.approach-flow {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.35);
}

.approach-flow div {
  min-height: 190px;
  padding: 25px;
  border-right: 1px solid rgba(255,255,255,.2);
}

.approach-flow b,
.approach-flow strong,
.approach-flow span {
  display: block;
}

.approach-flow b {
  color: #d7a8ae;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
}

.approach-flow strong {
  margin: 45px 0 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
}

.approach-flow span {
  color: #bdc7d1;
  font-size: 10px;
  line-height: 1.6;
}

.members-section {
  background: #f0f0ec;
}

.group-members-section {
  padding: 95px 5vw;
  background: #fff;
}

.pi-profile {
  max-width: 1350px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 330px 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.pi-photo {
  min-height: 350px;
  display: grid;
  place-items: center;
  color: #8c9299;
  background:
    linear-gradient(135deg, transparent 49.7%, #c9ced3 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, #c9ced3 50%, transparent 50.3%),
    #e6e9eb;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
}

.pi-copy {
  padding: 45px 55px;
}

.role-label {
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pi-copy h3 {
  margin: 8px 0 18px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 34px;
}

.pi-copy > p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13px;
  line-height: 1.6;
}

.pi-copy .pi-bio {
  max-width: 700px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.student-heading {
  max-width: 1350px;
  margin: 0 auto 18px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}

.profile-links {
  margin-top: 28px;
  display: flex;
  gap: 25px;
}

.profile-links a {
  color: var(--green);
  border-bottom: 1px solid var(--green);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.member-grid {
  grid-template-columns: repeat(3, 1fr);
}

.member-card {
  border-top: 3px solid var(--green);
  border-radius: 0;
}

.member-image {
  height: 155px;
  background: #e3e6e7 !important;
}

.group-members-section .member-image {
  height: 320px;
  place-items: center;
  padding: 12px;
  background: linear-gradient(145deg, #f6f8f8, #e3e8ea) !important;
}

.group-members-section .member-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.member-image .portrait {
  width: 82px;
  height: 82px;
  align-self: center;
  border: 1px solid #aeb5bc;
  border-radius: 50%;
  color: #78828d;
  background: transparent;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
}

.member-info h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
}

.member-info p {
  color: var(--lime);
  font-size: 9px;
  text-transform: uppercase;
}

.group-members-section .member-info {
  min-height: 145px;
}

.group-members-section .member-info a {
  margin-top: 13px;
  display: inline-block;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  font-size: 8px;
}

.members-empty {
  max-width: 1350px;
  margin: auto;
  padding: 35px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.demo-note,
.publication-notice {
  max-width: 1350px;
  margin: 17px auto 0;
  color: #737980;
  font-size: 9px;
}

.publication-notice {
  padding: 12px 15px;
  border-left: 3px solid #b68a40;
  background: #f7f0df;
}

.publication-notice strong {
  margin-right: 7px;
  color: #735319;
}

.publication-list {
  padding-left: 0;
  list-style: none;
  border-top-color: var(--ink);
}

.publication {
  padding: 28px 6px;
  grid-template-columns: 70px 1fr;
  align-items: start;
}

.publication .year {
  color: var(--lime);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
}

.publication h3 {
  margin: 5px 0 8px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.publication p,
.publication .authors {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12px;
  line-height: 1.55;
}

.scholarship-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #fff;
  background: var(--green-dark);
}

.scholarship-cell {
  min-height: 190px;
  padding: 32px 5vw 28px 28px;
  border-right: 1px solid rgba(255,255,255,.18);
}

.scholarship-cell span,
.scholarship-cell strong,
.scholarship-cell small {
  display: block;
}

.scholarship-cell span {
  color: #aebbc7;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scholarship-cell strong {
  margin: 38px 0 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 21px;
}

.scholarship-cell small {
  color: #aebbc7;
  font-size: 9px;
  line-height: 1.5;
}

.updates-section {
  padding: 95px 5vw;
  background: #f0f0ec;
}

.updates-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
}

.update-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--green);
  background: #fff;
}

.update-image {
  min-height: 310px;
}

.scientific-image {
  overflow: hidden;
  background: #dce3e8;
}

.scientific-image img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  display: block;
  object-fit: cover;
  object-position: 47% center;
  filter: saturate(.82) contrast(1.02);
}

.update-copy {
  padding: 33px;
}

.update-copy small,
.update-list small {
  color: var(--lime);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.update-copy h3,
.update-list h3 {
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
}

.update-copy h3 {
  margin: 15px 0;
  font-size: 24px;
}

.update-copy p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12px;
  line-height: 1.7;
}

.update-list {
  border-top: 1px solid var(--ink);
}

.update-list article {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  border-bottom: 1px solid #cfd1ce;
}

.update-list time {
  color: #737b84;
  font-size: 9px;
}

.update-list h3 {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 600;
}

.network-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.network-column {
  padding: 80px max(5vw, calc((100vw - 1350px) / 2));
  color: #fff;
  background: var(--green);
}

.network-column.facilities {
  color: var(--ink);
  background: #fff;
}

.network-column h2 {
  margin: 0 0 17px;
  font-size: 39px;
}

.network-column > p:not(.section-number) {
  max-width: 550px;
  color: #c8d2dc;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13px;
  line-height: 1.7;
}

.network-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.35);
}

.network-list span {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  font-size: 10px;
}

.facilities ul {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.facilities li {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.facilities li span {
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
}

.facilities li small {
  color: var(--muted);
  font-size: 8px;
}

.publication .authors {
  color: #333c49;
}

.opportunities-card {
  min-height: 280px;
  border-radius: 0;
  background: var(--green);
}

.application-steps {
  max-width: 1350px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.application-steps article {
  min-height: 220px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.application-steps b {
  color: var(--lime);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 25px;
}

.application-steps h3 {
  margin: 36px 0 10px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
}

.application-steps p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 11px;
  line-height: 1.65;
}

.application-pathways {
  max-width: 1350px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.application-pathways article {
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.application-pathways article > p {
  color: var(--lime);
  font-size: var(--theme-label-size);
  font-weight: 700;
  text-transform: var(--theme-label-case);
}

.application-pathways h3 {
  margin: 35px 0 12px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: var(--theme-card-size);
}

.application-pathways span {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.65;
}

.application-pathways a {
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  font-size: 9px;
  font-weight: 700;
  text-transform: var(--theme-button-case);
}

.faq-section {
  background: #f0f0ec;
}

.faq-list {
  max-width: 1000px;
  margin: auto;
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid #c9cbc8;
}

.faq-list summary {
  padding: 22px 45px 22px 4px;
  position: relative;
  cursor: pointer;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  list-style: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 20px;
  color: var(--lime);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 19px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  max-width: 780px;
  margin: -4px 0 22px;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12px;
  line-height: 1.7;
}

.opportunities-card::after {
  display: none;
}

.opportunities-card h2 {
  font-size: clamp(34px, 4vw, 49px);
}

.public-portal .opportunities-card h2 {
  color: #fff;
}

.public-portal .opportunities-card .section-number.light {
  color: #e7b6bd;
}

.button-light {
  color: var(--green);
  background: #fff;
}

.contact-section h2 {
  font-size: 43px;
}

footer {
  color: #d3dce5;
  background: var(--green-dark);
}

.ukm-footer {
  padding: 0;
  display: block;
  color: #fff;
  background: #061c82;
  font-size: 12px;
}

.ukm-footer-main {
  padding: 60px 8vw 54px;
  display: grid;
  grid-template-columns: minmax(300px, .62fr) minmax(520px, 1.2fr) minmax(340px, .78fr);
  gap: 48px;
  align-items: center;
  color: var(--green);
  background: #fff;
}

.ukm-footer-identity {
  align-self: center;
}
.footer-contact-details { margin-top: 22px; display: grid; gap: 10px; color: #25314c; font-size: 13px; line-height: 1.6; font-style: normal; scroll-margin-top: 110px; }
.footer-contact-details div { display: grid; gap: 2px; overflow-wrap: anywhere; }
.footer-contact-details small { color: #4f5c70; }
.footer-contact-details a { color: #0032a0; text-decoration: underline; }

.ukm-footer-main h2 {
  margin: 0 0 18px;
  color: #0032a0;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ukm-footer-main p {
  margin: 6px 0 0;
  color: #25314c;
  font-size: 15px;
  line-height: 1.45;
}

.ukm-footer-main p + p {
  color: #4f5c70;
  font-size: 13px;
}

.ukm-footer-main nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 14px 44px;
  color: #172238;
  font-size: 16px;
  line-height: 1.45;
}

.ukm-footer-main nav a:hover {
  color: #0032a0;
}

.ukm-footer-badge {
  width: min(560px, 100%);
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 10px;
}

.ukm-footer-badge > img {
  width: 100%;
  height: 58px;
  max-height: 58px;
  display: block;
  object-fit: contain;
}

.ukm-footer-badge span {
  color: #0032a0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ukm-footer-sdg {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ukm-footer-sdg-logo {
  width: 42%;
  height: 58px;
  max-height: 58px;
  display: block;
  object-fit: contain;
}

.ukm-footer-sdg-icons {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
}

.ukm-footer-sdg-icons img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.ukm-footer-bottom {
  padding: 18px 8vw 22px;
  display: grid;
  gap: 6px;
  justify-items: center;
  color: #fff;
  background: #061c82;
  text-align: center;
  line-height: 1.6;
}

.ukm-footer-bottom strong {
  font-weight: 700;
}

.footer-admin-link {
  margin-left: auto;
  color: #9eafbe;
  border-bottom: 1px solid #71879a;
  font-size: 8px;
  font-weight: 700;
  text-transform: var(--theme-button-case);
}

.login-modal {
  border-radius: 0;
  border-top: 5px solid var(--green);
}

.login-mark,
.login-mark.small {
  border-radius: 0;
  color: #fff;
  background: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
}

.login-modal h2,
.dashboard-header h1,
.panel-head h2 {
  font-family: "Source Serif 4", Georgia, serif;
}

.sidebar {
  background: var(--green-dark);
}

.sidebar nav button {
  border-radius: 0;
}

.sidebar nav button:hover,
.sidebar nav button.active {
  background: #1d456f;
}

.sidebar nav button.active {
  box-shadow: inset 3px 0 var(--red);
}

.sidebar nav button span {
  font-size: 8px;
}

.metric-card,
.panel,
.icon-button,
.search-field,
.filter-button,
.status {
  border-radius: 0;
}

.metric-icon {
  border-radius: 0;
  font-size: 8px;
}

.metric-value {
  font-family: "Source Serif 4", Georgia, serif;
}

@media (max-width: 1000px) {
  .site-header {
    top: 0;
  }
  .header-system-links { margin-left: auto; }
  .main-nav {
    top: 91px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    inset: 0;
    opacity: .28;
  }
  .hero-content {
    max-width: 760px;
  }
  .approach-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlights-section {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .scholarship-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .updates-grid {
    grid-template-columns: 1fr;
  }
  .benefit-grid,
  .application-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .candidate-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .candidate-strip strong {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .institution-bar {
    display: none;
    padding: 0 18px;
  }
  .institution-bar span:first-child {
    display: none;
  }
  .site-header {
    top: 0;
    height: 76px;
  }
  .public-portal { padding-top: 76px; }
  .brand strong {
    font-size: 13px;
  }
  .header-system-links { display: none; }
  .brand-seal {
    width: 38px;
    height: 38px;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .hero {
    padding-top: 68px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero-art {
    background-position: 67% center;
    opacity: .19;
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .research-card:last-child {
    grid-column: span 1;
  }
  .approach-flow,
  .pi-profile,
  .highlights-section,
  .network-section {
    grid-template-columns: 1fr;
  }
  .pi-photo {
    min-height: 250px;
  }
  .pi-copy {
    padding: 30px 25px;
  }
  .member-grid {
    grid-template-columns: 1fr;
  }
  .benefit-grid,
  .project-grid,
  .application-steps,
  .featured-project {
    grid-template-columns: 1fr;
  }
  .featured-project {
    grid-column: span 1;
  }
  .project-image {
    min-height: 260px;
  }
  .project-copy {
    padding: 30px 24px;
  }
  .candidate-strip {
    display: block;
  }
  .candidate-strip span {
    margin: 7px 5px 0 0;
    display: inline-block;
  }
  .highlight-figure {
    min-height: 300px;
  }
  .scholarship-section {
    grid-template-columns: 1fr;
  }
  .update-feature {
    grid-template-columns: 1fr;
  }
  .network-column {
    padding: 60px 20px;
  }
}

/* Final responsive overrides for homepage summaries */
.page-section { scroll-margin-top: 125px; }
.research-section .research-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1000px) {
  .research-section .research-grid { grid-template-columns: repeat(2, 1fr); }
  .application-pathways { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .research-section .research-grid { grid-template-columns: 1fr; }
  .application-pathways { grid-template-columns: 1fr; }
}

/* Official group website modules */
.news-section,
.collaborators-section {
  padding: 95px 5vw;
}

.news-section {
  background: var(--theme-soft-surface);
}

.collaborators-section {
  background: var(--white);
}

.publication-list .publication a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--green);
  background: #fff;
  font-weight: 800;
}

.publication-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.news-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card,
.news-list-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.news-card img,
.news-placeholder {
  width: 100%;
  height: 210px;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: var(--green);
  background: linear-gradient(135deg, #e8edf3, #f7f6f2);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
}

.news-card > div:last-child,
.news-list-card > div:last-child {
  padding: 26px;
}

.news-card span,
.news-list-card span {
  color: var(--lime);
  font-size: var(--theme-label-size);
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: var(--theme-label-case);
}

.news-card h3,
.news-list-card h2 {
  margin: 18px 0 10px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: var(--theme-card-size);
  line-height: 1.2;
}

.news-card p,
.news-list-card p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.7;
}

.collaborator-logo-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.collaborator-logo-grid a {
  min-height: 145px;
  padding: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.collaborator-logo-grid a.disabled {
  pointer-events: none;
}

.collaborator-logo-grid img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
  filter: grayscale(.1);
}

.open-service-section {
  padding: 0 5vw 95px;
  background: var(--white);
}

.open-service-card {
  max-width: 1350px;
  min-height: 320px;
  margin: auto;
  padding: 62px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16,43,75,.98), rgba(23,61,104,.92)),
    radial-gradient(circle at 80% 20%, rgba(159,35,51,.22), transparent 30%);
}

.open-service-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(35px, 4vw, 54px);
}

.open-service-copy p {
  color: #d6e0e8;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.75;
}

.section-empty {
  max-width: 1350px;
  margin: auto;
  padding: 28px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--white);
}

.publications-page,
.news-page,
.open-service-page {
  padding-top: 0;
  min-height: calc(100vh - 100px);
  background: var(--paper);
}

.publication-browser,
.news-browser {
  max-width: 1350px;
  margin: auto;
  padding: 55px 0 100px;
}

.publication-row {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 90px 1fr 130px;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.publication-row > span {
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

.publication-row h2 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 24px;
}

.publication-row p,
.publication-row small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.65;
}

.publication-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.metric-badge {
  min-height: 18px;
  padding: 2px 10px 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #000;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.metric-badge.quartile.q1 {
  background: #ff9999;
}

.metric-badge.quartile.q2 {
  background: #86dad1;
}

.metric-badge.quartile.q3,
.metric-badge.impact {
  background: #ffe78f;
}

.metric-badge.quartile.q4 {
  background: #ffd4a9;
}

.metric-badge.quartile:not(.q1):not(.q2):not(.q3):not(.q4) {
  background: #e8edf2;
}

.publication-row a {
  justify-self: end;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  text-transform: var(--theme-button-case);
}

.research-achievements-panel {
  display: grid;
  gap: 28px;
}

.achievement-panel-head {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  border-top: 4px solid var(--green);
  background: #fff;
}

.achievement-panel-head h2 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 31px;
}

.achievement-panel-head p {
  margin: 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.65;
}

.achievement-tabs {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.achievement-tabs button {
  padding: 13px 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  cursor: pointer;
  font-size: var(--theme-label-size);
  font-weight: 900;
  text-transform: var(--theme-button-case);
}

.achievement-tabs button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.achievement-tabs.compact {
  gap: 6px;
}

.achievement-tabs.compact button {
  padding: 9px 11px;
  font-size: 9px;
}

.honour-category-list,
.grant-category-list {
  display: grid;
  gap: 26px;
}

.honour-category,
.grant-category {
  display: grid;
  gap: 14px;
}

.honour-category h3,
.grant-category h3 {
  margin: 0;
  color: var(--green);
  font-size: 22px;
}

.grant-overview-title {
  margin: 0;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 27px;
}

.honour-table-wrap,
.grant-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
}

.honour-table,
.grant-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 0;
}

.honour-table th,
.grant-table th {
  padding: 16px 18px;
  background: var(--green);
  color: #fff;
  font-size: var(--theme-label-size);
  text-align: left;
  text-transform: var(--theme-label-case);
}

.honour-table td,
.grant-table td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--green);
  vertical-align: top;
  line-height: 1.55;
}

.honour-table th:first-child,
.honour-table td:first-child {
  width: 115px;
}

.honour-table td strong,
.honour-table td span {
  display: block;
}

.honour-table td strong {
  color: var(--red);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.honour-table td span {
  margin-top: 6px;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
}

.honour-table h4 {
  margin: 0 0 7px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
}

.honour-table p {
  margin: 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
}

.grant-table th:first-child,
.grant-table td:first-child {
  width: 8%;
  white-space: nowrap;
  font-weight: 800;
}

.grant-table th:nth-child(2),
.grant-table td:nth-child(2) {
  width: 34%;
}

.grant-table th:nth-child(3),
.grant-table td:nth-child(3) {
  width: 16%;
  white-space: nowrap;
  font-weight: 800;
}

.grant-table th:nth-child(4),
.grant-table td:nth-child(4) {
  width: 25%;
}

.grant-table th:nth-child(5),
.grant-table td:nth-child(5) {
  width: 17%;
}

.news-browser {
  display: grid;
  gap: 18px;
}

.news-list-card {
  display: grid;
  grid-template-columns: 310px 1fr;
}

.news-list-card img,
.news-list-card .news-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.open-service-hero {
  padding-top: 72px;
  padding-bottom: 64px;
  background:
    linear-gradient(110deg, rgba(16,43,75,.98) 0%, rgba(23,61,104,.92) 48%, rgba(159,35,51,.86) 100%),
    url("assets/images/research-hero.png") center/cover;
}

.open-service-hero > div {
  display: grid;
  gap: 16px;
}

.open-service-hero span {
  width: fit-content;
  padding: 7px 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.42);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.open-service-hero h1 {
  max-width: 820px;
  margin: 0;
}

.open-service-hero p {
  max-width: 760px;
  margin: 0;
  color: #d7e1ea;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
}

.open-service-hero .button {
  width: fit-content;
  margin-top: 10px;
  background: #fff;
  color: var(--green-dark);
}

.open-service-catalogue,
.open-service-workflow {
  max-width: 1350px;
  margin: auto;
  padding: 62px 0 0;
}

.open-service-workflow {
  padding-bottom: 100px;
}

.open-service-heading,
.open-service-workflow-title {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.open-service-heading h2,
.open-service-workflow-title h2 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: clamp(32px, 3.5vw, 48px);
}

.open-service-heading p,
.open-service-workflow-title p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.7;
}

.open-service-heading strong {
  padding: 11px 15px;
  color: #fff;
  background: var(--green);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.open-service-search-panel {
  min-height: 126px;
  padding: 24px 0 34px;
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(220px, 270px);
  gap: 34px;
  align-items: start;
}

.open-service-search-panel label {
  color: #5b6672;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.open-service-search-panel input {
  width: 100%;
  margin-top: 14px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid #bfc8d1;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  text-transform: none;
}

.open-service-search-panel input:focus {
  border-color: var(--green);
}

.open-service-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #fff;
}

.open-service-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  background: #fff;
  font-family: "Libre Franklin", Arial, sans-serif;
}

.open-service-table th {
  padding: 18px 18px;
  color: #fff;
  background: #0f6fb4;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.open-service-table td {
  padding: 20px 18px;
  border-bottom: 1px solid #e2e6ea;
  color: #071629;
  font-size: 14px;
  line-height: 1.7;
  vertical-align: middle;
}

.open-service-table td:nth-child(1) {
  width: 7%;
  white-space: nowrap;
}

.open-service-table td:nth-child(2) {
  width: 20%;
}

.open-service-table td:nth-child(3) {
  width: 22%;
}

.open-service-table td:nth-child(4) {
  width: auto;
  min-width: 360px;
}

.open-service-table th:nth-child(5),
.open-service-table th:nth-child(6),
.open-service-table td:nth-child(5),
.open-service-table td:nth-child(6) {
  width: 9ch;
  max-width: 9ch;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  white-space: nowrap;
}

.open-service-table strong {
  font-weight: 500;
}

.open-service-empty {
  margin: 0;
  padding: 26px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}

.open-service-quotation-note {
  padding: 18px 22px;
  color: #266f96;
  background: #d7edf8;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.open-service-rate-card {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.open-service-unified-catalogue {
  margin-top: 0;
}

.open-service-rate-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f7fafc;
}

.open-service-rate-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.open-service-rate-controls input,
.open-service-rate-controls select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.open-service-unified-table td:first-child {
  color: var(--muted);
  font-size: 13px;
}

.open-service-unified-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.open-service-unified-table th:nth-child(1),
.open-service-unified-table td:nth-child(1) {
  width: 18%;
}

.open-service-unified-table th:nth-child(2),
.open-service-unified-table td:nth-child(2) {
  width: 8%;
  white-space: nowrap;
}

.open-service-unified-table th:nth-child(3),
.open-service-unified-table td:nth-child(3) {
  width: 37%;
  min-width: 0;
}

.open-service-unified-table th:nth-child(4),
.open-service-unified-table td:nth-child(4) {
  width: 10%;
  min-width: 0;
}

.open-service-unified-table td:nth-child(n+4) {
  white-space: normal;
}

.open-service-unified-table th:nth-child(5),
.open-service-unified-table th:nth-child(6),
.open-service-unified-table td:nth-child(5),
.open-service-unified-table td:nth-child(6) {
  width: 13.5%;
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
  text-align: left;
  white-space: normal;
}

/* Keep the service catalogue compact: roughly ten records stay visible while
   longer directories scroll inside the catalogue instead of extending the page. */
.open-service-unified-catalogue .open-service-table-wrap {
  height: 760px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.open-service-unified-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.open-service-rate-group + .open-service-rate-group {
  margin-top: 28px;
}

.open-service-rate-group h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.open-service-rate-table td:nth-child(2) {
  min-width: 360px;
}

.open-service-rate-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.open-service-rate-table th:nth-child(n+3),
.open-service-rate-table td:nth-child(n+3) {
  white-space: nowrap;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 4px solid var(--green);
  border-left: 1px solid var(--line);
  background: #fff;
}

.service-card {
  min-height: 520px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.service-card-top span {
  color: var(--lime);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 31px;
  font-weight: 700;
}

.service-card-top b {
  color: #347153;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 34px 0 13px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 27px;
  line-height: 1.1;
}

.service-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.65;
}

.service-card dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.service-card dl div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.service-card dt {
  margin-bottom: 5px;
  color: #7c8791;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.55;
}

.service-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  font-size: 9px;
  font-weight: 900;
  text-transform: var(--theme-button-case);
}

.open-service-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.open-service-steps article {
  padding: 28px;
  background: #fff;
  border-top: 4px solid var(--green);
}

.open-service-steps span {
  color: var(--lime);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 29px;
  font-weight: 700;
}

.open-service-steps h3 {
  margin: 42px 0 12px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
}

.open-service-steps p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.7;
}

.open-service-gallery {
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.open-service-gallery-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.open-service-gallery-heading span,
.open-service-detail-hero span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.open-service-gallery-heading h2 {
  margin: 9px 0 10px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(31px, 3.2vw, 44px);
  line-height: 1.08;
}

.open-service-gallery-heading p {
  margin: 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.7;
}

.open-service-photo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.open-service-photo-card {
  display: block;
  padding: 12px;
  color: var(--green);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.open-service-photo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 75, 120, .35);
  box-shadow: 0 18px 34px rgba(15, 41, 67, .11);
}

.open-service-photo-card img,
.open-service-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: #e9eef3;
}

.open-service-photo-placeholder {
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 800;
}

.open-service-photo-card strong {
  display: block;
  min-height: 44px;
  padding: 13px 4px 2px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.15;
}

.open-service-detail-page {
  background: var(--paper);
}

.open-service-detail-hero {
  padding-top: 48px;
  padding-bottom: 50px;
}

.open-service-detail-hero .back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: #c8d6e2;
  border-bottom: 1px solid rgba(255,255,255,.45);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.open-service-detail-layout {
  width: min(1350px, 86vw);
  margin: 70px auto 100px;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.05fr) minmax(280px, .72fr);
  gap: 28px;
  align-items: start;
}

.instrument-detail-photo {
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.instrument-detail-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.instrument-detail-photo figcaption {
  padding: 14px 4px 2px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.instrument-detail-copy {
  padding: 38px;
  background: #fff;
  border-top: 4px solid var(--green);
}

.instrument-detail-copy section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.instrument-detail-copy h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
  line-height: 1.12;
}

.instrument-detail-copy p {
  margin: 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
}

.instrument-detail-panel {
  padding: 30px;
  background: var(--green);
  color: #fff;
}

.instrument-detail-panel .pathway-label {
  color: rgba(255,255,255,.72);
}

.instrument-detail-panel dl {
  margin: 24px 0 28px;
}

.instrument-detail-panel dl div {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.18);
}

.instrument-detail-panel dt {
  margin-bottom: 5px;
  color: rgba(255,255,255,.72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.instrument-detail-panel dd {
  margin: 0;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.5;
}

.instrument-detail-panel .button {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--green);
}

.main-nav a.open-service-nav {
  margin: 0;
  padding: 37px 0;
  color: #8f1d2d;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.main-nav a.open-service-nav::after {
  display: block;
  background: #8f1d2d;
}

.main-nav a.open-service-nav:hover {
  color: #8f1d2d;
  background: transparent;
}

@media (max-width: 1000px) {
  .main-nav a.open-service-nav {
    padding: 11px;
  }
}

.research-environment-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  border-top: 3px solid var(--green);
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(16,43,75,.08);
}

.research-environment-photo {
  min-height: 430px;
  overflow: hidden;
  background: #dfe6ec;
}

.research-environment-photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(1.02);
}

.research-environment-copy {
  padding: 46px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.research-environment-copy > span {
  color: var(--accent);
  font-size: var(--theme-label-size);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: var(--theme-label-case);
}

.research-environment-copy p {
  margin: 20px 0 34px;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15px;
  line-height: 1.75;
}

.research-environment-copy h3 {
  margin: 0 0 16px;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 27px;
}

.research-environment-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.research-environment-copy li {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.research-environment-copy li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(201,240,91,.2);
}

.section-action {
  max-width: 1350px;
  margin: 28px auto 0;
}

.research-browser {
  max-width: 1350px;
  margin: auto;
  padding: 55px 0 100px;
}

.research-tabs,
.publication-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.research-tabs {
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.research-tabs button,
.publication-category-tabs button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  font-weight: 800;
}

.research-tabs button {
  margin-bottom: -1px;
  padding: 15px 22px;
  border-bottom-color: transparent;
  font-size: 11px;
  text-transform: var(--theme-button-case);
}

.research-tabs button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.publication-category-tabs {
  margin-bottom: 20px;
}

.publication-category-tabs button {
  padding: 9px 13px;
  font-size: 10px;
}

.publication-category-tabs button:not(.active) {
  color: var(--green);
  background: #fff;
}

.publication-category-tabs button:not(.active):hover {
  color: var(--green);
  border-color: var(--green);
  background: #f2f6f8;
}

.publication-category-tabs button.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.publication-browser.in-research {
  padding: 0;
}

.apply-faq-panel {
  max-width: 1200px;
  margin: 35px auto 90px;
  padding: 38px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  background: #fff;
}

.apply-faq-panel h2 {
  margin: 10px 0 0;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 34px;
  letter-spacing: -.8px;
}

@media (max-width: 1000px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .collaborator-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .open-service-card,
  .news-list-card { grid-template-columns: 1fr; }
  .service-card-grid,
  .open-service-steps,
  .open-service-detail-layout { grid-template-columns: 1fr; }
  .publication-browser,
  .news-browser,
  .open-service-catalogue,
  .open-service-workflow,
  .research-browser { margin-left: 5vw; margin-right: 5vw; }
  .open-service-heading,
  .open-service-workflow-title,
  .open-service-search-panel,
  .achievement-panel-head { grid-template-columns: 1fr; }
  .achievement-panel-head { display: grid; }
  .open-service-photo-wall { grid-template-columns: repeat(2, 1fr); }
  .research-environment-grid,
  .apply-faq-panel { grid-template-columns: 1fr; }
  .research-environment-copy { padding: 34px; }
}

@media (max-width: 700px) {
  .news-grid,
  .collaborator-logo-grid,
  .publication-row { grid-template-columns: 1fr; }
  .publication-actions { align-items: flex-start; flex-direction: column; }
  .open-service-card { padding: 38px 25px; gap: 20px; }
  .open-service-photo-wall { grid-template-columns: 1fr; }
  .instrument-detail-copy,
  .instrument-detail-panel { padding: 25px; }
  .publication-row a { justify-self: start; }
  .research-environment-photo,
  .research-environment-photo img { min-height: 300px; }
  .research-environment-copy,
  .apply-faq-panel { padding: 25px; }
  .research-tabs button { flex: 1; }
}

/* Portal v2 rebuild */
.portal-v2 {
  --v2-max: 1320px;
  --v2-blue: var(--green);
  --v2-blue-dark: var(--green-dark);
  --v2-red: var(--accent);
  --v2-paper: #f6f5f1;
  background: var(--v2-paper);
}

.portal-v2 main > section,
.portal-v2 .v2-section,
.portal-v2 .v2-final-grid {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.portal-v2 .v2-hero {
  content-visibility: visible;
}

.portal-v2 .site-header {
  position: fixed;
  top: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}

.v2-hero {
  position: relative;
  min-height: 760px;
  padding: 150px 5vw 90px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--v2-paper);
}

.v2-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .96;
}

.v2-hero-media { width: 100%; height: 100%; display: block; object-fit: cover; }
.v2-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,246,242,.97) 0%, rgba(247,246,242,.86) 38%, rgba(247,246,242,.22) 68%); }

.v2-hero::after {
  content: "";
  position: absolute;
  right: 6vw;
  bottom: 58px;
  width: 36vw;
  max-width: 520px;
  height: 1px;
  background: var(--line);
}

.v2-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--v2-max);
  width: 100%;
  margin: auto;
}

.v2-eyebrow {
  margin: 0 0 18px;
  color: var(--v2-red);
  font-size: var(--theme-label-size);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: var(--theme-label-case);
}

.v2-hero h1 {
  max-width: 810px;
  margin: 0;
  color: var(--v2-blue-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(48px, 6vw, 86px);
  letter-spacing: -2.8px;
  line-height: .98;
}

.v2-hero-inner > p:not(.v2-eyebrow) {
  max-width: 630px;
  margin: 30px 0 0;
  color: #47566a;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.78;
}

.v2-keywords {
  max-width: 780px;
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.v2-keywords span {
  padding: 8px 11px;
  border: 1px solid rgba(23,61,104,.2);
  background: rgba(255,255,255,.7);
  color: var(--v2-blue);
  font-size: 11px;
  font-weight: 800;
}

.v2-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.v2-primary,
.v2-secondary,
.v2-section-head a,
.v2-join-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: var(--theme-button-case);
}

.v2-primary {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: var(--v2-blue);
}

.v2-primary.light {
  color: var(--v2-blue-dark);
  background: #fff;
}

.v2-secondary {
  min-height: 48px;
  padding: 0 22px;
  color: var(--v2-blue);
  border: 1px solid var(--v2-blue);
  background: rgba(255,255,255,.45);
}

.v2-section {
  max-width: var(--v2-max);
  margin: 0 auto;
  padding: 44px 0;
}

.v2-section + .v2-section {
  position: relative;
}

.v2-section + .v2-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--v2-red) 0 74px, var(--line) 74px 100%);
}

.v2-section-head {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.v2-section-head.compact {
  grid-template-columns: 1fr;
}

.v2-section-head h2,
.v2-environment-copy h2,
.v2-pi-card h2,
.v2-open-service h2,
.v2-join-card h2,
.v2-contact-card h2 {
  margin: 0;
  color: var(--v2-blue-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -1.6px;
  line-height: 1.05;
}

.v2-section-head a,
.v2-join-card a {
  color: var(--v2-blue);
  border-bottom: 1px solid currentColor;
}

.v2-head-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.v2-research-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 4px solid var(--v2-blue);
  border-left: 1px solid var(--line);
  background: #fff;
}

.v2-research-card {
  height: 400px;
  padding: 30px 25px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: .25s ease;
}

.v2-research-card:hover {
  transform: translateY(-6px);
  background: #fbfcf8;
  box-shadow: 0 22px 55px rgba(23,61,104,.1);
}

.v2-research-card span {
  min-height: 44px;
  display: block;
  color: var(--v2-red);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.v2-research-card h3 {
  min-height: 98px;
  margin: 24px 0 18px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--v2-blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(23px, 1.55vw, 27px);
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.v2-research-card p {
  min-height: 136px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.v2-environment-copy p,
.v2-pi-card p,
.v2-news-grid p,
.v2-open-service p,
.v2-join-card p,
.v2-contact-card p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.75;
}

.v2-environment-section {
  padding-top: 44px;
}

.v2-environment {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
}

.v2-environment-image {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #dfe6ec;
}

.v2-environment-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
  animation: v2FadeIn .55s ease;
}

.v2-environment-dots {
  position: absolute;
  left: 24px;
  bottom: 22px;
  padding: 9px 11px;
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}

.v2-environment-dots button,
.v2-slide-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #c5ced8;
}

.v2-environment-dots button.active,
.v2-slide-dots button.active {
  background: var(--v2-red);
}

.v2-environment-copy {
  padding: 55px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 4px solid var(--v2-blue);
}

.v2-environment-copy h3 {
  margin: 0 0 22px;
  color: var(--v2-blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 34px;
}

.v2-environment-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.v2-environment-copy li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.v2-environment-service {
  align-self: flex-end;
  margin-top: auto;
  padding: 14px 20px;
  color: #fff;
  background: var(--v2-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: var(--theme-button-case);
}

.v2-environment-service:hover {
  background: var(--v2-blue-dark);
}

.v2-updates-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}
.v2-updates-layout.single-column { grid-template-columns: minmax(0,1fr); }

.v2-news-row {
  grid-column: 1 / -1;
  background: #fff;
  border-top: 4px solid var(--v2-blue);
}

.v2-row-title {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.v2-row-title h3,
.v2-achievement-heading h3,
.v2-publication-column > h3 {
  margin: 0;
  color: var(--v2-blue-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
}

.v2-honours-column,
.v2-publication-column {
  min-height: 100%;
  background: #fff;
  border-top: 4px solid var(--v2-blue);
}

.v2-achievement-heading,
.v2-publication-column > h3 {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.v2-achievement-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.v2-news-switch {
  display: flex;
  gap: 7px;
}

.v2-news-switch button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  color: var(--v2-blue);
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.v2-news-switch button.active {
  color: #fff;
  border-color: var(--v2-red);
  background: var(--v2-red);
}

.v2-news-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.v2-news-strip article {
  min-width: 0;
  padding: 0 0 22px;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: .2s ease;
}

.v2-news-strip article:last-child {
  border-right: 0;
}

.v2-news-strip article.active {
  background: #fbfcf8;
  box-shadow: inset 0 -4px 0 var(--v2-red);
}

.v2-news-strip img,
.v2-news-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 210px;
  object-fit: cover;
  background: #e7edf2;
}

.v2-news-placeholder {
  display: grid;
  place-items: center;
  color: #7d8a95;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.v2-news-strip span,
.v2-news-strip h4,
.v2-news-strip p {
  margin-left: 24px;
  margin-right: 24px;
}

.v2-news-strip span {
  display: block;
  margin-top: 20px;
  color: var(--v2-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v2-news-strip h4 {
  margin-top: 12px;
  margin-bottom: 10px;
  color: var(--v2-blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 23px;
  line-height: 1.12;
}

.v2-news-strip p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.7;
}

@keyframes v2FadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.v2-achievement-empty {
  margin: 0 18px 18px;
  padding: 24px 28px;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
}

.v2-achievement-link {
  margin: 18px 28px 26px;
  display: inline-block;
  width: fit-content;
  border-bottom: 1px solid var(--v2-red);
  color: var(--v2-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: var(--theme-button-case);
}

.v2-achievement-table-wrap {
  padding: 16px 18px 0;
  overflow-x: hidden;
}

.v2-achievement-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 0;
  border: 1px solid var(--line);
}

.v2-achievement-table th {
  padding: 10px 12px;
  background: var(--v2-blue);
  color: #fff;
  font-size: 9px;
  text-align: left;
  text-transform: var(--theme-label-case);
}

.v2-achievement-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--v2-blue);
  vertical-align: top;
}

.v2-achievement-table th:first-child,
.v2-achievement-table td:first-child {
  width: 130px;
}

.v2-achievement-table td strong,
.v2-achievement-table td span {
  display: block;
}

.v2-achievement-table td strong {
  color: var(--v2-red);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v2-achievement-table td span,
.v2-achievement-table p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.v2-achievement-table h4 {
  margin: 0;
  color: var(--v2-blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15px;
  line-height: 1.18;
}

.v2-achievement-table.compact-grants {
  min-width: 0;
}

.v2-achievement-table.compact-grants td:first-child {
  width: 56px;
}

.v2-achievement-table.compact-grants th:nth-child(3),
.v2-achievement-table.compact-grants td:nth-child(3) {
  width: 118px;
  white-space: nowrap;
}

.v2-publication-list {
  margin: 16px 18px 20px;
  border: 1px solid var(--line);
  background: #fff;
  max-height: 468px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 67, 111, .35) transparent;
}

.v2-publication-list article {
  min-height: 62px;
  padding: 9px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.v2-publication-list::-webkit-scrollbar {
  width: 7px;
}

.v2-publication-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(20, 67, 111, .35);
}

.v2-publication-list h4 {
  margin: 0 0 3px;
  color: var(--v2-blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13px;
  line-height: 1.18;
}

.v2-publication-list p,
.v2-publication-list small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.v2-publication-list .publication-metrics {
  margin-top: 6px;
  gap: 5px;
}

.v2-publication-list .metric-badge {
  min-height: 16px;
  padding: 2px 8px;
  font-size: 10px;
}

.v2-publication-list a {
  justify-self: end;
  color: var(--v2-blue);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.v2-supervisor,
.v2-people {
  display: grid;
  gap: 42px;
}

.v2-pi-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: center;
  padding: 42px;
  color: #fff;
  background: var(--v2-blue-dark);
}

.v2-pi-card h2 {
  color: #fff;
}

.v2-pi-card p {
  color: #d6e0e8;
}

.v2-pi-photo {
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #d6e0e8;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
  text-align: center;
}

.v2-pi-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.v2-member-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(23,61,104,.35) rgba(23,61,104,.08);
}

.v2-member-strip article {
  flex: 0 0 calc((100% - 64px) / 5);
  width: calc((100% - 64px) / 5);
  min-height: 430px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
}

.v2-member-image {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e7edf2;
}

.v2-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-member-image span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--v2-blue);
  border: 1px solid rgba(23,61,104,.25);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 800;
}

.v2-member-strip h3 {
  margin: 16px 0 5px;
  color: var(--v2-blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  line-height: 1.18;
}

.v2-member-strip p,
.v2-member-strip small {
  display: block;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.v2-member-strip p {
  color: var(--v2-red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.v2-member-strip small {
  margin-top: 7px;
  font-size: 12px;
  max-height: 58px;
  overflow: hidden;
}

.v2-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.v2-news-grid article {
  background: #fff;
  border-top: 4px solid var(--v2-blue);
}

.v2-news-grid img,
.v2-news-placeholder {
  width: 100%;
  height: 235px;
  object-fit: cover;
  background: #e7edf2;
}

.v2-news-placeholder {
  display: grid;
  place-items: center;
  color: var(--v2-blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.v2-news-grid span,
.v2-news-grid h3,
.v2-news-grid p {
  margin-left: 24px;
  margin-right: 24px;
}

.v2-news-grid span {
  display: block;
  margin-top: 22px;
  color: var(--v2-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v2-news-grid h3 {
  color: var(--v2-blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
}

.v2-news-grid p {
  margin-bottom: 28px;
}

.v2-logo-wall {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.v2-logo-track {
  width: max-content;
  display: flex;
  animation: v2LogoScroll 90s linear infinite;
}

.v2-logo-wall:hover .v2-logo-track {
  animation-play-state: paused;
}

.v2-logo-wall.static .v2-logo-track {
  animation-duration: 34s;
}

.v2-logo-wall a {
  width: clamp(180px, 16vw, 230px);
  min-height: 138px;
  flex: 0 0 clamp(180px, 16vw, 230px);
  padding: 24px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.v2-logo-wall a.disabled {
  pointer-events: none;
}

.v2-logo-wall img {
  max-width: 110%;
  max-height: 86px;
  object-fit: contain;
}

@keyframes v2LogoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.v2-final-grid {
  max-width: var(--v2-max);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1.1fr .95fr .95fr;
  gap: 18px;
}
.v2-final-grid.columns-1 { grid-template-columns: minmax(0,1fr); }
@media (min-width: 1101px) {
  .v2-final-grid.columns-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.v2-open-service,
.v2-join-card,
.v2-contact-card {
  min-height: 350px;
  padding: 40px;
}

.v2-open-service {
  color: #fff;
  background: var(--v2-blue);
}

.v2-open-service .v2-eyebrow,
.v2-open-service h2,
.v2-open-service p {
  color: #fff;
}

.v2-join-card,
.v2-contact-card {
  background: #fff;
  border-top: 4px solid var(--v2-blue);
}

.v2-contact-card dl {
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.v2-contact-card div {
  min-width: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.v2-contact-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.v2-contact-card dd {
  margin: 7px 0 0;
  color: var(--v2-blue);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.v2-contact-card a {
  width: max-content;
  max-width: 100%;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--v2-blue);
  color: var(--v2-blue);
  text-decoration: none;
  text-transform: none;
}

.v2-contact-card a:hover {
  color: #fff;
  background: var(--v2-blue);
}

.v2-contact-card dd small {
  max-width: 100%;
  margin-top: 8px;
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-contact-card h2 {
  max-width: 12ch;
  font-size: clamp(34px, 3.2vw, 52px);
  overflow-wrap: normal;
}

.v2-contact-card dd,
.v2-contact-card a,
.v2-contact-card span {
  overflow-wrap: anywhere;
}

@media (max-width: 1380px) {
  .v2-section,
  .v2-final-grid {
    margin-left: 5vw;
    margin-right: 5vw;
  }
}

@media (max-width: 1100px) {
  .v2-research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .v2-environment,
  .v2-pi-card,
  .v2-final-grid,
  .v2-updates-layout {
    grid-template-columns: 1fr;
  }
  .v2-logo-wall {
    grid-template-columns: repeat(3, 1fr);
  }
  .v2-member-strip article {
    flex-basis: calc((100% - 32px) / 3);
    width: calc((100% - 32px) / 3);
  }
  .ukm-footer-main {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .ukm-footer-badge {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .brand-logo-strip {
    height: 48px;
    gap: 7px;
    padding: 4px 6px;
  }
  .brand-logo,
  .brand-text-logo {
    width: 36px;
    height: 34px;
    flex-basis: 36px;
  }
  .institutional-logo {
    width: 42px;
  }
  .combined-logo {
    width: clamp(92px, 28vw, 122px);
    flex-basis: clamp(92px, 28vw, 122px);
  }
  .combined-logo img {
    width: 142%;
  }
  .group-logo {
    width: 34px;
    height: 34px;
    padding: 2px;
  }
  .v2-hero {
    min-height: auto;
    padding: 125px 22px 70px;
  }
  .v2-section {
    padding: 48px 0;
  }
  .v2-section-head,
  .v2-section-head.compact,
  .v2-publication-list article,
  .v2-research-grid,
  .v2-news-strip,
  .v2-logo-wall {
    grid-template-columns: 1fr;
  }
  .v2-research-card {
    height: auto;
    min-height: 260px;
  }
  .v2-research-card h3 {
    min-height: 0;
    margin-top: 28px;
  }
  .v2-research-card p {
    min-height: 0;
  }
  .v2-member-strip article {
    flex-basis: 78%;
    width: 78%;
  }
  .v2-news-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 18px 18px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .v2-news-strip article {
    flex: 0 0 86%;
    border: 1px solid var(--line);
    scroll-snap-align: start;
  }
  .v2-news-strip article:last-child {
    border-right: 1px solid var(--line);
  }
  .v2-news-strip span,
  .v2-news-strip h4,
  .v2-news-strip p {
    margin-left: 18px;
    margin-right: 18px;
  }
  .v2-row-title,
  .v2-achievement-heading,
  .v2-publication-column > h3 {
    padding-left: 20px;
    padding-right: 20px;
  }
  .v2-achievement-table-wrap,
  .v2-publication-list {
    margin-left: 14px;
    margin-right: 14px;
  }
  .v2-achievement-table-wrap {
    padding-left: 0;
    padding-right: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .v2-achievement-table.compact-grants {
    min-width: 560px;
  }
  .v2-environment-copy,
  .v2-pi-card,
  .v2-open-service,
  .v2-join-card,
  .v2-contact-card {
    padding: 30px;
  }
  .v2-publication-list article {
    padding-left: 14px;
    padding-right: 14px;
  }
  .v2-publication-list a {
    justify-self: start;
  }
  .ukm-footer-main {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .ukm-footer-main {
    padding: 42px 22px;
  }
  .ukm-footer-main nav {
    grid-template-columns: 1fr 1fr;
    font-size: 15px;
  }
  .ukm-footer-badge img {
    max-width: 100%;
  }
  .ukm-footer-sdg {
    height: auto;
    align-items: center;
    flex-wrap: nowrap;
  }
  .ukm-footer-sdg-logo {
    width: 42%;
    max-width: none;
  }
  .ukm-footer-sdg-icons {
    flex-wrap: nowrap;
  }
  .ukm-footer-badge span {
    font-size: 16px;
  }
  .ukm-footer-bottom {
    padding: 18px 22px 22px;
  }
}

/* Performance and responsive stability */
html,
body,
.public-portal {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.publication-browser,
.research-publications-panel,
.honour-table-wrap,
.grant-table-wrap,
.open-service-table-wrap,
.data-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.publication-row h2,
.publication-row p,
.publication-row small,
.v2-publication-list h4,
.v2-publication-list p,
.v2-publication-list small,
.open-service-table td,
.open-service-table th,
.honour-table td,
.grant-table td,
.v2-achievement-table td {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand,
  .brand > span:last-child {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .subpage-hero,
  .open-service-hero,
  .open-service-detail-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .research-browser,
  .news-browser,
  .open-service-catalogue,
  .open-service-workflow,
  .open-service-detail-page,
  .open-service-detail-layout {
    width: auto;
    max-width: calc(100vw - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .research-list-grid,
  .open-service-search-panel,
  .open-service-steps,
  .open-service-detail-layout,
  .news-list-card,
  .v2-updates-layout,
  .v2-final-grid,
  .v2-environment,
  .v2-pi-card {
    grid-template-columns: 1fr;
  }

  .open-service-photo-wall {
    grid-template-columns: 1fr;
  }

  .open-service-table,
  .grant-table,
  .honour-table {
    min-width: 760px;
  }

  .v2-achievement-table {
    table-layout: fixed;
    width: 100%;
  }

  .v2-achievement-table th:first-child,
  .v2-achievement-table td:first-child {
    width: 82px;
  }

  .v2-achievement-table.compact-grants th:nth-child(3),
  .v2-achievement-table.compact-grants td:nth-child(3) {
    width: 110px;
  }
}

@media (max-width: 520px) {
  .portal-v2 .brand {
    gap: 7px;
  }

  .portal-v2 .brand strong {
    max-width: 42vw;
    font-size: 13px;
  }

  .v2-hero h1 {
    font-size: clamp(38px, 13vw, 56px);
    letter-spacing: -1.8px;
  }

  .v2-hero-inner > p:not(.v2-eyebrow) {
    font-size: 15px;
    line-height: 1.65;
  }

  .v2-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-primary,
  .v2-secondary {
    width: 100%;
  }

  .v2-section,
  .v2-final-grid {
    margin-left: 18px;
    margin-right: 18px;
  }

  .v2-member-strip article {
    flex-basis: 88%;
    width: 88%;
  }

  .v2-member-strip { gap: 12px; padding-bottom: 10px; }
  .v2-member-strip article { min-height: 0; padding: 12px; }
  .v2-member-image { aspect-ratio: 4 / 3; max-height: 190px; }
  .v2-member-strip h3 { margin-top: 12px; font-size: 17px; }
  .v2-member-strip p { font-size: 9px; }
  .v2-member-strip small { max-height: 48px; font-size: 11px; }
}

@media (max-width: 760px) {
  /* Keep the mobile menu compact and expose the lab entry without duplicating it on desktop. */
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 8px 18px 12px;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    background: var(--paper, #fbfaf7);
    border-bottom: 1px solid var(--line, #dbe3e8);
    box-shadow: 0 10px 24px rgba(18, 54, 91, .12);
    z-index: 20;
  }

  .main-nav.open a,
  .main-nav.open a.mobile-lab-nav {
    display: block;
    flex: none;
    width: 100%;
    min-height: 0;
    padding: 11px 2px;
    line-height: 1.25;
    text-align: left;
  }

  .main-nav.open a + a {
    border-top: 1px solid rgba(18, 54, 91, .1);
  }

  .main-nav .mobile-lab-nav {
    display: none;
  }

  .main-nav.open .mobile-lab-nav {
    display: block;
    color: var(--accent, #a8243a);
    font-weight: 800;
  }

  /* On a phone each member is a readable row: complete image at left, details at right. */
  .v2-member-strip {
    display: grid;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
  }

  .v2-member-strip article {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 14px;
    width: 100%;
    flex: none;
    min-height: 0;
    padding: 12px;
    align-items: start;
  }

  .v2-member-image {
    grid-row: 1 / 4;
    width: 112px;
    height: 150px;
    max-height: none;
    aspect-ratio: auto;
  }

  .v2-member-image img {
    object-fit: contain;
    background: #edf1f3;
  }

  .v2-member-strip h3,
  .v2-member-strip p,
  .v2-member-strip small {
    grid-column: 2;
    min-width: 0;
  }

  .v2-member-strip h3 {
    margin: 2px 0 5px;
    font-size: 17px;
  }

  .v2-member-strip p {
    margin: 0 0 8px;
    font-size: 10px;
  }

  .v2-member-strip small {
    max-height: none;
    font-size: 11px;
    line-height: 1.45;
  }

  .open-service-rate-controls {
    grid-template-columns: 1fr;
  }

  .open-service-unified-table {
    min-width: 0;
    display: block;
  }

  .open-service-unified-catalogue .open-service-table-wrap {
    height: 720px;
  }

  .open-service-unified-table thead {
    display: none;
  }

  .open-service-unified-table tbody,
  .open-service-unified-table tr,
  .open-service-unified-table td {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .open-service-unified-table td:nth-child(n) {
    width: 100%;
  }

  .open-service-unified-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line, #dbe3e8);
  }

  .open-service-unified-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
    border: 0;
    text-align: left;
  }

  .open-service-unified-table td::before {
    content: attr(data-label);
    color: #6c7b86;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
}

@media (max-width: 360px) {
  .v2-member-strip article {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 11px;
  }

  .v2-member-image {
    width: 96px;
    height: 132px;
  }
}
/* Administrator-only, read-only inventory quality workspace. */
.inventory-quality { max-width: 1500px; margin: 0 auto; color: #173d67; }
.inventory-quality-heading, .inventory-quality-record-title, .inventory-quality-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.inventory-quality h1 { font-size: 36px; margin: 8px 0 12px; }
.inventory-quality p { line-height: 1.6; }
.inventory-quality-heading p, .inventory-quality-meta { color: #52677d; }
.inventory-quality button, .inventory-quality input, .inventory-quality select { font: inherit; min-height: 40px; border: 1px solid #cbd9e7; border-radius: 7px; background: #fff; color: #173d67; padding: 9px 12px; }
.inventory-quality button { cursor: pointer; }
.inventory-quality button:disabled { opacity: .5; cursor: default; }
.inventory-quality button:focus-visible, .inventory-quality input:focus-visible, .inventory-quality select:focus-visible { outline: 2px solid #276ca4; outline-offset: 2px; }
.inventory-quality-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.inventory-quality-counts button { text-align: left; padding: 18px; }
.inventory-quality-counts button[aria-pressed="true"] { background: #e9f2f9; border-color: #276ca4; }
.inventory-quality-counts strong { display: block; font-size: 28px; margin-bottom: 8px; }
.inventory-quality-note { background: #eef3f8; padding: 14px 18px; border-left: 3px solid #276ca4; font-size: 13px; color: #455d73; }
.inventory-quality-filters { display: grid; grid-template-columns: minmax(180px,2fr) repeat(3,minmax(130px,1fr)); gap: 12px; margin: 20px 0; }
.inventory-quality-filters input, .inventory-quality-filters select { width: 100%; min-width: 0; box-sizing: border-box; }
.inventory-quality-pagination { margin: 16px 0; font-size: 13px; }
.inventory-quality-pagination button + button { margin-left: 8px; }
.inventory-quality-record { background: #fff; border: 1px solid #d4e0ec; border-radius: 12px; padding: 20px; margin-bottom: 14px; }
.inventory-quality-record h2 { font-size: 20px; margin: 0; }
.inventory-quality-record-title p { font-size: 13px; color: #52677d; margin: 6px 0; }
.inventory-quality-record ul { list-style: none; margin: 16px 0 0; padding: 0; }
.inventory-quality-record li { display: grid; grid-template-columns: 62px 135px minmax(0,1fr); align-items: start; gap: 12px; padding: 10px 0; border-top: 1px solid #edf1f6; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.inventory-quality-badge { background: #fff5e3; color: #805313; padding: 2px 7px; border-radius: 5px; text-align: center; }
.inventory-quality-error { color: #a91f36; background: #fff0f2; }
.inventory-quality-related { font-size: 13px; margin-top: 12px; }
.inventory-quality-related button { margin: 4px; }
.inventory-quality-empty { background: #fff; padding: 28px; text-align: center; }
@media(max-width:900px) { .inventory-quality-counts { grid-template-columns: repeat(2,minmax(0,1fr)); } .inventory-quality-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .inventory-quality-heading, .inventory-quality-record-title { align-items: flex-start; flex-direction: column; } .inventory-quality-filters { grid-template-columns: 1fr; } .inventory-quality-record li { grid-template-columns: 62px minmax(0,1fr); } .inventory-quality-record li > span:last-child { grid-column: 1 / -1; } }

/* The partner entrance is deliberately independent of the internal login shell. */
.shared-identity-page { min-height: 100dvh; padding: 0 24px 48px; background: #f4f7fa; color: #173d67; font: 15px/1.6 Arial,sans-serif; }
.shared-identity-page > header { max-width: 1120px; margin: auto; padding: 28px 0; border-bottom: 1px solid #d6e1eb; display: flex; align-items: center; gap: 20px; }
.shared-identity-page > header > span:last-child { margin-left: auto; color: #536b80; font-size: 13px; }
.shared-eyebrow { color: #b21d35; font: 700 11px/1.5 Arial,sans-serif; letter-spacing: .12em; }
.shared-identity-card { max-width: 580px; margin: 64px auto 0; padding: 36px; background: white; border: 1px solid #d6e1eb; border-radius: 16px; box-shadow: 0 12px 40px #173d670a; }
.shared-identity-card h1 { font: 700 30px/1.25 Arial,sans-serif; margin: 10px 0 24px; color: #173d67; }
.shared-identity-card h2 { font: 700 19px/1.4 Arial,sans-serif; color: #173d67; }
.shared-identity-card form { display: grid; gap: 22px; }
.account-access-fields { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.account-access-fields small { color: #536b80; font-weight: 400; font-size: 12px; }
.account-access-dialog { box-sizing: border-box; width: min(460px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 28px; border: 1px solid #bdcfdf; border-radius: 14px; color: #173d67; background: #fff; font: 15px/1.6 Arial,sans-serif; box-shadow: 0 20px 80px #102b4860; }
.account-access-dialog::backdrop { background: #102b4880; }
.account-access-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-access-dialog h2 { margin: 0; font: 700 25px/1.3 Arial,sans-serif; color: #173d67; }
.account-access-dialog p { margin: 12px 0 20px; }
.account-access-dialog label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.account-access-dialog input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #bdcfdf; border-radius: 7px; background: #fff; color: #173d67; padding: 10px 12px; font: 16px/1.4 Arial,sans-serif; }
.account-access-dialog button { min-height: 44px; border: 1px solid #bdcfdf; border-radius: 7px; padding: 10px 16px; font: 600 14px/1.4 Arial,sans-serif; color: #173d67; background: #fff; cursor: pointer; }
.account-access-dialog .reservation-primary { background: #173d67; color: white; border-color: #173d67; }
.account-access-dialog :focus-visible { outline: 3px solid #2774b5; outline-offset: 2px; }
.account-access-dialog button:disabled { opacity: .55; cursor: default; }
.account-access-dialog .account-access-secondary { border-color: transparent; }
.shared-access-panel select { width: 100%; min-width: 0; min-height: 44px; padding: 10px; background: #fff; color: #173d67; border: 1px solid #bdcfdf; border-radius: 7px; font: 15px/1.4 Arial,sans-serif; }
.shared-identity-card label, .shared-access-panel label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.shared-identity-card input:not([type=checkbox]), .shared-access-panel input { min-height: 44px; width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #bdcfdf; border-radius: 7px; padding: 10px 12px; font: 16px/1.4 Arial,sans-serif; background: #fff; color: #173d67; }
.shared-identity-card button, .shared-access-panel button { min-height: 44px; border: 1px solid #bdcfdf; border-radius: 7px; background: #fff; color: #173d67; padding: 10px 16px; font: 600 14px/1.4 Arial,sans-serif; cursor: pointer; }
.shared-identity-card .reservation-primary, .shared-access-panel .reservation-primary { background: #173d67; color: #fff; border-color: #173d67; }
.shared-identity-card button:disabled, .shared-access-panel button:disabled { opacity: .55; cursor: default; }
.shared-identity-card :focus-visible, .shared-access-panel :focus-visible { outline: 3px solid #2774b5; outline-offset: 3px; }
.shared-identity-group { background: #f0f5f9; border-left: 3px solid #2774b5; padding: 14px 18px; margin-bottom: 20px; }
.shared-identity-group small, .shared-identity-group strong { display: block; }
.shared-identity-group small { color: #536b80; font-size: 10px; letter-spacing: .1em; }
.shared-identity-group strong { margin-top: 4px; font-size: 18px; }
.shared-identity-card label.shared-identity-consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; }
.shared-identity-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; accent-color: #173d67; }
.shared-access-note { font: 13px/1.65 Arial,sans-serif; color: #536b80; }
.shared-identity-card aside { border-top: 1px solid #d6e1eb; padding-top: 20px; margin-top: 28px; }
.shared-access-error { padding: 14px 16px; background: #fff1f3; border-left: 3px solid #b21d35; color: #99243b; font: 14px/1.6 Arial,sans-serif; }
.shared-access-panel { margin-top: 32px; border-top: 1px solid #d6e1eb; padding-top: 26px; color: #173d67; font: 14px/1.6 Arial,sans-serif; }
.shared-access-panel h2 { font-size: 24px; margin: 4px 0 12px; }
.shared-access-panel h3 { font-size: 18px; margin: 0; }
.shared-access-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0; }
.shared-access-heading > span { color: #536b80; font-size: 13px; }
.shared-access-add { display: flex; align-items: end; gap: 12px; margin: 24px 0; }
.shared-access-add label { flex: 1; max-width: 520px; }
.shared-access-add > button { flex: 0 0 auto; width: auto; margin-top: 0; }
.shared-identity-card .reservation-primary { margin-top: 0; }
.shared-access-rows { border: 1px solid #d6e1eb; border-radius: 9px; overflow: hidden; background: #fff; }
.shared-access-rows > article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; }
.shared-access-rows > article + article { border-top: 1px solid #d6e1eb; }
.shared-access-rows > article > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.shared-access-rows small { display: block; font-size: 12px; color: #536b80; margin-top: 4px; }
.shared-access-rows > p { padding: 16px; margin: 0; color: #536b80; }
.shared-access-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.shared-access-result { padding: 18px; border: 1px solid #8cb7d8; border-radius: 9px; background: #eff6fb; margin: 20px 0; }
.shared-access-result button { margin: 12px 8px 8px 0; }
.shared-access-result small { display: block; color: #536b80; }
@media(max-width:700px) {
  .shared-identity-page { padding: 0 16px 24px; }
  .shared-identity-page > header { gap: 6px; flex-direction: column; align-items: flex-start; padding: 20px 0; }
  .shared-identity-page > header > span:last-child { margin-left: 0; }
  .shared-identity-card { margin-top: 24px; padding: 24px 20px; }
  .shared-identity-card h1 { font-size: 26px; }
  .shared-access-heading, .shared-access-rows > article, .shared-access-add { flex-direction: column; align-items: stretch; }
  .shared-access-add label { max-width: none; }
  .shared-access-actions { justify-content: flex-start; }
  .shared-access-actions button { flex: 1 1 auto; }
}
