.application-template-page {
  background: #fff;
  color: #1a1a1a;
}

.application-template-page .application-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

/* Fixed Hero: the industry image always owns the right two thirds. */
.mold-application-hero {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(0, 2fr);
  min-height: 380px;
  overflow: hidden;
  border: 1px solid #222;
  background: #111;
  color: #fff;
}

.mold-application-hero__copy {
  z-index: 1;
  align-self: center;
  padding: 46px 38px 46px 56px;
  background: #111;
}

.mold-application-hero__copy > p,
.mold-section-eyebrow {
  margin: 0;
  color: #ffc300;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mold-application-hero__copy > p::after,
.mold-section-eyebrow::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 13px;
  background: #ffc300;
  content: '';
}

.mold-application-hero__copy h1 {
  /* The CMS controls the font size.  There is intentionally no character
     width or line-count constraint: words simply wrap when the available
     Hero copy column becomes full. */
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  max-height: none;
  margin: 20px 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.015em;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  text-wrap: wrap;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.mold-application-hero__copy > div {
  max-width: 34ch;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.7;
}

.mold-application-hero__media {
  position: relative;
  min-width: 0;
  min-height: 380px;
  overflow: hidden;
  background: #111;
}

.mold-application-hero__background {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.mold-application-hero__background-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.mold-application-hero__background-image--placeholder {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, #151515 0 12px, #1b1b1b 12px 24px);
  color: #797979;
  font: 700 44px/.9 var(--font-display);
}

.mold-application-hero__background-image--placeholder small {
  font: 700 12px var(--font-display);
  letter-spacing: .1em;
}

/* An optional transparent cutter image can be placed above the industry image. */
.mold-application-hero__product {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: end center;
  padding: 24px 34px 0;
  pointer-events: none;
}

.mold-application-hero__product-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 68%;
  max-height: 92%;
  object-fit: contain;
  object-position: bottom center;
}

.mold-application-section {
  margin-top: 44px;
}

.mold-section-eyebrow {
  margin-bottom: 20px;
  font-size: 16px;
}

/* Industry cards: desktop always gives four equal cards across the available width. */
.mold-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  justify-content: space-between;
}

