/* C9 — careers page. Loaded after r9.css (hero, glass, espresso band come from there). */

.c9-hero .bg { object-position: 50% 45%; }

/* open positions: heading left, filter tabs right, then grouped role rows */
.c9-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px var(--n9-gap); margin-bottom: clamp(36px, 4vw, 64px); }
.c9-tabs { display: flex; gap: 6px; }
.c9-tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer;
  font: 500 11.2px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 0;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.c9-tabs button span { color: var(--ink-faint); transition: color .3s ease; }
.c9-tabs button:hover { color: var(--ink); border-color: var(--ink-faint); }
.c9-tabs button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.c9-tabs button[aria-pressed="true"] span { color: var(--gold); }
.c9-tabs button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.c9-groups { display: grid; gap: clamp(44px, 5vw, 80px); }
.c9-group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: var(--n9-gap); align-items: start; }
.c9-group[hidden] { display: none; }
.c9-gh { position: sticky; top: 32px; display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--ink); }
.c9-gh h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.c9-gc { font: 500 11.2px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.c9-gh p { max-width: 30ch; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

.c9-roles { border-top: 1px solid var(--line); }
.c9-roles li { border-bottom: 1px solid var(--line); }
.c9-roles a {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px; grid-template-areas: "t loc ar" "g g g";
  align-items: center; gap: 12px 28px; padding-block: clamp(18px, 1.9vw, 26px); color: var(--ink);
}
.c9-roles a::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * clamp(12px, 1.2vw, 18px));
  background: rgba(217, 180, 99, .13); opacity: 0; transition: opacity .45s var(--ease);
}
.c9-roles a:hover::before, .c9-roles a:focus-visible::before { opacity: 1; }
.c9-roles a:focus-visible { outline: none; }
.c9-rt { grid-area: t; font-size: clamp(18px, 1.5vw, 23px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.c9-tags { grid-area: g; display: flex; flex-wrap: wrap; gap: 6px; }
.c9-tags i { font: normal 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: 6px 8px 5px; background: rgba(36, 39, 32, .05); }
.c9-loc { grid-area: loc; font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.c9-roles .n8-arrow { grid-area: ar; width: 18px; height: 18px; color: var(--ink-soft); transition: transform .45s var(--ease), color .45s var(--ease); }
.c9-roles a:hover .n8-arrow { transform: translateX(4px); color: var(--ink); }

/* not listed: heading left, copy + actions right, both sitting on one bottom line */
.c9-open-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 28px var(--n9-gap); align-items: end; }
.c9-open .r9-how-head { gap: 18px; margin-bottom: 0; }
.c9-open .n9-h { margin-top: 0; max-width: 12ch; }
.c9-open-copy { display: grid; gap: 26px; justify-items: start; }
.c9-open-copy p { max-width: 46ch; color: rgba(243, 235, 210, .78); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; }


@media (max-width: 960px) {
  .c9-head { grid-template-columns: 1fr; }
  .c9-group, .c9-open-in { grid-template-columns: 1fr; gap: 20px; }
  .c9-gh { position: static; }
  .c9-gh p { max-width: 46ch; }
}
@media (max-width: 600px) {
  .c9-tabs { margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); overflow-x: auto; scrollbar-width: none; }
  .c9-tabs::-webkit-scrollbar { display: none; }
  .c9-roles a { grid-template-columns: minmax(0, 1fr) 18px; grid-template-areas: "t ar" "loc loc" "g g"; gap: 10px 16px; }
  .c9-roles a::before { inset: 0 -10px; }
}
