/* The DSE microsite keeps the original pink programme layout within its own scope. */
.external-forms {
  padding-top: 32px;
  padding-bottom: 48px;
}
.external-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.external-form-card {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.external-form-card.selected {
  outline: 2px solid #891d22;
  outline-offset: 2px;
}
.external-form-card .button {
  white-space: normal;
  max-width: 100%;
}
@media (max-width: 640px) {
  .external-form-grid {
    grid-template-columns: 1fr;
  }
}
.dse-site {
  --dse-pink: #f0e4ec;
  --dse-pink-deep: #e8ccdc;
  background: #fff;
  color: #333;
  overflow-wrap: anywhere;
}
.dse-site :is(a, summary):focus-visible {
  outline: 3px solid #891d22;
  outline-offset: 5px;
}
.dse-header {
  background: var(--dse-pink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: 18px max(5vw, calc((100vw - 1200px) / 2));
}
.dse-brand {
  display: flex;
  max-width: 230px;
  flex: 0 1 230px;
}
.dse-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.dse-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-left: auto;
}
.dse-nav a,
.dse-login {
  color: #5d283c;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.dse-login {
  border-bottom: 1px solid currentColor;
}
.dse-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.dse-download-links .button {
  white-space: normal;
  max-width: 100%;
}
.dse-site .dse-area,
.dse-site [id] {
  scroll-margin-top: 24px;
}
.dse-hero {
  background: var(--dse-pink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0 0;
}
.dse-hero:has(.dse-hero-art) {
  min-height: 640px;
  padding-bottom: 80px;
}
.dse-hero:has(.dse-hero-art) .dse-programme-mark {
  width: min(560px, 50vw);
}
.dse-hero::after {
  content: "";
  position: absolute;
  background: var(--dse-pink-deep);
  bottom: -55px;
  left: -10%;
  width: 120%;
  height: 110px;
  border-radius: 50% 50% 0 0;
  z-index: -2;
}
.dse-hero-copy {
  width: min(80%, 1080px);
  margin: auto;
  position: relative;
  z-index: 1;
}
.dse-hero .masthead-photo {
  z-index: -3;
}
.dse-site h1.dse-programme-mark {
  width: min(592px, 100%);
  margin: 0 0 28px;
}
.dse-site h1.dse-programme-mark::after {
  content: none;
}
.dse-programme-mark img {
  display: block;
  width: 100%;
  height: auto;
}
.dse-site .dse-year {
  color: #79415c;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}
.dse-site h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 0 28px;
  color: #2b2429;
  text-wrap: balance;
}
.dse-site h1::after {
  content: "";
  display: block;
  width: 170px;
  height: 8px;
  margin-top: 24px;
  background: #b97195;
  transform: rotate(-2deg);
}
.dse-status {
  font-weight: 700;
  color: #6e171b;
}
.dse-hero-details {
  display: inline-block;
  margin: 12px 0 12px 24px;
  color: #6e171b;
  font-weight: 700;
}
.dse-hero-art {
  position: absolute;
  width: min(60vw, 800px);
  aspect-ratio: 1456 / 1080;
  right: max(0px, calc((100vw - 1600px) / 2));
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.dse-hero-art img {
  position: absolute;
  height: auto;
  object-fit: contain;
}
.dse-hero-art img:first-child {
  width: 100%;
  height: 100%;
  right: 0;
  bottom: 0;
}
.dse-hero-art img:nth-child(2) {
  width: 53.333333%;
  right: 13.333333%;
  bottom: 4.2%;
}
@media (max-width: 1023px) {
  .dse-hero:has(.dse-hero-art) {
    min-height: 0;
    padding-bottom: 0;
  }
  .dse-hero:has(.dse-hero-art) .dse-programme-mark {
    width: min(560px, 80vw);
  }
  .dse-hero-art {
    position: relative;
    width: min(100%, 800px);
    margin: 32px 0 0 auto;
    right: auto;
    bottom: auto;
  }
}
.dse-home-content {
  background: var(--dse-pink-deep);
  padding: 60px 0 0;
}
.dse-home-content > .dse-block {
  width: min(80%, 1080px);
  margin: 0 auto;
  padding: 36px 0;
}
.dse-site h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.4;
  text-align: center;
  margin: 0 0 40px;
  color: #3b2935;
}
.dse-site h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.5;
  margin: 0 0 18px;
  color: #3b2935;
}
.dse-copy {
  white-space: pre-line;
  line-height: 1.95;
  font-size: 17px;
}
.dse-copy a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dse-block {
  min-width: 0;
  margin: 0 0 30px;
}
.dse-block-illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.dse-block img,
.dse-faq-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.dse-text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.dse-objective-grid,
.dse-company-grid {
  padding: 50px max(10vw, calc((100vw - 1080px) / 2));
  display: grid;
  gap: 32px;
}
.dse-objective-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: dse-objective;
}
.dse-objective-grid .dse-block {
  margin: 0;
  padding-top: 24px;
  border-top: 2px solid #b97195;
}
.dse-objective-grid .dse-block::before {
  counter-increment: dse-objective;
  content: counter(dse-objective, decimal-leading-zero);
  color: #79415c;
  font-size: 28px;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}
