/* Careers search and detail, observed on OpenAI's careers pages, 2026-11-20.
   Existing type roles, page grid, shared shell and licensed Inter remain the source of truth. */
.careers-heading {padding-block:5.5rem 4rem;text-align:center}
.careers-index {grid-column:1/-1;min-width:0;margin-top:2rem}
.careers-controls {display:flex;flex-wrap:wrap;align-items:center;gap:1rem;min-height:2.75rem;margin-bottom:1rem;font-size:var(--type-p2-size);line-height:var(--type-p2-line)}
.careers-search {display:flex;flex:1;align-items:center;gap:.5rem;min-width:0}
.careers-search-toggle {width:2.75rem;height:2.75rem;margin-left:-.75rem}
.careers-search-toggle .icon,.careers-search-submit .icon {width:1.125rem;height:1.125rem}
.careers-search-field {display:flex;flex:1;min-width:0;max-width:24rem;align-items:center;border-bottom:1px solid var(--line)}
.careers-search-field input {width:100%;min-width:0;padding:.625rem 0;border:0;background:transparent;font-size:1rem;line-height:1.5rem;border-radius:0}
.careers-search-field input::placeholder {color:var(--muted)}
.careers-search-submit {flex:none;width:2.75rem;height:2.75rem}
.careers-count {flex:none;white-space:nowrap}
.careers-filters {position:relative;display:flex;align-items:center;gap:1.5rem;margin-left:auto;min-width:0}
.careers-filter {min-width:0}
.careers-filter summary {display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:2.75rem;list-style:none;cursor:pointer}
.careers-filter summary::-webkit-details-marker {display:none}
.careers-filter summary>span {max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.careers-filter summary .icon {width:.875rem;height:.875rem;transition:transform 150ms linear}
.careers-filter[open] summary .icon {transform:rotate(180deg)}
.careers-filter-panel {position:absolute;z-index:20;top:calc(100% + .5rem);left:0;width:min(18.75rem,100%);max-height:min(22rem,60dvh);overflow-y:auto;overscroll-behavior:contain;background:var(--surface);padding:1rem;border-radius:.75rem;box-shadow:0 4px 20px #00000008}
.careers-filter:last-child .careers-filter-panel {left:auto;right:0}
.careers-filter fieldset {min-width:0;margin:0;padding:0;border:0}
.careers-option {display:flex;align-items:flex-start;gap:.75rem;min-height:2.75rem;padding:.625rem .25rem;cursor:pointer;overflow-wrap:anywhere}
.careers-option:hover,.careers-filter-reset:hover {color:var(--muted)}
.careers-option input {flex:none;width:1rem;height:1rem;margin:.1875rem 0 0;accent-color:var(--ink)}
.careers-filter-reset {width:100%;min-height:2.75rem;padding:.5rem .25rem;text-align:left;border:0;border-bottom:1px solid var(--line);margin-bottom:.5rem;font-size:inherit;line-height:inherit}
.careers-filter-submit {flex-basis:100%}
.careers-list {list-style:none;margin:0;padding:0}
.careers-row {display:flex;align-items:baseline;gap:.75rem;border-bottom:1px solid var(--line);font-size:var(--type-p2-size);line-height:var(--type-p2-line);transition:border-color 150ms linear}
.careers-row:hover,.careers-row:focus-within {border-color:var(--ink)}
.careers-role {display:flex;flex:1;flex-direction:column;gap:.5rem;min-width:0;padding-block:1.25rem;overflow-wrap:anywhere}
.careers-role-heading {display:flex;flex-direction:column;gap:.25rem;min-width:0}
.careers-team,.careers-location {color:var(--muted)}
.careers-row-apply {display:inline-flex;flex:none;align-items:center;gap:.375rem;padding-block:1.25rem;white-space:nowrap}
.careers-row-apply .icon {width:.75rem;height:.75rem}
.careers-row-apply:hover,.career-eyebrow:hover {color:var(--muted)}
.careers-clear {margin-top:1rem}
.careers-empty {padding:3rem 0;text-align:center}
.careers-empty p {margin-block:1rem;color:var(--muted)}
.careers-preview-note {margin-top:2rem;color:var(--muted);font-size:var(--type-p2-size);line-height:var(--type-p2-line)}
.careers-results[aria-busy=true] {opacity:.6}
.career-header {padding-top:5.5rem;margin-bottom:5rem;text-align:center}
.career-header .type-h2 {overflow-wrap:anywhere}
.career-eyebrow {display:inline-block;margin-bottom:2rem;font-size:var(--type-p2-size);line-height:1.25rem}
.career-meta {display:flex;flex-wrap:wrap;justify-content:center;gap:0 .375rem;margin-top:1.5rem;font-size:var(--type-p1-size);line-height:var(--type-p1-line)}
.career-apply {display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.5rem;padding:.75rem 1.125rem;border-radius:99rem;background:var(--surface);font-size:var(--type-cta-size);line-height:1rem;font-weight:500}
.career-apply:hover {background:var(--subtle)}
.career-apply .icon {width:.875rem;height:.875rem}
.career-header .career-apply {margin-top:1.25rem}
.career-content .prose h2,.career-application h2 {font-size:var(--type-p1-size);line-height:var(--type-p1-line);font-weight:600;letter-spacing:var(--type-p1-track);margin:0 0 1.75rem;text-wrap:pretty}
.career-content .prose p {margin-bottom:1.75rem}
.career-content .prose p:last-child {margin-bottom:0}
.career-content .prose ul,.career-content .prose ol {margin:0;padding-left:1.5rem}
.career-content .prose li {margin:1rem 0;padding-left:0}
.career-content .prose li:first-child {margin-top:0}
.career-content .prose li:last-child {margin-bottom:0}
.career-content>*+* {margin-top:1.75rem}
.career-end {margin-top:3rem;text-align:center;scroll-margin-top:calc(var(--header-height,var(--header)) + 2rem)}
.career-application {margin-top:2rem}
.career-application h2 {margin-bottom:.75rem}
.career-application p {margin-bottom:1rem}
.career-application-tabs {display:flex;gap:2rem;border-bottom:1px solid var(--line)}
.career-application-tabs a {padding-block:.75rem;border-bottom:2px solid transparent;color:var(--muted)}
.career-application-tabs a[aria-current=page] {border-color:var(--ink);color:var(--ink)}
.career-application-policy {margin-top:2rem;font-size:var(--type-p2-size);line-height:var(--type-p2-line)}
.career-application-policy a {text-decoration:underline;text-underline-offset:.2em}
.careers-landing-header {padding-top:5.5rem;text-align:center}
.careers-landing-header .career-eyebrow {margin-bottom:2rem}
.careers-landing-intro {max-width:25rem;margin:1.5rem auto 0}
.careers-landing-header .career-apply {margin-top:2rem}
.career-primary {background:var(--ink);color:var(--bg);padding-inline:1.25rem}
.career-primary:hover {background:var(--ink);opacity:.8}
.careers-landing-section {margin-top:7.5rem}
.careers-landing-section>h2 {text-align:center}
.careers-work-copy {margin-top:5rem}
.careers-featured-heading {text-align:center}
.careers-featured-heading p {margin-top:1.5rem}
.careers-featured-heading .career-apply,.careers-closing .career-apply {margin-top:2rem}
.careers-featured-list {margin-top:4rem}
.careers-resources h2 {margin-bottom:1.5rem}
.careers-resources>a {display:flex;justify-content:space-between;gap:1rem;padding-block:1.25rem;border-bottom:1px solid var(--line);font-size:var(--type-p2-size);line-height:var(--type-p2-line)}
.careers-resources>a:hover {border-color:var(--ink)}
.careers-closing {text-align:center}
@container(min-width:44rem) {
  .careers-index {grid-column:2/span 10}
  .careers-filter {position:relative}
  .careers-filter-panel {left:auto;right:0;width:18.75rem}
  .careers-role {flex-direction:row;align-items:baseline;gap:1.5rem}
  .careers-role-heading {flex:1;flex-direction:row;flex-wrap:wrap;gap:0 .5rem}
  .careers-location {flex:none;max-width:9rem;text-align:right}
}
@container(min-width:60rem) {.careers-index {grid-column:3/span 8}}
@media(max-width:47.999rem) {
  .careers-heading {padding-block:3.5rem 2.5rem}
  .careers-index {margin-top:1.5rem}
  .careers-controls {gap:.5rem 1rem}
  .careers-search {flex-basis:100%}
  .careers-search-field {max-width:none}
  .careers-filters {width:100%;justify-content:space-between;gap:1rem}
  .careers-filter {max-width:calc(50% - .5rem)}
  .careers-filter summary>span {max-width:100%}
  .careers-row {gap:.75rem}
  .careers-role-heading {gap:.5rem}
  .career-header {padding-top:3.5rem;margin-bottom:3.5rem}
  .career-eyebrow {margin-bottom:1.5rem}
  .career-meta {margin-top:1.5rem;font-size:1rem;line-height:1.625rem}
  .careers-landing-header {padding-top:3.5rem}
  .careers-landing-section {margin-top:5rem}
  .careers-work-copy {margin-top:3rem}
  .careers-featured-list {margin-top:2.5rem}
}
@media(prefers-reduced-motion:reduce) {.careers-row,.careers-filter summary .icon {transition:none}}

