/* careers.bavlio.com: Ashby's job posting layout (sizes and spacing measured on jobs.ashbyhq.com, Nov 30 2026) in
   bavlio.com's font and colours (Instrument Sans, canvas #fbfaf8, ink #0c0c0c, ink-2 #515151, ember #e4640f / #ff8a3d). */
@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --canvas: #fbfaf8;
  --paper: #ffffff;
  --ink: #0c0c0c;
  --ink-raise: #191919;
  --ink-2: #515151;
  --ink-3: #6b6b6b;
  --flow: #8f8f8f;
  --line: #e0e0e0;
  --rule: #cfcfcf;
  --stage: #f0f0f0;
  --ember: #ff8a3d;
  --ember-solid: #e4640f;
  --ember-ink: #a84606;
  --ember-soft: #fff1e6;
  --red: #dc3030;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-raise);
  font-family: "Instrument Sans Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }

/* Header: the logo centred, as on Ashby; the Apply button on the right (Copy). */
.top-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 26px 12px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 28px; width: auto; display: block; }
.top-right { justify-self: end; }
body[data-tab="application"] #apply-top { visibility: hidden; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 12px 96px; }
h1 {
  margin: 36px 0 0;
  padding: 0 12px;
  font-size: 24px;
  line-height: 33.6px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cols { display: grid; grid-template-columns: 300px 1fr; gap: 0; margin-top: 24px; }

/* The meta block (Ashby's left column). */
.meta { padding: 58px 16px 0 16px; }
.meta-row { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); max-width: 268px; }
.meta-row:last-child { border-bottom: 0; }
.meta h2 { margin: 0 0 8px; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.meta p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-raise); }

.content { padding: 0 0 0 0; min-width: 0; }
.tabs { display: flex; gap: 16px; padding: 0 16px; }
.tab {
  display: block;
  width: 200px;
  padding: 0 0 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ember-solid); }
.tab:focus-visible { outline: 4px solid rgba(228, 100, 15, 0.22); outline-offset: 2px; border-radius: 4px; }

.panel { padding: 20px 16px 0; max-width: 700px; }

/* The Overview body: Ashby's type scale. */
.description h2 { margin: 12px 0 0; font-size: 18px; line-height: 25.2px; font-weight: 600; color: var(--ink); }
.description h2:first-child { margin-top: 0; }
.description p { margin: 8px 0 0; }
.description h2 + p { margin-top: 8px; }
.description ul { margin: 16px 0; padding-left: 48px; }
.description li { margin: 0; }
.description li + li { margin-top: 4px; }
.description p + h2, .description ul + h2 { margin-top: 28px; }

/* Buttons: Ashby's shapes, Bavlio's ember. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ember);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(28, 26, 51, 0.1);
}
.btn-primary:hover { background: #ff7a24; }
.btn-primary:focus-visible, .btn-outline:focus-visible, .btn-dark:focus-visible, .yesno button:focus-visible {
  outline: 4px solid rgba(228, 100, 15, 0.25);
  outline-offset: 1px;
}
.btn-small { padding: 11px 16px; font-size: 15px; }
.btn-block { display: flex; width: 100%; padding: 16px; margin-top: 40px; }
.btn-submit { margin-top: 0; padding: 14px 16px; }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }

.btn-outline, .btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 16px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(28, 26, 51, 0.1);
}
.btn-outline { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--stage); }
.btn-dark { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-dark:hover { background: #262626; }

/* The application form: Ashby's field order and spacing. */
form { margin: 0; }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink-2);
}
.req { color: var(--red); margin-left: 1px; }
.help { margin: -4px 0 8px; font-size: 12px; line-height: 18px; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"] {
  display: block;
  width: 100%;
  height: 52px;
  padding: 16px;
  border: 1px solid var(--flow);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 18.4px;
}
input::placeholder { color: var(--flow); }
input:focus { outline: 4px solid rgba(228, 100, 15, 0.18); outline-offset: 0; border-color: var(--ink-3); }
.field.invalid input { border-color: var(--red); }
.error { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--red); }

.yesno { display: inline-flex; }
.yesno button {
  width: 80px;
  height: 52px;
  padding: 16px;
  border: 1px solid #d5d5d5;
  background: transparent;
  color: var(--flow);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.yesno button:first-child { border-radius: 8px 0 0 8px; }
.yesno button:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.yesno button:hover { color: var(--ink); }
.yesno button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.field.invalid .yesno button { border-color: var(--red); }

/* The voice note: Ashby's dashed upload box, with Record beside Upload. */
.drop {
  border: 1px dashed #d5d5d5;
  border-radius: 16px;
  padding: 32px;
  background: transparent;
}
.field.invalid .drop { border-color: var(--red); }
.drop.dragging { border-color: var(--ember-solid); background: var(--ember-soft); }
.voice-start, .voice-again { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.or { color: var(--ink-2); font-size: 16px; }
.voice-rec { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); min-width: 92px; }
.meter { width: 120px; height: 6px; border-radius: 3px; background: var(--stage); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--ember-solid); transition: width 0.1s linear; }
.voice-done { display: flex; flex-direction: column; gap: 16px; }
.clip { display: flex; align-items: center; gap: 14px; }
.track { flex: 1; height: 6px; border-radius: 3px; background: var(--stage); overflow: hidden; }
.track span { display: block; height: 100%; width: 0; background: var(--ember-solid); }
.clip .timer { min-width: 0; text-align: right; }
.clip-name { margin: -8px 0 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
#play-btn[aria-pressed="true"] .i-play { opacity: 0.45; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.under { margin: 12px 0 0; font-size: 12px; line-height: 18px; color: var(--ink-3); text-align: center; }
.form-error { text-align: center; margin: 12px 0 0; }

.thanks { text-align: center; padding: 48px 16px 24px; outline: none; }
.thanks-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ember-soft); color: var(--ember-solid); }
.thanks h2 { margin: 20px 0 0; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--ink); }
.thanks p { margin: 8px 0 0; color: var(--ink-2); }

/* Phone: Ashby stacks the meta block above the tabs. */
@media (max-width: 760px) {
  .top-inner { grid-template-columns: auto 1fr; padding: 20px 24px 0; min-height: 72px; }
  .top-inner > .top-side:first-child { display: none; }
  .logo img { height: 24px; }
  .wrap { padding: 0 12px 64px; }
  h1 { margin-top: 28px; font-size: 20px; line-height: 28px; }
  .cols { display: block; margin-top: 16px; }
  .meta { padding: 8px 12px 24px; }
  .meta-row { max-width: none; }
  .meta-row:last-child { margin-bottom: 0; padding-bottom: 0; }
  .tabs { padding: 0; gap: 0; }
  .tab { width: 50%; text-align: center; }
  .panel { padding: 20px 12px 0; }
  .description ul { padding-left: 28px; }
  .drop { padding: 24px 16px; }
  .voice-start, .voice-again { flex-direction: column; align-items: stretch; gap: 10px; }
  .voice-start .btn-outline, .voice-again .btn-outline { justify-content: center; }
  .voice-start .or, .voice-again .or { text-align: center; }
}

/* The dropdown: the inputs' box with a chevron, as on Ashby's Location field. */
.select { position: relative; }
.select select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--flow);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select select:focus { outline: 4px solid rgba(228, 100, 15, 0.18); outline-offset: 0; border-color: var(--ink-3); }
.select svg { position: absolute; right: 16px; top: 17px; color: var(--ink-3); pointer-events: none; }
.field.invalid select { border-color: var(--red); }
