/* Careers, About, FAQ — shared simple layout (index-aligned header + column typography) */

:root {
  --bg:           #fafaf8;
  --text:         #303030;
  --text-muted:   #6b6b6b;
  --careers-list: #454545;
  --border:       #e2dedd;
  /* transitions.dev accordion tokens */
  --acc-expand:   250ms;
  --acc-collapse: 250ms;
  --acc-ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }

  :root {
    --bg:           #131314;
    --text:         #ebebee;
    --text-muted:   rgba(235, 235, 238, 0.55);
    --careers-list: rgba(235, 235, 238, 0.72);
    --border:       rgba(255, 255, 255, 0.12);
  }
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Pin footer to viewport bottom when content is short */
body > header,
body > .site-footer {
  flex-shrink: 0;
}

body > .site-footer {
  margin-top: auto;
}

/* Horizontal bounds match .app-home: --ppx-page-inset is the gutter, not padding inside a max-width box. */
.careers-main {
  width: 100%;
  box-sizing: border-box;
  padding-top: 2.75rem;
  padding-bottom: 4.5rem;
  padding-left: max(var(--ppx-page-inset), env(safe-area-inset-left, 0px));
  padding-right: max(var(--ppx-page-inset), env(safe-area-inset-right, 0px));
}

.careers-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.28rem, 3.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.careers-page-lede {
  margin: 0 0 1.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.careers-roles {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.careers-role {
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.careers-role-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.careers-role-summary::-webkit-details-marker {
  display: none;
}

.careers-role-summary-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.careers-role-summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.38rem;
  height: 0.38rem;
  margin-top: 0.06rem;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  opacity: 0.42;
  transform: rotate(45deg);
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.careers-role[open]:not([data-acc]) > .careers-role-summary::after,
.careers-role[data-open='true'] > .careers-role-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.22rem;
  opacity: 0.55;
}

.careers-role-summary-title {
  font-weight: 600;
  color: var(--text);
}

.careers-role-summary-meta {
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.careers-role-summary:hover {
  opacity: 0.88;
}

.careers-role-summary:hover::after {
  opacity: 0.58;
}

.careers-role-body {
  padding: 0 0 1.5rem;
  border: none;
}

/* transitions.dev accordion: JS wraps the body in a 0fr↔1fr grid track so
   height animates with no measuring; the body clips its own overflow.
   Padding stays on the inner body — padding on the track would leave a
   residual strip when collapsed. */
.careers-role-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
.careers-role[data-open='true'] > .careers-role-panel {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
.careers-role-panel > .careers-role-body {
  /* Bottom padding would hold the 0fr track open (padding is not compressible);
     the ::after spacer is content, so it collapses with the track. */
  padding: 0;
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity var(--acc-collapse) var(--acc-ease),
    filter var(--acc-collapse) var(--acc-ease);
}
.careers-role-panel > .careers-role-body::after {
  content: '';
  display: block;
  height: 1.5rem;
}
.careers-role[data-open='true'] > .careers-role-panel > .careers-role-body {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity var(--acc-expand) var(--acc-ease),
    filter var(--acc-expand) var(--acc-ease);
}
@media (prefers-reduced-motion: reduce) {
  .careers-role-panel,
  .careers-role-panel > .careers-role-body,
  .careers-role-summary::after {
    transition: none !important;
  }
}

.careers-intro p {
  margin: 0 0 1.125rem;
}

.careers-intro p:last-child {
  margin-bottom: 0;
}

.careers-intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.careers-rule {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.careers-section-title {
  margin: 0 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.careers-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.careers-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--careers-list);
}

.careers-list li:last-child {
  margin-bottom: 0;
}

.careers-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--careers-list);
}

.careers-compensation p {
  margin: 0;
}

.careers-apply {
  margin: 0;
}

.careers-apply a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.careers-apply + .careers-apply {
  margin-top: 0.65rem;
}

.careers-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Privacy Policy — disc lists inside .careers-intro */
.privacy-list {
  margin: 0 0 1.125rem;
  padding-left: 1.35rem;
  list-style: disc;
  color: var(--careers-list);
  line-height: 1.55;
}

.privacy-list li {
  margin: 0 0 0.45rem;
}

.privacy-list li:last-child {
  margin-bottom: 0;
}

/* Investors — pull quote in press-style articles */
.investors-quote {
  margin: 1.35rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--border);
  font-style: italic;
  color: var(--text-muted);
}

.investors-quote p {
  margin: 0;
}

/* Subpages using `main.careers-main` — align sticky header + footer with the same centered column */
body:has(> main.careers-main) > header {
  justify-content: center;
}

body:has(> main.careers-main) > header {
  padding-left: max(var(--ppx-page-inset), env(safe-area-inset-left, 0px));
  padding-right: max(var(--ppx-page-inset), env(safe-area-inset-right, 0px));
}

body:has(> main.careers-main) > header .logo-block {
  flex: 0 1 var(--ppx-content-max);
  width: 100%;
  max-width: var(--ppx-content-max);
  margin-left: auto;
  margin-right: auto;
}

body:has(> main.careers-main) > .site-footer {
  padding-left: max(var(--ppx-page-inset), env(safe-area-inset-left, 0px));
  padding-right: max(var(--ppx-page-inset), env(safe-area-inset-right, 0px));
}

body:has(> main.careers-main) > .site-footer .footer-divider,
body:has(> main.careers-main) > .site-footer .footer-row {
  width: 100%;
  max-width: var(--ppx-content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Investors article — clear masthead stack + divider width matches column rhythm */
.investors-article > header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 1.25rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.investors-article > header .careers-title {
  margin-bottom: 0.65rem;
}

.investors-article > header .careers-page-lede {
  margin-bottom: 0;
}

.investors-article > hr.careers-rule {
  margin-top: 1.85rem;
  margin-bottom: 1.85rem;
}

@media (max-width: 639px) {
  body:has(> main.careers-main) > header {
    padding-left: max(var(--ppx-page-inset), env(safe-area-inset-left, 0px));
    padding-right: max(var(--ppx-page-inset), env(safe-area-inset-right, 0px));
  }
}

