/* firstlook brand: Night navy, Sunrise, Morning sky, Slate, Paper.
   Sora for the logo and headings, Inter for text, JetBrains Mono for data. */
:root {
  --navy: #0f1f3d;
  --navy-2: #1b2d50;
  --sunrise: #ff6b35;
  --sky: #dce6f5;
  --slate: #5b6478;
  --ink-2: #33405a;
  --paper: #f7f8fb;
  --line: #dce2ec;
  --white: #ffffff;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font: 15px/1.5 var(--body); }
h1, h2 { font-family: var(--display); text-wrap: balance; margin: 0; }
a { color: var(--navy); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sunrise); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: 1360px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Buttons */
.btn { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn-navy { background: var(--navy); color: var(--white); }
a.btn { display: inline-block; text-decoration: none; }
.btn-orange { background: var(--sunrise); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); padding: 9px 12px; font-size: 13.5px; }
.btn-big { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.link-btn { border: 0; background: none; color: var(--slate); text-decoration: underline; font-weight: 600; padding: 12px 4px; }
.badge-count:not(:empty)::before { content: ' · '; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 600 20px/1 var(--display); letter-spacing: -0.03em; }
.mark { width: 32px; height: 32px; flex: none; }
.mark-lg { width: 40px; height: 40px; }
.brand-small { font-size: 18px; }
.brand-small .mark { width: 30px; height: 30px; }

/* Hero (sunrise header) */
.hero { background: var(--sunrise); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.nav { display: flex; align-items: center; gap: 18px; font-weight: 500; font-size: 14.5px; }
.nav-link { text-decoration: none; padding: 10px 0; }
.hero-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-top: 12px; padding-bottom: 32px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: grid; gap: 8px; }
.hero h1 { font-weight: 700; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.04; letter-spacing: -0.04em; }
.sub { margin: 0; color: #3a1607; }
.search { flex: 1 1 380px; min-width: 0; max-width: 560px; display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--white); box-shadow: 0 8px 24px rgba(15, 31, 61, 0.18); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--body); padding: 11px 10px; color: var(--navy); }
.search input:focus-visible { outline: none; }

/* Compact bar after scrolling */
.compact { position: fixed; inset: 0 0 auto; z-index: 25; background: var(--sunrise); box-shadow: 0 4px 16px rgba(15, 31, 61, 0.18); padding-top: env(safe-area-inset-top); }
.compact-row { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.compact input { flex: 1 1 auto; min-width: 0; max-width: 520px; font: 15px var(--body); padding: 10px 12px; border: 0; border-radius: 10px; background: var(--white); color: var(--navy); }
.compact [data-signup-only] { margin-left: auto; padding: 10px 14px; font-size: 13.5px; }

/* Pills */
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: thin; }
.pill { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill[aria-pressed='true'] { background: var(--sunrise); border-color: var(--sunrise); color: var(--navy); font-weight: 600; }
.pill-signal { border: 1px dashed var(--sunrise); color: var(--navy); font-weight: 600; }
.pill-signal[aria-pressed='true'] { background: var(--navy); border: 1px solid var(--navy); color: var(--white); }
.pill-near { background: var(--sky); border-color: var(--sky); color: var(--navy); font-weight: 600; }
.pill-near[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pill .n { color: var(--slate); font-weight: 400; margin-left: 4px; font-variant-numeric: tabular-nums; }
.pill[aria-pressed='true'] .n { color: inherit; opacity: 0.75; }
.status-line { margin: 4px 0 10px; font-size: 13px; color: var(--slate); min-height: 1.5em; }

/* Grid of cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: var(--paper); text-decoration: none; color: var(--navy); min-width: 0; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 31, 61, 0.08); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.logo { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--white); display: grid; place-items: center; font: 600 14px var(--display); box-shadow: 0 1px 3px rgba(15, 31, 61, 0.12); position: relative; overflow: hidden; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--white); opacity: 0; transition: opacity 0.15s; }
.logo img.loaded { opacity: 1; }
.card h3 { margin: 0; font: 600 17px/1.25 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.company { font-size: 13.5px; color: var(--slate); margin-top: 2px; }
.meta { font-size: 13px; color: var(--ink-2); }
.seen { font: 12px var(--mono); color: var(--slate); margin-top: auto; }
.tag { flex: none; font: 600 11.5px/1 var(--body); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.tag-unseen { background: var(--sunrise); color: var(--navy); }
.tag-li { background: var(--white); color: var(--slate); }
.tag-new { background: #e7f0ff; color: #1d3f8f; }
.tag-reposted { background: var(--sky); color: var(--navy); }
.tag-changed { background: #eef1f6; color: var(--ink-2); }
/* Roles first posted 90+ days / a year+ ago: a quiet warning, not an alarm. */
.age-flag { display: inline-block; font: 600 11px/1 var(--body); padding: 4px 7px; border-radius: 999px; background: #fdf1e2; color: #8a4b0f; vertical-align: 1px; }
.age-very-old { background: #fbe4d5; color: #7a3410; }
.note.age-note { background: #fdf1e2; color: #6b3a0c !important; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: 10px 0 0; }
.skeleton { height: 178px; border-radius: 18px; background: linear-gradient(90deg, var(--paper), #eef1f6, var(--paper)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { padding: 40px 16px; text-align: center; color: var(--slate); background: var(--paper); border-radius: 18px; }
.more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 8px; font-size: 14px; color: var(--slate); }

/* Footer */
.footer { margin-top: 48px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.footer h2 { font-size: 18px; margin-bottom: 6px; }
.footer p { margin: 0; color: var(--ink-2); max-width: 60ch; }

/* Dialogs */
body.dialog-open { overflow: hidden; }
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(15, 31, 61, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: var(--white); width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.dialog-narrow { max-width: 440px; gap: 12px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog h2 { font-size: 22px; }
.close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); font-size: 22px; color: var(--navy); }
#filter-groups { display: grid; gap: 20px; }
.group { display: grid; gap: 10px; }
.group-label { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.group-options { display: flex; flex-wrap: wrap; gap: 8px; }
.group-options .pill[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid #eef1f6; }
.dialog label { font-size: 13.5px; font-weight: 500; }
.dialog input, .dialog select, .dialog textarea { font: 16px var(--body); padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--navy); background: var(--white); }
.dialog textarea { resize: vertical; min-height: 120px; }
/* Contact-form honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted { margin: 0; color: #4a556b; }
.fine { font-size: 12.5px; color: var(--slate); text-align: center; }
.job-dialog { gap: 18px; }
.job-head { display: flex; align-items: center; gap: 10px; }
.job-dialog h2 { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.job-dialog .company { font-size: 15px; margin-top: 4px; }
.job-closed { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: #a7302a; font-size: 14px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts div { background: var(--paper); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.facts dt { font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.facts dd { margin: 6px 0 0; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
#job-history-box { display: grid; gap: 10px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history li { display: grid; gap: 2px; padding-left: 16px; position: relative; font-size: 14px; color: var(--ink-2); }
.history li::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--sunrise); }
.history time { font: 12px var(--mono); color: var(--slate); }
.summary { display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--sky); background: linear-gradient(180deg, #f3f7fd, var(--white)); }
.summary .group-label { color: var(--sunrise); }
#job-summary-body { display: grid; gap: 14px; }
.summary-overview { margin: 0; font-size: 15px; line-height: 1.55; color: var(--navy); }
.summary-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.summary-chips span { padding: 6px 10px; border-radius: 999px; background: var(--sky); font-size: 13px; font-weight: 500; }
.summary h3 { margin: 0 0 6px; font: 600 14px var(--display); }
.summary ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.summary ul li::marker { color: var(--sunrise); }
.summary-note { margin: 0; font-size: 14px; color: var(--slate); }
.summary-loading { display: grid; gap: 8px; }
.summary-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #e9eef7, #f5f7fb, #e9eef7); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.summary-line:nth-child(2) { width: 92%; } .summary-line:nth-child(3) { width: 70%; }
.nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 14px; border-radius: 12px; background: var(--sky); font-size: 14px; }
.job-foot { justify-content: flex-end; }
.nudge .link-btn { padding: 4px 0; color: var(--navy); }
@media (max-width: 640px) {
  .job-foot { flex-direction: column-reverse; align-items: stretch; }
  .job-foot .btn { text-align: center; justify-content: center; }
}
.form-error { margin: 0; color: #a7302a; font-size: 14px; }

@media (max-width: 640px) {
  .nav-link, .wide-only { display: none; }
  .hero-body { padding-bottom: 24px; }
}

/* About page */
.about .hero-body { align-items: flex-end; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 600; font-size: 14.5px; box-shadow: 0 6px 18px rgba(15, 31, 61, 0.14); }
.toc-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--white); font: 600 13px/1 var(--display); }
.prose-wrap { max-width: 860px; }
.chapter { padding-top: 48px; scroll-margin-top: 16px; }
.chapter + .chapter { margin-top: 24px; border-top: 1px solid var(--line); }
.chapter h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -0.03em; }
.chapter h3 { font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; margin: 36px 0 10px; }
.chapter h4 { margin: 0; font-size: 16px; }
.chapter p { color: var(--ink-2); max-width: 68ch; }
.chapter a { color: var(--navy); font-weight: 600; text-decoration-color: var(--sunrise); text-underline-offset: 3px; }
.eyebrow { font: 500 12px/1 var(--mono) !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sunrise) !important; margin: 0 0 12px; }
.lead { font-size: 17px; line-height: 1.6; margin: 14px 0 0; }
.note { font-size: 14px; color: var(--slate) !important; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0 0; }
.stats div { background: var(--paper); border-radius: 16px; padding: 16px 18px; }
.stats dt { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.stats dd { margin: 8px 0 0; font: 600 26px/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chips { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--paper); border-radius: 14px; color: var(--ink-2); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--sunrise); color: var(--navy); display: grid; place-items: center; font: 600 14px/1 var(--display); }
.steps strong, .rules strong { color: var(--navy); }
.rules { padding-left: 20px; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.rules li::marker { color: var(--sunrise); }
.callout { margin-top: 36px; padding: 20px 22px; border-radius: 18px; background: var(--sky); }
.callout h3 { margin-top: 0; }
.callout p { margin: 0; }
.callout-orange { background: #ffe6dc; }
.ask { margin-top: 24px; padding: 20px 22px; border-radius: 18px; background: var(--navy); color: var(--white); }
.ask-label { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sunrise) !important; }
.ask ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ask li { font-size: 15.5px; }
.code-block { margin: 12px 0; background: var(--navy); color: var(--sky); border-radius: 14px; padding: 14px 16px; overflow-x: auto; }
.code-label { display: block; margin-bottom: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #9fb0cf; }
.code-block code, .code-block pre { font: 13.5px/1.55 var(--mono); margin: 0; white-space: pre; }
.code-block > code { white-space: pre-wrap; overflow-wrap: anywhere; }
.chapter :not(pre) > code { font: 0.9em var(--mono); }
.tools { display: grid; gap: 14px; }
.tool { padding: 18px; border-radius: 18px; background: var(--paper); }
.tool h4 code { font: 600 15px var(--mono); color: var(--navy); }
.tool p { margin: 6px 0 12px; }
.tool table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tool th, .tool td { text-align: left; vertical-align: top; padding: 8px 0; border-top: 1px solid var(--line); }
.tool th { width: 34%; padding-right: 12px; font-weight: 500; white-space: nowrap; }
.tool td { color: var(--ink-2); }
.footer a { color: var(--navy); font-weight: 600; }
@media (max-width: 640px) {
  .tool th { width: auto; white-space: normal; }
  .tool th, .tool td { display: block; border: 0; padding: 2px 0; }
  .tool tr { display: block; padding: 8px 0; border-top: 1px solid var(--line); }
}

/* Server-rendered pages: jobs, landing pages, companies, hub (src/site/render.ts) */
.hero-page { padding-bottom: 28px; }
.site .hero h1 { font-size: clamp(28px, 3.6vw, 42px); overflow-wrap: anywhere; }
.crumbs ol { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13.5px; }
.crumbs li { color: #3a1607; }
.crumbs li + li::before { content: '›'; margin: 0 8px; opacity: 0.6; }
.crumbs a { color: var(--navy); font-weight: 500; text-decoration-color: rgba(15, 31, 61, 0.35); text-underline-offset: 3px; }
.page-main { padding-top: 24px; display: grid; gap: 28px; }
.page-intro { margin: 0; max-width: 72ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.note { margin: 0; font-size: 14px; color: var(--slate); }
.logo-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 18px; }
.company-link { font: 600 17px var(--display); color: var(--navy); text-decoration-color: var(--sunrise); text-underline-offset: 3px; }
.job-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.job-main { flex: 999 1 560px; min-width: 0; display: grid; gap: 20px; }
.job-side { flex: 1 1 300px; min-width: 0; display: grid; gap: 18px; }
.job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.job-actions .btn { text-decoration: none; }
.description { display: grid; gap: 10px; }
.description h2, .history-box h2, .side-links h2, .related h2, .link-group h2 { font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; }
.description-body { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 72ch; overflow-wrap: anywhere; }
.description-body p, .description-body ul { margin: 0 0 14px; }
.description-body ul { padding-left: 20px; }
.description-body li::marker { color: var(--sunrise); }
.history-box { display: grid; gap: 10px; }
.side-links { display: grid; gap: 8px; }
.side-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.side-links a { font-weight: 600; text-decoration-color: var(--sunrise); text-underline-offset: 3px; }
.related { display: grid; gap: 14px; }
.related-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.related-head a { font-weight: 600; text-decoration-color: var(--sunrise); text-underline-offset: 3px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--slate); }
.pager .btn { text-decoration: none; }
.link-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.link-group { display: grid; gap: 10px; align-content: start; }
.link-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.link-group a { color: var(--navy); font-weight: 500; text-decoration-color: var(--sunrise); text-underline-offset: 3px; }
.count { font: 12px var(--mono); color: var(--slate); }
.footer-browse a { color: var(--navy); font-weight: 600; }
.description-body h3 { margin: 22px 0 8px; font: 600 16px/1.3 var(--display); color: var(--navy); }
.description-body h3:first-child { margin-top: 4px; }
.description-body li { margin-bottom: 4px; }

/* Company pages: hiring activity facts. */
.hiring { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 0 0 20px; }
.hiring-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.hiring h2 { margin: 0; font: 600 16px/1.3 var(--display); }
.hiring ul { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 4px; font-size: 14.5px; color: var(--ink-2); }
.hiring-label { font: 600 11.5px/1 var(--body); padding: 6px 9px; border-radius: 999px; background: #e3f4ea; color: #1d5a37; }
