/**
 * Manufacturer CMS rich-editor content — layout + semantic typography.
 * Wrapper: .eet-mfg-cms (processed by ManufacturerCmsFormatter in PHP)
 */

.eet-mfg-band__inner--wide {
  max-width: var(--mfg-max, 75rem);
}

.eet-mfg-cms {
  --cms-ink: var(--mfg-ink-900, #0f1a14);
  --cms-body: var(--mfg-ink-700, #34423a);
  --cms-muted: var(--mfg-ink-500, #5c6b62);
  --cms-line: var(--mfg-line, #e3e8e4);
  --cms-green: var(--mfg-green, #4ba248);
  --cms-green-dark: var(--mfg-green-dark, #3d8a3a);
  --cms-soft: var(--mfg-bg-soft, #f6f8f5);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--cms-body);
  font-size: 15px;
  line-height: 1.68;
}

/* Legacy .article rules (app.css) must not narrow manufacturer CMS blocks */
.eet-mfg-detail .eet-mfg-cms.article h1,
.eet-mfg-detail .eet-mfg-cms.article h2,
.eet-mfg-detail .eet-mfg-cms.article h3,
.eet-mfg-detail .eet-mfg-cms.article h4,
.eet-mfg-detail .eet-mfg-cms.article h5,
.eet-mfg-detail .eet-mfg-cms.article h6,
.eet-mfg-detail .eet-mfg-cms.article p,
.eet-mfg-detail .eet-mfg-cms.article ul,
.eet-mfg-detail .eet-mfg-cms.article ol,
.eet-mfg-detail .eet-mfg-cms.article .eet-cms-video,
.eet-mfg-detail .eet-mfg-cms.article blockquote {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.eet-mfg-detail .eet-mfg-cms.article h3 {
  text-align: left;
  margin-bottom: 0.75rem;
}

/* Beat legacy .article / Foundation % sizing — readable 16px on desktop */
.eet-mfg-detail .eet-mfg-cms.article p,
.eet-mfg-detail .eet-mfg-cms.article li,
.eet-mfg-detail .eet-mfg-cms.article td,
.eet-mfg-detail .eet-mfg-cms.article blockquote {
  font-size: inherit;
  line-height: inherit;
}

/* Section eyebrow + title */
.eet-mfg-cms > h6,
.eet-mfg-cms h6.eet-cms-eyebrow,
.eet-mfg-cms > p.eet-cms-eyebrow,
.eet-mfg-cms p.eet-cms-eyebrow {
  margin: 2.75rem 0 8px;
  padding-top: 2.25rem;
  border-top: 1px solid var(--cms-line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cms-green-dark);
}

.eet-mfg-cms > h6:first-child,
.eet-mfg-cms > p.eet-cms-eyebrow:first-child,
.eet-mfg-cms > h2:first-child + h6,
.eet-mfg-cms > h2:first-child + p.eet-cms-eyebrow {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.eet-mfg-cms > h6 + h2,
.eet-mfg-cms h6.eet-cms-eyebrow + h2,
.eet-mfg-cms > p.eet-cms-eyebrow + h2,
.eet-mfg-cms p.eet-cms-eyebrow + h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--cms-ink);
}

.eet-mfg-cms > h2,
.eet-mfg-cms h2.eet-cms-title {
  margin: 1.75rem 0 14px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cms-ink);
}

.eet-mfg-cms > h3,
.eet-mfg-cms h3.eet-cms-subtitle {
  margin: 2rem 0 10px;
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--cms-ink);
}

.eet-mfg-cms > h4,
.eet-mfg-cms > h5 {
  margin: 1.25rem 0 8px;
  font-weight: 800;
  color: var(--cms-ink);
}

.eet-mfg-cms > h1 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--cms-ink);
}

.eet-mfg-cms p {
  margin: 0 0 1rem;
}

.eet-mfg-cms > p:first-of-type {
  font-size: 16px;
  line-height: 1.65;
  color: var(--cms-ink);
}

.eet-mfg-cms .eet-cms-lead,
.eet-mfg-cms p.eet-cms-lead {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--cms-ink);
}

.eet-mfg-cms strong {
  color: var(--cms-ink);
  font-weight: 800;
}

.eet-mfg-cms a {
  color: var(--cms-green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eet-mfg-cms a:hover {
  color: var(--cms-green);
}

/* Video */
.eet-mfg-cms .eet-cms-video {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 28px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 26, 20, 0.12);
  background: #0f1a14;
}

.eet-mfg-cms .eet-cms-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 200px;
  border: 0;
}

/* Timeline */
.eet-mfg-cms .eet-cms-timeline,
.eet-mfg-cms .custom-ul.eet-cms-timeline {
  list-style: none;
  margin: 28px 0 36px;
  padding: 0;
  max-width: 100%;
}

.eet-mfg-cms .eet-cms-timeline > li {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 20px 20px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--cms-line);
  box-shadow: 0 2px 14px rgba(15, 26, 20, 0.05);
}

.eet-mfg-band--tone .eet-mfg-cms .eet-cms-timeline > li {
  background: #fff;
}

.eet-mfg-cms .eet-cms-timeline > li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cms-green);
  box-shadow: 0 0 0 4px var(--cms-green-50, #ecf7eb);
}

