/* Shared layout for Job Search tools and their directory. */
:root {
  --job-ink: #172d29;
  --job-muted: #4e625c;
  --job-line: #c4d1ca;
  --job-accent: #185947;
  --job-tint: #e5f1e9;
  --job-paper: #fff;
  --job-background: #f6f8f2;
  --job-error: #9c322c;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--job-ink);
  background: var(--job-background);
  font: 1rem/1.55 system-ui, sans-serif;
}
.job-shell, .site-header-inner {
  width: min(100% - 36px, 1180px);
  margin-inline: auto;
}
.job-shell { padding-block: clamp(22px, 4vw, 54px) 56px; }
a { color: var(--job-accent); text-underline-offset: .16em; }
:focus-visible { outline: 3px solid #2366c7; outline-offset: 3px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 104px; }
h1, h2, h3 { line-height: 1.16; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 5vw, 3.15rem); letter-spacing: -.045em; }
.job-intro { margin-block-end: clamp(18px, 4vw, 30px); }
.job-intro h1 { margin: .28em 0 .15em; }
.job-intro p { max-width: 64ch; margin-block: .45em; color: var(--job-muted); }
.job-intro > a { font-size: .9rem; font-weight: 700; }
.job-panel {
  min-width: 0;
  padding: clamp(15px, 2.3vw, 26px);
  border: 1px solid var(--job-line);
  border-radius: 16px;
  background: var(--job-paper);
  box-shadow: 0 3px 10px #20392f09;
  overflow-wrap: anywhere;
}
.job-panel > :first-child { margin-top: 0; }
.job-panel > :last-child { margin-bottom: 0; }
.job-panel :is(h2, h3) { margin-block: 0 .55em; }
.job-panel h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.job-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.job-shell :is(button, .job-button, .job-primary, .job-secondary) {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: .45em;
  padding: .55em .85em;
  border: 1px solid #9db0a6;
  border-radius: 9px;
  background: #fff;
  color: var(--job-ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.job-shell .job-primary { background: var(--job-accent); border-color: var(--job-accent); color: white; }
.job-shell :is(button, .job-button, .job-secondary):hover { border-color: var(--job-accent); }
.job-shell .job-primary:hover { background: #104a39; }
.job-shell button:disabled { opacity: .55; cursor: default; }
.job-shell :is(input:not([type="radio"], [type="checkbox"], [type="file"]), textarea, select) {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: .52em .64em;
  border: 1px solid #9db0a6;
  border-radius: 8px;
  background: white;
  color: inherit;
  font: inherit;
}
.job-shell textarea { resize: vertical; }
.job-shell :is(summary, label) { font-weight: 680; }
.job-shell summary { cursor: pointer; }
.job-field { display: grid; gap: 5px; min-width: 0; }
.job-field small, .job-muted, .job-status { color: var(--job-muted); }
.job-field small, .job-status { font-size: .875rem; }
.job-status:empty { display: none; }
.job-shell :is([aria-invalid="true"], [data-error="true"]) { border-color: var(--job-error); }
.job-status[data-error="true"] { color: var(--job-error); }
.job-trust {
  background: var(--job-tint);
  border: 1px solid #bfd3c7;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9rem;
}
.job-related { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--job-line); }
.job-related h2 { margin: 0 0 8px; font-size: 1.2rem; }
.job-related ul { display: flex; flex-wrap: wrap; gap: .5em 1.5em; padding: 0; list-style: none; }
.job-related a { font-weight: 660; }
.job-editor-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); gap: clamp(15px, 2vw, 26px); align-items: start; }
@media (max-width: 760px) {
  .job-shell, .site-header-inner { width: calc(100% - 28px); }
  .job-editor-layout { grid-template-columns: minmax(0, 1fr); }
}
