/* Allerin Careers.
 *
 * The tokens below are allerin.com's own, copied verbatim from its
 * src/index.css (all 68 were verified byte-identical to the deployed
 * stylesheet, modulo minifier whitespace). The component rules reproduce the
 * shadcn classes the site uses, so a candidate crossing from
 * allerin.com/careers to careers.allerin.com sees one design and not two.
 *
 * Written by hand rather than generated by Tailwind: this app is
 * server-rendered Jinja with no Node build step, and a job application form
 * does not justify adding one. Where a rule mirrors a Tailwind class the class
 * is named in a comment so the two can be kept in step.
 */

:root {
  /* --- allerin.com tokens, verbatim --- */
  --background: 0 0% 99%;
  --foreground: 215 25% 15%;
  --card: 0 0% 100%;
  --card-foreground: 215 25% 15%;
  --primary: 200 100% 45%;
  --primary-foreground: 0 0% 100%;

  --data-orange: 25 95% 60%;
  --data-amber: 45 93% 58%;
  --data-teal: 180 70% 50%;
  --data-cyan: 200 100% 45%;
  --data-blue: 220 90% 55%;

  --surface: 210 40% 98%;
  --surface-variant: 220 20% 95%;
  --outline: 220 15% 85%;

  --secondary: 220 20% 95%;
  --secondary-foreground: 215 25% 15%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 15% 40%;
  --accent: 200 100% 45%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 15% 90%;
  --input: 220 20% 96%;
  --ring: 200 100% 45%;
  --radius: 0.5rem;

  --gradient-surface: linear-gradient(135deg, hsl(0 0% 100%), hsl(220 20% 98%));
  --gradient-hero: linear-gradient(135deg, hsl(0 0% 99%), hsl(210 40% 98%));
  --gradient-cool: linear-gradient(135deg, hsl(180 70% 50%), hsl(200 100% 45%));

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-soft: 0 2px 8px hsl(215 25% 15% / 0.08);
  --shadow-medium: 0 4px 16px hsl(215 25% 15% / 0.12);
  --shadow-large: 0 8px 32px hsl(215 25% 15% / 0.16);

  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  --section-padding-y: var(--spacing-4xl);
  --container-padding: var(--spacing-lg);
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: hsl(var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }

/* container mx-auto px-6, 2xl screen 1400px */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
/* the reading column the careers page uses: max-w-4xl mx-auto */
.prose-column { max-width: 56rem; margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus {
  left: 0.5rem; top: 0.5rem; z-index: 50; position: absolute;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem; border-radius: calc(var(--radius) - 2px);
}

/* --- Header: sticky top-0 z-50 border-b border-outline/20 backdrop-blur-md --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid hsl(var(--outline) / 0.2);
  background: var(--gradient-surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.site-header .bar {
  display: flex; height: 4rem; align-items: center; justify-content: space-between;
}
.site-header img { height: 2rem; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: var(--spacing-lg); }
.site-nav a {
  color: hsl(var(--foreground)); font-weight: 500; font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.site-nav a:hover { color: hsl(var(--data-teal)); text-decoration: none; }

/* --- Typography --- */
h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 700; margin: 0 0 var(--spacing-lg); letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; line-height: 1.25; font-weight: 700; margin: 0 0 var(--spacing-lg); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 600; margin: 0 0 var(--spacing-sm); }
p { margin: 0 0 var(--spacing-md); }

.lead { font-size: 1.25rem; color: hsl(var(--muted-foreground)); }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 0.875rem; }
.fineprint { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem;
  font-weight: 600; color: hsl(var(--muted-foreground)); margin: 0 0 0.35rem;
}

main { padding-top: var(--spacing-3xl); padding-bottom: var(--spacing-4xl); }
section { margin-bottom: var(--spacing-3xl); }     /* mb-16 */
section:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  main { padding-top: var(--spacing-4xl); }
}

/* --- Card: border rounded-lg p-6 --- */
.card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  padding: var(--spacing-lg);
}
.card + .card { margin-top: var(--spacing-lg); }
.card.hoverable { transition: var(--transition-smooth); }
.card.hoverable:hover { border-color: hsl(var(--primary)); }
.card.notice { background: hsl(var(--surface)); border-color: hsl(var(--outline) / 0.5); }
.card.accent { background: hsl(var(--primary) / 0.06); border-color: hsl(var(--primary) / 0.3); }

.grid-2 { display: grid; gap: var(--spacing-lg); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stack { display: flex; flex-direction: column; gap: var(--spacing-lg); }

/* --- Badge: rounded-full border px-2.5 py-0.5 text-xs font-semibold --- */
.badge {
  display: inline-flex; align-items: center;
  border: 1px solid transparent; border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem; font-weight: 600; line-height: 1.4;
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  transition: var(--transition-smooth);
}
.badge.primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge.outline { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.badge.ok { background: hsl(160 60% 94%); color: hsl(160 70% 26%); }
.badge.warn { background: hsl(45 93% 92%); color: hsl(35 85% 30%); }
.badge.danger { background: hsl(var(--destructive) / 0.12); color: hsl(var(--destructive)); }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); }