.eet-mfg-cms .eet-cms-timeline > li .uppercase,
.eet-mfg-cms .eet-cms-timeline > li p.uppercase {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cms-ink);
}

.eet-mfg-cms .eet-cms-timeline > li p {
  max-width: none;
  margin-bottom: 0.75rem;
}

.eet-mfg-cms .eet-cms-timeline > li p:last-child {
  margin-bottom: 0;
}

.eet-mfg-cms .eet-cms-timeline > li .eet-cms-media,
.eet-mfg-cms .eet-cms-timeline > li p:has(img) {
  margin: 12px 0 0;
  max-width: none;
}

.eet-mfg-cms .eet-cms-timeline img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Standard lists */
.eet-mfg-cms ul:not(.custom-ul):not(.eet-cms-timeline),
.eet-mfg-cms ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.eet-mfg-cms ul:not(.custom-ul) li::marker {
  color: var(--cms-green);
}

/* Full-width editorial images */
.eet-mfg-cms .eet-cms-media {
  max-width: 100%;
  margin: 20px 0 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cms-line);
  box-shadow: 0 4px 20px rgba(15, 26, 20, 0.06);
}

.eet-mfg-cms .eet-cms-media img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.eet-mfg-cms img {
  max-width: 100%;
  height: auto !important;
  border-radius: 12px;
}

.eet-mfg-cms .eet-cms-callout,
.eet-mfg-cms blockquote {
  margin: 1.5rem 0;
  padding: 16px 18px;
  border-left: 4px solid var(--cms-green);
  border-radius: 0 12px 12px 0;
  background: var(--cms-soft);
  font-weight: 600;
  color: var(--cms-ink);
}

.eet-mfg-cms table {
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 15px;
}

.eet-mfg-cms th,
.eet-mfg-cms td {
  padding: 10px 12px;
  border: 1px solid var(--cms-line);
}

.eet-mfg-cms th {
  background: var(--cms-soft);
  font-weight: 800;
}

@media (min-width: 768px) {
  .eet-mfg-cms {
    font-size: 16px;
    line-height: 1.7;
  }

  .eet-mfg-detail .eet-mfg-cms.article p,
  .eet-mfg-detail .eet-mfg-cms.article li,
  .eet-mfg-detail .eet-mfg-cms .eet-cms-timeline > li p:not(.uppercase) {
    font-size: 16px;
    line-height: 1.7;
  }

  .eet-mfg-cms > p:first-of-type,
  .eet-mfg-cms .eet-cms-lead,
  .eet-mfg-cms p.eet-cms-lead {
    font-size: 17px;
    line-height: 1.65;
  }

  .eet-mfg-cms .eet-cms-timeline > li .uppercase,
  .eet-mfg-cms .eet-cms-timeline > li p.uppercase {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .eet-mfg-cms .eet-cms-timeline > li {
    display: grid;
    grid-template-columns: 1fr min(42%, 360px);
    gap: 20px 28px;
    align-items: start;
    padding: 24px 24px 24px 32px;
  }

  .eet-mfg-cms .eet-cms-timeline > li::before {
    top: 30px;
    left: 16px;
  }

  .eet-mfg-cms .eet-cms-timeline > li .eet-cms-media,
  .eet-mfg-cms .eet-cms-timeline > li p:has(img) {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
    align-self: center;
  }

  .eet-mfg-cms .eet-cms-timeline img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
}

@media (min-width: 1024px) {
  .eet-mfg-cms .eet-cms-timeline > li {
    grid-template-columns: 1fr min(44%, 420px);
  }

  .eet-mfg-cms .eet-cms-media img {
    aspect-ratio: 21 / 9;
  }
}
