:root {
  color-scheme: dark;
  --navy: hsl(214 78% 13%);
  --background: hsl(214 60% 20%);
  --card: hsl(214 50% 26%);
  --input: hsl(214 56% 17%);
  --muted: hsl(213 33% 83%);
  --border: hsl(214 40% 48%);
  --accent: hsl(356 70% 42%);
  --heading: Archivo, system-ui, sans-serif;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: white;
  background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 82% 4%, hsl(214 54% 29%), transparent 46rem), var(--background);
}
header { background: var(--navy); border-bottom: 1px solid #ffffff24; }
.header-inner, main { width: min(100% - 40px, 1120px); margin-inline: auto; }
.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; padding-block: 8px; }
.brand img { display: block; width: auto; height: 70px; max-width: 60vw; object-fit: contain; }
main { padding-block: clamp(28px, 5vw, 60px); }
h1, h2, button { font-family: var(--heading); }
h1 {
  color: white;
  font-size: clamp(1.85rem, 5vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.04;
  text-transform: uppercase;
  margin: 0 0 24px;
}
h1::after { content: ""; display: block; margin-top: 16px; width: 52px; height: 4px; background: var(--accent); }
form, article, details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  align-items: end;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 24px);
}
label { display: grid; gap: 6px; min-width: 0; font-weight: 600; }
input, select, button {
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: white;
  background: var(--input);
  min-height: 44px;
  padding: 9px 12px;
}
input, select { font-family: inherit; width: 100%; }
input::placeholder { color: var(--muted); }
button { cursor: pointer; font-weight: 700; }
button:hover:not(:disabled) { border-color: white; }
button:disabled { opacity: .55; cursor: default; }
form button { background: var(--accent); border-color: transparent; }
form button:hover:not(:disabled) { background: hsl(356 68% 36%); }
:focus-visible { outline: 2px solid white; outline-offset: 3px; }
#status { color: var(--muted); margin-block: 16px; }
#status:empty { display: none; }
#portals { margin-block: 16px; }
article { padding: 18px; margin-bottom: 12px; overflow-wrap: anywhere; }
article h2 { font-size: 1.2rem; margin: 0 0 8px; }
article p { margin: 5px 0; }
article footer, #pages { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
a { color: white; text-underline-offset: .2em; }
small { color: var(--muted); }
details { padding: 12px 16px; }
summary { cursor: pointer; font-weight: 600; }
details ul { columns: 2; padding-left: 20px; }
details li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 620px) {
  details ul { columns: 1; }
  .header-inner { min-height: 76px; }
  .brand img { height: 58px; }
}

:root { --mono: "IBM Plex Mono", monospace; }
.site-width, .header-inner {
  width: min(100% - 48px, 1392px);
  margin-inline: auto;
}
.contact-strip {
  border-bottom: 1px solid #ffffff24;
  font: 500 11px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.contact-strip .site-width {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 6px;
  color: var(--muted);
}
.contact-emails {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
  margin-inline-start: auto;
  text-transform: none;
  overflow-wrap: anywhere;
}
.contact-strip a, .company-nav a { text-decoration: none; }
.header-inner { min-height: 110px; }
.brand img { height: 92px; }
.company-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.company-nav a, #saved, .hero-action {
  font: 600 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .13em;
}
.company-nav a { color: var(--muted); }
.company-nav a:hover, .company-nav a:focus-visible { color: white; }
#saved, .hero-action, form button { border-radius: 0; }
#saved { background: var(--accent); border-color: transparent; }
main { width: 100%; padding: 0 0 48px; }
.hero {
  background: linear-gradient(90deg, hsl(214 78% 13% / .99) 6%, hsl(214 78% 13% / .92) 44%, hsl(214 78% 13% / .81)),
    var(--navy) url("/jg-hero.webp") center / cover no-repeat;
  border-bottom: 1px solid #ffffff24;
  padding-block: clamp(48px, 8vw, 108px);
}
.hero-label {
  font: 600 13px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 20px; }
.hero h1::after { display: none; }
.hero p:not(.hero-label) { color: var(--muted); max-width: 42rem; line-height: 1.6; }
.hero-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 21px;
  margin-top: 10px;
  background: var(--accent);
  text-decoration: none;
}
.finder { padding-top: clamp(24px, 5vw, 48px); }
.finder > h2 { margin: 0 0 16px; text-transform: uppercase; }
form, article, details, input, select { border-radius: 0; }
@media (max-width: 850px) {
  .company-nav { display: none; }
  .brand img { height: 74px; }
  .header-inner { min-height: 88px; }
}
@media (max-width: 620px) {
  .contact-strip .site-width > span { display: none; }
  .site-width, .header-inner { width: calc(100% - 32px); }
  .brand img { height: 61px; }
  .header-inner { min-height: 74px; }
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.pipeline-editor {
  margin-top: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.pipeline-editor textarea {
  font: inherit;
  color: white;
  background: var(--input);
  border: 1px solid var(--border);
  padding: 9px 12px;
  width: 100%;
  min-height: 88px;
  resize: vertical;
}
.pipeline-editor button { justify-self: start; }
