/* The desktop reference remains untouched. Below 70rem, the section is live, fluid content. */
#implementation .te-dashboard-live,
#implementation .te-dashboard-coming {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#implementation .te-access-label { display: none; }

@media (max-width: 70rem) {
  #implementation .te-dashboard {
    display: grid;
    grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
    align-items: start;
    gap: 0 clamp(1.5rem, 3.5vw, 3.5rem);
    width: 100vw;
    aspect-ratio: auto;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) 0;
    color: #f7fbff;
    background:
      radial-gradient(circle at 63% 24%, #0d6b8b32, transparent 37%),
      radial-gradient(circle at 8% 84%, #2335ad36, transparent 38%),
      linear-gradient(135deg, #021228, #041c37 60%, #06132c);
  }
  #implementation .te-dashboard-copy,
  #implementation .te-dashboard-model {
    width: auto;
    min-width: 0;
    aspect-ratio: auto;
    background: none;
  }
  #implementation .te-dashboard-live,
  #implementation .te-dashboard-coming {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  #implementation .te-dashboard-copy { max-width: 35rem; }
  #implementation .te-eyebrow {
    margin: 0 0 1.5rem;
    color: #19d9e9;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .31em;
    line-height: 1.4;
    text-transform: uppercase;
  }
  #implementation .te-eyebrow::before {
    display: inline-block;
    width: 2.25rem;
    height: 2px;
    margin: 0 .8rem .3rem 0;
    background: linear-gradient(90deg, #00ebed, #e320e6);
    content: "";
  }
  #implementation .te-dashboard-copy h3 {
    max-width: 13ch;
    margin: 0 0 1.1rem;
    color: #fff;
    font-family: var(--ars-font-sans);
    font-size: clamp(2.35rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.055em;
    text-wrap: balance;
  }
  #implementation .te-dashboard-copy h3 span {
    display: block;
    color: #23dafa;
    background: linear-gradient(90deg, #02d9e8, #5894f7 62%, #db22df);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  #implementation .te-dashboard-copy .te-dashboard-live > p:not(.te-eyebrow) {
    max-width: 42ch;
    margin: 0 0 1rem;
    color: #d7e6f2;
    font-size: clamp(1rem, 1.38vw, 1.12rem);
    line-height: 1.56;
  }
  #implementation .te-dashboard-access {
    position: relative;
    top: auto;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 3.25rem;
    height: auto;
    margin-top: .55rem;
    padding: .75rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(100deg, #00cdea, #125cf4 53%, #c51ce3);
    box-shadow: 0 .6rem 1.4rem #00102054;
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
  }
  #implementation .te-access-label { display: inline-flex; align-items: center; gap: 1.2rem; }
  #implementation .te-access-label span { font-size: 1.45em; font-weight: 400; line-height: .8; }
  #implementation .te-dashboard-coming {
    max-width: 37ch;
    margin-top: .85rem;
    color: #b8ccdf;
    font-size: .92rem;
    line-height: 1.45;
  }

  #implementation .te-dashboard-model {
    padding-left: clamp(1.5rem, 3vw, 3rem);
    border-left: 1px solid #27d8ee55;
  }
  #implementation .te-model-heading { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
  #implementation .te-model-icon {
    flex: 0 0 auto;
    width: 3.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: url("/assets/task-engineering-dashboard-reference.png") 32% 8% / 1944% auto no-repeat;
  }
  #implementation .te-model-heading h3 {
    margin: 0;
    color: #fff;
    font-family: var(--ars-font-sans);
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
  }
  #implementation .te-dashboard-model h4 {
    max-width: 22ch;
    margin: 0 0 .8rem;
    color: #fff;
    font-family: var(--ars-font-sans);
    font-size: clamp(1.65rem, 2.75vw, 2.7rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.05em;
    text-wrap: balance;
  }
  #implementation .te-dashboard-model h4 span { display: block; }
  #implementation .te-dashboard-model .te-dashboard-live > p:not(.te-model-closer) {
    max-width: 62ch;
    margin: 0;
    color: #d7e6f2;
    font-size: clamp(1rem, 1.38vw, 1.1rem);
    line-height: 1.52;
  }
  #implementation .te-flow-group { margin-top: 1.45rem; }
  #implementation .te-flow-label {
    display: inline-block;
    margin: 0 0 .75rem;
    padding: .33rem .82rem;
    border: 1px solid #4457d488;
    border-radius: 999px;
    background: #15245b99;
    color: #eaf4ff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.25;
    text-transform: uppercase;
  }
  #implementation .te-flow-group--forward .te-flow-label { border-color: #00d4e366; background: #063a5f99; color: #2ee7ee; }
  #implementation .te-flow-sequence {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.8fr);
    align-items: center;
    gap: .3rem;
    width: 100%;
  }
  #implementation .te-flow-sequence button {
    min-width: 0;
    min-height: 2.75rem;
    padding: .4rem .1rem;
    border: 0;
    border-bottom: 2px solid #3e7da16b;
    border-radius: 0;
    background: transparent;
    color: #f2f9ff;
    font: 700 clamp(.82rem, 1.25vw, .98rem)/1.25 var(--ars-font-sans);
    text-align: center;
    cursor: pointer;
    overflow-wrap: anywhere;
  }
  #implementation .te-flow-sequence button:hover,
  #implementation .te-flow-sequence button[aria-expanded="true"] { border-color: #1ce1ed; color: #64efff; }
  #implementation .te-flow-sequence button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  #implementation .te-sequence-arrow { color: #1ce1ed; font-size: 1.15rem; line-height: 1; text-align: center; }
  #implementation .te-sequence-detail {
    margin: .7rem 0 0;
    padding: .5rem .75rem;
    border-left: 2px solid #13d9ed;
    background: #0a31519c;
    color: #e1f1fb;
    font-size: .9rem;
    line-height: 1.45;
  }
  #implementation .te-sequence-detail[hidden] { display: none; }
  #implementation .te-model-closer {
    max-width: 26ch;
    margin: 1.35rem 0 0;
    color: #27e0ef;
    font-family: var(--ars-font-script);
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    font-style: italic;
    line-height: 1.25;
    transform: rotate(-2deg);
  }

  #implementation .te-dashboard-photo {
    position: relative;
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    min-height: 25rem;
    margin: clamp(2rem, 4vw, 3.5rem) 0 0;
    overflow: hidden;
    border-radius: 1.4rem 1.4rem 0 0;
    background: #092640;
  }
  #implementation .te-dashboard-photo > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: cover;
    object-position: 50% 43%;
  }
  #implementation .te-dashboard-photo::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, #02182cef 0%, #031d32d8 32%, #0724403b 72%, #06172b24 100%), linear-gradient(0deg, #01182cb8, transparent 53%);
    content: "";
    pointer-events: none;
  }
  #implementation .te-dashboard-support {
    position: relative;
    z-index: 2;
    top: auto;
    right: auto;
    display: block;
    width: min(43%, 27rem);
    min-height: 0;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #fff;
    backdrop-filter: none;
  }
  #implementation .te-support-icon { width: 2.8rem; margin-bottom: .65rem; background: #0e6eb76e; color: #8ee6ff; }
  #implementation .te-dashboard-support h3 { margin-bottom: .55rem; color: #fff; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.13; }
  #implementation .te-dashboard-support p { max-width: 43ch; margin-bottom: 1rem; color: #eef7ff; font-size: clamp(.98rem, 1.3vw, 1.1rem); line-height: 1.5; }
  #implementation .te-dashboard-support a { color: #70eaff; font-size: 1rem; font-weight: 750; text-underline-offset: .25em; }
  #implementation .te-dashboard-quote {
    position: absolute;
    z-index: 2;
    right: 2rem;
    bottom: 1.75rem;
    width: min(36%, 22rem);
    margin: 0;
    padding: .5rem 0 .5rem 1rem;
    border-left: 2px solid #16e0eb;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-shadow: 0 1px 8px #011a30;
  }
  #implementation .te-dashboard-quote::before { display: none; }
  #implementation .te-dashboard-quote blockquote { margin: 0; font-size: 1rem; line-height: 1.4; }
  #implementation .te-dashboard-quote figcaption { margin: .65rem 0 0; font-size: .58rem; }
}

