/* Watchmen-only careers styles: "Open roles" cards on /careers and the role pages (/careers/<slug>).
   Rendered by watchmen-investigations/careers-inject.js; uses only the site's --ht-* theme variables. */

/* The page body computes to white even when the visitor's scheme is dark, while the --ht-* text colors flip to light, so any
   section without its own background became unreadable in dark mode. Give plain sections their themed background explicitly. */
.cr-section:not(.cr-alt) { background: var(--ht-bg); }

/* ── Open roles cards (on /careers) ── */
.rl-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rl-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--ht-card); border: 1px solid var(--ht-b1); border-radius: 12px; padding: 28px 30px; text-decoration: none; transition: border-color .15s, transform .15s; }
.rl-card:hover { border-color: var(--ht-g-brd); transform: translateY(-1px); }
.rl-card:focus-visible { outline: 2px solid var(--ht-g-hi); outline-offset: 3px; }
.rl-card-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rl-card-title { font-size: 20px; font-weight: 800; color: var(--ht-fg1); line-height: 1.2; }
.rl-card-meta { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ht-g-hi); }
.rl-card-text { font-size: 15px; color: var(--ht-fg3); line-height: 1.6; max-width: 640px; }
.rl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rl-chips span { font-size: 12px; font-weight: 600; color: var(--ht-fg2); background: var(--ht-g-sub); border: 1px solid var(--ht-g-brd); border-radius: 999px; padding: 4px 12px; }
.rl-card-cta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--ht-g-hi); white-space: nowrap; }

/* ── Role page ── */
.rl-hero { padding: 56px 40px 40px; background: var(--ht-bg); }
.rl-hero-inner { max-width: 820px; margin: 0 auto; }
.rl-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ht-fg4); margin-bottom: 20px; }
.rl-crumbs a { color: var(--ht-fg3); text-decoration: none; }
.rl-crumbs a:hover { color: var(--ht-fg1); text-decoration: underline; }
.rl-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; color: var(--ht-fg1); line-height: 1.08; letter-spacing: -.03em; margin: 12px 0 20px; }
.rl-lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--ht-fg3); line-height: 1.72; max-width: 720px; margin: 0 0 30px; }
.rl-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.rl-facts-wrap { background: var(--ht-el); border-top: 1px solid var(--ht-b1); border-bottom: 1px solid var(--ht-b1); padding: 30px 40px; }
.rl-facts { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px 32px; }
.rl-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ht-g-hi); margin: 0 0 5px; }
.rl-facts dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ht-fg1); line-height: 1.5; }

.rl-body { max-width: 760px; margin: 0 auto; }
.rl-body h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--ht-fg1); line-height: 1.2; margin: 48px 0 14px; letter-spacing: -.01em; }
.rl-body h2:first-child { margin-top: 0; }
.rl-body p { font-size: 16px; color: var(--ht-fg3); line-height: 1.78; margin: 0 0 14px; }
.rl-body p.rl-pay { font-size: 18px; color: var(--ht-fg1); margin-bottom: 10px; }
.rl-body a:not(.ht-btn-primary):not(.ht-btn-ghost) { color: var(--ht-g-hi); text-decoration: underline; text-underline-offset: 3px; }
.rl-body strong { color: var(--ht-fg1); font-weight: 700; }
.rl-list, .rl-steps { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rl-list li, .rl-steps li { position: relative; font-size: 16px; color: var(--ht-fg3); line-height: 1.7; padding-left: 26px; }
.rl-list li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--ht-g-hi); }
.rl-steps { counter-reset: rl-step; }
.rl-steps li { counter-increment: rl-step; padding-left: 38px; }
.rl-steps li::before { content: counter(rl-step); position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%; background: var(--ht-g-sub); border: 1px solid var(--ht-g-brd); color: var(--ht-g-hi); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.rl-body .ht-btn-primary { margin-top: 6px; }
.rl-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ht-b1); }
.rl-legal p { font-size: 13px; color: var(--ht-fg4); line-height: 1.7; }

@media (max-width: 900px) {
  .rl-card { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 640px) {
  .rl-hero { padding: 40px 20px 32px; }
  .rl-facts-wrap { padding: 24px 20px; }
  .rl-card { padding: 22px 20px; }
  .rl-body h2 { margin-top: 38px; }
  .rl-actions .ht-btn-primary, .rl-actions .ht-btn-ghost { flex: 1 1 100%; justify-content: center; }
}
