/* Careers page: photo gallery, numbers band, perks grid, filterable job list */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* hero: photo strips instead of a product shot */
.careers-hero::before { top: 420px; }
.careers-hero .fine { margin-top: 20px; color: var(--fg-2); font-size: 15px; }
.careers-hero .hero-actions { margin-top: 32px; }
.gallery { position: relative; margin-top: 80px; display: flex; flex-direction: column; gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gallery-row { overflow: hidden; }
.gallery-track { display: flex; gap: 16px; width: max-content; animation: careers-slide 70s linear infinite; }
.gallery-row-rev .gallery-track { animation-direction: reverse; animation-duration: 80s; }
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery img { display: block; flex: none; height: 260px; width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-1); }
.gallery img[width="1920"] { aspect-ratio: 3 / 4; }
@keyframes careers-slide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }

/* numbers band */
.careers-stats-section { padding-top: 120px; padding-bottom: 120px; }
.careers-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.careers-stats div { padding-left: 24px; border-left: 1px solid rgba(19,233,137,.4); }
.careers-stats b { display: block; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--accent); }
.careers-stats span { display: block; margin-top: 12px; font-size: 15px; color: var(--fg-2); }

/* perks */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.perk { padding: 28px; }
.perk .persona-ic { margin-bottom: 22px; }
.perk .persona-ic img { width: 22px; height: 22px; display: block; }
.perk h3 { font-size: 18px; }
.perk p { font-size: 15px; }

/* job filters */
.job-filters { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1040px; margin: 0 auto 40px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--ink) / .02); color: var(--fg-2); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.chip span { margin-left: 4px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
@media (hover: hover) { .chip:hover { color: var(--fg); border-color: rgb(var(--ink) / .25); } }
.chip[aria-pressed="true"] { color: var(--fg); border-color: rgba(19,233,137,.6); background: rgba(19,233,137,.1); }
.chip[aria-pressed="true"] span { color: var(--mint); }
.loc-select select { height: 40px; min-width: 220px; padding: 0 40px 0 14px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--fg); font: inherit; font-size: 14px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: var(--bg-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a1a1aa' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; }
.loc-select select:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.loc-select option { background: var(--bg-1); color: var(--fg); }

/* job list */
.job-list { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.dept[hidden] { display: none; }
/* these two set their own display, which beats the UA's [hidden] rule, so hiding them on a failed
   fetch needs saying explicitly */
.job-filters[hidden], .job-list[hidden] { display: none; }
.dept h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 22px; font-weight: 560; letter-spacing: -0.02em; }
.dept-n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.jobs li { border-bottom: 1px solid var(--line); }
.jobs li[hidden] { display: none; }
.jobs a { display: grid; grid-template-columns: minmax(0, 1fr) 16px; grid-template-rows: auto auto; align-items: center; gap: 6px 16px; padding: 18px 8px; transition: background .2s; }
.jobs a:hover { background: rgb(var(--ink) / .03); }
.jobs b { font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; }
.job-loc { grid-column: 1; grid-row: 2; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--fg-3); }
.jobs b { grid-column: 1; grid-row: 1; }
.job-go { grid-column: 2; grid-row: 1 / span 2; }
.job-go { width: 16px; height: 16px; fill: none; stroke: var(--fg-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s, stroke .2s; }
.jobs a:hover .job-go { stroke: var(--accent); transform: translateX(3px); }
.jobs a:hover b { color: var(--mint); }
.jobs-empty { text-align: center; color: var(--fg-2); padding: 40px 0; }
.jobs-error { text-align: center; color: var(--fg-2); padding: 40px 0; }
.jobs-error a { color: var(--fg-0); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ───── loading ─────
   The positions come from Comeet at run time (assets/pages/careers/page.js), so the page paints a
   placeholder list first. The placeholders are the shape of the rows they stand in for — two column
   groups, a heading, a title line and a location line at the same sizes and padding — so the list
   settles into place instead of jumping when the real roles land. Same language as the meeting
   booker's loader: a dim fill with the accent reserved for the one spinning ring. */
.sk { display: block; position: relative; overflow: hidden; border-radius: 6px; background: rgb(var(--ink) / .055); }
.sk::after { content: ""; position: absolute; inset: 0; translate: -100% 0;
  background: linear-gradient(90deg, transparent, rgb(var(--ink) / .06), transparent);
  animation: sk-sweep 1.6s ease-in-out infinite; }
@keyframes sk-sweep { to { translate: 100% 0; } }
.sk-chip { width: var(--w, 90px); height: 36px; border-radius: 999px; }
.sk-select { width: 220px; height: 40px; border-radius: 10px; }
.sk-h { width: 170px; height: 22px; }
.sk-row { display: block; padding: 18px 8px; }
.sk-t { width: var(--w, 50%); height: 15px; }
.sk-l { width: 104px; height: 11px; margin-top: 9px; }
.jobs-sk { display: flex; flex-direction: column; gap: 56px; }
.job-filters.is-loading { pointer-events: none; }

/* the one moving part that is not a placeholder: the ring beside the eyebrow, as in the booker */
.eb-ring { display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: -1px;
  border-radius: 50%; border: 1.5px solid rgb(var(--ink) / .16); border-top-color: var(--accent);
  animation: sk-spin .8s linear infinite; }
@keyframes sk-spin { to { transform: rotate(1turn); } }

@media (prefers-reduced-motion: reduce) {
  /* a sweep crossing the width of the list is a lot more motion than the booker's 26px ring, so it
     stops outright here rather than just slowing down; the ring only slows. */
  .sk::after { animation: none; }
  .eb-ring { animation-duration: 2.4s; }
}
.final .fine { margin-top: 18px; }
.final .facts span { text-transform: none; letter-spacing: .06em; font-size: 13px; }

@media (max-width: 1120px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .careers-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .careers-stats-section { padding-top: 96px; padding-bottom: 96px; }
  .gallery { margin-top: 64px; }
  .gallery img { height: 200px; }
  .job-filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .chips { min-width: 0; }
  .loc-select select { width: 100%; }
}
@media (max-width: 560px) {
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perk { padding: 26px; }
  .careers-stats { gap: 28px 20px; }
  .careers-stats div { padding-left: 16px; }
  .careers-stats-section { padding-top: 80px; padding-bottom: 80px; }
  .gallery { margin-top: 48px; gap: 10px; }
  .gallery-track { gap: 10px; }
  .gallery img { height: 150px; border-radius: 12px; }
  @keyframes careers-slide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 5px)); } }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .jobs a { padding: 16px 4px; }
  .jobs b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; }
  .gallery-row { overflow-x: auto; scrollbar-width: none; }
  .gallery-track img[aria-hidden="true"] { display: none; }
}

/* Light skin: small green text uses --mint (≥4.5:1 on the light surfaces); --accent stays for dots, fills,
   borders and large numbers. Light only, so the dark skin is unchanged. */
:root[data-theme="light"] .dept-n { color: var(--mint); }
