:root {
  --candidate-gutter: clamp(20px, 4vw, 48px);
  --candidate-width: 1120px;
  --candidate-panel: #fbfaf7;
  --candidate-border: #d3d0c7;
}

.public-page.candidate-surface {
  margin: 0;
  padding-top: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 'DM Sans', sans-serif;
}

.candidate-surface *, .candidate-surface *::before, .candidate-surface *::after { box-sizing: border-box; }

.candidate-home-page :where(h1, h2, h3, p) { margin: 0; }

.candidate-container {
  width: min(var(--candidate-width), calc(100% - 2 * var(--candidate-gutter)));
  margin-inline: auto;
}

.candidate-surface .site-header {
  position: relative;
  inset: auto;
  width: min(1280px, calc(100% - 2 * var(--candidate-gutter)));
  min-height: 62px;
  margin: 12px auto 0;
  padding: 4px 6px 4px 16px;
  gap: 12px;
  border-color: var(--candidate-border);
  background: var(--candidate-panel);
  transform: none;
}

.candidate-surface .site-header.is-scrolled { transform: none; }
.candidate-surface .site-footer-inner.shell { width: min(var(--candidate-width), calc(100% - 2 * var(--candidate-gutter))); }
.candidate-surface .site-header .main-nav { margin-inline-start: auto; }
.candidate-surface .site-header .main-nav a { font-weight: 550; }
.candidate-surface .site-header .cta-symbol { display: none; }
.candidate-surface .site-header .cta-label { height: 44px; padding-inline: 17px; font-weight: 650; }
.candidate-surface .site-header .brand img { width: 30px; }
.candidate-surface .site-header .brand > span { font-size: clamp(20px, 4.8vw, 24px); }
.candidate-surface .site-header .header-actions { gap: 2px; }
.candidate-surface .site-header .menu-button { width: 44px; height: 44px; }

.candidate-surface .skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--paper);
  transform: translateY(-180%);
}

.candidate-surface .skip-link:focus { transform: none; }
.candidate-surface main:focus { outline: none; }

.candidate-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--candidate-panel);
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.candidate-primary:hover { background: #373733; }

.candidate-home-openings > .text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 4px;
}

@media (max-width: 799px) {
  .candidate-surface .site-header:not([data-nav-ready]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 18px;
  }

  .candidate-surface .site-header:not([data-nav-ready]) .main-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-inline-start: 0;
  }

  .candidate-surface .site-header:not([data-nav-ready]) .header-actions { grid-column: 2; grid-row: 1; }
}

@media (max-width: 639px) {
  .candidate-surface .site-header { width: calc(100% - 24px); min-height: 56px; gap: 4px; padding-inline: 10px 3px; }
  .candidate-surface .site-header .brand { gap: 5px; }
  .candidate-surface .site-header .brand img { width: 25px; }
  .candidate-surface .site-header .brand .brand-work { margin-inline-start: 5px; font-size: 10px; }
  .candidate-surface .site-header .cta-label { padding-inline: 12px; }
  .candidate-surface .site-header .brand-work { display: none; }
}
