:root {
  --leeds-red: #c70000;
  --leeds-dark-red: #8f0000;
  --leeds-teal: #006c72;
  --leeds-teal-dark: #004d52;
  --leeds-green: #0f7a3f;
  --ink: #1d2329;
  --muted: #58616b;
  --surface: #ffffff;
  --soft: #f5f7f8;
  --soft-teal: #e6f6f4;
  --border: #d7dee5;
  --focus: #ffbf47;
  --shadow: 0 1px 2px rgba(29, 35, 41, 0.08), 0 12px 28px rgba(29, 35, 41, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--leeds-teal);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--leeds-dark-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  font-size: 3rem;
  line-height: 1.08;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

code {
  color: var(--ink);
  background: #eef2f5;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 0.7rem 0.9rem;
  color: #000000;
  background: var(--focus);
  border: 2px solid #000000;
  border-radius: 4px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 850;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 4.25rem;
  height: 2.55rem;
  object-fit: contain;
  border-radius: 4px;
}

.nav-links {
  gap: 0.25rem;
}

.nav-link {
  min-height: 44px;
  padding-inline: 0.9rem;
  color: var(--ink);
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.nav-link:hover {
  background: #eef2f5;
}

.page-main {
  padding: 1.4rem 0 3rem;
}

.site-footer {
  padding: 1.5rem 0;
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.hero-band,
.panel,
.role-card,
.profile-card,
.profile-detail,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-band {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  padding: 4rem;
  overflow: hidden;
}

.image-hero {
  min-height: 520px;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(0, 38, 43, 0.88) 0%, rgba(0, 69, 74, 0.76) 45%, rgba(0, 0, 0, 0.22) 100%),
    url("/images/leeds-mba-students.jpg");
  background-position: center;
  background-size: cover;
}

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

.hero-logo {
  display: block;
  width: min(15rem, 62vw);
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.image-hero .intro-copy,
.image-hero .eyebrow {
  color: #ffffff;
}

.eyebrow,
.role-label {
  color: var(--leeds-dark-red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions,
.button-group,
.card-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--leeds-teal);
  border-color: var(--leeds-teal);
}

.button.primary:hover {
  color: #ffffff;
  background: var(--leeds-teal-dark);
}

.button.secondary {
  color: var(--leeds-teal-dark);
  background: #ffffff;
  border-color: var(--leeds-teal);
}

.button.secondary:hover {
  color: #ffffff;
  background: var(--leeds-teal);
}

.button.ghost,
.icon-button {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--border);
}

.button.ghost:hover,
.icon-button:hover {
  background: #eef2f5;
}

.button.neutral {
  color: var(--ink);
  background: #e8edf2;
  border-color: #c4ccd4;
}

.button.neutral:hover {
  color: var(--ink);
  background: #d8dfe6;
}

.button.danger {
  color: #ffffff;
  background: var(--leeds-red);
  border-color: var(--leeds-red);
}

.button.danger:hover {
  color: #ffffff;
  background: var(--leeds-dark-red);
  border-color: var(--leeds-dark-red);
}

.button.light,
.button.ghost.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.85);
}

.button.light:hover,
.button.ghost.light:hover {
  color: var(--ink);
  background: #ffffff;
}

.button.small,
.icon-button {
  min-height: 36px;
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
}

.button.full {
  width: 100%;
}

.button.disabled {
  color: var(--muted);
  pointer-events: none;
  opacity: 0.55;
}

.danger {
  color: var(--leeds-dark-red);
}

.action-stack {
  display: grid;
  gap: 0.55rem;
}

.icon-button.selected {
  color: var(--leeds-teal-dark);
  background: var(--soft-teal);
  border-color: var(--leeds-teal);
}

.role-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.role-card {
  padding: 1.5rem;
  border-top: 4px solid var(--leeds-teal);
}

.role-card p,
.muted,
.form-help {
  color: var(--muted);
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.notice {
  margin-bottom: 1rem;
  padding: 1rem;
  color: #0b5130;
  background: #e7f7ed;
  border: 1px solid #8bd0a8;
  border-radius: 8px;
  font-weight: 750;
}

.validation {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  color: var(--leeds-dark-red);
  background: #fff1f1;
  border: 1px solid #e09b9b;
  border-radius: 8px;
  font-weight: 750;
}

.validation:empty {
  display: none;
}

.validation.validation-summary-valid {
  display: none;
}

.validation ul {
  margin: 0;
  padding-left: 1.2rem;
}

.two-column,
.directory-layout,
.admin-grid,
.access-layout {
  display: grid;
  gap: 1rem;
}

.two-column {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.directory-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
}

.panel {
  padding: 1.15rem;
}

.wide-panel {
  grid-column: 1 / -1;
}

.form-section-header,
.section-title-row,
.catalogue-header,
.metric-topline,
.invite-create {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.form-section-header p {
  margin: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.field,
label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 0.68rem 0.75rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #b8c1ca;
  border-radius: 7px;
  font: inherit;
  font-weight: 400;
}

textarea {
  resize: vertical;
}

.form-help {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.wide {
  grid-column: 1 / -1;
}

.toggle-line {
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  gap: 0.55rem;
  align-items: center;
}

.toggle-line input {
  width: 1.15rem;
  min-height: 1.15rem;
}

.seeking-line {
  margin-bottom: 1rem;
}

.side-stack {
  display: grid;
  gap: 1rem;
}

.progress-track {
  height: 0.75rem;
  overflow: hidden;
  background: #e8edf2;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--leeds-green);
}

.check-list,
.audit-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.audit-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.55rem;
  border: 2px solid #69737d;
  border-radius: 999px;
}

.check-list li.done::before {
  background: var(--leeds-green);
  border-color: var(--leeds-green);
}

.audit-list span {
  display: inline-block;
  min-width: 8.5rem;
  color: var(--muted);
}

.avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: #ffffff;
  background: var(--leeds-teal-dark);
  border-radius: 8px;
  font-weight: 900;
}

.avatar.large {
  width: 6.5rem;
  height: 6.5rem;
  font-size: 1.7rem;
}

.avatar-photo {
  display: block;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.avatar-photo.large {
  width: 6.5rem;
  height: 6.5rem;
}

.profile-detail .avatar.large,
.profile-detail .avatar-photo.large {
  width: min(12rem, 100%);
  height: 12rem;
}

.profile-detail .avatar.large {
  font-size: 3rem;
}

.small-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}

.headshot-preview {
  margin: 0.7rem 0 1rem;
}

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem;
}

