/* Homepage freight composition
   Keeps the specialized transport stage intact after the generic media-card
   cascade and presents the route choices as one coordinated decision panel. */

.home-page #home-freight {
  --freight-canvas: var(--color-background, var(--comfort-canvas, #fff));
  --freight-panel: var(--color-muted, var(--comfort-paper, #f7f9fc));
  --freight-panel-active: var(--color-card, var(--surface-default, #fff));
  --freight-ink: var(--color-primary, var(--lifa-navy, #0f1e36));
  --freight-copy: var(--color-muted-foreground, var(--comfort-copy, #5d6b7d));
  --freight-gold: var(--color-accent, var(--lifa-gold, #eed47d));
  --freight-gold-deep: var(--lifa-gold-deep, #eed47d);
  --freight-rule: var(--color-border, var(--comfort-rule, #dce3ed));
  --freight-radius: 6px;
  --freight-shadow: 0 16px 38px rgba(7, 17, 30, .08);
  --freight-shadow-active: 0 22px 46px rgba(7, 17, 30, .12);
  --freight-motion: 320ms cubic-bezier(.22, 1, .36, 1);
  color: var(--freight-ink);
  background: var(--freight-canvas);
}

.home-page #home-freight .home-section-header h2 {
  color: var(--freight-ink) !important;
}

.home-page #home-freight .home-section-header p {
  color: var(--freight-copy) !important;
}

.home-page #home-freight :is(.eyebrow, .home-text-link) {
  color: var(--freight-gold-deep) !important;
}

.home-page #home-freight .home-freight-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr) !important;
  grid-template-rows: auto !important;
  align-items: stretch !important;
  gap: clamp(20px, 2.2vw, 28px) !important;
  margin-top: clamp(28px, 3.5vw, 42px) !important;
}

/* The late content-media system has intentionally high specificity. Match its
   guard and add the section ID so this component can keep its authored form. */
html body:not(#content-media-final-a):not(#content-media-final-b):not(#content-media-final-c):not(#content-media-final-d):not(#content-media-final-e):not(#content-media-final-f):not(#content-media-final-g):not(#content-media-final-h):not(#content-media-final-i).home-page[data-page-family]
  main #home-freight .home-freight-visual {
  position: relative !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-self: start !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: var(--freight-ink) !important;
  background: var(--freight-panel-active) !important;
  border: 1px solid var(--freight-rule) !important;
  border-radius: var(--freight-radius) !important;
  box-shadow: var(--freight-shadow) !important;
  transform: none !important;
  transition: border-color var(--freight-motion), box-shadow var(--freight-motion) !important;
}

html body:not(#content-media-final-a):not(#content-media-final-b):not(#content-media-final-c):not(#content-media-final-d):not(#content-media-final-e):not(#content-media-final-f):not(#content-media-final-g):not(#content-media-final-h):not(#content-media-final-i).home-page[data-page-family]
  main #home-freight .home-freight-visual > img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--content-source-ratio, auto) !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: transparent !important;
  filter: saturate(.96) contrast(1.02) !important;
  transform: none !important;
  transition: transform 640ms cubic-bezier(.22, 1, .36, 1), filter var(--freight-motion) !important;
}

html body:not(#content-media-final-a):not(#content-media-final-b):not(#content-media-final-c):not(#content-media-final-d):not(#content-media-final-e):not(#content-media-final-f):not(#content-media-final-g):not(#content-media-final-h):not(#content-media-final-i).home-page[data-page-family]
  main #home-freight .home-freight-visual > span {
  position: static !important;
  inset: auto !important;
  z-index: 2 !important;
  display: grid !important;
  min-width: 0 !important;
  min-height: 0 !important;
  grid-column: 1 !important;
  grid-row: 2 !important;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 22px 26px 24px !important;
  color: var(--freight-copy) !important;
  background: var(--freight-panel) !important;
  border-top: 2px solid var(--freight-gold) !important;
  text-shadow: none !important;
  transform: none !important;
}

.home-page #home-freight .home-freight-visual > span > small {
  display: flex !important;
  width: 100% !important;
  margin: 0 0 4px !important;
  grid-column: 1 / -1 !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--freight-gold-deep) !important;
  font-family: var(--ui-font, Montserrat, Arial, sans-serif) !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

.home-page #home-freight .home-freight-visual > span > small::before {
  width: 32px;
  height: 2px;
  flex: 0 0 32px;
  background: var(--freight-gold);
  content: "";
}

.home-page #home-freight .home-freight-visual > span > strong {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 7px !important;
  color: var(--freight-ink) !important;
  font-family: var(--heading-font, "EB Garamond", Georgia, serif) !important;
  font-size: clamp(1rem, 1.25vw, 1.18rem) !important;
  line-height: 1.2 !important;
  text-wrap: balance;
}

.home-page #home-freight .home-freight-visual > span > strong > b {
  display: inline-flex !important;
  width: fit-content !important;
  min-width: 30px !important;
  padding-bottom: 4px !important;
  color: var(--freight-gold-deep) !important;
  border-bottom: 2px solid var(--freight-gold) !important;
  font-family: var(--ui-font, Montserrat, Arial, sans-serif) !important;
  font-size: .72rem !important;
  font-variant-numeric: tabular-nums;
  line-height: 1 !important;
}

.home-page #home-freight .home-freight-visual > span > i {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 1px !important;
  background: color-mix(in srgb, var(--freight-gold) 76%, transparent) !important;
}

.home-page #home-freight .home-freight-visual > span > i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--freight-gold-deep);
  border-right: 1px solid var(--freight-gold-deep);
  content: "";
  transform: rotate(45deg);
}

.home-page #home-freight .home-freight-manifest {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-self: stretch !important;
  overflow: hidden;
  background: var(--freight-panel);
  border: 1px solid var(--freight-rule) !important;
  border-radius: var(--freight-radius);
  box-shadow: var(--freight-shadow);
}

.home-page #home-freight .home-freight-manifest > a {
  display: grid !important;
  min-width: 0 !important;
  min-height: 0 !important;
  grid-template-columns: 50px minmax(0, 1fr) !important;
  align-content: center !important;
  align-items: start !important;
  gap: 16px !important;
  padding: clamp(20px, 2vw, 25px) !important;
  color: var(--freight-copy) !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--freight-rule) !important;
  border-bottom: 1px solid var(--freight-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: color var(--freight-motion), background-color var(--freight-motion) !important;
}

.home-page #home-freight .home-freight-manifest > a:nth-child(2n) {
  border-right: 0 !important;
}

.home-page #home-freight .home-freight-manifest > a:nth-last-child(-n + 2) {
  border-bottom: 0 !important;
}