/* --- Button: h-10 px-4 py-2 rounded-md text-sm font-medium --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: calc(var(--radius) - 2px);
  height: 2.5rem; padding: 0 1rem;
  font-family: inherit; font-size: 0.875rem; font-weight: 500;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); color: hsl(var(--foreground));
  cursor: pointer; transition: var(--transition-smooth);
}
.btn:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); text-decoration: none; border-color: hsl(var(--accent)); }
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn.primary { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn.primary:hover { background: hsl(var(--primary) / 0.9); border-color: hsl(var(--primary) / 0.9); }
.btn.lg { height: 2.75rem; padding: 0 2rem; font-size: 1rem; }
.btn.sm { height: 2.25rem; padding: 0 0.75rem; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn-link { color: hsl(var(--primary)); text-underline-offset: 4px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-sm); margin-top: var(--spacing-xl); }

/* --- Form controls --- */
.field { display: block; margin-bottom: var(--spacing-lg); }
.field > .label { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.4; margin-bottom: 0.375rem; }
.field > .help { display: block; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }
.req { color: hsl(var(--destructive)); }

input[type=text], input[type=email], input[type=tel], input[type=url],
input[type=number], input[type=search], select, textarea {
  display: flex; width: 100%;
  height: 2.5rem; padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); color: hsl(var(--foreground));
  font-family: inherit; font-size: 0.875rem; line-height: 1.5;
}
textarea { height: auto; min-height: 5rem; resize: vertical; }
select { height: 2.5rem; }
input::placeholder, textarea::placeholder { color: hsl(var(--muted-foreground)); }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid hsl(var(--ring)); outline-offset: 2px; border-color: hsl(var(--ring));
}
input[type=file] { font: inherit; font-size: 0.875rem; }

/* choice rows, styled like a bordered option card */
.choice {
  display: flex; align-items: flex-start; gap: 0.55rem;
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
  padding: 0.55rem 0.75rem; margin-bottom: 0.5rem;
  background: hsl(var(--card)); cursor: pointer;
  font-size: 0.925rem; transition: var(--transition-smooth);
}
.choice:hover { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.04); }
.choice input { margin: 0.3rem 0 0; accent-color: hsl(var(--primary)); }

.scale { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.35rem; }
.scale label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
  padding: 0.4rem 0.85rem; cursor: pointer; font-size: 0.875rem;
  background: hsl(var(--card)); transition: var(--transition-smooth);
}
.scale label:hover { border-color: hsl(var(--primary)); }
.scale input { accent-color: hsl(var(--primary)); }
.scale-ends { display: flex; justify-content: space-between; font-size: 0.8rem; color: hsl(var(--muted-foreground)); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.errors {
  border: 1px solid hsl(var(--destructive) / 0.35);
  background: hsl(var(--destructive) / 0.08);
  color: hsl(0 70% 32%);
  border-radius: var(--radius);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.errors ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }

/* --- Job listing, mirroring the site's Open Positions card --- */
.job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--spacing-lg); }
.job {
  display: block;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--card)); padding: var(--spacing-lg);
  color: inherit; transition: var(--transition-smooth);
}
.job:hover { border-color: hsl(var(--primary)); text-decoration: none; }
.job .title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; display: block; }
.job .meta { color: hsl(var(--muted-foreground)); margin-bottom: var(--spacing-md); }
.job .go { color: hsl(var(--primary)); font-size: 0.875rem; font-weight: 500; }
.job-head { display: flex; flex-wrap: wrap; gap: var(--spacing-md); align-items: flex-start; justify-content: space-between; }

.dept-heading {
  display: flex; align-items: baseline; gap: 0.6rem;
  margin: var(--spacing-2xl) 0 var(--spacing-md);
  font-size: 1.125rem; font-weight: 600;
}
.dept-heading .count { font-size: 0.8rem; font-weight: 400; color: hsl(var(--muted-foreground)); }

/* numbered process list, matching the careers page's ordered list */
ol.process { padding-left: 1.25rem; }
ol.process li { margin-bottom: var(--spacing-sm); }
ul.checks { padding-left: 1.25rem; }
ul.checks li { margin-bottom: var(--spacing-sm); }

/* --- Steps indicator for the application flow --- */
.steps { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 var(--spacing-xl); font-size: 0.8rem; }
.steps li {
  padding: 0.3rem 0.75rem; border-radius: 9999px;
  background: hsl(var(--secondary)); color: hsl(var(--muted-foreground));
}
.steps li.on { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 600; }
.steps li.done { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }

.parsed {
  display: inline-block; margin-left: 0.4rem;
  font-size: 0.7rem; font-weight: 500;
  background: hsl(var(--primary) / 0.1); color: hsl(200 100% 32%);
  border-radius: 9999px; padding: 0.05rem 0.5rem;
}

/* --- Tables (console and read-backs) --- */
table.grid { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.grid th, table.grid td {
  text-align: left; padding: 0.6rem 0.7rem;
  border-bottom: 1px solid hsl(var(--border)); vertical-align: top;
}
table.grid th { color: hsl(var(--muted-foreground)); font-weight: 500; white-space: nowrap; }
table.grid tr:last-child th, table.grid tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

.qa { margin-bottom: var(--spacing-md); }
.qa .q { font-weight: 600; margin-bottom: 0.15rem; }
.qa .a { white-space: pre-wrap; }
.qa .a.empty, .empty { color: hsl(var(--muted-foreground)); font-style: italic; }

.note { border-left: 3px solid hsl(var(--border)); padding: 0.25rem 0 0.25rem 0.85rem; margin-bottom: var(--spacing-md); }
.note .meta { font-size: 0.8rem; color: hsl(var(--muted-foreground)); }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: var(--spacing-lg); }
.filters select { width: auto; }

/* --- Final CTA band, mirroring FinalCtaSection --- */
.cta {
  border-top: 1px solid hsl(var(--outline) / 0.25);
  background: var(--gradient-hero);
  padding: var(--spacing-3xl) 0;
  text-align: center;
}
.cta h2 { font-size: 2rem; }
.cta .lead { max-width: 42rem; margin: 0 auto var(--spacing-lg); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid hsl(var(--outline) / 0.25);
  background: hsl(var(--surface));
  padding: var(--spacing-2xl) 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.site-footer .cols { display: grid; gap: var(--spacing-xl); grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: hsl(var(--foreground)); margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: hsl(var(--muted-foreground)); }
.site-footer a:hover { color: hsl(var(--data-teal)); }
.site-footer .legal { margin-top: var(--spacing-xl); padding-top: var(--spacing-md); border-top: 1px solid hsl(var(--outline) / 0.2); }

@media (max-width: 640px) {
  .site-nav { gap: var(--spacing-md); font-size: 0.9rem; }
  .job-head { flex-direction: column; gap: 0.25rem; }
}

/* --- Utilities ---------------------------------------------------------- *
 * These exist because the app sends `style-src 'self'` with no
 * 'unsafe-inline'. Under that policy a browser silently drops every inline
 * style= attribute, so layout written that way would simply not apply. A
 * handful of named classes is the fix; loosening the CSP for a public form
 * that takes file uploads is not.
 */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }
.mb-3xl { margin-bottom: var(--spacing-3xl); }
.bold { font-weight: 600; }
.inline { display: inline; }
.w-narrow { width: 5rem; }

/* h2 sizes used inside cards, where the section-level 1.875rem is too loud */
.h-card { font-size: 1.125rem; margin-bottom: var(--spacing-md); }
.h-card-lg { font-size: 1.25rem; }
.h-success { font-size: 1.75rem; }

/* a card heading with an Edit action pushed to the right */
.card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--spacing-md); margin-bottom: var(--spacing-md);
}
.card-head h2 { margin: 0; font-size: 1.125rem; }

.site-footer address { font-style: normal; margin: 0 0 var(--spacing-md); line-height: 1.7; }

/* --- Job description ----------------------------------------------------- *
 * Rendered from the markdown subset in templating.richtext: sections,
 * sub-sections, bullet lists and emphasis. The Typeform exports carried all
 * of that structure and it has to survive to the page, otherwise a job ad
 * reads as four walls of text.
 */
.jd { margin-bottom: var(--spacing-2xl); }
.jd h2 {
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em;
  margin: var(--spacing-2xl) 0 var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid hsl(var(--border));
}
.jd > h2:first-child { margin-top: 0; }
.jd h3 {
  font-size: 1.0625rem; font-weight: 600; color: hsl(var(--foreground));
  margin: var(--spacing-lg) 0 var(--spacing-sm);
}
.jd p { margin: 0 0 var(--spacing-md); }
.jd strong { font-weight: 600; color: hsl(var(--foreground)); }
.jd ul {
  margin: 0 0 var(--spacing-md);
  padding-left: 0;
  list-style: none;
}
.jd li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: var(--spacing-sm);
}
/* A token-coloured marker rather than a default disc, matching the accent
   the rest of the site uses. */
.jd li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
}
.jd li strong:first-child { display: inline; }

p.intro { font-size: 1.0625rem; }

@media (min-width: 768px) {
  .jd h2 { font-size: 1.5rem; }
}