.mold-sector-card {
  display: grid;
  grid-template-rows: 16px 122px auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  min-height: 196px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

.mold-sector-card:hover,
.mold-sector-card.is-active {
  border-color: #ffc300;
  box-shadow: 0 4px 16px rgba(21, 21, 21, .07);
}

.mold-sector-card i {
  justify-self: start;
  color: #9b9b94;
  font: 700 10px/1 var(--font-display);
  font-style: normal;
}

.mold-sector-card__image {
  display: block;
  width: 100%;
  height: 122px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.mold-sector-card__image--placeholder {
  display: grid;
  place-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #565650;
  font: 700 18px/1 var(--font-display);
}

.mold-sector-card__image--placeholder small {
  display: none;
}

.mold-sector-card b {
  overflow-wrap: anywhere;
  font: 700 17px/1.05 var(--font-display);
  text-transform: uppercase;
}

.mold-material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.mold-material-tags button {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #d8d8d2;
  border-radius: 2px;
  background: #fff;
  color: #353630;
  font: 700 12px/1 var(--font-display);
  text-transform: uppercase;
  transition: background .18s, border-color .18s, color .18s;
}

.mold-material-tags button:hover,
.mold-material-tags button.is-active {
  border-color: #ffc300;
  background: #ffc300;
  color: #171717;
}

.mold-material-list { display: grid; gap: 10px; }

.mold-material-card[hidden] { display: none; }

.mold-material-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid #d6d6cf;
  border-radius: 3px;
  background: #fff;
  color: #20211e;
  cursor: pointer;
  font: 800 13px/1 var(--font-body);
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: border-color .18s, background .18s;
}

.mold-material-toggle:hover { border-color: #ffc300; background: #fff8da; }
.mold-material-toggle i { color: #d99a00; font-size: 18px; font-style: normal; transition: transform .18s; }
.mold-material-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.mold-material-table-head {
  display: grid;
  grid-template-columns: 1.05fr 1.12fr 1.24fr 1.45fr 1.08fr;
  border: 1px solid #e0e0da;
  border-left: 4px solid #ffc300;
  background: #f7f7f4;
}

.mold-material-table-head span {
  min-width: 0;
  padding: 11px 16px;
  border-left: 1px solid #e1e1dc;
  color: #1a1a1a;
  font: 800 12px/1.2 var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}

.mold-material-table-head span:first-child { border-left: 0; }

.mold-material-empty {
  margin: 0;
  padding: 25px;
  border: 1px solid #e1e1dc;
  color: #74746e;
  font: 500 14px/1.4 var(--font-body);
  text-align: center;
}

.mold-material-card {
  display: grid;
  grid-template-columns: 1.05fr 1.12fr 1.24fr 1.45fr 1.08fr;
  min-height: 112px;
  border: 1px solid #e0e0da;
  border-left: 4px solid #ffc300;
  background: #fff;
  box-shadow: 0 2px 9px rgba(20, 20, 18, .035);
}

.mold-material-card > * {
  display: flex;
  min-width: 0;
  padding: 15px 16px;
  border-left: 1px solid #ebebe6;
  color: #4e4f49;
  font: 500 13px/1.38 var(--font-body);
}

.mold-material-card > :first-child { border-left: 0; }
.mold-material-card__grades { align-items: center; }
.mold-material-card__grades b { color: #1a1a1a; font: 800 16px/1.16 var(--font-display); }
.mold-material-card__condition { flex-direction: column; justify-content: center; gap: 4px; }
.mold-material-card__condition b { color: #30312c; font-weight: 700; }
.mold-material-card__application { align-items: center; }

.mold-material-card__performance { align-items: center; }

.mold-material-card__products { flex-direction: column; justify-content: center; gap: 10px; }

.mold-material-products-button {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 10px;
  align-items: center;
  color: #1a1a1a;
  font: 800 12px/1 var(--font-display);
  text-transform: uppercase;
}

.mold-material-products-button span { color: #d99a00; font-size: 16px; }

.mold-series-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.mold-series-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #1a1a1a;
  font: 700 13px/1.1 var(--font-display);
  text-transform: uppercase;
}

.mold-series-link i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffc300;
}

.mold-outline-button {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 13px 22px;
  border: 1px solid #ffc300;
  border-radius: 4px;
  color: #1a1a1a;
  font: 700 14px/1 var(--font-display);
  letter-spacing: .02em;
  text-align: center;
}

.mold-outline-button:hover { background: #ffc300; }
.mold-outline-button span { margin-left: 15px; font-size: 18px; }

.mold-process-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mold-process-card { display: grid; grid-template-rows: 144px 1fr; min-height: 294px; overflow: hidden; border: 1px solid #e6e6e6; border-radius: 8px; background: #fff; color: #1a1a1a; transition: transform .2s, box-shadow .2s; }
.mold-process-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0, 0, 0, .1); }
.mold-process-card__media { display: grid; place-items: center; min-width: 0; overflow: hidden; border-bottom: 1px solid #e6e6e6; background: #fbfbfa; }
.mold-process-card__image { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; padding: 10px; object-fit: contain; }
.mold-process-card__image--placeholder { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #f8f8f5 0 10px, #eeeeea 10px 20px); color: #777770; font: 700 24px/1 var(--font-display); }
.mold-process-card__image--placeholder small { font-size: 9px; }
.mold-process-card__body { display: flex; flex-direction: column; padding: 14px; }
.mold-process-card h3 { margin: 0 0 9px; font: 800 18px/.98 var(--font-display); text-transform: uppercase; }
.mold-process-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #696a65; font: 500 12px/1.45 var(--font-body); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mold-process-card small { margin-top: auto; padding-top: 11px; color: #b47c00; font: 700 12px/1.15 var(--font-display); text-transform: uppercase; }

.mold-contact-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 50px; padding: 24px 30px; border-radius: 8px; background: #f4f4f0; }
.mold-contact-strip__icon { display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid #ffc300; border-radius: 50%; color: #d69500; font-size: 34px; }
.mold-contact-strip h2 { margin: 0 0 6px; font: 800 27px/1 var(--font-display); text-transform: uppercase; }
.mold-contact-strip p { max-width: 68ch; margin: 0; color: #5b5c56; font: 500 14px/1.5 var(--font-body); }
.mold-contact-strip .button { white-space: nowrap; }
.mold-page-error { display: grid; min-height: 400px; place-content: center; gap: 20px; }
.mold-page-error p { font: 700 26px/1 var(--font-display); }

@media (max-width: 1060px) {
  .mold-process-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .mold-application-hero { grid-template-columns: 1fr; }
  .mold-application-hero__copy { padding: 38px 28px; }
  .mold-application-hero__media { min-height: 300px; }
  .mold-sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mold-material-card,
  .mold-material-table-head { grid-template-columns: 1fr 1fr; }
  .mold-material-card__application { border-left: 0; border-top: 1px solid #ebebe6; }
  .mold-material-card__performance,
  .mold-material-card__products { border-top: 1px solid #ebebe6; }
}

@media (max-width: 720px) {
  .application-template-page .application-page { width: min(100% - 24px, 1200px); padding-top: 12px; }
  .mold-process-grid { display: flex; overflow-x: auto; padding-bottom: 5px; }
  .mold-process-card { flex: 0 0 190px; }
  .mold-contact-strip { grid-template-columns: 1fr; justify-items: start; padding: 22px; }
  .mold-contact-strip .button { width: 100%; justify-content: center; }
  .mold-application-section { margin-top: 34px; }
  .mold-material-tags { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .mold-material-tags button { flex: 0 0 auto; }
  .mold-material-table-head { display: none; }
  .mold-material-card { display: flex; flex-direction: column; }
  .mold-material-card > * { border-top: 1px solid #ebebe6; border-left: 0; }
  .mold-material-card > :first-child { border-top: 0; }
}