.home-page #home-freight .home-freight-manifest > a > span {
  display: grid !important;
  width: 50px !important;
  height: 50px !important;
  place-items: center !important;
  color: var(--freight-gold-deep) !important;
  background: var(--freight-panel-active) !important;
  border: 1px solid color-mix(in srgb, var(--freight-gold) 65%, var(--freight-rule)) !important;
  border-radius: 4px !important;
  font-family: var(--heading-font, "EB Garamond", Georgia, serif) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transition: color var(--freight-motion), background-color var(--freight-motion), border-color var(--freight-motion) !important;
}

.home-page #home-freight .home-freight-manifest h3 {
  margin: 0 0 9px !important;
  color: var(--freight-ink) !important;
  font-size: clamp(1.08rem, 1.35vw, 1.28rem) !important;
  line-height: 1.2 !important;
  text-wrap: balance;
}

.home-page #home-freight .home-freight-manifest p {
  margin: 0 !important;
  color: var(--freight-copy) !important;
  font-size: clamp(.88rem, .95vw, .96rem) !important;
  line-height: 1.58 !important;
}

.home-page #home-freight .home-freight-manifest > a:is(:hover, :focus-visible) {
  color: var(--freight-ink) !important;
  background: var(--freight-panel-active) !important;
}

.home-page #home-freight .home-freight-manifest > a:is(:hover, :focus-visible) > span {
  color: var(--freight-ink) !important;
  background: color-mix(in srgb, var(--freight-gold) 16%, var(--freight-panel-active)) !important;
  border-color: var(--freight-gold) !important;
}

.home-page #home-freight .home-freight-details {
  display: grid !important;
  min-width: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-top: clamp(20px, 2.2vw, 28px) !important;
  overflow: hidden !important;
  background: var(--freight-panel) !important;
  border: 1px solid var(--freight-rule) !important;
  border-radius: var(--freight-radius) !important;
  box-shadow: 0 12px 30px rgba(7, 17, 30, .06) !important;
}

.home-page #home-freight .home-freight-details > a {
  display: flex !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: clamp(22px, 2.2vw, 28px) !important;
  flex-direction: column !important;
  color: var(--freight-copy) !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--freight-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color var(--freight-motion) !important;
}

.home-page #home-freight .home-freight-details > a:last-child {
  border-right: 0 !important;
}

.home-page #home-freight .home-freight-details > a:is(:hover, :focus-visible) {
  background: var(--freight-panel-active) !important;
}

.home-page #home-freight .home-freight-details small {
  margin-bottom: 10px !important;
  color: var(--freight-gold-deep) !important;
  font-family: var(--ui-font, Montserrat, Arial, sans-serif) !important;
  font-size: .7rem !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

.home-page #home-freight .home-freight-details strong {
  margin-bottom: 10px !important;
  color: var(--freight-ink) !important;
  font-size: clamp(1.16rem, 1.55vw, 1.42rem) !important;
  line-height: 1.2 !important;
  text-wrap: balance;
}

