/* Careers: native tablet/mobile layout.
   Desktop keeps the original 1200 px artboard and autoscale behaviour. */

@media (max-width: 1199.98px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    background: #3b3b3b;
  }

  body {
    --tt-careers-gutter: clamp(20px, 4.5vw, 48px);
    --tt-careers-grid-line: rgba(220, 220, 220, .065);
    --tt-careers-grid:
      linear-gradient(90deg,
        transparent calc(33.333% - .5px),
        var(--tt-careers-grid-line) calc(33.333% - .5px),
        var(--tt-careers-grid-line) calc(33.333% + .5px),
        transparent calc(33.333% + .5px)),
      linear-gradient(90deg,
        transparent calc(33.333% + 7.5px),
        var(--tt-careers-grid-line) calc(33.333% + 7.5px),
        var(--tt-careers-grid-line) calc(33.333% + 8.5px),
        transparent calc(33.333% + 8.5px)),
      linear-gradient(90deg,
        transparent calc(66.666% - .5px),
        var(--tt-careers-grid-line) calc(66.666% - .5px),
        var(--tt-careers-grid-line) calc(66.666% + .5px),
        transparent calc(66.666% + .5px)),
      linear-gradient(90deg,
        transparent calc(66.666% + 7.5px),
        var(--tt-careers-grid-line) calc(66.666% + 7.5px),
        var(--tt-careers-grid-line) calc(66.666% + 8.5px),
        transparent calc(66.666% + 8.5px));
  }

  .tt-mobile-header {
    position: relative;
    z-index: 1000;
  }

  html body .tt-stage {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto !important;
    overflow: visible;
  }

  html body .tt-stage .tt-stage__inner {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    flex: none !important;
    transform: none !important;
  }

  /* The fixed-canvas chrome is replaced by the shared dark header. */
  .tt1700-rent__logo,
  .tt1700-rent__mail,
  .tt1700-rent__menu {
    display: none !important;
  }

  .tt1700-rent,
  html body #tt-careers-intro.tt-careers-intro,
  html body #tt-careers-form.tt-careers-form,
  html body #tt-footer-simple.tt-footer-simple[id] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    background-color: #3b3b3b !important;
    background-image: var(--tt-careers-grid) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
  }

  .tt1700-rent__grid,
  #tt-careers-intro .tt-careers-intro__grid,
  #tt-careers-form .tt-careers-form__grid {
    display: none !important;
  }

  /* tokens.css still contains compensation rules for the former scaled
     1200 px canvas. Careers is native-responsive now, so its footer uses
     the section background above as the only grid layer. */
  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__grid {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
  }

  /* Hero */
  .tt1700-rent {
    height: auto !important;
    min-height: 0;
    padding: clamp(48px, 7vw, 76px) var(--tt-careers-gutter) clamp(36px, 5vw, 52px) !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .tt1700-rent__title {
    position: relative !important;
    inset: auto !important;
    display: flex;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    align-items: baseline;
    font-size: clamp(22px, 7.2vw, 72px) !important;
    line-height: 1 !important;
    letter-spacing: -.055em !important;
  }

  .tt1700-rent__title span {
    position: static !important;
  }

  .tt1700-rent__word {
    margin: 0;
  }

  /* Intro */
  html body #tt-careers-intro.tt-careers-intro {
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(36px, 5vw, 52px) var(--tt-careers-gutter) 80px !important;
    overflow: visible !important;
  }

  #tt-careers-intro .tt-careers-intro__col,
  #tt-careers-intro .tt-careers-intro__caption,
  #tt-careers-intro .tt-careers-intro__list {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
  }

  #tt-careers-intro .tt-careers-intro__col {
    max-width: 760px;
  }

  #tt-careers-intro .tt-careers-intro__lead {
    margin-bottom: 10px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  #tt-careers-intro .tt-careers-intro__col p {
    font-size: clamp(14px, 1.8vw, 17px) !important;
    line-height: 1.55 !important;
  }

  #tt-careers-intro .tt-careers-intro__caption {
    display: block;
    margin: 64px 0 18px;
    font-size: 12px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  #tt-careers-intro .tt-careers-intro__list {
    border-color: #505050 !important;
  }

  #tt-careers-intro .tt-careers-intro__list li {
    min-height: 52px;
    padding: 15px 0 !important;
    border-color: #505050 !important;
  }

  #tt-careers-intro .tt-careers-intro__num {
    width: 28px !important;
    font-size: 12px !important;
  }

  #tt-careers-intro .tt-careers-intro__item {
    font-size: clamp(14px, 2vw, 18px) !important;
    line-height: 1.3 !important;
  }

  /* Form */
  html body #tt-careers-form.tt-careers-form {
    padding: 0 0 88px !important;
    overflow: visible !important;
  }

  #tt-careers-form .tt-careers-form__head {
    padding: 72px var(--tt-careers-gutter) 42px !important;
  }

  #tt-careers-form .tt-careers-form__title {
    width: 100% !important;
    font-size: clamp(27px, 5.5vw, 44px) !important;
    line-height: 1.08 !important;
  }

  #tt-careers-form .tt-careers-form__section {
    display: grid !important;
    grid-template-columns: minmax(150px, 24%) minmax(0, 1fr) !important;
    gap: 34px !important;
    padding: 44px var(--tt-careers-gutter) 52px !important;
    border-color: #505050 !important;
  }

  #tt-careers-form .tt-careers-form__rail,
  #tt-careers-form .tt-careers-form__fields,
  #tt-careers-form .tt-careers-form__notes {
    width: 100% !important;
  }

  #tt-careers-form .tt-careers-form__notes {
    grid-column: 2;
    padding-top: 2px;
  }

  #tt-careers-form .tt-careers-form__railtitle,
  #tt-careers-form .tt-careers-form__field > label:not(.tt-careers-form__file),
  #tt-careers-form .tt-careers-form__field > legend,
  #tt-careers-form .tt-careers-form__legend {
    font-size: 13px !important;
  }

  #tt-careers-form .tt-careers-form__notes p,
  #tt-careers-form .tt-careers-form__hint,
  #tt-careers-form .tt-careers-form__filelist,
  #tt-careers-form .tt-careers-form__privacy {
    font-size: 12px !important;
  }

  #tt-careers-form input[type="text"],
  #tt-careers-form input[type="email"],
  #tt-careers-form input[type="tel"],
  #tt-careers-form textarea,
  #tt-careers-form .tt-careers-form__w200,
  #tt-careers-form .tt-careers-form__w320,
  #tt-careers-form .tt-careers-form__w360,
  #tt-careers-form .tt-careers-form__w550,
  #tt-careers-form .tt-phone-control {
    width: 100% !important;
    max-width: 100% !important;
  }

  #tt-careers-form .tt-careers-form__opts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 22px !important;
  }

  #tt-careers-form .tt-careers-form__opt {
    min-height: 32px !important;
    font-size: 13px !important;
  }

  #tt-careers-form .tt-careers-form__section--foot .tt-careers-form__rail,
  #tt-careers-form .tt-careers-form__section--foot .tt-careers-form__notes {
    display: none;
  }

  #tt-careers-form .tt-careers-form__section--foot .tt-careers-form__fields {
    grid-column: 2;
  }

  #tt-careers-form .tt-careers-form__submit {
    width: 100% !important;
    height: 44px !important;
    border: 0 !important;
    font-size: 16px !important;
  }

  /* Footer: preserve its design, but give address, phones and email
     separate tracks so contact details can never overlap. */
  html body #tt-footer-simple.tt-footer-simple[id] {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 56px var(--tt-careers-gutter) 64px !important;
    overflow: hidden !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: clamp(24px, 4vw, 56px) !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    align-items: start !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__col {
    min-width: 0 !important;
    padding: 0 !important;
    overflow-wrap: anywhere;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__col a,
  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__col button,
  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__privacy,
  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__privacy a,
  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__privacy button {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__col:nth-child(n) {
    padding: 0 !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__col:nth-child(3) br + br {
    display: initial !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__label {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__col--mail {
    grid-column: auto !important;
    grid-row: auto !important;
    align-items: flex-start !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__mail {
    width: 132px !important;
    max-width: 100% !important;
    height: 24px !important;
    font-size: 12px !important;
    text-align: left !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__mail-text {
    left: 0 !important;
    right: auto !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 700px) {
  #tt-careers-form .tt-careers-form__section {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  #tt-careers-form .tt-careers-form__notes,
  #tt-careers-form .tt-careers-form__section--foot .tt-careers-form__fields {
    grid-column: 1;
  }

  #tt-careers-form .tt-careers-form__rail {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
  }

  #tt-careers-form .tt-careers-form__num {
    margin-bottom: 0 !important;
  }

  #tt-careers-form .tt-careers-form__file {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 12px !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns {
    gap: 44px 24px !important;
  }
}

@media (max-width: 430px) {
  body {
    --tt-careers-gutter: 20px;
  }

  .tt1700-rent {
    min-height: 0;
    padding-top: 44px !important;
    padding-bottom: 32px !important;
  }

  html body #tt-careers-intro.tt-careers-intro {
    padding-top: 32px !important;
  }

  .tt1700-rent__title {
    font-size: clamp(22px, 7.2vw, 31px) !important;
  }

  #tt-careers-form .tt-careers-form__opts {
    grid-template-columns: 1fr !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] {
    padding-top: 48px !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 36px 16px !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__col--mail {
    grid-column: auto !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__col,
  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__col a,
  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__columns > .tt-footer-simple__col button {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__label {
    font-size: 10px !important;
  }

  html body #tt-footer-simple.tt-footer-simple[id] .tt-footer-simple__mail {
    width: 112px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce) {
  .tt1700-rent__bracket,
  .tt1700-rent__word {
    animation: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
