/* ============================================================
   MOL NAV DROPDOWN · self-contained · splash + legal pages
   ------------------------------------------------------------
   The splash (index) and the legal pages use the simple .main-nav
   from chrome.css and do NOT load primarie.css, so the Monitorul
   Oficial Local item was a plain pill there. This file recreates the
   exact same dropdown look + hover as the primarie/hub nav, scoped
   entirely under .nav-item-mol so nothing else on these pages is
   affected. (Pure CSS hover – no JS, identical to the hub.)
   ============================================================ */

.main-nav .nav-item-mol {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Trigger pill · matches primarie.css .nav-item-mol .nav-trigger */
.nav-item-mol .nav-trigger {
  background: var(--essex);
  color: var(--chantilly-pure) !important;
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.64rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition:
    background 0.3s ease,
    transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1),
    box-shadow 0.35s ease,
    gap 0.3s ease,
    padding-right 0.3s ease;
}
.nav-item-mol .nav-trigger::after {
  content: '\2192'; /* → */
  display: inline-block;
  position: static;
  background: none;
  height: auto;
  width: auto;
  transform: translateX(-6px) scaleX(1);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1),
    opacity 0.3s ease;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}
.nav-item-mol:hover .nav-trigger,
.nav-item-mol:focus-within .nav-trigger {
  background: var(--essex-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 28, 0.22);
  gap: 10px;
  padding-right: 24px;
}
.nav-item-mol:hover .nav-trigger::after,
.nav-item-mol:focus-within .nav-trigger::after {
  transform: translateX(0) scaleX(1);
  opacity: 1;
}

/* Dropdown panel · right-aligned (MOL is the last/rightmost nav item) */
.nav-item-mol .nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--chantilly-pure);
  border: 1px solid var(--stone-hearth-hair);
  border-top: none;
  padding: 24px 18px;
  min-width: 340px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item-mol:hover .nav-dropdown,
.nav-item-mol:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item-mol .nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 0 -4px;
  font-size: 0.82rem;
  color: var(--essex);
  letter-spacing: -0.005em;
  text-transform: none;
  border-bottom: 1px solid var(--stone-hearth-hair);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, padding-left 0.3s ease;
}
.nav-item-mol .nav-dropdown a:last-child { border-bottom: none; }
.nav-item-mol .nav-dropdown a:hover {
  background: rgba(194, 181, 160, 0.16);
  color: var(--essex);
  border-left-color: var(--rustic-taupe);
  padding-left: 16px;
}
.nav-item-mol .mol-pill-num {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--rustic-taupe);
  font-weight: 600;
  min-width: 22px;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* allow the dropdown to escape the header bar */
.main-header, .main-nav { overflow: visible; }