@media (max-width: 48rem) {
  #implementation .te-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: clamp(1.6rem, 5vw, 2.4rem) clamp(1.1rem, 5vw, 2rem) 0;
  }
  #implementation .te-dashboard-copy,
  #implementation .te-dashboard-model { width: 100%; max-width: 42rem; }
  #implementation .te-dashboard-copy { padding: 0 0 1.7rem; }
  #implementation .te-dashboard-copy h3 { max-width: 14ch; font-size: clamp(2.25rem, 8.8vw, 3.5rem); }
  #implementation .te-dashboard-copy .te-dashboard-live > p:not(.te-eyebrow) { max-width: 48ch; font-size: 1rem; }
  #implementation .te-dashboard-model {
    padding: 1.7rem 0 0;
    border-top: 1px solid #27d8ee55;
    border-left: 0;
  }
  #implementation .te-model-heading { margin-bottom: 1rem; }
  #implementation .te-model-heading h3 { font-size: clamp(1.75rem, 6vw, 2.35rem); }
  #implementation .te-dashboard-model h4 { font-size: clamp(1.7rem, 7vw, 2.45rem); }
  #implementation .te-flow-sequence button { font-size: .95rem; }
  #implementation .te-model-closer { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  #implementation .te-dashboard-photo {
    flex: 0 0 auto;
    width: calc(100% + 2 * clamp(1.1rem, 5vw, 2rem));
    min-height: 35rem;
    margin: 1.8rem calc(-1 * clamp(1.1rem, 5vw, 2rem)) 0;
    border-radius: 0;
  }
  #implementation .te-dashboard-photo > img { object-position: 75% center; }
  #implementation .te-dashboard-photo::after {
    background: linear-gradient(180deg, #03182caf 0%, #071c2c1f 21%, #03182c1a 36%, #03182ce9 62%, #021426 100%);
  }
  #implementation .te-dashboard-support {
    width: 100%;
    padding: 1.35rem clamp(1.1rem, 5vw, 2rem) 0;
  }
  #implementation .te-support-icon { width: 2.5rem; }
  #implementation .te-dashboard-support h3 { max-width: 20ch; font-size: clamp(1.65rem, 6vw, 2rem); }
  #implementation .te-dashboard-support p { max-width: 37ch; margin-top: clamp(11rem, 50vw, 15rem); font-size: 1rem; line-height: 1.5; }
  #implementation .te-dashboard-quote {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: 26rem;
    margin: 1.45rem clamp(1.1rem, 5vw, 2rem) 1.7rem;
    padding: 0 0 0 .85rem;
  }
  #implementation .te-dashboard-quote blockquote { font-size: .92rem; }
}