.dse-objective-grid h3 {
  font-size: 18px;
}
.dse-company-grid {
  background: white;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 24px;
}
.dse-home-content > #home-companies {
  width: 100%;
  padding: 36px max(10vw, calc((100vw - 1080px) / 2));
  background: white;
}
.dse-company-grid .dse-block {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  text-align: center;
  justify-content: flex-end;
  margin: 0;
}
.dse-company-grid img {
  height: 80px;
}
.dse-company-grid .dse-block-illustrated > .dse-block-copy {
  display: none;
}
.dse-company-grid h3 {
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}
.dse-testimonials {
  background: var(--dse-pink);
  padding: 50px max(10vw, calc((100vw - 1080px) / 2));
}
.dse-testimonials > .dse-block {
  margin: 0 0 36px;
}
.dse-testimonials > .dse-block:last-child {
  margin-bottom: 0;
}
.dse-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 60px;
}
.dse-testimonial-grid .dse-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 18px;
  margin: 0;
  border-left: 3px solid #b97195;
  padding: 0 0 0 24px;
}
.dse-testimonial-grid .dse-block > img {
  grid-row: 1;
  max-width: 140px;
  justify-self: start;
}
.dse-testimonial-grid h3 {
  font-size: 18px;
}
.dse-testimonial-grid .dse-copy {
  font-size: 16px;
}
.dse-area-inner {
  width: min(80%, 1080px);
  margin: 0 auto;
  padding: 72px 0;
}
#dse-details {
  background: #fff;
}
#dse-faq,
#dse-poster {
  background: var(--dse-pink);
}
.dse-site .dse-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0 0;
}
.dse-site .dse-form-grid .dse-form-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #891d22;
  text-decoration: none;
}
.dse-site .dse-form-link-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.dse-site .dse-form-link-label {
  min-width: 0;
  padding: 0;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.dse-site .dse-form-link-arrow {
  margin-left: 0;
  flex-shrink: 0;
  padding: 0;
  color: inherit;
  font-size: 22px;
}
.dse-site .dse-form-link:hover {
  color: #5d283c;
}
.dse-site .dse-form-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.dse-faq-item {
  border-bottom: 1px solid #c9aabb;
}
.dse-faq-item summary {
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  padding: 24px 12px 24px 0;
}
.dse-faq-item .dse-copy {
  padding: 0 24px 28px;
}
.dse-poster-preview {
  display: block;
  max-width: 560px;
  justify-self: center;
}
.dse-poster-preview img {
  box-shadow: 0 10px 30px #71405a22;
}
.dse-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  grid-column: 1/-1;
}
#programme-gallery .dse-image-grid img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--dse-pink);
}
.dse-video {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin-top: 24px;
  background: #000;
}
.dse-video-portrait {
  max-width: 360px;
  aspect-ratio: 9 / 16;
}
.dse-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.dse-footer {
  background: #fff;
  border-top: 1px solid #e8ccdc;
}
.dse-footer .dse-area-inner {
  padding: 50px 0;
}
.dse-footer .dse-copy {
  font-size: 15px;
}
.dse-footer .dse-area-inner > a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .dse-header {
    gap: 18px 24px;
  }
  .dse-nav {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    justify-content: center;
  }
  .dse-login {
    margin-left: auto;
  }
  .dse-company-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dse-objective-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dse-block-illustrated {
    gap: 28px;
  }
}
@media (max-width: 767px) {
  #programme-gallery .dse-image-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dse-header {
    padding: 16px 5%;
    gap: 16px;
  }
  .dse-brand {
    flex-basis: 185px;
    max-width: calc(100% - 105px);
  }
  .dse-nav {
    gap: 10px 18px;
  }
  .dse-nav a,
  .dse-login {
    font-size: 14px;
  }
  .dse-hero {
    padding-top: 36px;
  }
  .dse-hero-copy,
  .dse-home-content > .dse-block,
  .dse-area-inner {
    width: 90%;
  }
  .dse-hero:has(.dse-hero-art) .dse-programme-mark {
    width: 100%;
  }
  .dse-site h1 {
    font-size: clamp(2rem, 8.7vw, 3.6rem);
  }
  .dse-home-content {
    padding-top: 20px;
  }
  .dse-block-illustrated {
    grid-template-columns: minmax(0, 1fr);
  }
  .dse-objective-grid,
  .dse-company-grid,
  .dse-testimonials {
    padding: 36px 5%;
  }
  .dse-company-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .dse-home-content > #home-companies {
    padding: 36px 5%;
  }
  .dse-company-grid img {
    height: 65px;
  }
  .dse-testimonial-grid,
  .dse-site .dse-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dse-area-inner {
    padding: 48px 0;
  }
  .dse-copy {
    font-size: 16px;
  }
  .dse-faq-item .dse-copy {
    padding: 0 0 24px;
  }
  .dse-faq-item summary {
    font-size: 17px;
  }
  .dse-hero-details {
    margin-left: 16px;
  }
}

