/* Open roles list + filter panel (templates/public/_roles.html), used on the careers home and /jobs.
   Colours and type come from tokens.css / type.css, so it sits in either page's typeface. */
.roles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }


.roles__count { margin: 0 0 12px; font: var(--t-label-12-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-secondary); }
.roles__items { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border-1); }
.role { border-top: 1px solid var(--border-1); }
.role[hidden] { display: none; }
.role__link { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 4px; color: var(--color-text); text-decoration: none; }
.role__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.role__title { margin: 0; font-size: clamp(1.25rem, 1.6vw + .6rem, 1.75rem); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.role__meta { font-size: .9375rem; color: var(--color-text-secondary); }
.role__side { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.role__team { font: var(--t-label-12-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-secondary); }
.role__arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-1); border-radius: 50%; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.role__link:hover .role__title, .role__link:focus-visible .role__title { text-decoration-color: currentColor; }
.role__link:hover .role__arrow, .role__link:focus-visible .role__arrow { background: var(--color-text); color: var(--background-1, #fff); border-color: var(--color-text); transform: translateX(4px); }
@media (max-width: 640px) {
  .role__link { align-items: flex-start; padding: 22px 0; }
  .role__team { display: none; }
  .role__arrow { width: 36px; height: 36px; }
}

.roles__none { padding: 32px 0; color: var(--color-text-secondary); }
.roles__none p { margin: 0 0 12px; }

.roles__filters { border-radius: 16px; background: var(--background-2, #f1f0ee); }
@media (min-width: 960px) { .roles__filters { position: sticky; top: 104px; } }
.roles__toggle { display: flex; justify-content: space-between; padding: 16px 20px; font-weight: 500; cursor: pointer; list-style: none; }
.roles__toggle::-webkit-details-marker { display: none; }
.roles__toggle::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.roles__filters[open] .roles__toggle::after { content: "−"; }
@media (min-width: 960px) { .roles__toggle { display: none; } }
.roles__form { display: flex; flex-direction: column; gap: 16px; padding: 4px 20px 20px; }
@media (min-width: 960px) { .roles__form { padding: 28px; } }
.roles__filters-title { display: none; margin: 0 0 4px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
@media (min-width: 960px) { .roles__filters-title { display: block; } }
.roles__field { display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; color: var(--color-text-secondary); }
.roles__field input, .roles__field select {
  width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: .9375rem; color: var(--color-text);
  background: var(--background-1, #fff); border: 1px solid var(--border-1); border-radius: 10px; box-sizing: border-box;
}
.roles__field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.roles__field input:focus, .roles__field select:focus { outline: none; border-color: var(--color-text); }
.roles__clear { align-self: flex-start; padding: 0; font: inherit; font-size: .875rem; color: var(--color-text); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.roles-empty { padding: 48px 0; border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); }
.roles-empty__title { margin: 0 0 8px; font-size: clamp(1.5rem, 2vw + .5rem, 2.25rem); font-weight: 500; letter-spacing: -.02em; }
.roles-empty__text { max-width: 48ch; margin: 0 0 20px; color: var(--color-text-secondary); }
.roles-empty__btn { display: inline-flex; padding: 12px 22px; color: var(--background-1, #fff); background: var(--color-text); border-radius: 999px; text-decoration: none; }
/* skill tags on each role (chosen in the admin) */