.profile-card .avatar,
.profile-card .avatar-photo {
  width: 4rem;
  height: 4rem;
}

.preview-card {
  display: grid;
}

.profile-card h2,
.profile-card h3 {
  margin-bottom: 0.35rem;
}

.profile-card-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.profile-card-heading h3 {
  flex: 1 1 12rem;
  margin-bottom: 0;
}

.profile-card-heading .card-topline {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.badge,
.access-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.6rem;
  color: var(--ink);
  background: #eef2f5;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.badge.teal,
.access-pill {
  color: var(--leeds-teal-dark);
  background: var(--soft-teal);
  border-color: #9ed8d3;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-card .chip-row + .card-actions {
  margin-top: 0.8rem;
}

.chip {
  padding: 0.35rem 0.55rem;
  color: var(--ink);
  background: #eef2f5;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
}

.cohort-tabs {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.cohort-tabs a {
  min-height: 44px;
  padding: 0.68rem 0.95rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.cohort-tabs a.active {
  color: #ffffff;
  background: var(--leeds-teal);
  border-color: var(--leeds-teal);
}

.filter-panel {
  position: sticky;
  top: 5.4rem;
}

.filter-panel form {
  display: grid;
  gap: 0.9rem;
}

.invite-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.9fr) minmax(160px, 0.7fr) auto;
  gap: 0.85rem;
  align-items: end;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.compact-facts,
.detail-grid {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.compact-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-facts div,
.detail-grid div {
  display: grid;
  gap: 0.15rem;
}

.compact-facts dt,
.detail-grid strong {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-facts dd {
  margin: 0;
}

.profile-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.35rem;
  border-top: 4px solid var(--leeds-teal);
}

.detail-pitch {
  max-width: 820px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.55;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-chips,
.detail-actions {
  margin-top: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.metric-card {
  padding: 1rem;
}

.metric-card span,
.metric-topline span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.metric-card strong,
.metric-topline strong {
  display: block;
  color: var(--leeds-teal-dark);
  font-size: 2rem;
}

.cohort-card-list {
  display: grid;
  gap: 0.75rem;
}

.cohort-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.8rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.data-table tbody tr:hover {
  background: #fbfcfd;
}

.pager {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 800;
}

.access-card {
  border-top: 4px solid var(--leeds-teal);
}

.access-card .field + .button {
  margin-top: 0.45rem;
}

.login-layout {
  min-height: 56vh;
  align-items: center;
}

.table-person {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 800;
}

.inline-account-form,
.account-summary {
  display: grid;
  gap: 0.45rem;
  min-width: 240px;
  margin-bottom: 0.55rem;
}

.account-summary span {
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-state {
  margin-bottom: 1rem;
}

.print-header {
  display: none;
}

.shortlist-print-list {
  display: grid;
  gap: 1rem;
}

.shortlist-print-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .two-column,
  .directory-layout,
  .admin-grid,
  .access-layout,
  .hero-band {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .role-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 24px, 1420px);
  }

  h1 {
    font-size: 2.1rem;
  }

  .page-main {
    padding-top: 1rem;
  }

  .hero-band {
    min-height: 470px;
    padding: 2rem 1.2rem;
  }

  .page-heading,
  .form-section-header,
  .section-title-row,
  .catalogue-header,
  .invite-create {
    align-items: start;
    flex-direction: column;
  }

  .role-grid,
  .metric-grid,
  .profile-grid,
  .invite-form,
  .form-grid,
  .detail-grid,
  .compact-facts {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .profile-detail {
    grid-template-columns: 1fr;
  }

  .cohort-tabs {
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .button,
  .icon-button {
    width: 100%;
  }

  .hero-actions .button,
  .row-actions .button,
  .card-actions .button,
  .card-actions .icon-button {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .site-header,
  .site-footer,
  .print-hidden {
    display: none !important;
  }

  .app-shell {
    width: 100%;
  }

  .page-main {
    padding: 0;
  }

  .print-header {
    display: block;
    margin-bottom: 1rem;
  }

  .shortlist-print-card {
    break-inside: avoid;
    box-shadow: none;
    border-color: #999999;
  }

  .badge,
  .chip {
    border-color: #999999;
  }
}
