/* Factory Updates hub — KDC/ONE our-articles layout, ST Future brand */
:root {
  --fh-ink: #212121;
  --fh-surface: #f3f5f6;
  --fh-paper: #ffffff;
  --fh-accent: #CFB080;
  --fh-accent-hot: #B89560;
  --fh-muted: #5c6b73;
  --fh-col: calc(100% / 12);
  --fh-gap: 10px;
  --fh-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --fh-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 8'%3E%3Cpath d='M1 1.5L6.5 6.5L12 1.5' stroke='%23CFB080' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Hide MetInfo list chrome; keep hero + column nav under hero */
.factory-hub-page .met-news,
.factory-hub-page .met-bar {
  display: none !important;
}

/* MN inner pages: drop left/side column nav, keep cards and article body */
.factory-region-page .hygiene-qp-filter {
  display: none !important;
}

.factory-region-page .hygiene-qp-layout {
  grid-template-columns: minmax(0, 1fr);
}

.mn-inner-page .met-shownews .col-md-3 {
  display: none !important;
}

.mn-inner-page .met-shownews-body {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  float: none !important;
}

/* Global Supply Chain — show sub-nav below hero */
.factory-hub-page .beauty-cat-hero + .met-column-nav,
.factory-hub-page .about-qp-banner + .met-column-nav,
.section-hub-page .met-column-nav {
  display: block !important;
}

.factory-hub {
  background: var(--fh-surface);
  color: var(--fh-ink);
  padding: 48px 0 80px;
  font-family: var(--font-sans);
}

.factory-hub__filters {
  display: none !important;
}

.factory-hub__container {
  width: min(100% - 2.4rem, 1680px);
  margin-inline: auto;
}

.mn-success {
  background: transparent;
  color: var(--fh-ink);
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
}

.mn-success__inner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.mn-success h2 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display, Georgia, "Times New Roman", serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em;
  color: var(--fh-ink) !important;
  text-align: left;
}

.mn-success p {
  margin: 0;
  max-width: 52rem;
  font-family: var(--font-sans, inherit);
  font-size: 12pt;
  line-height: 1.7;
  color: var(--fh-muted);
  text-align: left;
}

.factory-hub__title {
  margin: 0 0 20px;
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  line-height: 1.1 !important;
  color: var(--fh-ink) !important;
  letter-spacing: -0.02em;
}

.factory-hub__filters {
  margin-bottom: 48px;
}

.factory-hub__filters .filter {
  width: fit-content;
  position: relative;
  z-index: 5;
}

.factory-hub__filters label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--fh-muted);
}

.factory-hub__filters select.filter-category {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.factory-hub .select {
  position: relative;
  width: fit-content;
  min-height: 56px;
}

.factory-hub .select-styled {
  border: 1px solid var(--fh-accent);
  border-radius: 8px;
  padding: 14px 48px 14px 28px;
  min-width: 230px;
  width: fit-content;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fh-accent);
  background: var(--fh-paper);
  cursor: pointer;
  user-select: none;
}

.factory-hub .select-styled::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 8px;
  top: 50%;
  right: 22px;
  background: var(--fh-chevron) center / contain no-repeat;
  transform: translateY(-50%) rotate(180deg);
  transition: transform 0.2s;
}

.factory-hub .select-styled.active::before {
  transform: translateY(-50%) rotate(0deg);
}

.factory-hub .select-options {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  background: var(--fh-paper);
  border: 1px solid var(--fh-accent);
  border-top: none;
  border-radius: 0 0 12px 12px;
  min-width: 230px;
  width: fit-content;
  position: absolute;
  left: 0;
  top: calc(100% - 4px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 6;
}

.factory-hub .select-options.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.factory-hub .select-options li {
  padding: 0 20px;
  line-height: 42px;
  cursor: pointer;
  color: var(--fh-ink);
  white-space: nowrap;
}

.factory-hub .select-options li:hover,
.factory-hub .select-options li.is-active {
  background: rgba(15, 76, 92, 0.08);
  color: var(--fh-accent);
}

.factory-hub .select-options li:last-of-type {
  border-radius: 0 0 11px 11px;
}

.factory-hub__cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fh-gap);
}

.factory-hub__empty {
  width: 100%;
  padding: 64px 24px;
  text-align: center;
  color: var(--fh-muted);
  background: var(--fh-paper);
  border-radius: 4px;
  display: none;
}

.factory-hub__empty.is-visible {
  display: block;
}

/* Cards */
.fh-card {
  position: relative;
  opacity: 1;
  transform: none;
}

.fh-card.fh-card--animate {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fh-card.fh-card--animate.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.fh-card.is-hidden {
  display: none !important;
}

.fh-card > .fh-card__main-link,
.fh-card .fh-card__shell {
  height: 100%;
}

.fh-card__main-link {
  position: relative;
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

.fh-card__shell {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #212121;
}

.fh-card__image {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.3s;
}

.fh-card__panel {
  background: var(--fh-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fh-card__title {
  margin: 0;
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  color: var(--fh-ink) !important;
  line-height: 1.2 !important;
}

.fh-card__excerpt {
  margin: 0;
  font-size: 12pt;
  line-height: 1.55;
  color: var(--fh-muted);
}

.fh-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 85%;
  font-size: 0.9rem;
  color: var(--fh-muted);
}

.fh-card__region-label {
  color: var(--fh-accent);
}

.fh-card__btn {
  width: 48px;
  height: 48px;
  background: var(--fh-accent);
  border-radius: 100%;
  position: absolute;
  right: 22px;
  bottom: 22px;
  overflow: hidden;
  transition: 0.4s;
  z-index: 2;
  pointer-events: none;
}

.fh-card__btn::before,
.fh-card__btn::after {
  content: "";
  width: 48px;
  height: 48px;
  background: var(--fh-arrow) center / 22px 22px no-repeat;
  border-radius: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.4s ease-in-out;
}

.fh-card__btn::after {
  left: -48px;
}

.fh-card:hover .fh-card__image {
  transform: scale(1.03);
}

.fh-card:hover .fh-card__btn {
  width: 52px;
  height: 52px;
  right: 20px;
  bottom: 20px;
}

.fh-card:hover .fh-card__btn::before,
.fh-card:hover .fh-card__btn::after {
  transform: translateX(48px);
  width: 52px;
  height: 52px;
}

/* Grid: 4 equal cards per row (Manufacturing Network) */
.fh-card--featured,
.fh-card--teaser {
  width: calc((100% - 3 * var(--fh-gap)) / 4);
}

.fh-card--featured .fh-card__image,
.fh-card--teaser .fh-card__image {
  position: absolute;
  inset: 0;
}

.fh-card--featured .fh-card__panel,
.fh-card--teaser .fh-card__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 10px;
  width: calc(100% - 20px);
  height: 240px;
  padding: 24px;
}

.fh-card--featured .fh-card__title,
.fh-card--teaser .fh-card__title {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fh-card--featured .fh-card__excerpt,
.fh-card--teaser .fh-card__excerpt {
  margin-top: 0.55rem;
  font-size: 12pt;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1199px) {
  .fh-card--featured,
  .fh-card--teaser {
    width: calc(50% - var(--fh-gap) / 2);
  }
}

@media (max-width: 767px) {
  .factory-hub {
    padding: 32px 0 56px;
  }

  .fh-card--featured,
  .fh-card--teaser {
    width: 100%;
  }

  .fh-card__shell {
    min-height: 420px;
  }

  .fh-card--featured .fh-card__panel,
  .fh-card--teaser .fh-card__panel {
    height: auto;
    min-height: 200px;
  }
}
