/* equipment_detail07.php only. Shared equipment and layout styles are unchanged. */

/* Page layout and headings. */

.equipment-trumpf-page .trumpf-hero-badge {
  position: absolute;
  inset: 195px 0 auto;
  pointer-events: none;
}

.equipment-trumpf-page .trumpf-hero-badge img {
  display: block;
  width: 128px;
  height: auto;
}

.equipment-trumpf {
  max-width: 1180px;
  width: 100%;
  margin: 80px auto 40px;
  font-weight: 500;
}

.equipment-trumpf-page main h1,
.equipment-trumpf-page main h2,
.equipment-trumpf-page main h3,
.equipment-trumpf-page main h4,
.equipment-trumpf-page main h5,
.equipment-trumpf-page main h6,
.equipment-trumpf-page .page-head-ttl::before {
  letter-spacing: 0.025em;
}

.equipment-trumpf .h2_ti h2 {
  font-size: 30px;
  letter-spacing: 0.025em;
  line-height: 1.65;
}

.equipment-trumpf .maker {
  font-size: 22px;
  margin: 0 0 40px;
  line-height: 1.6;
}

/* Shared content: images and body typography. */

.equipment-trumpf .trumpf-overview-image > img:first-child,
.equipment-trumpf .trumpf-system-copy img,
.equipment-trumpf .trumpf-feature-grid img,
.equipment-trumpf .trumpf-photo-grid img,
.equipment-trumpf .trumpf-description-grid img,
.equipment-trumpf .trumpf-description img {
  display: block;
  width: 100%;
}

.equipment-trumpf .trumpf-system-copy img,
.equipment-trumpf .trumpf-photo-grid img,
.equipment-trumpf .trumpf-description-grid img,
.equipment-trumpf .trumpf-description img {
  height: auto;
}

.equipment-trumpf .trumpf-system-copy p,
.equipment-trumpf .trumpf-footnote,
.equipment-trumpf .trumpf-feature-grid figcaption,
.equipment-trumpf .trumpf-description-grid p,
.equipment-trumpf .trumpf-description p {
  font-size: 14px;
  letter-spacing: 0.025em;
  line-height: 2.15;
}

/* Overview: material flow, callouts and reveal animation. */

.equipment-trumpf .trumpf-overview,
.equipment-trumpf .trumpf-overview-image {
  position: relative;
  container-type: inline-size;
}

.equipment-trumpf .trumpf-map-pin,
.equipment-trumpf .trumpf-label-number {
  display: none;
}

.equipment-trumpf .trumpf-flow {
  position: absolute;
  left: 8.7%;
  top: 43%;
  width: 75%;
  height: auto;
  pointer-events: none;
}

.equipment-trumpf .trumpf-flow-marker {
  position: absolute;
  display: block;
  padding: .3em 0;
  text-align: center;
  line-height: 1.3;
  font-size: clamp(8px, 1.4cqw, 22px);
  font-weight: 700;
  color: var(--color-main);
  background: #f6eb2f;
}

.equipment-trumpf .flow-start {
  left: 54.65%;
  top: 51.7%;
  width: 6.5%;
}

.equipment-trumpf .flow-goal {
  left: 2.7%;
  top: 58.45%;
  width: 5.1%;
}

.equipment-trumpf .trumpf-map-label {
  position: absolute;
  background: #fff;
  text-align: center;
  font-size: 1.4cqw;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-main);
  transition: transform .25s ease;
}

.equipment-trumpf .trumpf-label-heading {
  display: block;
  padding: .58em .3em;
  color: #fff;
  background: var(--color-main);
}

.equipment-trumpf .trumpf-label-body {
  display: block;
  padding: .3em .25em;
  font-size: .857143em;
  line-height: 1.2;
}

.equipment-trumpf .trumpf-map-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-left: .95cqw solid transparent;
  border-right: .95cqw solid transparent;
  border-top: 2.2cqw solid #fff;
  pointer-events: none;
}

.equipment-trumpf .map-bend {
  left: 13.2%;
  top: 22.9%;
  width: 17.3%;
  --reveal-delay: .36s;
}

.equipment-trumpf .map-tmu {
  left: 45.6%;
  top: 13.2%;
  width: 18.2%;
  --reveal-delay: 0s;
}

