/* A compact browsing layout, scoped to the opportunities page. */
.page-roles .roles-hero {
  min-height: 0;
  padding: 9rem max(1.25rem, calc((100% - 1120px) / 2)) 2.5rem;
}
.page-roles .roles-hero h1 { max-width: none; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.08; }
.page-roles .roles-hero .editorial-hero-inner > p:last-child { max-width: 710px; margin-top: 1rem; font-size: 1rem; line-height: 1.65; }
.page-roles .roles-hero .home-eyebrow { margin-bottom: 0.9rem; }
.page-roles .roles-editorial { width: min(calc(100% - 2.5rem), 1120px); padding: 2rem 0 4rem; }
.roles-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 0.75rem; }
.roles-toolbar h2 { margin: 0; font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: #252b3b; }
.roles-count { margin: 0.35rem 0 0; color: #596171; font-size: 0.88rem; }
.page-roles .role-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
html[data-theme] body.page-roles .roles-editorial .role-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem 2rem;
  padding: 1.5rem 1.75rem; background: #fff; border: 1px solid #dedddc; border-radius: 8px; box-shadow: none;
  scroll-margin-top: 120px;
}
.page-roles .roles-editorial .role-card:target { outline: 2px solid #a9365c; outline-offset: 3px; }
.page-roles .roles-editorial .role-card h3 { font-family: var(--font-body); font-size: 1.15rem; line-height: 1.45; letter-spacing: -0.015em; font-weight: 600; }
.page-roles .role-card-header { grid-column: 1; }
.page-roles .role-card-salary { grid-column: 2; grid-row: 1; align-self: start; display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; margin: 0; }
.page-roles .roles-editorial .role-card-salary-label { color: #626a79; font-size: 0.65rem; letter-spacing: 0.1em; }
.page-roles .role-card-salary-value { font-size: 1rem; letter-spacing: 0; }
.page-roles .role-card-summary { grid-column: 1 / -1; max-width: 88ch; line-height: 1.65; font-size: 0.93rem; }
.page-roles .roles-editorial .role-card-summary { color: #4f5869; }
.role-card-essentials { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; list-style: none; padding: 0; margin: 0; color: #454d5d; font-size: 0.85rem; }
.role-card-essentials li + li::before { content: '·'; margin-right: 1rem; color: #a9365c; }
.page-roles .role-card-tags { grid-column: 1; align-self: center; margin: 0; gap: 0.35rem; }
html[data-theme] .page-roles .role-card-tags li { border: 1px solid #e6e6e8; background: #f4f4f6; color: #4f5869; padding: 0.25rem 0.6rem; font-weight: 400; }
.page-roles .role-card-tag-value { font-size: 0.75rem; letter-spacing: 0; }
.page-roles .role-card-actions { grid-column: 2; align-self: end; align-items: center; margin: 0; gap: 0.85rem; }
html[data-theme] body.page-roles .roles-editorial .role-card-link { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.9rem; border: 1px solid #a9365c; border-radius: 5px; background: #a9365c; color: #fff; font-size: 0.8rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
html[data-theme] body.page-roles .roles-editorial .role-apply-link { border-color: transparent; background: transparent; color: #91304e; padding-left: 0; padding-right: 0; }
html[data-theme] body.page-roles .roles-editorial .role-card-link:hover { background: #852746; color: white; }
html[data-theme] body.page-roles .roles-editorial .role-apply-link:hover { background: transparent; color: #75213d; text-decoration: underline; }
.page-roles a:focus-visible, .page-roles button:focus-visible { outline: 2px solid #a9365c; outline-offset: 4px; }
.roles-contact { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding: 1.75rem; border-radius: 8px; background: #ebe7e5; color: #252b3b; }
.roles-contact h2 { margin: 0; font-family: var(--font-heading); font-size: 1.9rem; font-weight: 400; line-height: 1.2; }
.roles-contact p { margin: 0.65rem 0 0; max-width: 62ch; color: #4f5869; font-size: 0.9rem; line-height: 1.6; }
.roles-contact a { flex-shrink: 0; color: #91304e; font-size: 0.9rem; font-weight: 600; text-underline-offset: 5px; padding: 0.75rem 0; }
.roles-no-results { padding: 2rem; text-align: center; background: #fff; border: 1px solid #dedddc; border-radius: 8px; color: #454d5d; }
.roles-no-results h3 { margin: 0; color: #252b3b; }
.roles-no-results button { min-height: 44px; padding: 0.5rem 1rem; border: 1px solid #a9365c; border-radius: 5px; color: #91304e; background: white; font: inherit; cursor: pointer; }
.page-roles .roles-editorial .role-empty { margin: 0 0 1rem; }
html[data-theme] body.page-roles [hidden] { display: none !important; }
@media (max-width: 720px) {
  .page-roles .roles-hero { padding-top: 8rem; padding-bottom: 2rem; }
  .roles-toolbar { align-items: stretch; flex-direction: column; }
  html[data-theme] body.page-roles .roles-editorial .role-card { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; gap: 0.85rem; }
  .page-roles .role-card-salary { grid-column: 1; grid-row: auto; flex-direction: row; align-items: baseline; gap: 0.5rem; }
  .page-roles .role-card-actions { grid-column: 1; margin-top: 0.15rem; }
  .roles-contact { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.5rem; }
}

.roles-reset:disabled { color: #626a79; opacity: 0.65; cursor: default; text-decoration: none; }


.roles-controls { display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem; margin-bottom: 0.9rem; padding-bottom: 0.9rem; border-bottom: 1px solid #dedddc; }
.roles-filter { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0.6rem; align-items: center; }
.roles-filter-label { color: #454d5d; font-size: 0.78rem; font-weight: 600; }
.roles-filter-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.roles-filter-pill { min-height: 30px; padding: 0.3rem 0.65rem; border: 1px solid #c9c6c8; border-radius: 999px; color: #454d5d; background: #fff; font: inherit; font-size: 0.75rem; line-height: 1.3; cursor: pointer; }
.roles-filter-pill:hover { border-color: #a9365c; color: #91304e; }
.roles-filter-pill[aria-pressed="true"] { background: #a9365c; border-color: #a9365c; color: #fff; }
.roles-reset { min-height: 28px; padding: 0.2rem 0; border: 0; background: transparent; color: #91304e; font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 720px) {
  .roles-filter { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .roles-filter-label { padding-top: 0; }
  .roles-filter-pill { min-height: 34px; }
}

.roles-results-meta { display: flex; align-items: center; gap: 1rem; margin-top: 0.25rem; }
.roles-results-meta .roles-count { margin: 0; }

.page-roles .role-card-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.page-roles .role-card-meta .role-card-essentials { gap: 0.35rem 0.65rem; font-size: 0.78rem; }
.page-roles .role-card-meta .role-card-essentials li + li::before { margin-right: 0.65rem; }