:root {
  font-family:
    "Noto Sans TC",
    -apple-system,
    BlinkMacSystemFont,
    "PingFang HK",
    sans-serif;
  color: var(--text);
  background: var(--page-background);
  font-synthesis: none;
  --brand: #891d22;
  --brand-hover: #7b1a1f;
  --brand-dark: #6e171b;
  --text: #404040;
  --text-inverse: #fff;
  --page-background: #f1f1f1;
  --surface: #fff;
  --surface-muted: #f5f5f5;
  --surface-selected: #f8eeee;
  --surface-dark: #333;
  --border: #dedede;
  --muted: #666;
  --focus-ring: #ead2d3;
  --status-success: #22724c;
  --status-success-soft: #e6f0df;
  line-height: 1.7;
  font-weight: 400;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
:is(
    .masthead,
    .site-footer,
    .login-story,
    .case-summary,
    .lightbox,
    .save-notice
  )
  :is(button, a):focus-visible {
  outline-color: var(--text-inverse);
}
:is(.intake-card, .dse-masthead, .page-masthead) :is(button, a):focus-visible {
  outline-color: var(--brand);
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.35;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 14px;
}
h2 {
  font-size: 1.8rem;
  font-weight: 800;
}
h3 {
  font-size: 1.2rem;
}
h4 {
  font-size: 1rem;
}
p {
  margin-bottom: 1.2em;
}
img {
  max-width: 100%;
  display: block;
}
small {
  font-size: 0.78rem;
  color: var(--muted);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 11px 12px;
  min-height: 46px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}
textarea {
  resize: vertical;
}
input:disabled,
textarea:disabled,
select:disabled {
  background: #f0f0f0;
  color: #606060;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.container {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.spaced {
  padding-block: 80px;
}
.eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-bottom: 13px;
}
.muted {
  color: var(--muted);
  font-size: 0.88rem;
}
.button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--brand);
  color: var(--text-inverse);
  padding: 11px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  text-align: center;
  line-height: 1.5;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: var(--brand-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
.button.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--brand);
}
.button.secondary:hover {
  background: var(--surface-selected);
}
.button.full {
  width: 100%;
  margin-top: 18px;
}
.text-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid currentColor;
  padding-block: 6px;
}
.text-button {
  border: 0;
  background: none;
  padding: 7px 0;
  font-weight: 600;
  color: var(--brand);
  font-size: 0.88rem;
}
.badge {
  display: inline-block;
  background: var(--status-success-soft);
  color: #275538;
  font-size: 0.76rem;
  white-space: nowrap;
  border-radius: 99px;
  padding: 5px 12px;
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  background: var(--surface);
  padding: 10px 20px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--brand);
  position: relative;
  z-index: 10;
}
.header-inner {
  max-width: 1360px;
  padding: 20px 40px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  display: block;
  width: 330px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-symbol {
  background: var(--surface-selected);
  border-radius: 50%;
  height: 48px;
  width: 48px;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-family: serif;
  font-size: 28px;
}
.brand strong {
  font-size: 1.05rem;
  display: block;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.brand small {
  font-size: 0.41rem;
  letter-spacing: 0.045em;
  display: block;
  color: var(--brand);
  margin-top: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav > a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.site-nav .nav-portal {
  background: var(--brand);
  padding: 10px 16px;
  color: var(--text-inverse);
  border-radius: 5px;
}
.nav-portal span {
  margin-left: 12px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.7rem;
  color: var(--brand);
}
.masthead {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.masthead-photo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  object-position: center;
}
.masthead-content {
  padding-block: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 70px;
}
.masthead-content > div {
  max-width: 690px;
}
.masthead .eyebrow {
  color: var(--text-inverse);
  font-size: 0.73rem;
}
.masthead h1 {
  font-size: 3.4rem;
  line-height: 1.3;
  letter-spacing: 0.025em;
  font-weight: 800;
  margin-bottom: 22px;
}
.masthead p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  max-width: 660px;
  white-space: pre-line;
}
.masthead .button {
  background: var(--brand);
  color: var(--text-inverse);
  padding-inline: 24px;
}
.masthead .button:hover {
  background: var(--brand-hover);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 28px;
}
.hero-link {
  color: var(--text-inverse);
  font-size: 0.85rem;
}
.home-masthead {
  background: #496e80;
  color: #fff;
}
.home-masthead .masthead-content {
  min-height: clamp(460px, calc(100svh - 100px), 800px);
  padding-block: 90px;
  justify-content: center;
  text-align: center;
}
.home-masthead h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  text-shadow: 0 2px 10px #0008;
}
.home-masthead p {
  color: #fff;
  text-shadow: 0 1px 5px #000;
  margin-inline: auto;
}
.home-cta {
  margin-top: 28px;
}
.home-scroll {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 75px auto 0;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 1px 5px #0008;
}
.page-masthead {
  border-bottom: 1px solid var(--border);
}
.page-masthead .masthead-content {
  padding-block: 45px;
}
.page-masthead h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0;
}
.page-masthead p {
  margin-top: 18px;
}
.page-masthead .masthead-photo {
  position: relative;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  z-index: auto;
}
.dse-masthead {
  background: #f0e4ec;
  color: #264e6e;
}
.dse-masthead::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -10%;
  bottom: -130px;
  height: 300px;
  border-radius: 50% 50% 0 0;
  background: #e8ccdc;
}
.dse-masthead .masthead-content {
  padding-block: 65px 20px;
  gap: 50px;
}
.dse-masthead h1 {
  text-wrap: balance;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.4;
}
.dse-masthead .hero-link {
  color: #264e6e;
}
.dse-banner-art {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8%;
  padding-block: 20px 32px;
}
.dse-banner-art img {
  width: 36%;
  max-width: 350px;
  height: 205px;
  object-fit: contain;
}
.dse-masthead + .dse-intro {
  width: 100%;
  max-width: none;
  padding-inline: max(30px, calc((100% - 1180px) / 2));
  background: #e8ccdc;
}
.career-masthead {
  background: #333;
  color: #fff;
}
.career-masthead .masthead-photo {
  object-position: center 75%;
}
.career-masthead .masthead-content {
  min-height: 600px;
  justify-content: center;
  text-align: center;
  padding-block: 100px;
}
.career-masthead .masthead-content > div {
  max-width: 850px;
  width: 100%;
}
.career-banner-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.career-masthead p {
  color: #fff;
  background: #000b;
  border-radius: 4px;
  display: inline-block;
  padding: 8px 16px;
  margin: 35px auto 0;
}
.intake-card {
  flex: 0 0 280px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 30px;
  border-radius: 12px;
  transform: none;
  box-shadow: 0 15px 55px #0002;
  position: relative;
}
.intake-card:before {
  content: "";
  width: 45px;
  height: 7px;
  border-radius: 9px;
  background: var(--brand);
  position: absolute;
  top: 0;
  left: 30px;
}
.intake-card .eyebrow {
  color: var(--brand);
  font-size: 0.63rem;
}
.intake-card h2 {
  font-size: 2.1rem;
  line-height: 1.5;
  margin: 18px 0 24px;
}
.intake-row {
  border-block-start: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  font-size: 0.8rem;
}
.intake-card p {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 14px;
}
.intake-card a {
  font-size: 0.75rem;
  font-weight: 700;
}
.public-section {
  position: relative;
  padding: 76px 0;
  background: var(--surface);
}
.legacy-section-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  scroll-margin-top: inherit;
  pointer-events: none;
}
.public-section.tinted {
  background: var(--surface-muted);
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.has-image .section-grid {
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-copy h2 {
  font-size: 2.1rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.prose {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 2;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.prose p:last-child {
  margin-bottom: 0;
}
.section-copy .text-link {
  margin-top: 28px;
}
.section-photo {
  margin: 0;
  position: relative;
}
.section-photo img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
}
.section-photo:after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -15px;
  bottom: -15px;
  border-right: 8px solid var(--brand);
  border-bottom: 8px solid var(--brand);
  border-bottom-right-radius: 16px;
  z-index: 0;
}
.section-gallery {
  grid-column: 1/-1;
}
.about-heading {
  margin: 0 0 36px;
  font-size: 2.1rem;
  line-height: 1.4;
}
.about-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 16px;
  background: var(--brand);
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 48px;
}
.about-layout > :only-child {
  grid-column: 1 / -1;
}
.about-history > h3,
.about-mission > h3 {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 1.2rem;
  line-height: 1.5;
}
.about-section .prose p {
  margin: 0 0 20px;
}
.about-section .prose p:last-child {
  margin-bottom: 0;
}
.about-photos .gallery-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 0;
}
.about-photos .gallery-grid button {
  display: block;
  aspect-ratio: auto;
  border: 1px solid var(--border);
  background: var(--surface);
}
.about-photos .gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
}
.about-mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding: 24px;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: #faf5f5;
}
.about-mission > h3 {
  margin: 0;
}
.about-section .text-link {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .about-photos .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 640px) {
  .about-heading {
    font-size: 1.6rem;
    margin-bottom: 28px;
  }
  .about-history > h3,
  .about-mission > h3 {
    font-size: 1.1rem;
  }
  .about-mission {
    padding: 22px;
  }
  .about-photos .gallery-grid {
    gap: 12px;
  }
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.gallery-grid button {
  border: 0;
  padding: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 7px;
  position: relative;
  background: #ececec;
}
.gallery-grid img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.gallery-grid button span {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: var(--text-inverse);
  background: #000b;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: #000000ed;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.lightbox img {
  width: auto;
  height: auto;
  max-height: 90vh;
  max-width: 94vw;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  color: var(--text-inverse);
  font-size: 36px;
  border: 0;
}
.dse-intro {
  padding-block: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 90px;
}
.dse-intro > p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 2;
}
.dse-intro h2 {
  font-size: 2rem;
}
.journey {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.journey > div {
  display: flex;
  gap: 18px;
  align-items: center;
}
.journey span {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand);
}
.journey strong {
  font-size: 0.9rem;
}
.programme-links {
  padding-block: 70px;
}
.programme-links .link-grid > a:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 760px;
  justify-self: center;
}
.section-title {
  margin-bottom: 32px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.link-grid a {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.programme-cover {
  grid-column: 1/-1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
.programme-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.link-grid span {
  padding: 24px;
}
.link-grid b {
  padding: 24px 18px 24px 0;
  color: var(--brand);
}
.site-footer {
  background: #000;
  color: var(--text-inverse);
  padding-top: 58px;
  font-size: 0.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.6fr;
  gap: 60px;
  padding-bottom: 40px;
}
.site-footer .brand {
  color: var(--text-inverse);
  margin-bottom: 20px;
}
.site-footer .brand small {
  color: var(--text-inverse);
}
.site-footer .brand img {
  background: var(--surface);
  padding: 10px;
  border-radius: 4px;
}
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 0 40px;
}
.news-pagination a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.news-pagination a[aria-current="page"] {
  color: var(--text-inverse);
  background: var(--brand);
}
.site-footer h3 {
  color: var(--text-inverse);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.site-footer p {
  color: var(--text-inverse);
  max-width: 350px;
}
.footer-grid > div > a:not(.brand) {
  display: block;
  color: var(--text-inverse);
  margin: 8px 0;
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-inverse);
}
.preview-ribbon {
  background: #eee3aa;
  text-align: center;
  padding: 7px;
  font-size: 0.8rem;
  font-weight: 700;
}
.site-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.site-preview .site-nav {
  display: none;
}
.site-preview .container {
  width: calc(100% - 50px);
}
.site-preview .masthead h1 {
  font-size: 2.7rem;
}
.site-preview .intake-card {
  display: none;
}
/* Auth and application workspace */
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
.login-story {
  background: var(--surface-dark);
  padding: 13vh max(50px, 9vw);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  border: 1px solid #ffffff55;
  border-radius: 50%;
  width: 600px;
  height: 600px;
  position: absolute;
  bottom: -300px;
  left: -150px;
  pointer-events: none;
}
.login-story .eyebrow {
  color: var(--text-inverse);
  margin-bottom: 32px;
}
.login-story h1 {
  font-size: 3rem;
  line-height: 1.45;
  margin-bottom: 28px;
}
.login-story > p {
  color: #eee;
  font-size: 0.94rem;
  line-height: 2;
}
.login-detail {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  color: #eee;
  font-size: 0.86rem;
}
.login-detail span {
  border: 1px solid #ffffff55;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--text-inverse);
  font-size: 0.72rem;
}
.login-card {
  width: min(460px, calc(100% - 80px));
  align-self: center;
  justify-self: center;
  padding-block: 60px;
}
.login-card h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}
.role-tabs {
  display: flex;
  background: var(--surface-muted);
  padding: 5px;
  border-radius: 7px;
  gap: 4px;
  margin: 28px 0;
}
.role-tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 10px 3px;
  font-size: 0.75rem;
  color: var(--muted);
  border-radius: 5px;
}
.role-tabs button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 2px 5px #00000010;
  font-weight: 700;
}
.login-note {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.9;
  margin: 24px 0;
}
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.account {
  display: flex;
  gap: 22px;
  align-items: center;
}
.account strong {
  display: block;
  font-size: 0.8rem;
}
.account small {
  display: block;
  font-size: 0.7rem;
}
.portal-container {
  max-width: 1180px;
  padding: 42px 40px 80px;
  margin: auto;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.workspace-heading .eyebrow {
  margin-bottom: 9px;
}
.workspace-heading h1 {
  margin-bottom: 8px;
  font-size: 1.9rem;
}
.workspace-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.application-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}
.application-switch > button {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.8rem;
}
.application-switch > button.selected {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--text-inverse);
}
.case-summary {
  background: var(--surface-dark);
  color: var(--text-inverse);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  margin-bottom: 20px;
}
.case-summary .eyebrow {
  color: var(--text-inverse);
  font-size: 0.65rem;
}
.case-summary h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.case-summary p {
  margin: 0;
  color: #eee;
  font-size: 0.8rem;
}
.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.progress-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.progress-card > span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.progress-card strong {
  font-size: 1rem;
  line-height: 1.6;
  display: block;
}
.form-workspace {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 25px;
  align-items: start;
}
.steps {
  position: sticky;
  top: 20px;
}
.steps > button {
  width: 100%;
  border: 1px solid transparent;
  background: none;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 12px;
  text-align: left;
  font-size: 0.81rem;
  color: var(--muted);
  border-radius: 8px;
  margin-bottom: 4px;
}
.steps > button.active {
  background: var(--surface-selected);
  color: var(--text);
  font-weight: 700;
}
.steps > button > span {
  color: var(--muted);
  font-size: 0.7rem;
  padding-top: 3px;
}
.steps small {
  display: block;
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 400;
}
.steps p {
  border-top: 1px solid var(--border);
  margin: 22px 12px 0;
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 2;
}
.panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 24px;
  min-width: 0;
}
.form-panel {
  padding: 32px;
}
.form-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.form-heading h3 {
  margin: 0;
}
.form-heading .muted {
  font-size: 0.68rem;
  white-space: nowrap;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 0.83rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.fields > .field {
  margin-bottom: 0;
}
.field > label {
  font-size: 0.83rem;
}
.field small {
  font-weight: 400;
  line-height: 1.7;
  white-space: pre-line;
}
.field label > small {
  font-size: 0.62rem;
  background: var(--surface-muted);
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 5px;
}
.field-wide {
  grid-column: 1/-1;
}
.required {
  color: #ac5e39;
}
.field-error {
  display: block;
  color: #a3392d;
  font-size: 0.78rem;
  font-weight: 400;
}
.form-actions {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.form-actions small {
  font-size: 0.68rem;
  margin-left: auto;
}
.notice {
  background: var(--surface-muted);
  border-left: 3px solid var(--brand);
  border-radius: 3px;
  padding: 13px 16px;
  color: var(--muted);
  font-size: 0.77rem;
}
.choices {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 20px;
}
.choices label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.83rem;
  font-weight: 400;
}
.choices legend {
  font-size: 0.8rem;
  padding-inline: 6px;
  color: var(--muted);
}
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 400;
}
.upload-box {
  padding: 20px;
  border: 1px dashed #bdbdbd;
  border-radius: 6px;
  background: #fafafa;
  display: grid;
  gap: 12px;
}
.upload-box input {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.75rem;
  min-height: 35px;
}
.upload-box input::file-selector-button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 14px;
  color: var(--brand);
  margin-right: 10px;
}
.upload-box a {
  font-size: 0.8rem;
}
.upload-box small {
  font-size: 0.65rem;
}
.settings {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 30px;
  font-size: 0.85rem;
}
.settings summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 18px;
}
.alert {
  margin: 16px 0;
  border: 1px solid #e6c6bd;
  background: #fff2ec;
  color: #914d39;
  border-radius: 6px;
  padding: 13px 17px;
  font-size: 0.83rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.alert.success {
  background: #edf5e9;
  border-color: #cee0c4;
  color: #366137;
}
.alert.notice {
  background: #f7f5e8;
  border-color: #e5dfc3;
  color: #726b3f;
}
.empty {
  padding: 55px 25px;
  text-align: center;
  border: 1px dashed #ccc;
  border-radius: 9px;
  background: #fafafa;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 25px;
}
.empty h2 {
  color: var(--text);
  font-size: 1.4rem;
}
.loading {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.loading span {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.definition-list {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.definition-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) 1.2fr;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #ededed;
  min-width: 0;
  font-size: 0.78rem;
}
.definition-list dt {
  color: var(--muted);
}
.definition-list dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin: 22px 0;
}
.inline-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  flex: 1;
  min-width: 160px;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.action-control {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}
.action-control .muted {
  font-size: 0.66rem;
}
.action-control .field-error {
  max-width: 300px;
}
.data-view {
  font-size: 0.72rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  max-height: 520px;
  overflow: auto;
}
.code-input {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.77rem;
  line-height: 1.7;
}
.staff-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 90px);
}
.staff-sidebar {
  min-width: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
}
.staff-sidebar > .eyebrow {
  font-size: 0.59rem;
  color: var(--muted);
  margin: 0 12px 20px;
}
.staff-sidebar nav {
  display: grid;
  gap: 6px;
}
.staff-sidebar button {
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 13px;
  text-align: left;
  display: flex;
  gap: 15px;
  color: var(--muted);
  font-size: 0.83rem;
}
.staff-sidebar button > span {
  font-size: 0.63rem;
  color: #777;
  margin-top: 3px;
}
.staff-sidebar button.active {
  background: var(--surface-selected);
  color: var(--brand);
  font-weight: 700;
}
.sidebar-foot {
  margin-top: auto;
  padding: 60px 12px 0;
  color: #707070;
  font-size: 0.65rem;
  line-height: 2;
}
.staff-content {
  padding: 38px 40px 70px;
  min-width: 0;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.search-bar > input,
.search-field {
  flex: 1;
  min-width: 200px;
}
.search-field {
  max-width: 600px;
}
.search-bar input {
  font-size: 0.8rem;
}
.table-wrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 25px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.78rem;
  white-space: nowrap;
  text-align: left;
}
thead {
  background: var(--surface-muted);
}
th {
  color: #606060;
  font-weight: 600;
  font-size: 0.71rem;
}
th,
td {
  padding: 17px 20px;
  border-bottom: 1px solid #ededed;
}
td strong {
  font-size: 0.85rem;
}
td small {
  display: block;
  font-size: 0.66rem;
  margin-top: 5px;
}
tr:last-child td {
  border-bottom: 0;
}
td .action-row select {
  width: auto;
}
.case-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: 24px 0;
  gap: 30px;
  overflow-x: auto;
}
.tab-bar > button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 10px 0 13px;
  white-space: nowrap;
}
.tab-bar > button[aria-pressed="true"] {
  color: var(--brand);
  font-weight: 700;
  border-bottom-color: var(--brand);
}
.record-details,
.section-editor {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 15px 0;
  padding: 16px 20px;
}
.record-details > summary,
.section-editor > summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}
.record-details[open] > summary,
.section-editor[open] > summary {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.history-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.history-diff > div {
  min-width: 0;
}
.history-diff h4 {
  font-size: 0.8rem;
}
.editor-bar,
.release-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.editor-bar h3 {
  margin-bottom: 8px;
}
.editor-bar p,
.release-row p {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 6px 0;
}
.release-row {
  padding-block: 15px;
  border-bottom: 1px solid var(--border);
}
.page-select {
  max-width: 640px;
}
.score-record {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.match-panel {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  margin-top: 25px;
}
@media (min-width: 1500px) {
  .header-inner {
    max-width: 1440px;
  }
  .container {
    max-width: 1200px;
  }
  .masthead-content {
    padding-block: 100px;
  }
}
@media (max-width: 1150px) {
  .header-inner {
    padding-inline: 25px;
  }
  .site-nav {
    gap: 13px;
  }
  .site-nav > a {
    font-size: 0.69rem;
  }
  .brand strong {
    font-size: 0.9rem;
  }
  .brand small {
    font-size: 0.36rem;
  }
  .brand img {
    width: 300px;
  }
  .staff-layout {
    grid-template-columns: 190px 1fr;
  }
  .staff-content {
    padding: 30px 25px;
  }
  .staff-sidebar {
    padding-inline: 13px;
  }
  .masthead-content {
    gap: 40px;
  }
  .dse-masthead h1 {
    text-wrap: balance;
    font-size: 3.1rem;
  }
  .intake-card {
    flex-basis: 245px;
    padding: 26px;
  }
  .form-workspace {
    grid-template-columns: 185px 1fr;
    gap: 20px;
  }
  .form-panel {
    padding: 24px;
  }
  .definition-list {
    grid-template-columns: 1fr;
  }
  .site-preview .header-inner {
    padding: 20px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    padding: 16px 24px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 25px;
    box-shadow: 0 14px 20px #00000010;
  }
  .site-nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .site-nav > a {
    font-size: 0.85rem;
  }
  .container {
    width: calc(100% - 48px);
  }
  .masthead h1 {
    font-size: 2.8rem;
  }
  .masthead-content {
    padding-block: 65px;
    gap: 28px;
  }
  .home-masthead .masthead-content {
    padding-block: 95px;
  }
  .masthead p {
    font-size: 0.9rem;
  }
  .intake-card {
    flex-basis: 215px;
    padding: 22px;
  }
  .intake-card h2 {
    font-size: 1.8rem;
  }
  .intake-card .intake-row {
    font-size: 0.73rem;
  }
  .has-image .section-grid {
    gap: 35px;
  }
  .section-copy h2 {
    font-size: 1.7rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dse-intro {
    gap: 25px 40px;
  }
  .dse-intro h2 {
    font-size: 1.7rem;
  }
  .journey {
    gap: 12px;
  }
  .journey > div {
    gap: 10px;
  }
  .journey strong {
    font-size: 0.8rem;
  }
  .journey span {
    font-size: 1.5rem;
  }
  .footer-grid {
    gap: 30px;
    grid-template-columns: 1.3fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1/-1;
    display: flex;
    gap: 22px;
    align-items: center;
  }
  .footer-grid > div:last-child h3 {
    margin: 0;
  }
  .login-story {
    padding: 12vh 40px;
  }
  .login-story h1 {
    font-size: 2.4rem;
  }
  .login-card {
    width: calc(100% - 60px);
  }
  .staff-layout {
    grid-template-columns: 1fr;
  }
  .staff-sidebar {
    padding: 10px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .staff-sidebar > .eyebrow,
  .sidebar-foot {
    display: none;
  }
  .staff-sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .staff-sidebar button {
    white-space: nowrap;
    padding: 10px 13px;
    font-size: 0.78rem;
  }
  .staff-sidebar button > span {
    display: none;
  }
  .staff-content {
    padding: 30px 24px;
  }
  .portal-header {
    padding: 16px 24px;
  }
  .portal-container {
    padding: 32px 24px;
  }
  .form-workspace {
    grid-template-columns: 1fr;
  }
  .steps {
    position: static;
    display: flex;
    overflow: auto;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  .steps > button {
    width: auto;
    flex: 1;
    min-width: 140px;
    white-space: nowrap;
    padding: 12px;
  }
  .steps > p {
    display: none;
  }
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-actions small {
    margin-left: 0;
    width: 100%;
  }
  .login-detail {
    gap: 14px;
    font-size: 0.78rem;
  }
  .site-preview .site-footer .brand small {
    display: none;
  }
}
@media (max-width: 640px) {
  h1 {
    font-size: 1.8rem;
  }
  .container {
    width: calc(100% - 40px);
  }
  .brand {
    gap: 9px;
  }
  .brand strong {
    font-size: 0.8rem;
    letter-spacing: 0.035em;
  }
  .brand small {
    font-size: 0.3rem;
  }
  .brand-symbol {
    height: 39px;
    width: 39px;
    font-size: 23px;
  }
  .brand img {
    width: min(270px, calc(100vw - 106px));
  }
  .site-footer .brand img {
    width: 300px;
  }
  .header-inner {
    padding: 15px 20px;
  }
  .masthead-content {
    display: block;
    padding-block: 58px;
  }
  .masthead,
  .home-masthead {
    min-height: 0;
  }
  .home-masthead .masthead-content {
    padding-block: 80px;
  }
  .masthead h1,
  .dse-masthead h1 {
    text-wrap: balance;
    font-size: 2.5rem;
    line-height: 1.45;
  }
  .masthead .eyebrow {
    font-size: 0.59rem;
  }
  .masthead p {
    font-size: 0.85rem;
  }
  .hero-actions {
    gap: 22px;
  }
  .hero-actions .button {
    padding: 12px 20px;
    font-size: 0.8rem;
  }
  .hero-link {
    font-size: 0.78rem;
  }
  .home-masthead .masthead-content {
    min-height: 540px;
    display: flex;
    align-items: center;
  }
  .page-masthead .masthead-content {
    padding-block: 30px;
  }
  .page-masthead h1 {
    font-size: 1.8rem;
  }
  .dse-masthead .masthead-content {
    padding-block: 40px 12px;
  }
  .dse-masthead h1 {
    text-wrap: balance;
    font-size: 2.1rem;
  }
  .dse-banner-art {
    gap: 6%;
  }
  .dse-banner-art img {
    width: 45%;
    height: 140px;
  }
  .career-masthead .masthead-content {
    min-height: 380px;
    display: flex;
    padding-block: 60px;
  }
  .intake-card {
    margin-top: 32px;
    padding: 22px;
    transform: none;
    border-radius: 8px;
  }
  .intake-card h2 {
    font-size: 1.5rem;
    margin: 5px 0 20px;
  }
  .intake-card h2 br {
    display: none;
  }
  .intake-card p {
    font-size: 0.75rem;
  }
  .intake-card .intake-row {
    font-size: 0.8rem;
  }
  .dse-intro {
    grid-template-columns: 1fr;
    padding-block: 45px;
    gap: 5px;
  }
  .dse-intro h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }
  .dse-intro > p {
    font-size: 0.83rem;
  }
  .journey {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .journey strong {
    font-size: 0.83rem;
  }
  .public-section {
    padding: 45px 0;
  }
  .has-image .section-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-copy h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  .prose {
    font-size: 0.85rem;
    line-height: 2;
  }
  .section-photo:after {
    right: -8px;
    bottom: -8px;
    width: 45px;
    height: 45px;
    border-width: 5px;
  }
  .section-copy .text-link {
    margin-top: 20px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .lightbox {
    padding: 20px;
  }
  .programme-links {
    padding-block: 45px;
  }
  .section-title h2 {
    font-size: 1.5rem;
  }
  .link-grid {
    gap: 13px;
  }
  .link-grid span {
    padding: 15px;
    font-size: 0.77rem;
  }
  .link-grid b {
    padding: 15px 12px 15px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 25px;
  }
  .footer-grid > div:last-child {
    gap: 18px;
    flex-wrap: wrap;
  }
  .site-footer {
    padding-top: 38px;
  }
  .site-footer h3 {
    margin-bottom: 12px;
  }
  .footer-bottom {
    display: block;
    line-height: 2;
  }
  .footer-bottom span {
    display: block;
    font-size: 0.63rem;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 50px 28px 42px;
  }
  .login-story .eyebrow {
    margin-bottom: 20px;
    font-size: 0.57rem;
  }
  .login-story h1 {
    font-size: 2.1rem;
    line-height: 1.4;
    margin-bottom: 15px;
  }
  .login-story > p {
    font-size: 0.82rem;
    margin-bottom: 0;
  }
  .login-detail {
    display: none;
  }
  .login-card {
    width: calc(100% - 48px);
    padding-block: 35px 50px;
  }
  .login-card h2 {
    font-size: 1.5rem;
  }
  .login-card > .muted {
    font-size: 0.8rem;
  }
  .role-tabs {
    margin: 22px 0;
  }
  .role-tabs button {
    font-size: 0.73rem;
  }
  .portal-header {
    padding: 14px 18px;
    align-items: center;
  }
  .portal-header .brand small,
  .portal-header .brand strong {
    display: none;
  }
  .portal-header .brand img {
    width: clamp(110px, 30vw, 150px);
  }
  .account {
    gap: 10px;
  }
  .account small {
    font-size: 0.61rem;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account .button {
    min-height: 37px;
    padding: 8px 11px;
    font-size: 0.71rem;
  }
  .portal-container {
    padding: 28px 18px 50px;
  }
  .workspace-heading {
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 24px;
  }
  .workspace-heading h1 {
    font-size: 1.6rem;
  }
  .workspace-heading p {
    font-size: 0.77rem;
  }
  .workspace-heading .eyebrow {
    font-size: 0.56rem;
  }
  .workspace-heading > .button {
    font-size: 0.67rem;
    white-space: nowrap;
    padding: 8px 10px;
    min-height: 38px;
  }
  .application-switch {
    gap: 8px;
  }
  .application-switch > button {
    font-size: 0.72rem;
    padding: 9px 11px;
  }
  .case-summary {
    padding: 23px 20px;
    align-items: flex-start;
  }
  .case-summary h2 {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }
  .case-summary .eyebrow {
    font-size: 0.56rem;
  }
  .case-summary p {
    font-size: 0.7rem;
  }
  .case-summary .badge {
    font-size: 0.65rem;
  }
  .progress-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .progress-card {
    padding: 16px;
  }
  .progress-card > span {
    font-size: 0.68rem;
    margin-bottom: 5px;
  }
  .progress-card strong {
    font-size: 0.86rem;
  }
  .steps {
    gap: 4px;
  }
  .steps > button {
    font-size: 0.74rem;
    min-width: 130px;
    padding: 11px;
  }
  .steps > button > span {
    font-size: 0.62rem;
  }
  .steps small {
    font-size: 0.6rem;
  }
  .form-panel,
  .panel {
    padding: 20px 17px;
    border-radius: 8px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 20px 0;
  }
  .field-wide {
    grid-column: auto;
  }
  .form-heading {
    gap: 10px;
    align-items: flex-start;
  }
  .form-heading h3 {
    font-size: 1.07rem;
  }
  .form-heading .muted {
    font-size: 0.61rem;
    margin-top: 3px;
  }
  .field {
    font-size: 0.82rem;
  }
  .field label > small {
    display: inline-block;
  }
  input,
  textarea,
  select {
    font-size: 16px;
    min-height: 47px;
  }
  .choices {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 15px;
  }
  .choices label {
    font-size: 0.8rem;
  }
  .form-actions {
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
  }
  .form-actions > .button {
    flex: 1;
    font-size: 0.8rem;
    padding-inline: 12px;
  }
  .notice {
    font-size: 0.72rem;
    padding: 12px;
  }
  .definition-list > div {
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    font-size: 0.73rem;
  }
  .settings {
    font-size: 0.8rem;
  }
  .staff-sidebar {
    padding: 8px 10px;
  }
  .staff-content {
    padding: 28px 18px 55px;
  }
  .search-bar {
    gap: 10px;
  }
  .search-bar .button {
    padding-inline: 15px;
  }
  .search-bar > input,
  .search-field {
    min-width: 130px;
  }
  .history-diff {
    grid-template-columns: 1fr;
  }
  .record-details,
  .section-editor {
    padding: 14px;
  }
  .tab-bar {
    gap: 24px;
  }
  .tab-bar > button {
    font-size: 0.78rem;
  }
  .editor-bar .action-row {
    gap: 9px;
  }
  .editor-bar .button {
    font-size: 0.72rem;
    padding: 10px 13px;
  }
  .editor-bar {
    gap: 15px;
  }
  .inline-form {
    gap: 14px;
  }
  .inline-form .button {
    width: 100%;
  }
  .release-row .button {
    font-size: 0.72rem;
  }
  .site-preview .container {
    width: calc(100% - 30px);
  }
  .site-preview .masthead h1 {
    font-size: 1.8rem;
  }
  .site-preview .header-inner {
    padding: 15px;
  }
  .site-preview .brand small {
    display: none;
  }
  .action-row > .button {
    font-size: 0.74rem;
    padding: 8px 12px;
  }
  .code-input {
    font-size: 0.7rem;
  }
  .page-select {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.nav-dropdown {
  position: relative;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 7px;
  align-items: center;
}
.nav-dropdown summary::-webkit-details-marker {
  display: none;
}
.nav-dropdown > div {
  position: absolute;
  top: calc(100% + 20px);
  left: -20px;
  width: 270px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 15px 30px #00000018;
  padding: 10px;
}
.nav-dropdown > div a {
  display: block;
  padding: 12px;
  font-size: 0.78rem;
  color: var(--text);
}
.nav-dropdown > div a:hover {
  background: var(--surface-selected);
  text-decoration: none;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.section-title-row h2 {
  margin-bottom: 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.news-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card > a img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
}
.news-card > div {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card h3 {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.news-card h3 a {
  color: var(--text);
}
.news-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}
.news-card .text-link {
  font-size: 0.75rem;
  margin-top: auto;
  align-self: flex-start;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.service-grid > a {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  color: var(--text);
}
.service-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.25;
  object-fit: contain;
}
.service-grid > a > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
}
.service-grid span {
  color: var(--brand);
  font-size: 0.7rem;
}
.service-grid h3 {
  font-size: 1rem;
  margin: 0;
}
.service-grid b {
  margin-left: auto;
  color: var(--brand);
}
@media (max-width: 900px) {
  .nav-dropdown {
    font-size: 0.85rem;
  }
  .nav-dropdown > div {
    position: static;
    width: auto;
    border: 0;
    box-shadow: none;
    margin-top: 10px;
    padding: 0;
  }
  .nav-dropdown > div a {
    font-size: 0.74rem;
    padding: 10px 0;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .news-card > a img {
    height: 200px;
  }
  .news-card > div {
    padding: 22px;
  }
  .news-card h3 {
    font-size: 1.03rem;
  }
  .service-grid {
    gap: 14px;
  }
  .service-grid > a > div {
    padding: 16px 12px;
    gap: 8px;
  }
  .service-grid h3 {
    font-size: 0.9rem;
  }
  .section-title-row {
    align-items: flex-start;
  }
  .section-title-row .text-link {
    font-size: 0.68rem;
    white-space: nowrap;
  }
  .section-title-row h2 {
    font-size: 1.6rem;
  }
}
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  margin: 0;
}
.lightbox::backdrop {
  background: #000000ed;
}
.dse-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dse-form-grid > a {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 8px;
  color: var(--text);
}
.dse-form-grid > a > span {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand);
  padding-top: 3px;
}
.dse-form-grid h3 {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.dse-form-grid p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.dse-form-grid b {
  margin-left: auto;
  color: var(--brand);
}
@media (max-width: 640px) {
  .dse-form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .dse-form-grid > a {
    padding: 22px 20px;
    gap: 14px;
  }
  .dse-form-grid h3 {
    font-size: 0.93rem;
  }
}
.save-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  background: #153f2c;
  color: var(--text-inverse);
  border: 1px solid #80a36d;
  border-radius: 8px;
  box-shadow: 0 8px 30px #153f2c30;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: min(520px, calc(100vw - 32px));
  font-size: 0.85rem;
}
.save-notice button {
  background: none;
  border: 0;
  color: #d6e8c5;
  font-size: 24px;
  padding: 0 4px;
  line-height: 1;
}
.history-identity-title {
  margin-top: 30px;
}
@media (max-width: 640px) {
  .save-notice {
    bottom: 14px;
    right: 16px;
    left: 16px;
    font-size: 0.78rem;
  }
}

/* Published galleries remain accessible without a framework runtime. */
.lightbox:not([open]),
.gallery-grid button[hidden] {
  display: none;
}

/* Programme detail composition follows the original DSE overview. */
.dse-site .dse-title-first,
.dse-site .dse-title-line {
  display: block;
}
.dse-site .dse-title-line {
  font-size: clamp(1.55rem, 4.6vw, 4rem);
}
.dse-site .dse-title-year {
  color: #ad5f27;
  margin-left: 0.15em;
}
.dse-site .dse-programme-facts {
  align-items: start;
  margin: 40px 0 64px;
}
.dse-timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  margin: 36px 0 56px;
}
.dse-timeline .dse-block {
  margin: 0 0 0 12px;
  padding: 0 0 30px 32px;
  border-left: 2px solid #b97195;
  position: relative;
}
.dse-timeline .dse-block::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #891d22;
  position: absolute;
  left: -8px;
  top: 8px;
}
.dse-timeline h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.dse-timeline-aside {
  padding: 28px;
  background: var(--dse-pink);
  align-self: start;
}
.dse-timeline-aside h3 {
  font-size: 20px;
}
.dse-timeline-aside .dse-copy {
  font-size: 16px;
}
.dse-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 42px 0;
}
.dse-route-grid .dse-block {
  padding: 24px 0 0;
  border-top: 3px solid #b97195;
}
.dse-route-grid h3 {
  font-size: 20px;
}
.dse-route-grid .dse-copy {
  font-size: 16px;
}
.dse-site .dse-footer .dse-block:not(#contact-secretariat) {
  display: inline-block;
  margin: 0 28px 20px 0;
  vertical-align: top;
}
.dse-site .dse-footer .dse-block:not(#contact-secretariat) h3 {
  font-size: 16px;
  margin: 0;
}
.dse-site .dse-footer .dse-block:not(#contact-secretariat) .dse-text-link {
  margin-top: 4px;
}
@media (max-width: 767px) {
  .dse-site .dse-title-line {
    font-size: clamp(1.5rem, 6.5vw, 3rem);
  }
  .dse-timeline-layout,
  .dse-route-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .dse-site .dse-programme-facts {
    margin: 32px 0 40px;
  }
}

/* Historical career programme content stays within this page's layout. */
.career-content .public-section {
  padding-block: 64px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 110px;
}
.career-content h2 {
  margin: 0 0 28px;
  color: var(--brand);
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.5;
}
.career-content .has-image .section-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.career-content .section-photo::after {
  display: none;
}
.career-content img {
  object-fit: contain;
}
.career-content .section-photo img {
  max-height: none;
  border-radius: 6px;
}
.career-content .prose {
  font-size: 1rem;
  line-height: 1.9;
}
.career-content #historical-notice {
  padding-block: 24px;
  background: var(--surface-selected);
}
.career-content #historical-notice h2 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.career-content #historical-notice .prose {
  font-size: 0.9rem;
}
.career-content .career-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 24px;
}
.career-content .career-section-nav a {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--brand);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}
.career-content .career-section-nav a:hover,
.career-content .career-section-nav a:focus-visible {
  border-color: var(--brand);
  background: var(--surface-selected);
}
.career-content .career-objective-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.career-content .career-objective-grid li {
  padding: 28px 22px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--text-inverse);
  text-align: center;
}
.career-content .career-objective-grid img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}
.career-content .career-objective-grid p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}
.career-content .career-schedule {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.career-content .career-schedule summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}
.career-content .career-schedule[open] summary {
  border-bottom: 1px solid var(--border);
}
.career-content .career-schedule .prose {
  padding: 24px;
}
.career-content .career-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-block: 24px 36px;
}
.career-content .career-testimonial {
  margin: 0;
  padding: 24px;
  border-left: 4px solid var(--brand);
  background: var(--surface-muted);
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.career-content .career-testimonial p {
  margin: 0 0 16px;
}
.career-content .career-testimonial footer {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
}
.career-content .section-gallery {
  width: 100%;
}
.career-content .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.career-content #details .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .career-content .career-objective-grid,
  .career-content .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .career-content .public-section {
    padding-block: 40px;
  }
  .career-content .has-image .section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .career-content .career-section-nav {
    gap: 8px;
  }
  .career-content .career-section-nav a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .career-content .career-objective-grid,
  .career-content .career-testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .career-content .career-schedule summary,
  .career-content .career-schedule .prose,
  .career-content .career-testimonial {
    padding: 20px;
  }
  .career-content .gallery-grid {
    gap: 10px;
  }
}