.home-page #home-freight .home-freight-details p {
  margin: 0 !important;
  color: var(--freight-copy) !important;
  font-size: clamp(.9rem, .95vw, .98rem) !important;
  line-height: 1.62 !important;
}

.home-page #home-freight :is(.home-freight-visual, .home-freight-manifest > a, .home-freight-details > a):focus-visible {
  z-index: 3;
  outline: 3px solid var(--freight-gold) !important;
  outline-offset: -3px !important;
}

.home-page #home-freight .home-freight-visual:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--freight-gold) 72%, var(--freight-rule)) !important;
  box-shadow: var(--freight-shadow-active) !important;
}

.home-page #home-freight .home-freight-visual:is(:hover, :focus-visible) > img {
  filter: saturate(1.02) contrast(1.03) !important;
  transform: none !important;
}

@media (max-width: 1040px) {
  .home-page #home-freight .home-freight-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body:not(#content-media-final-a):not(#content-media-final-b):not(#content-media-final-c):not(#content-media-final-d):not(#content-media-final-e):not(#content-media-final-f):not(#content-media-final-g):not(#content-media-final-h):not(#content-media-final-i).home-page[data-page-family]
    main #home-freight .home-freight-visual {
    height: auto !important;
    grid-template-rows: auto auto !important;
  }

  html body:not(#content-media-final-a):not(#content-media-final-b):not(#content-media-final-c):not(#content-media-final-d):not(#content-media-final-e):not(#content-media-final-f):not(#content-media-final-g):not(#content-media-final-h):not(#content-media-final-i).home-page[data-page-family]
    main #home-freight .home-freight-visual > img {
    min-height: 0 !important;
  }
}

@media (max-width: 820px) {
  .home-page #home-freight .home-freight-details {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-page #home-freight .home-freight-details > a,
  .home-page #home-freight .home-freight-details > a:last-child {
    border-right: 0 !important;
    border-bottom: 1px solid var(--freight-rule) !important;
  }

  .home-page #home-freight .home-freight-details > a:last-child {
    border-bottom: 0 !important;
  }
}

@media (max-width: 700px) {
  html body:not(#content-media-final-a):not(#content-media-final-b):not(#content-media-final-c):not(#content-media-final-d):not(#content-media-final-e):not(#content-media-final-f):not(#content-media-final-g):not(#content-media-final-h):not(#content-media-final-i).home-page[data-page-family]
    main #home-freight .home-freight-visual {
    grid-template-rows: auto auto !important;
  }

  html body:not(#content-media-final-a):not(#content-media-final-b):not(#content-media-final-c):not(#content-media-final-d):not(#content-media-final-e):not(#content-media-final-f):not(#content-media-final-g):not(#content-media-final-h):not(#content-media-final-i).home-page[data-page-family]
    main #home-freight .home-freight-visual > span {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 12px !important;
    padding: 20px 18px 22px !important;
  }

  .home-page #home-freight .home-freight-visual > span > small,
  .home-page #home-freight .home-freight-visual > span > strong,
  .home-page #home-freight .home-freight-visual > span > i {
    grid-column: 1 !important;
  }

  .home-page #home-freight .home-freight-visual > span > strong {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 1.08rem !important;
  }

  .home-page #home-freight .home-freight-visual > span > strong > b {
    width: 30px !important;
    min-width: 30px !important;
    flex: 0 0 30px !important;
  }

  .home-page #home-freight .home-freight-visual > span > i {
    width: 1px !important;
    height: 14px !important;
    margin-left: 14px !important;
    background: var(--freight-rule) !important;
  }

  .home-page #home-freight .home-freight-visual > span > i::after {
    display: none !important;
  }

  .home-page #home-freight .home-freight-manifest {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
  }

  .home-page #home-freight .home-freight-manifest > a,
  .home-page #home-freight .home-freight-manifest > a:nth-child(2n),
  .home-page #home-freight .home-freight-manifest > a:nth-last-child(-n + 2) {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    padding: 20px 18px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--freight-rule) !important;
  }

  .home-page #home-freight .home-freight-manifest > a:last-child {
    border-bottom: 0 !important;
  }

  .home-page #home-freight .home-freight-manifest > a > span {
    width: 46px !important;
    height: 46px !important;
  }
}

@media (hover: none) {
  .home-page #home-freight .home-freight-visual:is(:hover, :focus-visible) > img {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page #home-freight :is(.home-freight-visual, .home-freight-visual > img, .home-freight-manifest > a, .home-freight-manifest > a > span, .home-freight-details > a) {
    transition: none !important;
  }

  .home-page #home-freight .home-freight-visual:is(:hover, :focus-visible) > img {
    transform: none !important;
  }
}
