
  body.mg-careers-page #page-basic {
    width: 100%;
    max-width: none;
    margin: 0 !important;
  }

  body.mg-careers-page #page-basic.container.maxw.lmt {
    width: 100vw !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.mg-careers-page #page-basic .main,
  body.mg-careers-page #page-basic .p-body,
  body.mg-careers-page #page-basic .p-body > section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.mg-careers-page #page-basic .p-head { display: none; }

  #mg-careers,
  #mg-careers * {
    box-sizing: border-box;
    font-size: var(--fs2);
  }

  #mg-careers {
    --mg-ink: #1f1e1a;
    --mg-muted: #77736b;
    --mg-line: rgba(31, 30, 26, .18);
    --mg-paper: #eef6f9;
    --mg-white: #fbfaf6;
    color: var(--mg-ink);
    background: var(--mg-white);
    font-family: indivisible, "Pyeojin Gothic", pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--fs2);
    line-height: normal;
    font-weight: 600;
    letter-spacing: 0;
    padding-bottom: 180px;
  }

  #mg-careers a { color: inherit; text-decoration: none; }
  #mg-careers p { margin: 0 0 1em; }
  #mg-careers strong { font-weight: 500; }

  #mg-careers .mg-careers-layout {
    display: grid;
    grid-template-columns: minmax(360px, 42vw) minmax(0, 1fr);
    align-items: start;
    padding-top: 60px;
  }

  #mg-careers .mg-careers-left {
    position: sticky;
    top: 60px;
    height: auto;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    margin-left: 24px;
    overflow-y: scroll;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: var(--mg-paper);
    border-radius: 4px;
    padding: 32px;
  }

  #mg-careers .mg-left-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #mg-careers .mg-eyebrow,
  #mg-careers .mg-kicker {
    margin: 0;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  #mg-careers .mg-wordmark {
    margin: .9rem 0 2rem;
    font-size: var(--fs6);
    line-height: .92;
    font-weight: 500;
    letter-spacing: -.065em;
  }

  #mg-careers .mg-intro {
    max-width: 34em;
    line-height: 1.48;
    letter-spacing: -.035em;
  }

  #mg-careers .mg-reading {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--mg-line);
  }

  #mg-careers .mg-reading-title {
    margin: 0 0 12px;
    letter-spacing: .02em;
  }

  #mg-careers .mg-reading-list,
  #mg-careers .mg-position-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #mg-careers .mg-reading-list li { margin-bottom: 15px; }
  #mg-careers .mg-reading-list a {
    display: grid;
    grid-template-columns: 2.2em 1fr;
    gap: 6px;
    row-gap: 0;
  }
  #mg-careers .mg-reading-list a:hover,
  #mg-careers .mg-position-list a:hover { opacity: .5; }

  #mg-careers .mg-reading-list small {
    grid-column: 2;
    display: block;
    color: var(--mg-muted);
    line-height: 1.4;
  }

  #mg-careers .mg-open-positions {
    margin-top: auto;
    padding-top: 32px;
  }

  #mg-careers .mg-open-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mg-line);
  }

  #mg-careers .mg-open-head h2 {
    margin: 0;
    font-weight: 600;
  }

  #mg-careers .mg-status-key {
    color: var(--mg-muted);
    letter-spacing: .04em;
    white-space: nowrap;
  }

  #mg-careers .mg-position-list { padding-top: 10px; }
  #mg-careers .mg-position-list > .mg-position-group + .mg-position-group { margin-top: 18px; }
  #mg-careers .mg-position-group-title {
    margin: 0;
    padding: 8px 0 4px;
    color: var(--mg-muted);
  }
  #mg-careers .mg-position-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #mg-careers .mg-position-group li { border-bottom: 1px solid var(--mg-line); }
  #mg-careers .mg-position-group a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    transition: opacity .2s ease;
  }
  #mg-careers .mg-position-status { color: #ff5722; margin-left: 0; }
  #mg-careers .mg-careers-right { min-width: 0; }

  #mg-careers .mg-section {
    display: grid;
    grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px);
    row-gap: 0;
    scroll-margin-top: 24px;
    padding: 32px;
    border-bottom: 0;
    position: relative;
  }

  #mg-careers .mg-section::after {
    content: "";
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 0;
    border-bottom: 1px solid var(--mg-line);
  }

  #mg-careers .mg-section:first-child { min-height: auto; }
  #mg-careers .mg-section:last-child::after { display: none; }

  #mg-careers .mg-section > .mg-section-label {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  #mg-careers .mg-section > :not(.mg-section-label) { grid-column: 2; }

  #mg-careers .mg-section-label {
    margin: 0;
    font-size: var(--fs6);
    max-width: none;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
  }

  #mg-careers .mg-question-list {
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.6;
    letter-spacing: 0;
  }
  #mg-careers .mg-question-list li {
    padding: .65em 0;
    border-top: 1px solid var(--mg-line);
  }

  #mg-careers .mg-prose { max-width: 45em; }
  #mg-careers .mg-prose-lg {
    max-width: 100%;
    line-height: 1.5;
    letter-spacing: 0;
  }
  #mg-careers .mg-prose + .mg-prose,
  #mg-careers .mg-prose-lg + .mg-prose { margin-top: 24px; }

  #mg-careers .mg-role-grid,
  #mg-careers .mg-team-grid,
  #mg-careers .mg-condition-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin-top: 32px;
    background: var(--mg-line);
    border: 1px solid var(--mg-line);
  }

  #mg-careers .mg-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  #mg-careers .mg-card {
    min-width: 0;
    padding: 24px;
    background: var(--mg-white);
  }

  #mg-careers .mg-card h3,
  #mg-careers .mg-role h3 {
    margin: 0 0 .2em;
    line-height: 1.15;
    font-weight: 550;
    letter-spacing: -.045em;
  }

  #mg-careers .mg-meta {
    display: block;
    margin-bottom: 20px;
    color: var(--mg-muted);
  }

  #mg-careers .mg-role {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
    gap: clamp(24px, 3vw, 48px);
    padding: 28px 0;
    border-top: 1px solid var(--mg-line);
  }
  #mg-careers .mg-role:last-child { border-bottom: 0; }

  #mg-careers .mg-system-note {
    margin-top: 32px;
    padding: 24px;
    background: #dce2e5;
    border-radius: 4px;
  }

  #mg-careers .mg-team-grid .mg-card { min-height: 220px; }
  #mg-careers .mg-team-grid ul {
    list-style: none;
    padding: 0;
    margin: 2.5em 0 0;
  }

  #mg-careers .mg-vacancy-group { margin-top: 32px; }
  #mg-careers .mg-vacancy-group + .mg-vacancy-group { margin-top: 36px; }
  #mg-careers .mg-vacancy-group > h3 {
    margin: 0 0 12px;
    font-weight: 550;
    letter-spacing: -.045em;
  }
  #mg-careers .mg-vacancy-row {
    display: grid;
    grid-template-columns: 1fr 10em auto;
    gap: 20px;
    align-items: baseline;
    scroll-margin-top: 84px;
    padding: 10px 0;
    border-top: 1px solid var(--mg-line);
  }
  #mg-careers .mg-vacancy-row:last-child { border-bottom: 0; }
  #mg-careers .mg-vacancy-row h4 { margin: 0; font-weight: 600; }
  #mg-careers .mg-vacancy-row p { margin: 0; color: var(--mg-muted); }

  #mg-careers .mg-badge {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #ff5722;
    line-height: 1.6;
    letter-spacing: 0;
  }

  #mg-careers .mg-apply-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 12px;
    margin-top: 32px;
  }
  #mg-careers .mg-apply-grid h3,
  #mg-careers .mg-condition h3 {
    margin: 0 0 18px;
    font-weight: 600;
  }
  #mg-careers .mg-checklist { margin: 0; padding: 0; list-style: none; }
  #mg-careers .mg-checklist li {
    position: relative;
    padding: 0 0 0 18px;
    border: 0;
  }
  #mg-careers .mg-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .8em;
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50% !important;
    transform: translateY(-50%);
  }

  #mg-careers .mg-q {
    padding: 20px 0;
    border-top: 1px solid var(--mg-line);
  }
  #mg-careers .mg-q:last-child { border-bottom: 1px solid var(--mg-line); }
  #mg-careers .mg-q h3 {
    margin: 0 0 .9em;
    max-width: 32em;
    line-height: 1.35;
    font-weight: 550;
    letter-spacing: -.04em;
  }
  #mg-careers #apply .mg-q p:last-child { margin-bottom: 0; }

  #mg-careers .mg-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 32px 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
  }
  #mg-careers .mg-process li {
    counter-increment: step;
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--mg-line);
    border-right: 0;
  }
  #mg-careers .mg-process li:last-child { border-right: 1px solid var(--mg-line); }
  #mg-careers .mg-process li::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 24px;
    color: var(--mg-muted);
  }

  #mg-careers .mg-condition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #mg-careers .mg-condition-content {
    grid-column: 2;
    display: grid;
    gap: 32px;
  }
  #mg-careers .mg-condition-block + .mg-condition-block { margin-top: 0; }
  #mg-careers .mg-subsection-title {
    margin: 0 0 12px;
    font-weight: 500;
  }
  #mg-careers .mg-condition-grid { margin-top: 0; }
  #mg-careers .mg-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: var(--mg-line);
    border: 1px solid var(--mg-line);
  }
  #mg-careers .mg-benefit {
    min-height: 150px;
    padding: 24px;
    background: var(--mg-white);
  }
  #mg-careers .mg-benefit strong { display: block; margin-bottom: 8px; }
  #mg-careers .mg-benefit p { color: var(--mg-muted); }

  @media (max-width: 1040px) {
    #mg-careers .mg-careers-layout { grid-template-columns: minmax(300px, 38vw) minmax(0, 1fr); }
    #mg-careers .mg-role-grid,
    #mg-careers .mg-team-grid { grid-template-columns: 1fr; }
    #mg-careers .mg-card { min-height: 0; }
    #mg-careers .mg-benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 760px) {
    #mg-careers .mg-careers-layout { display: block; }
    #mg-careers .mg-careers-left {
      position: relative;
      top: auto;
      height: auto;
      max-height: none;
      margin-left: 24px;
      margin-right: 0;
      margin-bottom: 24px;
      overflow: visible;
      border-radius: 4px;
      padding: 26px 20px 30px;
    }
    #mg-careers .mg-left-inner {
      min-height: 0;
      display: block;
    }
    #mg-careers .mg-wordmark { margin-bottom: 1.5rem; }
    #mg-careers .mg-reading { margin-top: 36px; }
    #mg-careers .mg-open-positions { margin-top: 40px; padding-top: 0; }
    #mg-careers .mg-section {
      display: block;
      padding: 32px;
    }
    #mg-careers .mg-section:first-child { min-height: 0; }
    #mg-careers .mg-section-label { margin-bottom: 24px; }
    #mg-careers .mg-role { grid-template-columns: 1fr; gap: 12px; }
    #mg-careers .mg-vacancy-row { grid-template-columns: 1fr auto; }
    #mg-careers .mg-vacancy-row p { grid-column: 1; grid-row: 2; }
    #mg-careers .mg-vacancy-row .mg-badge { grid-column: 2; grid-row: 1 / span 2; }
    #mg-careers .mg-apply-grid { grid-template-columns: 1fr; }
    #mg-careers .mg-process { grid-template-columns: repeat(2, 1fr); }
    #mg-careers .mg-process li:nth-child(2) { border-right: 1px solid var(--mg-line); }
    #mg-careers .mg-process li:nth-child(n+3) { border-top: 0; }
    #mg-careers .mg-condition-grid { grid-template-columns: 1fr; }
    #mg-careers .mg-benefit-list { grid-template-columns: 1fr; }
    #mg-careers .mg-benefit { border-right: 0 !important; }
    #mg-careers .mg-benefit:not(:last-child) { border-bottom: 1px solid var(--mg-line) !important; }
    #mg-careers .mg-benefit:last-child { border-bottom: 0 !important; }
  }

  @media (prefers-reduced-motion: reduce) {
    #mg-careers { scroll-behavior: auto; }
  }

  #mg-careers,
  #mg-careers * {
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
  }

  #mg-careers .mg-careers-left,
  #mg-careers .mg-system-note { border-radius: 4px !important; }
  #mg-careers .mg-section { border-radius: 0 !important; }
  #mg-careers .mg-badge {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    color: #ff5722 !important;
  }
  #mg-careers .mg-position-group li,
  #mg-careers .mg-vacancy-row,
  #mg-careers .mg-checklist li,
  #mg-careers .mg-q,
  #mg-careers .mg-process li,
  #mg-careers .mg-card,
  #mg-careers .mg-benefit,
  #mg-careers .mg-role,
  #mg-careers .mg-benefit-list,
  #mg-careers .mg-role-grid,
  #mg-careers .mg-team-grid,
  #mg-careers .mg-condition-grid,
  #mg-careers .mg-position-group ul { border-radius: 0 !important; }

  #mg-careers .mg-careers-left,
  #mg-careers .mg-system-note { border-radius: 4px !important; }

  #mg-careers #apply {
    padding: 32px !important;
  }
  #mg-careers #apply .mg-apply-grid { margin-top: 20px; }
  #mg-careers #apply .mg-q p { margin-bottom: 0 !important; }
  #mg-careers #apply .mg-system-note { margin-top: 20px; }
  #mg-careers .mg-prose-lg { max-width: 100% !important; }
  #mg-careers #conditions { padding-bottom: 0 !important; }

  #mg-careers .mg-section-stacked { display: block; }
  #mg-careers .mg-section-stacked > .mg-section-label {
    margin-bottom: 20px;
    font-size: var(--fs6);
    line-height: 1.35 !important;
  }

  #mg-careers .mg-careers-left {
    top: 84px;
    height: calc(100vh - 108px);
    height: calc(100dvh - 108px);
    max-height: none;
    margin-top: 24px;
  }

  #mg-careers .mg-left-inner {
    min-height: 100%;
  }

  #mg-careers .mg-section-nav { list-style: none; }
  #mg-careers .mg-section-nav li { border-bottom: 1px solid var(--mg-line); }
  #mg-careers .mg-section-nav a {
    display: grid;
    grid-template-columns: 2.2em minmax(0, 1fr);
    gap: 6px;
    padding: 8px 0;
  }

  #mg-careers .mg-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #mg-careers #conditions { padding-bottom: 40px !important; }

  #mg-careers .mg-section > .mg-section-label:not(:only-child) {
    line-height: 1.35 !important;
  }

  #mg-careers .mg-section-label { font-weight: 800 !important; }

  #mg-careers .mg-practice-intro { margin-bottom: 24px; }
  #mg-careers .mg-prose p:last-child,
  #mg-careers .mg-card p:last-child,
  #mg-careers .mg-benefit p:last-child { margin-bottom: 0; }

  #mg-careers .mg-practice-role {
    grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px);
    padding-top: 24px;
    padding-bottom: 24px;
  }

  #mg-careers .mg-vacancy-group > h3 {
    font-size: var(--fs3) !important;
    line-height: 1.35 !important;
  }

  #mg-careers .mg-practice-role h3 {
    margin-bottom: 0;
    font-size: var(--fs3) !important;
    line-height: 1.35 !important;
  }

  #mg-careers .mg-vacancy-group { margin-top: 40px; }
  #mg-careers .mg-vacancy-group + .mg-vacancy-group { margin-top: 48px; }
  #mg-careers .mg-vacancy-group > h3 { margin-bottom: 16px; }

  #mg-careers .mg-vacancy-group .mg-role {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  #mg-careers .mg-vacancy-group .mg-role h3,
  #mg-careers .mg-apply-grid > div > h3,
  #mg-careers .mg-q h3,
  #mg-careers .mg-condition h3,
  #mg-careers .mg-benefit strong {
    font-size: var(--fs2) !important;
    line-height: 1.4 !important;
  }

  #mg-careers #apply .mg-apply-grid { margin-top: 40px; }

  #mg-careers .mg-q {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  #mg-careers .mg-q h3 { margin-bottom: 16px; }

  #mg-careers .mg-condition-content { gap: 40px; }
  #mg-careers .mg-subsection-title {
    margin-bottom: 16px;
    font-size: var(--fs2) !important;
    line-height: 1.4 !important;
  }

  @media (max-width: 760px) {
    #mg-careers .mg-section {
      padding-top: 32px;
      padding-bottom: 32px;
    }

    #mg-careers #conditions { padding-bottom: 32px !important; }

    #mg-careers .mg-section-stacked > .mg-section-label {
      margin-bottom: 20px;
      font-size: var(--fs6);
    }

    #mg-careers .mg-careers-left {
      top: auto;
      height: auto;
      max-height: none;
      margin-top: 24px;
    }

    #mg-careers .mg-left-inner { min-height: 0; }

    #mg-careers .mg-practice-role {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }

  /* Section hierarchy: heading and introduction first, details below. */
  #mg-careers #apply { padding: 40px 32px !important; }

  #mg-careers .mg-section-stacked > div > .mg-prose-lg {
    max-width: 54em !important;
    margin-bottom: 24px;
  }

  #mg-careers .mg-vacancy-group {
    display: grid;
    grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px);
    margin-top: 0;
    padding: 24px 0;
    border-top: 1px solid var(--mg-line);
  }

  #mg-careers .mg-vacancy-group + .mg-vacancy-group { margin-top: 0; }
  #mg-careers .mg-vacancy-group > h3 { margin: 0; }
  #mg-careers .mg-vacancy-content { min-width: 0; }
  #mg-careers .mg-vacancy-roles { margin-top: 24px; }

  #mg-careers .mg-apply-grid {
    display: block;
    margin-top: 0;
  }

  #mg-careers #apply .mg-apply-grid { margin-top: 0; }

  #mg-careers .mg-apply-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 24px;
  }

  #mg-careers .mg-apply-summary-indent {
    display: grid;
    grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px);
  }

  #mg-careers .mg-apply-summary { grid-column: 2; }
  #mg-careers .mg-apply-summary > div {
    display: block;
    padding: 16px;
    border-left: 1px solid var(--mg-line);
  }
  #mg-careers .mg-apply-summary > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  #mg-careers .mg-apply-summary > div:nth-child(-n+2) { padding-top: 0; }
  #mg-careers .mg-apply-summary > div:nth-child(n+3) { border-top: 1px solid var(--mg-line); }
  #mg-careers .mg-apply-summary h3,
  #mg-careers .mg-apply-summary p { margin: 0; }
  #mg-careers .mg-apply-summary h3 { margin-bottom: 8px; }
  #mg-careers .mg-apply-summary p { color: var(--mg-muted); }
  #mg-careers .mg-apply-summary p a {
    display: block;
    font-size: var(--fs1) !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  #mg-careers .mg-apply-materials,
  #mg-careers .mg-q,
  #mg-careers .mg-system-note {
    display: grid;
    grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px);
    padding: 24px 0;
    border-top: 1px solid var(--mg-line);
  }

  #mg-careers .mg-apply-materials > h3,
  #mg-careers .mg-q h3 { margin: 0; }

  #mg-careers .mg-questions { margin-top: 0; }

  #mg-careers .mg-questions-nested {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--mg-line);
  }

  #mg-careers .mg-questions-nested .mg-q {
    display: block;
    padding: 16px 0;
  }

  #mg-careers .mg-questions-nested .mg-q:first-child { padding-top: 0; border-top: 0; }
  #mg-careers .mg-questions-nested .mg-q:last-child { padding-bottom: 0; }
  #mg-careers .mg-questions-nested .mg-q h3 { margin-bottom: 12px; }
  #mg-careers .mg-q:last-child { border-bottom: 0; }
  #mg-careers .mg-system-note {
    margin-top: 0;
    background: transparent;
    border-radius: 0 !important;
  }

  #mg-careers #apply .mg-system-note { margin-top: 0; }
  #mg-careers .mg-system-note .mg-kicker {
    font-size: var(--fs2) !important;
    line-height: 1.4 !important;
  }
  #mg-careers .mg-system-note .mg-prose { margin-top: 0 !important; }

  #mg-careers .mg-process {
    display: grid;
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 24px 0 0;
    border: 0;
  }

  #mg-careers .mg-process-indent {
    display: grid;
    grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px);
  }

  #mg-careers .mg-process li,
  #mg-careers .mg-process li:last-child {
    display: block;
    min-height: 0;
    padding: 16px 16px 16px 16px;
    border: 0;
    border-left: 1px solid var(--mg-line);
    font-size: var(--fs2) !important;
    line-height: 1.4 !important;
  }

  #mg-careers .mg-process li::before {
    content: none;
  }

  #mg-careers .mg-process li:nth-child(n+3) {
    border-top: 1px solid var(--mg-line);
  }

  #mg-careers .mg-process li:nth-child(odd),
  #mg-careers .mg-condition-grid > :nth-child(odd),
  #mg-careers .mg-benefit-list > :nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  #mg-careers .mg-process li:nth-child(-n+2),
  #mg-careers .mg-condition-grid > :nth-child(-n+2),
  #mg-careers .mg-benefit-list > :nth-child(-n+2) {
    padding-top: 0;
  }

  #mg-careers .mg-process strong,
  #mg-careers .mg-condition h3,
  #mg-careers .mg-benefit strong {
    display: block;
    margin: 0 0 8px;
    font-size: var(--fs2) !important;
    line-height: 1.4 !important;
  }

  #mg-careers .mg-process p { margin: 0; color: var(--mg-muted); }

  #mg-careers .mg-condition-content {
    display: block;
  }

  #mg-careers .mg-condition-block {
    display: grid;
    grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px);
    padding: 24px 0;
    border-top: 0;
  }

  #mg-careers .mg-condition-block + .mg-condition-block {
    margin-top: 0;
    border-top: 1px solid var(--mg-line);
  }
  #mg-careers .mg-subsection-title { margin: 0; }

  #mg-careers .mg-condition-grid,
  #mg-careers .mg-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 0;
    background: transparent;
  }

  #mg-careers .mg-card.mg-condition,
  #mg-careers .mg-benefit {
    display: block;
    min-height: 0;
    padding: 16px;
    border: 0;
    border-left: 1px solid var(--mg-line);
    background: transparent;
  }

  #mg-careers .mg-card.mg-condition:first-child,
  #mg-careers .mg-benefit:first-child { border-left: 1px solid var(--mg-line); }

  #mg-careers .mg-card.mg-condition:nth-child(n+3),
  #mg-careers .mg-benefit:nth-child(n+3) {
    border-top: 1px solid var(--mg-line);
  }

  #mg-careers .mg-condition p,
  #mg-careers .mg-benefit p {
    margin: 0;
    color: var(--mg-muted);
  }

  #mg-careers .mg-condition-grid > .mg-condition:nth-child(odd),
  #mg-careers .mg-benefit-list > .mg-benefit:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  #mg-careers .mg-condition-grid > .mg-condition:nth-child(-n+2),
  #mg-careers .mg-benefit-list > .mg-benefit:nth-child(-n+2) {
    padding-top: 0;
  }

  #mg-careers .mg-reading-list small,
  #mg-careers .mg-status-key,
  #mg-careers .mg-position-group-title,
  #mg-careers .mg-meta,
  #mg-careers .mg-vacancy-row p,
  #mg-careers .mg-apply-summary p,
  #mg-careers .mg-process p,
  #mg-careers .mg-condition p,
  #mg-careers .mg-benefit p {
    font-size: var(--fs1) !important;
  }

  #mg-careers a {
    transition: color .2s ease, opacity .2s ease;
  }

  #mg-careers a:hover {
    color: #ff5722;
    opacity: 1;
  }

  #mg-careers .mg-reading-list a:hover,
  #mg-careers .mg-position-list a:hover {
    color: #ff5722;
    opacity: 1;
  }

  #mg-careers #practice .mg-practice-role:last-child,
  #mg-careers #open-positions .mg-vacancy-group:last-child,
  #mg-careers #apply .mg-system-note,
  #mg-careers #conditions .mg-condition-block:last-child {
    padding-bottom: 0;
  }

  #mg-careers #open-positions .mg-vacancy-group:last-child .mg-role:last-child,
  #mg-careers .mg-process li:nth-last-child(-n+2),
  #mg-careers .mg-condition-grid > :last-child,
  #mg-careers .mg-benefit-list > :nth-last-child(-n+2) {
    padding-bottom: 0;
  }

  @media (max-width: 760px) {
    #mg-careers #apply { padding: 32px !important; }

    #mg-careers .mg-vacancy-group,
    #mg-careers .mg-apply-materials,
    #mg-careers .mg-q,
    #mg-careers .mg-system-note,
    #mg-careers .mg-condition-block {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    #mg-careers .mg-apply-summary { grid-template-columns: 1fr; }
    #mg-careers .mg-apply-summary-indent { display: block; }
    #mg-careers .mg-apply-summary > div {
      padding: 16px 0;
      border-left: 0;
      border-top: 1px solid var(--mg-line);
    }
    #mg-careers .mg-apply-summary > div:first-child { padding-top: 0; border-top: 0; }

    #mg-careers .mg-questions-nested .mg-q { gap: 0; }

    #mg-careers .mg-process li {
      display: block;
    }

    #mg-careers .mg-process-indent { display: block; }

    #mg-careers .mg-process,
    #mg-careers .mg-condition-grid,
    #mg-careers .mg-benefit-list {
      grid-template-columns: 1fr;
      gap: 0;
    }

    #mg-careers .mg-process li:nth-child(2) { border-right: 0; }
    #mg-careers .mg-process li:nth-child(n+2),
    #mg-careers .mg-card.mg-condition:nth-child(n+2),
    #mg-careers .mg-benefit:nth-child(n+2) { border-top: 1px solid var(--mg-line); }

    #mg-careers .mg-process li,
    #mg-careers .mg-card.mg-condition,
    #mg-careers .mg-benefit {
      padding-left: 0;
      border-left: 0;
    }

    #mg-careers .mg-process li:nth-child(n+2),
    #mg-careers .mg-card.mg-condition:nth-child(n+2),
    #mg-careers .mg-benefit:nth-child(n+2) { padding-top: 16px; }

    #mg-careers .mg-process li:nth-last-child(-n+2),
    #mg-careers .mg-condition-grid > :nth-last-child(-n+2),
    #mg-careers .mg-benefit-list > :nth-last-child(-n+2) { padding-bottom: 16px; }

    #mg-careers .mg-process li:last-child,
    #mg-careers .mg-condition-grid > :last-child,
    #mg-careers .mg-benefit-list > :last-child { padding-bottom: 0; }

    #mg-careers .mg-benefit:not(:last-child),
    #mg-careers .mg-benefit:last-child { border-bottom: 0 !important; }
  }

  /* Mobile rhythm */
  @media (max-width: 760px) {
    #mg-careers { padding-bottom: 96px; }

    #mg-careers .mg-careers-left {
      width: auto;
      margin: 12px 12px 24px;
      padding: 24px 16px;
    }

    #mg-careers .mg-section,
    #mg-careers #apply {
      padding: 28px 12px !important;
    }

    #mg-careers .mg-section::after {
      left: 12px;
      right: 12px;
    }

    #mg-careers #conditions { padding-bottom: 28px !important; }

    #mg-careers .mg-section-stacked > .mg-section-label {
      margin-bottom: 16px;
      font-size: var(--fs5);
      line-height: 1.35 !important;
    }

    #mg-careers .mg-section-stacked > div > .mg-prose-lg,
    #mg-careers .mg-practice-intro {
      margin-bottom: 20px;
    }

    #mg-careers .mg-practice-role,
    #mg-careers .mg-vacancy-group,
    #mg-careers .mg-vacancy-group .mg-role,
    #mg-careers .mg-apply-materials,
    #mg-careers .mg-system-note,
    #mg-careers .mg-condition-block {
      padding-top: 20px;
      padding-bottom: 20px;
    }

    #mg-careers .mg-practice-role,
    #mg-careers .mg-vacancy-group,
    #mg-careers .mg-apply-materials,
    #mg-careers .mg-system-note,
    #mg-careers .mg-condition-block {
      gap: 12px;
    }

    #mg-careers .mg-practice-role h3,
    #mg-careers .mg-vacancy-group > h3 {
      font-size: var(--fs3) !important;
      line-height: 1.35 !important;
    }

    #mg-careers .mg-vacancy-group + .mg-vacancy-group { margin-top: 0; }
    #mg-careers .mg-vacancy-group > h3 { margin-bottom: 0; }
    #mg-careers .mg-vacancy-roles { margin-top: 20px; }
    #mg-careers .mg-vacancy-group .mg-role { gap: 10px; }
    #mg-careers .mg-meta { margin-bottom: 0; }

    #mg-careers .mg-apply-summary-indent { display: block; }
    #mg-careers .mg-apply-summary {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-bottom: 20px;
    }
    #mg-careers .mg-apply-summary > div {
      padding: 12px;
      border-left: 1px solid var(--mg-line);
      border-top: 0;
    }
    #mg-careers .mg-apply-summary > div:nth-child(odd) {
      padding-left: 0;
      border-left: 0;
    }
    #mg-careers .mg-apply-summary > div:nth-child(-n+2) { padding-top: 0; }
    #mg-careers .mg-apply-summary > div:nth-child(n+3) {
      padding-top: 12px;
      border-top: 1px solid var(--mg-line);
    }
    #mg-careers .mg-apply-summary h3 { margin-bottom: 6px; }

    #mg-careers .mg-questions-nested {
      margin-top: 20px;
      padding-top: 20px;
    }
    #mg-careers .mg-questions-nested .mg-q { padding: 14px 0; }
    #mg-careers .mg-questions-nested .mg-q:first-child { padding-top: 0; }
    #mg-careers .mg-questions-nested .mg-q:last-child { padding-bottom: 0; }

    #mg-careers .mg-condition-block + .mg-condition-block { padding-top: 20px; }

    #mg-careers .mg-condition-block {
      display: grid;
      grid-template-columns: 25% minmax(0, 1fr);
      column-gap: 12px;
      align-items: start;
    }

    #mg-careers .mg-condition-grid,
    #mg-careers .mg-benefit-list {
      grid-template-columns: 1fr;
    }

    #mg-careers .mg-subsection-title {
      margin: 0;
      font-size: var(--fs2) !important;
      line-height: 1.4 !important;
    }

    #mg-careers .mg-process li,
    #mg-careers .mg-card.mg-condition,
    #mg-careers .mg-benefit {
      padding-top: 14px;
      padding-bottom: 14px;
    }
    #mg-careers .mg-process li:first-child,
    #mg-careers .mg-card.mg-condition:first-child,
    #mg-careers .mg-benefit:first-child { padding-top: 0; }
    #mg-careers .mg-process li:last-child,
    #mg-careers .mg-card.mg-condition:last-child,
    #mg-careers .mg-benefit:last-child { padding-bottom: 0; }

    #mg-careers .mg-process li:last-child {
      padding-left: 0;
      border-left: 0;
    }

    /* Keep all mobile summary and information rows on one rhythm. */
    #mg-careers .mg-process li,
    #mg-careers .mg-card.mg-condition,
    #mg-careers .mg-benefit {
      padding: 14px 0 !important;
      border-left: 0;
      border-bottom: 0 !important;
    }

    #mg-careers .mg-process li:first-child,
    #mg-careers .mg-card.mg-condition:first-child,
    #mg-careers .mg-benefit:first-child {
      padding-top: 0 !important;
      border-top: 0;
    }

    #mg-careers .mg-process li:nth-child(n+2),
    #mg-careers .mg-card.mg-condition:nth-child(n+2),
    #mg-careers .mg-benefit:nth-child(n+2) {
      padding-top: 14px !important;
      border-top: 1px solid var(--mg-line);
    }

    #mg-careers .mg-process li:last-child,
    #mg-careers .mg-card.mg-condition:last-child,
    #mg-careers .mg-benefit:last-child {
      padding-bottom: 0 !important;
    }

    #mg-careers .mg-process strong,
    #mg-careers .mg-condition h3,
    #mg-careers .mg-benefit strong {
      margin-bottom: 8px;
    }

    /* Mobile hierarchy: keep subsection labels in the first quarter. */
    #mg-careers .mg-practice-role,
    #mg-careers .mg-vacancy-group,
    #mg-careers .mg-apply-materials,
    #mg-careers .mg-system-note,
    #mg-careers .mg-condition-block {
      display: grid;
      grid-template-columns: 25% minmax(0, 1fr);
      column-gap: 12px;
      row-gap: 0;
      align-items: start;
    }

    #mg-careers .mg-apply-summary-indent,
    #mg-careers .mg-process-indent {
      display: grid;
      grid-template-columns: 25% minmax(0, 1fr);
      column-gap: 12px;
    }

    #mg-careers .mg-apply-summary,
    #mg-careers .mg-process {
      grid-column: 2;
      min-width: 0;
    }

  #mg-careers .mg-vacancy-group .mg-role {
      grid-template-columns: 1fr;
    }
  }

  /* Compact desktop: role titles and descriptions need the full line. */
  @media (min-width: 761px) and (max-width: 1040px) {
    #mg-careers .mg-vacancy-group .mg-role {
      grid-template-columns: 1fr;
      gap: 12px;
    }
  }

  /* Keep the table of contents visually light. */
  #mg-careers .mg-open-head {
    padding-bottom: 0;
    border-bottom: 0;
  }

  #mg-careers .mg-position-list { padding-top: 0; }

  #mg-careers .mg-period-highlight {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: #ff5722;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .15em;
  }
