/* UtilityOS jobs site — tokens from landing-page/BRAND.md */

:root {
  --uos-blue: #186ca1;
  --uos-blue-hover: #135887;
  --uos-blue-30: #9abdd3;
  /* Light-on-blue text tint: ≥4.5:1 against --uos-blue, unlike --uos-blue-30. */
  --uos-blue-text: #e1ecf3;
  --uos-lightblue: #25a3d9;
  --uos-ink: #131517;
  --uos-ink-2: #2a2d31;
  --uos-ink-3: #545861;
  --uos-mute: #8a8d92;
  --uos-line: #dcdee0;
  --uos-line-soft: #ebecee;
  --uos-surface: #f5f6f7;
  --uos-surface-2: #fafafb;
  --uos-paper: #ffffff;

  --font-display: 'Encode Sans Expanded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 2px rgba(19, 21, 23, .06), 0 1px 1px rgba(19, 21, 23, .04);
  --shadow-md: 0 4px 12px rgba(19, 21, 23, .07), 0 1px 2px rgba(19, 21, 23, .04);
  --shadow-ring: 0 0 0 3px rgba(24, 108, 161, .18);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; }

/* Stop iOS Safari from inflating text when rotating to landscape. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--uos-ink);
  /* iOS Safari paints rubber-band overscroll with the BODY background
     (html is ignored) — keep body blue to match header/footer; main
     carries the light bg. */
  background: var(--uos-blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  width: 100%;
  background: var(--uos-paper);
  padding-bottom: 64px;
}

strong, b { font-weight: 600; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--uos-ink);
}

h1 { font-size: 40px; margin: 48px 0 12px; }
h2 { font-size: 28px; margin: 40px 0 8px; }

a { color: var(--uos-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Transparent outline stays invisible normally but becomes a real
   indicator in Windows High Contrast / forced-colors mode, where
   box-shadow is stripped. */
a:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 1px;
  box-shadow: var(--shadow-ring);
  border-radius: 2px;
}

/* Visually hidden until keyboard-focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 10px 16px;
  background: var(--uos-paper);
  color: var(--uos-blue);
  border-radius: 0 0 var(--radius-sm) 0;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 0;
}

main:focus { outline: none; }

/* Blue header band with the light-blue glow — treatment from utilityos.com
   and the consumer-electricity-rates page. */
.site-header {
  position: relative;
  overflow: hidden;
  background: var(--uos-blue);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 48% at 50% 36%, rgba(37, 163, 217, 0.30), transparent 70%);
}

.header-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* White knockout wordmark via mask, with the small TM superscript. */
.logo-wrap { position: relative; display: inline-block; }

.wordmark {
  display: block;
  width: 190px;
  height: 56px;
  background: #fff;
  -webkit-mask: url("/assets/utilityos-logo.svg") no-repeat center / contain;
  mask: url("/assets/utilityos-logo.svg") no-repeat center / contain;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.22));
}

.logo-wrap .tm {
  position: absolute;
  bottom: 4px;
  right: -17px;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
}

.header-badge {
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.hero {
  position: relative;
  padding-top: 40px;
  padding-bottom: 72px;
}

.hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(28px, 4.2vw, 44px);
  max-width: 18em;
}

.hero-sub {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

/* Padding (with offsetting margins) grows the tap target to ~42px
   without shifting the visual layout (WCAG 2.5.8). */
.back-link {
  display: inline-block;
  margin: 22px 0 0 -8px;
  padding: 10px 8px;
  font-size: 14px;
}

.back-link + .eyebrow { margin-top: 14px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--uos-ink-3);
  margin: 48px 0 0;
}

.eyebrow + h1 { margin-top: 8px; }

.lede { font-size: 18px; color: var(--uos-ink-2); margin: 0 0 32px; }

.job-meta { font-size: 14px; color: var(--uos-ink-3); margin: 0 0 32px; }

/* Pill row under the job title — echoes the .header-badge treatment. */
.job-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 36px;
}

.job-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--uos-blue-hover);
  background: rgba(24, 108, 161, 0.06);
  border: 1px solid rgba(24, 108, 161, 0.22);
  border-radius: 999px;
  padding: 5px 14px 5px 11px;
  white-space: nowrap;
}

.job-facts svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--uos-lightblue);
}

