/* Open Roles page (Figma 505:1636): the home site's GNB, a dark hero, and the light board of
   filters and positions. The other career pages keep styles.css; this page loads only this file. */

:root {
  --dark: #0b0b0c;
  --bright: #f6f7f8;
  --brand: #ff4000;
  --ink: #171719;
  --muted: #505766;
  --grey: #797d86;
  --soft: #c9cbcf;
  --gutter: max(24px, calc((100vw - 1200px) / 2));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

/* dark behind the translucent GNB, as on the home site; the board paints its own light ground */
body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
fieldset {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

img {
  display: block;
}

.container {
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  top: 8px;
}

/* ---------- GNB: the same bar as SiteHeader.css on the home site ---------- */

.gnb {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 12, 0.7);
  backdrop-filter: blur(10px);
  color: #fff;
}

.gnb-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  height: 72px;
  padding-inline: 40px;
}

.gnb-toggle,
.gnb-burger {
  display: none;
}

.gnb-nav {
  display: flex;
  flex: 1;
  align-items: center;
}

.gnb-list {
  display: flex;
  align-items: center;
  gap: 44px;
}

.gnb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  color: var(--grey);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.gnb-link:hover,
.gnb-link.is-current,
.has-menu:hover > .gnb-link {
  color: #fff;
}

/* the chevron is a white image: 45% over the dark bar reads as the links' grey, full when lit */
.gnb-link img {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.gnb-link:hover img,
.gnb-link.is-current img,
.has-menu:hover > .gnb-link img {
  opacity: 1;
}

.has-menu {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
}

.gnb-menu {
  position: absolute;
  top: 100%;
  left: -24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 24px 32px;
  background: #0b0b0b;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s;
}

.has-menu:hover .gnb-menu,
.has-menu:focus-within .gnb-menu {
  opacity: 1;
  visibility: visible;
}

.gnb-menu a {
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.gnb-menu a:hover {
  color: var(--brand);
}

/* the Solutions panel: full width under the bar, two groups, as SiteHeader's .Mega */
.has-mega {
  position: static;
}

.gnb-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 408px auto;
  padding: 24px 40px 48px 221px;
  background: #0b0b0b;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s;
}

.has-mega:hover .gnb-mega,
.has-mega:focus-within .gnb-mega {
  opacity: 1;
  visibility: visible;
}

.mega-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mega-group a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 22em;
}

.mega-name {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s ease;
}

.mega-text {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--grey);
  word-break: keep-all;
  transition: color 0.2s ease;
}

.mega-group a:hover .mega-name {
  color: var(--brand);
}

.mega-group a:hover .mega-text {
  color: var(--soft);
}

.gnb-cta {
  flex: none;
  margin-left: auto;
  padding: 10px 32px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--soft);
  transition: background 0.2s ease;
}

.gnb-cta:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- hero ---------- */

.roles-hero {
  background: var(--dark);
  color: #fff;
}

/* the label in the filter's 206px column, the heading over the list, as on the board below */
.hero-inner {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  column-gap: 100px;
  padding-block: 80px;
}

.mode-label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--soft);
}

/* the orange triangle, turned to point right */
.mode-label img {
  width: 14px;
  height: 14px;
  padding: 0 0.94px 3.5px;
  rotate: 90deg;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero-copy h1 {
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
}

.hero-count {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey);
}

/* ---------- board ---------- */

.roles-board {
  background: var(--bright);
}

.board-inner {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  align-items: start;
  column-gap: 100px;
  padding-block: 36px 160px;
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-head h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #000;
}

.reset {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}

.filter-group {
  min-width: 0;
  border: 0;
}

.filter-group legend {
  width: 100%;
  padding: 0;
}

.group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #101012;
  cursor: pointer;
}

.group-toggle img {
  transition: rotate 0.2s ease;
}

.is-collapsed .group-toggle img {
  rotate: 180deg;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding-inline: 8px;
}

.is-collapsed .options {
  display: none;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-block: 8px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.0057em;
  color: var(--ink);
  cursor: pointer;
}

