/* Shared styles for all Priora role pages (/careers/<slug>/).
   Linked via a RELATIVE path (../role.css) so it resolves in both the
   Vite dev server (/landing/careers/role.css) and production (/careers/role.css). */
:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --ink: #14181f;
  --muted: #6c7280;
  --line: #e7e3d8;
  --accent: #6b62e6;
  --font-head: "Inter Tight", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter Tight", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { height: 48px; width: auto; display: block; }
.back {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.back:hover { color: var(--ink); }

main {
  flex: 1;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 6vw, 88px) clamp(56px, 9vh, 96px);
}
.role-head { max-width: 760px; }
.role-head h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.role-head .meta {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* role description — clean job-posting format */
.role-body { max-width: 760px; margin-top: 26px; }
.role-body h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 30px;
  margin-bottom: 10px;
}
.role-body p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
}
/* space between stacked paragraphs (e.g. the multi-paragraph "About the role") */
.role-body p + p { margin-top: 0.9em; }
.role-body ul { margin: 4px 0 0; padding-left: 20px; }
.role-body li {
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
  margin-bottom: 3px;
}
.role-body .offer {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* embedded application form */
.tf-embed {
  margin-top: 34px;
  width: 100%;
  max-width: 760px;
  height: 680px;
  transform: scale(0.9);
  transform-origin: top left;
}

/* On phones the inline form renders its welcome screen (title + Start), which
   fills the viewport. There we hide the inline embed and show a popup-launching
   button instead — desktop keeps the inline form. The form itself is unchanged,
   so shared links (e.g. Slack) still show the Typeform title. */
.tf-apply-mobile { display: none; }
@media (max-width: 640px) {
  .tf-embed { display: none; }
  .tf-apply-mobile {
    display: flex;                 /* block-level flex: reliable full-width + centering on iOS */
    align-items: center;
    justify-content: center;       /* label centered within the button */
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    margin: 34px auto 0;           /* centered on the page */
    padding: 17px 24px;
    background: #6c5ce7;           /* Priora icon purple */
    color: #fff;
    text-decoration: none;         /* it's an <a> now */
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.01em;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .tf-apply-mobile svg { flex: none; transition: transform 0.15s ease; }
  .tf-apply-mobile:active { background: #5b4bd6; }
  .tf-apply-mobile:active svg { transform: translateX(3px); }
}
