/* yotta.bot/careers — the careers landing (plan #281, owner 2026-11-04).
 *
 * Laid out after anthropic.com/careers: a two-column hero, a links column
 * beside the story, the five Boos' photo, then four "heading left,
 * accordion right" sections, the leadership principles first. Styled as the Access Portal
 * (src/yotta-login/frontend/styles.css): IBM Plex Sans, regular-weight
 * headings, Plex Mono upper-case buttons with 6 px corners, the green
 * primary with white words, the bg2 outlined secondary. Tokens come from
 * careers.css, which loads first. */

body[data-page="careers-home"] {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
}
.ch section { max-width: none; margin: 0; padding: 0; }
.ch h1, .ch h2, .ch h3 { font-family: 'IBM Plex Sans', sans-serif; letter-spacing: -0.01em; }

.ch-wrap {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 var(--gutter, 24px) !important;
}

/* ── Buttons: the Access Portal's (src/yotta-login/frontend/styles.css) ──
 * The primary is its Create Account (.create-account): green, its words
 * --go-ink, white in light mode and dark in dark mode (owner, 2026-11-07). The other is its sign-in card's Continue with Google (.secondary):
 * outlined in --border-strong on the page colour. Both are IBM Plex Sans
 * 12px in their own words' case, 11 px by 16 px, 6 px corners, no trailing
 * arrow (the portal's "a button is its words", owner 2026-10-23). */
.ch-btn {
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: normal;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}
/* Under the pointer the outlined button fills with the text colour, dark in
 * light mode and cream in dark mode, its words in the page colour (owner,
 * 2026-11-04). */
.ch-btn:not(.ch-btn-primary):hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.ch-btn-primary {
  border: 0;
  padding: 11px 16px;
  background: var(--sc-green);
  /* Its words follow the theme, the Access Portal's --go-ink (/styles.css). */
  color: var(--go-ink) !important;
  font-weight: 500;
  transition: filter 0.15s;
}
.ch-btn-primary:hover { filter: brightness(1.08); }

/* ── Hero: Boo alone in the empty office, full bleed ────────────
 * The landing's own hero photo (/hero-boo-office.webp) and treatment: Boo
 * stands in the right half, so the copy is one column on the left, over a
 * left-to-right shadow that clears before Boo. The 70% anchor keeps Boo whole
 * and right of the midpoint. Cream words in both themes, since the photo
 * doesn't change. */
.ch-hero {
  position: relative;
  min-height: min(82vh, 820px);
  display: flex;
  align-items: center;
  color: #fbf6e4;
  background-color: #231a15;
  background-image:
    linear-gradient(90deg,
      rgba(20, 18, 16, 0.8) 0%,
      rgba(20, 18, 16, 0.62) 34%,
      rgba(20, 18, 16, 0.3) 50%,
      rgba(20, 18, 16, 0) 62%),
    url("/hero-boo-office.webp");
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
}
.ch-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter, 24px);
}
.ch-hero-inner > * { max-width: min(560px, 48vw); }
.ch-hero-title {
  color: #fbf6e4;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 24px;
}
.ch-hero-copy p {
  color: #fbf6e4;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 28px;
}
.ch-hero-copy strong { font-weight: 600; }

/* ── The five Boos at their desks: one photo, edge to edge with no frame,
 * before the principles, where Anthropic's page has its film. ───── */
.ch .ch-office-band { margin: 0 0 clamp(56px, 8vw, 104px); }
.ch-office { margin: 0; }
.ch-office img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 58%;
}

/* ── Intro: links left, the story right ─────────────────────── */
.ch-intro {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(56px, 8vw, 104px) !important;
  padding-bottom: clamp(48px, 6vw, 80px) !important;
}
.ch-links { list-style: none; margin: 0; padding: 0; align-self: start; }
.ch-links li {
  border-top: 1px solid var(--border-strong);
}
.ch-links li:last-child { border-bottom: 1px solid var(--border-strong); }
/* Each row is its link (owner, 2026-11-04): the label, then Boo Desktop's
 * external-link icon from its View Admin (desktop icons.tsx
 * ExternalLinkIcon). Under the pointer a rounded panel fills the row, inset
 * from the lines above and below it. */
