/* Shared visual language for Phasepoint's service and careers pages. */
:root {
  --ink: #091c29;
  --navy: #091c29;
  --blue: #78dcf0;
  --muted: #5d6e78;
  --line: #d6e0e4;
  --soft: #f3f6f7;
  --accent: #091c29;
  --accent-dark: #194152;
  --green: #267054;
  --bs-body-font-family: "Arial", "Helvetica Neue", sans-serif;
  --bs-body-color: #091c29;
  --bs-secondary-color: #5d6e78;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Arial", "Helvetica Neue", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: #bdeef7; }
a { text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #267c91;
  outline-offset: 4px;
}
.site-frame { width: min(100%, 1408px); max-width: 1408px; padding-inline: clamp(1.25rem, 4.4vw, 4.5rem); }
.announcement {
  background: var(--navy);
  color: #b8c9d3;
  border-bottom: 1px solid #233746;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .04em;
  padding-block: .65rem !important;
}
.announcement a { color: #e4f4f8; font-weight: 500; }
.site-nav { background: var(--navy); box-shadow: none; border-bottom: 1px solid #233746; padding-block: 1rem !important; }
.site-nav .navbar-brand { margin-right: 2rem; gap: .8rem !important; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #78dcf080;
  border-radius: 0;
  color: #78dcf0;
  background: transparent;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}
.brand-name { color: #fff; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.65rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.brand-name > span { display: block; font-size: .47rem; font-weight: 500; letter-spacing: .2rem; margin-top: .5rem; }
img.brand-mark { border: 0; width: 2.75rem; height: 2.75rem; }
.site-nav .nav-link { color: #c3d0d7; font-size: .78rem; font-weight: 400; white-space: nowrap; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #78dcf0; }
.btn {
  --bs-btn-border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: .85rem 1.35rem;
  border-radius: 0;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .005em;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { --bs-btn-bg: #091c29; --bs-btn-border-color: #091c29; --bs-btn-hover-bg: #194152; --bs-btn-hover-border-color: #194152; --bs-btn-active-bg: #194152; background: #091c29; border-color: #091c29; color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: #194152; border-color: #194152; color: #fff; }
.site-nav .btn-primary { min-height: 2.6rem; padding: .65rem 1rem; color: var(--ink); background: #78dcf0; border-color: #78dcf0; font-size: .75rem; }
.site-nav .btn-primary:hover { background: #a3eafa; border-color: #a3eafa; }
.section-label { color: #426071; font-size: .65rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.section-label::before { content: ""; display: inline-block; width: 1.55rem; height: 1px; margin: 0 .7rem .2rem 0; background: currentColor; }
h1, h2, h3 { font-family: "Arial", "Helvetica Neue", sans-serif; color: var(--ink); }
h2, h3 { font-weight: 400; letter-spacing: -.04em; line-height: 1.18; }
.h4 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); font-weight: 400; letter-spacing: -.04em; }
.lead { font-size: 1.1rem; font-weight: 400; line-height: 1.7; }
.panel { background: var(--soft); border: 0; border-radius: 0; box-shadow: none; }
.career-hero, .apply-hero { padding-block: clamp(3.5rem, 7vw, 7rem) 3.5rem; }
.career-hero h1, .apply-hero h1 {
  max-width: 17ch;
  color: var(--navy);
  font-family: "Arial", "Helvetica Neue", sans-serif;
  font-size: clamp(2.8rem, 6.2vw, 6rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: 1.04;
}
.career-hero .lead, .apply-hero .lead { max-width: 47rem; }
.career-hero { border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.role-card { display: flex; flex-direction: column; min-height: 100%; padding: 2.1rem !important; border-top: 2px solid var(--navy); }
.role-card:nth-child(2), .role-card:nth-child(3) { border-top-color: var(--navy); }
.role-pill { display: inline-flex; width: fit-content; border-radius: 0; background: none; color: #496473; padding: 0; font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.role-card h2 { min-height: 2.4em; }
.role-card .btn { margin-top: auto; }
.role-card p, .role-list { font-size: .91rem; }
.role-list { padding-left: 1.1rem; }
.role-list li + li { margin-top: .75rem; }
.apply-hero { max-width: 56rem; }
form[data-application-form] { max-width: 64rem; margin-inline: auto; }
.form-label { font-size: .83rem; font-weight: 500; }
.form-control, .form-select { min-height: 3.2rem; border: 1px solid #c5d2d9; border-radius: 0; background-color: #fff; font-size: .92rem; }
textarea.form-control { min-height: 7rem; padding: .8rem; }
.form-control:focus, .form-select:focus { border-color: #267c91; box-shadow: 0 0 0 .2rem #78dcf02e; }
.form-check-input:checked { background-color: #194152; border-color: #194152; }
.form-check-input:focus { border-color: #267c91; box-shadow: 0 0 0 .2rem #78dcf02e; }
.choice-card { border: 1px solid var(--line); border-radius: 0; padding: 1.25rem; background: #fff; font-size: .9rem; }
.choice-card:has(input:checked) { border-color: #267c91; box-shadow: inset 0 0 0 1px #267c91; }
.choice-card span { font-size: .84rem; }
.form-check-label { font-size: .85rem; }
.alert { border-radius: 0; }

@media (min-width: 992px) {
  .career-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 5rem; align-items: end; }
  .career-hero .section-label { grid-column: 1 / -1; }
  .career-hero h1 { margin-bottom: 0 !important; }
  .career-hero .lead { padding-bottom: .25rem; }
}
@media (max-width: 991.98px) {
  .site-nav .container { flex-wrap: wrap; }
  .site-nav .navbar-brand { margin-right: .5rem; }
  .site-nav .nav-link { font-size: .7rem; }
  .site-nav .ms-auto { gap: .7rem !important; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card h2 { min-height: 0; }
}
@media (max-width: 767.98px) {
  .site-nav { position: relative; padding-bottom: .5rem !important; }
  .site-nav .navbar-brand { margin-bottom: .75rem; }
  .site-nav .ms-auto { display: flex !important; width: 100%; margin: 0 !important; gap: 1.15rem !important; padding-block: .65rem; border-top: 1px solid #233746; overflow-x: auto; }
  .site-nav .nav-link { flex: 0 0 auto; font-size: .75rem; }
  .site-nav .btn { flex: 0 0 auto; }
  .navbar-brand span:last-child { max-width: none; white-space: normal; }
  .announcement { font-size: .65rem; }
  .career-hero h1, .apply-hero h1 { max-width: 16ch; font-size: clamp(2.8rem, 10.5vw, 4.5rem); }
  .role-card { padding: 1.6rem !important; }
  .choice-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
