/* Additions for the restructured site: grouped menus, breadcrumbs, product pages,
   home slider and running text. Loaded after pdf-slides.css. */

/* ---------- Grouped drop-down menus ---------- */
.dropdown-menu.mega {
  min-width: 270px;
  padding: 10px;
}

.menu-group-title {
  margin: 6px 10px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-sub {
  margin: 2px 0 6px 14px;
  padding-left: 8px;
  border-left: 2px solid #e3e6f2;
}

.dropdown-menu .menu-sub li a {
  font-size: 14px;
  padding: 6px 10px;
}

@media (min-width: 861px) {
  .dropdown-menu.mega.cols-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 4px 16px;
    min-width: 540px;
  }

  .dropdown-menu.align-right {
    left: auto;
    right: 0;
  }

  .dropdown-menu.align-center {
    left: 50%;
    transform: translate(-50%, 8px);
  }

  .has-dropdown:hover > .dropdown-menu.align-center,
  .has-dropdown:focus-within > .dropdown-menu.align-center {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 860px) {
  .menu-group-title {
    margin: 8px 10px 2px;
  }
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  padding: 14px 40px;
  font-size: 14px;
  color: #6b7080;
  background: #ffffff;
  border-top: 2px solid #d7d8e2;
}

.crumbs a {
  color: var(--heading);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumb-sep {
  margin: 0 4px;
  color: #a0a4b8;
}

/* ---------- Content pages ---------- */
.slide.content-page {
  min-height: 0;
  justify-content: flex-start;
  padding: 40px 40px 56px;
}

.lead-text,
.product-copy p,
.text-block p {
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--body-color);
  margin: 0 0 14px;
}

.lead-text,
.text-block {
  max-width: 820px;
}

.sub-title {
  font-family: var(--font-subhead);
  font-size: 22px;
  color: var(--subhead-color);
  margin: 24px 0 10px;
}

.product-copy .sub-title:first-child {
  margin-top: 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
}

.product-media {
  margin: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.product-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-media.tall img {
  width: auto;
  max-width: 100%;
  max-height: 460px;
  margin: 0 auto;
}

.product-media.is-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: #8a8fa6;
  font-weight: 600;
  background: #eef0f7;
  border: 2px dashed #cfd4e6;
}

.coming-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  margin-top: 28px;
  padding: 14px 18px;
  color: #5b6075;
  background: #ffffff;
  border: 1px dashed #c9cee3;
  border-radius: 10px;
}

.coming-soon p {
  margin: 0;
  font-size: 15px;
}

.coming-soon i {
  color: var(--heading);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.link-cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  color: var(--subhead-color);
  font-weight: 600;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.link-card:hover {
  color: var(--heading);
  border-color: var(--heading);
  box-shadow: 0 8px 18px rgba(41, 52, 97, 0.08);
}

.link-card i {
  color: var(--heading);
  font-size: 14px;
}

.slide.content-page.explore {
  padding-top: 28px;
  padding-bottom: 40px;
}

/* ---------- Home: banner text + moving product pictures ---------- */
.slide.home {
  min-height: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 620px;
}

.home-copy {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slider {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #e9ecf5;
}

.slider-item {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 32px 32px 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}

.slider-item.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease;
}

.slider-item img {
  display: block;
  width: min(100%, 540px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(31, 41, 80, 0.18);
}

.slider-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  text-align: center;
}

.slider-item figcaption a {
  padding: 6px 14px;
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b9bfd6;
  cursor: pointer;
}

.slider-dots button[aria-current="true"] {
  background: var(--heading);
}

/* ---------- Running text (The Concept) ---------- */
.ticker {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  background: var(--heading);
}

.ticker-row {
  overflow: hidden;
}

.ticker-track {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  white-space: nowrap;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  animation: ticker-scroll var(--ticker-duration, 60s) linear infinite;
}

.ticker-row:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    padding: 0 24px;
    white-space: normal;
  }

  .slider-item,
  .slider-item.is-active {
    transition: none;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .crumbs {
    padding: 10px 16px;
  }

  .slide.content-page {
    padding: 20px 16px 32px;
  }

  .product-detail,
  .home-hero,
  .link-cards.two {
    grid-template-columns: 1fr;
  }

  .product-detail {
    gap: 18px;
  }

  .home-hero {
    min-height: 0;
  }

  .home-copy {
    padding: 24px 16px;
  }

  .slider {
    min-height: 320px;
  }

  .slider-item {
    padding: 18px 16px 72px;
  }

  .ticker-track {
    font-size: 16px;
  }
}