.ch-link {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  color: var(--text2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.ch-link::before {
  content: '';
  position: absolute;
  inset: 5px 0;
  z-index: -1;
  border-radius: 8px;
  background: transparent;
  transition: background-color 0.15s;
}
.ch-link svg { flex: none; }
/* Inverted under the pointer, as the outlined buttons are (owner,
 * 2026-11-04): the text colour's panel (dark in light mode, cream in dark
 * mode) with the page colour's words and icon. */
.ch-link:hover { color: var(--bg); }
.ch-link:hover::before { background: var(--text); }
.ch-link:focus-visible { outline: none; }
.ch-link:focus-visible::before { box-shadow: 0 0 0 1px var(--focus-ink); }
.ch-intro-body h3 { font-size: 24px; font-weight: 500; margin: 0 0 14px; }
.ch-intro-body h3 + p { margin-top: 0; }
.ch-intro-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text2);
  margin: 0 0 16px;
  max-width: 62ch;
}
.ch-intro-body p + h3 { margin-top: 40px; }

/* ── Remote at a glance ─────────────────────────────────────── */
.ch-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: clamp(56px, 8vw, 104px);
}
.ch-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 20px;
}
.ch-stats > div + div { border-left: 1px solid var(--border); }
.ch-stats strong { font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; letter-spacing: -0.02em; }
.ch-stats span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
}

/* ── Heading left, accordion right ───────────────────────────── */
.ch-split {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  padding-top: 48px !important;
  padding-bottom: 72px !important;
  border-top: 1px solid var(--border-strong);
}
.ch-split-head h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 500; margin: 0 0 16px; max-width: none; }
.ch-split-head p { font-size: 16px; line-height: 1.6; color: var(--text2); margin: 0 0 20px; max-width: 44ch; }
.ch-acc details { border-bottom: 1px solid var(--border-strong); }
.ch-acc details:first-child { border-top: 1px solid var(--border-strong); }
.ch-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
}
.ch-acc summary::-webkit-details-marker { display: none; }
.ch-acc summary::after {
  content: '';
  flex: none;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--text2);
  border-bottom: 1.5px solid var(--text2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}
.ch-acc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.ch-acc summary:hover { color: var(--sc-green); }
.ch-acc details p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--text2); max-width: 60ch; }
.ch-acc a, .ch-intro-body a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.ch summary:focus-visible, .ch a:focus-visible, .ch button:focus-visible { outline: 1px solid var(--focus-ink); outline-offset: 2px; }

/* ── Narrow screens ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .ch-hero-inner, .ch-intro, .ch-split { grid-template-columns: 1fr; }
  /* Too narrow for a column beside Boo: the copy sits on the page's own
   * background, cream in light and dark in dark (owner, 2026-11-05), and the
   * photo follows below it, whole, at the screen's width (16:9, hence
   * 56.3vw), as the founder page does. */
  .ch .ch-hero {
    display: block;
    min-height: 0;
    padding-bottom: 56.3vw;
    color: var(--text);
    background-color: var(--bg);
    background-image: url("/hero-boo-office.webp");
    background-size: 100% auto;
    background-position: center bottom;
  }
  .ch .ch-hero-title,
  .ch .ch-hero-copy p { color: var(--text); }
  .ch-hero-inner { padding-bottom: 32px; }
  .ch-hero-inner > * { max-width: none; }
  .ch-office img { aspect-ratio: 4 / 3; }
  .ch-stats { grid-template-columns: 1fr 1fr; }
  .ch-stats > div:nth-child(3) { border-left: 0; }
  .ch-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
