/*
 * Header menu with the pages under an item (2026-11-21).
 * The previous site reached every product from its header; this adds the same step to the present menu.
 * The items of the menu and their order are unchanged. A group is an item with the pages under it:
 * wide screens show them when the item is pointed at or reached with the keyboard, the fold-out menu of
 * narrow screens lists them under the item. No script is involved.
 */
.main-nav .nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav .nav-caret {
  display: inline-block;
  margin-left: 2px;
  color: #6d865d;
  font-size: 0.8em;
}

.main-nav .nav-sub a {
  display: block;
  font-size: 15px;
  white-space: nowrap;
}

@media (min-width: 1101px) {
  .main-nav .nav-sub {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: -20px;
    display: none;
    min-width: 232px;
    padding: 12px 20px 16px;
    border: 1px solid #cbd6c0;
    border-top: 2px solid #48643e;
    border-radius: 0 0 4px 4px;
    background: #fffefa;
    box-shadow: 0 16px 34px rgba(40, 59, 43, 0.14);
  }

  .main-nav .nav-group:hover > .nav-sub,
  .main-nav .nav-group:focus-within > .nav-sub {
    display: block;
  }

  .main-nav .nav-sub a {
    padding-block: 9px;
  }
}

@media (max-width: 1100px) {
  .main-nav .nav-group {
    display: block;
  }

  .main-nav .nav-group > a {
    display: block;
  }

  .main-nav .nav-caret {
    display: none;
  }

  .main-nav .nav-sub {
    display: grid;
    margin: 0 0 10px 6px;
    padding: 2px 0 4px 14px;
    border-left: 2px solid #cbd6c0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .main-nav .nav-sub a {
    padding: 8px 4px;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .main-nav .nav-sub {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .main-nav .nav-sub {
    display: none;
  }
}