@media (max-width: 64rem) {
  #implementation .te-flow-sequence {
    grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr);
    grid-template-rows: auto 1.1rem auto;
    gap: .1rem .4rem;
  }
  #implementation .te-flow-sequence button { font-size: .9rem; }
  #implementation .te-flow-sequence button:nth-of-type(1) { grid-area: 1 / 1; }
  #implementation .te-flow-sequence button:nth-of-type(2) { grid-area: 1 / 3; }
  #implementation .te-flow-sequence button:nth-of-type(3) { grid-area: 3 / 1; }
  #implementation .te-flow-sequence button:nth-of-type(4) { grid-area: 3 / 3; }
  #implementation .te-flow-sequence .te-sequence-arrow:nth-of-type(1) { grid-area: 1 / 2; }
  #implementation .te-flow-sequence .te-sequence-arrow:nth-of-type(2) { grid-area: 2 / 1 / 3 / -1; font-size: 0; }
  #implementation .te-flow-sequence .te-sequence-arrow:nth-of-type(2)::after { content: "↙"; font-size: 1rem; }
  #implementation .te-flow-sequence .te-sequence-arrow:nth-of-type(3) { grid-area: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  #implementation .te-dashboard-access { transition: none; }
}

@media (forced-colors: active) and (max-width: 70rem) {
  #implementation .te-dashboard { background: Canvas; color: CanvasText; }
  #implementation .te-dashboard-copy h3 span { color: CanvasText; -webkit-text-fill-color: currentColor; }
  #implementation .te-dashboard-copy .te-dashboard-live > p:not(.te-eyebrow),
  #implementation .te-dashboard-model .te-dashboard-live > p:not(.te-model-closer) { color: CanvasText; }
  #implementation .te-dashboard-access { border: 2px solid LinkText; color: LinkText; }
  #implementation .te-dashboard-photo::after { background: Canvas; opacity: .7; }
  #implementation .te-dashboard-support { color: CanvasText; background: none; }
}
/* Keep Task Engineering while omitting the five areas on mobile. */
@media (max-width: 48rem) {
  #implementation .ars-implementation-intro,
  #implementation .fa-disclosures {
    display: none;
  }

  #implementation.ars-section::before {
    display: none;
  }

  #implementation > .ars-container {
    padding-top: 0;
  }
}