/* Match the .accent-head treatment from the index, minus the accent glyph. */
.job-body h2 {
  font-size: 22px;
  color: var(--uos-blue);
  font-weight: 500;
}
.job-body { margin-bottom: 40px; }

.how-to-apply {
  margin: 8px 0 64px;
  padding-top: 32px;
  border-top: 1px solid var(--uos-line-soft);
}

.how-to-apply h2 {
  font-size: 22px;
  color: var(--uos-blue);
  font-weight: 500;
}

.apply-cta {
  text-align: center;
  margin: 32px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--uos-blue);
  color: var(--uos-paper);
  font-size: 16px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: background 120ms var(--ease), transform 120ms var(--ease), box-shadow 120ms var(--ease);
}

.button svg { width: 18px; height: 18px; flex-shrink: 0; }

.button:hover {
  background: var(--uos-blue-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button:focus-visible { box-shadow: var(--shadow-ring); }

.why { margin-top: 56px; }

.why p { color: var(--uos-ink-2); }

.open-roles-heading { margin-top: 56px; }

.team { margin-bottom: 8px; }

.team h3 { font-size: 22px; font-weight: 500; margin: 32px 0 8px; }

/* Section heading + brand accent glyph tucked behind the first letter —
   treatment from the consumer-electricity-rates page. */
.accent-head {
  position: relative;
  z-index: 0;
  color: var(--uos-blue);
  font-weight: 500;
}

.accent-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 96px;
  height: 79px;
  top: -22px;
  left: -26px;
  background: linear-gradient(90deg, #13578c, var(--uos-lightblue));
  opacity: 0.16;
  -webkit-mask: url("/assets/utilityos-accent.svg") no-repeat center / contain;
  mask: url("/assets/utilityos-accent.svg") no-repeat center / contain;
}

.job-list {
  list-style: none;
  margin: 16px 0 32px;
  padding: 0;
}

.job-list li {
  border: 1px solid var(--uos-line);
  border-radius: var(--radius-md);
  background: var(--uos-paper);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.job-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-list a { font-family: var(--font-display); font-size: 18px; display: block; }

.job-list .job-meta { margin: 4px 0 0; }

.empty-state {
  margin: 24px 0 64px;
  color: var(--uos-ink-3);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--uos-ink-3);
}

.empty-state p {
  margin: 0;
  max-width: 60ch;
}

/* Links inside body copy get a persistent underline so they don't rely
   on color alone (WCAG 1.4.1). */
.empty-state a,
.job-body a,
.how-to-apply p a,
.why a {
  text-decoration: underline;
}

/* Blue footer with the white icon mark — treatment from utilityos.com. */
.site-footer {
  padding: 72px 0 40px;
  background: var(--uos-blue);
  color: #fff;
  text-align: center;
}

.site-footer a:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }

.footer-tagline {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin: 0 auto 40px;
  max-width: 24em;
}

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Padding + offsetting negative margin: ~44px tap target, same layout. */
  padding: 10px 6px;
  margin: -10px -6px;
  color: var(--uos-blue-text);
  font-size: .95rem;
  transition: color 120ms var(--ease);
}

.social:hover { color: #fff; text-decoration: none; }

.social svg { width: 22px; height: 22px; display: block; }

.legal {
  font-size: .82rem;
  color: var(--uos-blue-text);
  margin: 0;
}

.legal + .legal { margin-top: .5rem; }

.legal a { color: var(--uos-blue-text); text-decoration: underline; }

.legal a:hover { color: #fff; }

.footer-mark-wrap {
  display: block;
  position: relative;
  width: 62px;
  margin: 0 auto 30px;
}

.footer-mark {
  display: block;
  width: 62px;
  height: 90px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-mask: url("/assets/utilityos-icon.svg") no-repeat center / contain;
  mask: url("/assets/utilityos-icon.svg") no-repeat center / contain;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.28));
}

.footer-mark-wrap::after {
  content: "\2122";
  position: absolute;
  bottom: 2px;
  right: -16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

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

  .job-list li:hover { transform: none; }
}

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .wordmark { width: 130px; height: 38px; }
  .logo-wrap .tm { right: -14px; bottom: 2px; }

  /* Scale the accent glyph down with the smaller headings and pull it
     inside the page padding so it doesn't clip at the viewport edge. */
  .accent-head::before {
    width: 72px;
    height: 59px;
    top: -16px;
    left: -18px;
  }
}