/* the design's 20px radio and 18px checkbox, 1.5px grey lines; it has no checked state, so a
   checked one fills with the brand colour */
.option input {
  flex: none;
  display: grid;
  place-content: center;
  margin: 2px 0;
  border: 1.5px solid rgba(112, 115, 124, 0.22);
  background: #fff;
  appearance: none;
  cursor: pointer;
}

.option input[type="radio"] {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.option input[type="radio"]:checked {
  border: 6px solid var(--brand);
}

.option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 1px;
  border-radius: 5px;
}

.option input[type="checkbox"]:checked {
  border-color: var(--brand);
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.option input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.board-count {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.board-count em {
  font-style: normal;
  color: var(--brand);
}

.search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: min(406px, 100%);
  padding: 8px 12px;
  border: 1px solid rgba(112, 115, 124, 0.16);
  border-radius: 8px;
  background: #fff;
}

.search:focus-within {
  border-color: rgba(112, 115, 124, 0.5);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  line-height: 1;
  outline: none;
}

.search input::placeholder {
  color: rgba(55, 56, 60, 0.28);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search img {
  flex: none;
  opacity: 0.6;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 39px;
}

.role[hidden] {
  display: none;
}

.role-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.role-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #000;
  transition: color 0.2s ease;
}

/* the title's link covers the whole row, which opens role.html?id=… */
.role {
  position: relative;
}

.role-title a::after {
  content: "";
  position: absolute;
  inset: -12px 0;
}

.role:hover .role-title {
  color: var(--brand);
}

.role-title a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.role-status {
  flex: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.role-tags .sep {
  font-weight: 400;
  color: var(--soft);
}

.no-results {
  margin-top: 39px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 32px var(--gutter);
  background: var(--dark);
  font-size: 14px;
  color: var(--grey);
}

.site-footer a:hover {
  color: #fff;
}

/* ---------- narrow screens ---------- */

@media (max-width: 1100px) {
  .gnb-inner {
    gap: 32px;
    padding-inline: min(var(--gutter), 40px);
  }

  .gnb-list {
    gap: 28px;
  }

  .gnb-mega {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    padding-left: min(var(--gutter), 40px);
  }
}

@media (max-width: 900px) {
  .gnb-inner {
    height: 64px;
  }

  .gnb-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    cursor: pointer;
  }

  .gnb-burger span {
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s ease;
  }

  .gnb-toggle:checked + .gnb-burger span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .gnb-toggle:checked + .gnb-burger span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .gnb-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 64px);
    padding: 12px min(var(--gutter), 40px) 24px;
    overflow-y: auto;
    background: #0b0b0b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s ease,
      visibility 0.2s;
  }

  .gnb-toggle:checked ~ .gnb-nav {
    opacity: 1;
    visibility: visible;
  }

  .gnb-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .gnb-link {
    display: flex;
    padding: 14px 4px;
    font-size: 17px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .gnb-link img {
    display: none;
  }

  /* the phone menu lists every entry, the dropdowns' included */
  .has-menu {
    display: block;
    height: auto;
  }

  .gnb-menu {
    position: static;
    gap: 16px;
    padding: 16px 4px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: none;
    opacity: 1;
    visibility: visible;
    white-space: normal;
  }

  .gnb-menu a {
    font-size: 16px;
  }

  .gnb-mega {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px 4px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: none;
    opacity: 1;
    visibility: visible;
  }

  .mega-group {
    gap: 16px;
  }

  .mega-group a {
    gap: 2px;
    max-width: none;
  }

  .mega-name {
    font-size: 16px;
  }

  .mega-text {
    font-size: 13px;
  }

  .gnb-cta {
    margin: 20px 0 0;
    text-align: center;
  }

  .hero-inner,
  .board-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .hero-inner {
    padding-block: 56px;
  }

  .board-inner {
    row-gap: 40px;
    padding-block: 32px 96px;
  }

  .filter {
    gap: 24px;
  }

  .board-head {
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .role-list {
    margin-top: 32px;
    gap: 32px;
  }
}