.equipment-trumpf .map-tmu .trumpf-label-body {
  padding-top: .55em;
  padding-bottom: .55em;
  line-height: 1.25;
}

.equipment-trumpf .map-laser {
  left: 67%;
  top: 76.6%;
  width: 20.9%;
  --reveal-delay: .18s;
}

.equipment-trumpf .map-laser::after {
  top: auto;
  bottom: 100%;
  border-top: 0;
  border-bottom: 2.2cqw solid #fff;
}

.equipment-trumpf .has-reveal .trumpf-map-label {
  transition: opacity .6s ease var(--reveal-delay), transform .6s cubic-bezier(.2,.7,.2,1) var(--reveal-delay);
}

.equipment-trumpf .has-reveal:not(.is-visible) .trumpf-map-label {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.equipment-trumpf .trumpf-map-label:hover {
  transform: translateY(-2px);
}

.equipment-trumpf .trumpf-map-label:focus-visible {
  outline: 3px solid #ffeb00;
  outline-offset: 3px;
}

/* Introduction: lead copy, video and feature photos. */

.equipment-trumpf .trumpf-lead {
  margin: 55px 0 32px;
  color: var(--color-main);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.equipment-trumpf sup {
  font-size: .6em;
  vertical-align: super;
  line-height: 0;
}

.equipment-trumpf .trumpf-intro-grid {
  display: grid;
  grid-template-columns: 56% minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.equipment-trumpf .trumpf-video {
  aspect-ratio: 16 / 9;
}

.equipment-trumpf .trumpf-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.equipment-trumpf .trumpf-system-copy p {
  margin: 0 0 20px;
  text-box: trim-start cap alphabetic;
  text-align: justify;
}

.equipment-trumpf .trumpf-footnote {
  margin: 20px 0 0;
  text-align: center;
}

.equipment-trumpf .remote-lead {
  margin-top: 45px;
}

.equipment-trumpf .trumpf-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.equipment-trumpf .trumpf-feature-grid figcaption {
  margin-top: 12px;
  text-align: center;
}

/* Equipment: titles, stage labels, photos and descriptions. */

.equipment-trumpf .trumpf-machine {
  margin-top: 65px;
}

.equipment-trumpf .trumpf-machine-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.equipment-trumpf .trumpf-stage {
  display: inline-block;
  min-width: 250px;
  padding: 5px 14px;
  border: 1px solid var(--color-main);
  color: var(--color-main);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

.equipment-trumpf .trumpf-model-name {
  font-size: 28px;
  letter-spacing: 0.025em;
}

.equipment-trumpf .trumpf-stage.trumpf-stage-framed {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 254px;
  max-width: 100%;
  height: 40px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 8px;
  border-width: 2px 14px;
  background: #fff;
  font-size: 14px;
  letter-spacing: 0.025em;
  line-height: 1.4;
}

.equipment-trumpf .trumpf-photo-grid,
.equipment-trumpf .trumpf-description-grid,
.equipment-trumpf .trumpf-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.equipment-trumpf .trumpf-description-grid,
.equipment-trumpf .trumpf-details-grid {
  margin-top: 42px;
}

.equipment-trumpf .trumpf-details-grid {
  row-gap: 0;
}

.equipment-trumpf .trumpf-details-grid > .trumpf-description {
  grid-column: 1;
  grid-row: 2;
}

.equipment-trumpf .trumpf-details-grid > .trumpf-spec-title {
  grid-column: 2;
  grid-row: 1;
}

.equipment-trumpf .trumpf-details-grid > .trumpf-spec-block {
  grid-column: 2;
  grid-row: 2;
}

.equipment-trumpf .trumpf-description-grid p,
.equipment-trumpf .trumpf-description p {
  margin: 0;
  text-align: justify;
}

.equipment-trumpf .trumpf-details-grid > .trumpf-description > p:first-child {
  text-box: trim-start cap alphabetic;
}

.equipment-trumpf .trumpf-description > img,
.equipment-trumpf .trumpf-description > figure {
  margin-top: 24px;
}

/* Specifications: scroll containers, cells and column widths. */

.equipment-trumpf .trumpf-spec-block {
  min-width: 0;
  margin-top: 40px;
}

.equipment-trumpf .trumpf-details-grid > .trumpf-spec-block {
  margin-top: 0;
}

.equipment-trumpf .trumpf-spec-title {
  margin: 0 0 21px;
  color: var(--color-main);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.075em;
  text-align: center;
}

.equipment-trumpf .trumpf-table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.equipment-trumpf .trumpf-table-scroll:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 4px;
}

.equipment-trumpf .trumpf-spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.equipment-trumpf .trumpf-spec-table th,
.equipment-trumpf .trumpf-spec-table td {
  border: 1px solid #1871b9;
  padding: 8px 12px;
  vertical-align: middle;
  font-weight: 500;
  background: #fff;
  overflow-wrap: anywhere;
  word-break: normal;
}

.equipment-trumpf .trumpf-spec-table thead th {
  font-weight: 500;
  text-align: center;
}

.equipment-trumpf .trumpf-spec-table .item-head,
.equipment-trumpf .trumpf-spec-table .section-row th {
  text-align: left;
}

.equipment-trumpf .trumpf-spec-table td:nth-child(3),
.equipment-trumpf .trumpf-spec-table .unit-head {
  text-align: center;
}

.equipment-trumpf .trumpf-spec-table .spec-category {
  width: 15%;
}

.equipment-trumpf .trumpf-spec-table .spec-item {
  width: 29%;
}

.equipment-trumpf .trumpf-spec-table .spec-unit {
  width: 9%;
}

.equipment-trumpf .trumpf-spec-laser {
  min-width: 900px;
}

.equipment-trumpf .trumpf-spec-laser .spec-value {
  width: 23.5%;
}

.equipment-trumpf .trumpf-spec-bend {
  min-width: 650px;
}

.equipment-trumpf .trumpf-spec-bend .spec-category {
  width: 10%;
}

.equipment-trumpf .trumpf-spec-bend .spec-item {
  width: 55%;
}

.equipment-trumpf .trumpf-spec-bend .spec-unit {
  width: 60px;
}

.equipment-trumpf .trumpf-spec-bend .spec-value {
  width: auto;
}

.equipment-trumpf .trumpf-spec-bend td:nth-child(3),
.equipment-trumpf .trumpf-spec-bend .unit-head {
  padding-right: 4px;
  padding-left: 4px;
  white-space: nowrap;
}

.equipment-trumpf .trumpf-spec-tmu th {
  width: 42%;
}

.equipment-trumpf .trumpf-spec-tmu td {
  width: 58%;
}

.equipment-trumpf .trumpf-spec-rotary th {
  width: 38%;
}

.equipment-trumpf .trumpf-spec-rotary td {
  width: 62%;
}

.equipment-trumpf .trumpf-spec-rotary .section-row th {
  width: 100%;
}

/* Page navigation and footer marks. */

.equipment-trumpf.equipment-detail > .btn {
  margin-top: 80px;
}

.equipment-trumpf-page .local-aside {
  padding-top: 30px;
}

.equipment-trumpf-page .g-footer-mark-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: center;
}

.equipment-trumpf-page .g-footer-mark-list li {
  min-width: 0;
}

.equipment-trumpf-page .g-footer-mark-list img {
  object-fit: contain;
}

/* Responsive overrides: tablet, table widths, then mobile. */

@media (max-width: 959px) {
  .equipment-trumpf-page .trumpf-hero-badge {
    top: 105px;
  }

  .equipment-trumpf {
    margin-top: 55px;
  }

  .equipment-trumpf .trumpf-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .equipment-trumpf .trumpf-lead {
    font-size: 19px;
  }

  .equipment-trumpf .trumpf-photo-grid,
  .equipment-trumpf .trumpf-description-grid,
  .equipment-trumpf .trumpf-details-grid {
    gap: 24px;
  }

  .equipment-trumpf .trumpf-machine-title {
    font-size: 25px;
  }

  .equipment-trumpf-page .g-footer-mark-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .equipment-trumpf .trumpf-spec-laser {
    min-width: 850px;
  }

  .equipment-trumpf .trumpf-spec-table th,
  .equipment-trumpf .trumpf-spec-table td {
    padding: 7px 10px;
  }

  .equipment-trumpf .trumpf-spec-bend td:nth-child(3),
  .equipment-trumpf .trumpf-spec-bend .unit-head {
    padding-right: 4px;
    padding-left: 4px;
  }
}

@media (max-width: 767px) {
  .equipment-trumpf .trumpf-spec-tmu {
    min-width: 700px;
  }

  .equipment-trumpf .trumpf-spec-rotary {
    min-width: 560px;
  }
}

@media (max-width: 599px) {
  .equipment-trumpf {
    padding-right: 20px;
    padding-left: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  /* Keep heading phrases together and start a new line after lead punctuation. */

  .equipment-trumpf .trumpf-mobile-phrase {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
  }

  .equipment-trumpf .trumpf-mobile-line {
    display: block;
  }

  .equipment-trumpf .trumpf-desktop-break {
    display: none;
  }

  .equipment-trumpf .maker {
    font-size: 17px;
    margin-bottom: 26px;
  }

  .equipment-trumpf .trumpf-map-label {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    font-size: 14px;
    scroll-margin-top: 20px;
  }

  .equipment-trumpf .trumpf-map-pin {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--color-main);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -100%);
    box-shadow: 0 2px 5px #0005;
  }

  .equipment-trumpf .trumpf-map-pin::before {
    content: "";
    position: absolute;
    inset: -6px;
  }

  .equipment-trumpf .trumpf-map-pin::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #fff;
  }

  .equipment-trumpf .pin-bend {
    left: 21.85%;
    top: 49%;
  }

  .equipment-trumpf .pin-tmu {
    left: 54.7%;
    top: 35%;
  }

  .equipment-trumpf .pin-laser {
    left: 77.45%;
    top: 72%;
    transform: translate(-50%, 10px);
  }

  .equipment-trumpf .pin-laser::after {
    top: auto;
    bottom: 100%;
    border-top: 0;
    border-bottom: 10px solid #fff;
  }

  .equipment-trumpf .trumpf-map-pin:focus-visible {
    outline: 3px solid #ffeb00;
    outline-offset: 3px;
  }

  .equipment-trumpf .trumpf-label-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    order: 0;
  }

  .equipment-trumpf .trumpf-label-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-main);
    line-height: 1;
  }

  .equipment-trumpf .trumpf-label-body {
    order: 1;
    font-size: 14px;
    padding: .5em;
  }

  .equipment-trumpf .trumpf-map-label::after {
    display: none;
  }

  .equipment-trumpf .flow-start {
    left: 51.4%;
    width: 13%;
  }

  .equipment-trumpf .flow-goal {
    left: .8%;
    width: 6.8%;
  }

  .equipment-trumpf .trumpf-lead {
    font-size: 17px;
    margin: 32px 0 24px;
  }

  .equipment-trumpf .trumpf-intro-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .equipment-trumpf .trumpf-system-copy img {
    max-width: 435px;
    margin: 32px auto 0;
  }

  .equipment-trumpf .trumpf-footnote {
    margin-top: 32px;
    text-align: left;
  }

  .equipment-trumpf .trumpf-feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .equipment-trumpf .trumpf-feature-grid img {
    max-width: 354px;
    margin: 0 auto;
  }

  .equipment-trumpf .trumpf-machine {
    margin-top: 45px;
  }

  .equipment-trumpf .trumpf-machine-title {
    font-size: 21px;
  }

  .equipment-trumpf .trumpf-model-name {
    font-size: 23px;
  }

  .equipment-trumpf .trumpf-stage {
    min-width: 220px;
    font-size: 12px;
    margin-bottom: 20px;
  }

  .equipment-trumpf .trumpf-photo-grid,
  .equipment-trumpf .trumpf-description-grid,
  .equipment-trumpf .trumpf-details-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .equipment-trumpf .trumpf-description-grid,
  .equipment-trumpf .trumpf-details-grid {
    margin-top: 22px;
  }

  .equipment-trumpf .trumpf-details-grid > .trumpf-description,
  .equipment-trumpf .trumpf-details-grid > .trumpf-spec-title,
  .equipment-trumpf .trumpf-details-grid > .trumpf-spec-block {
    grid-column: auto;
    grid-row: auto;
  }

  .equipment-trumpf .trumpf-details-grid > .trumpf-spec-title {
    margin-bottom: 0;
  }

  .equipment-trumpf .trumpf-spec-title {
    font-size: 18px;
  }

  .equipment-trumpf.equipment-detail > .btn {
    margin-top: 45px;
  }

  .equipment-trumpf-page .g-footer-mark-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Accessibility: reduced motion. */

@media (prefers-reduced-motion: reduce) {
  .equipment-trumpf .has-reveal .trumpf-map-label {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
