/* Compact navigation shared by the existing pages. */
.main-nav > .nav-resources { position: relative; }
.nav-resources > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-resources > summary::-webkit-details-marker { display: none; }
.nav-resources > summary::after { display: none; }
.nav-resources > summary:hover { color: var(--teal); }
.nav-resources > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; border-radius: 2px; }
.nav-resources > summary > span { transition: transform .15s; }
.nav-resources[open] > summary > span { transform: rotate(180deg); }
.nav-resources-panel { position: absolute; top: calc(100% + 18px); right: 0; z-index: 30; display: grid; min-width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 12px 30px #173e3b14; }
.main-nav .nav-resources-panel a { display: block; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.main-nav .nav-resources-panel a:hover, .main-nav .nav-resources-panel a:focus-visible { background: var(--soft); }
@media (min-width: 1001px) and (max-width: 1550px) { .nav-resources > summary { font-size: 13px; } }
@media (min-width: 1001px) and (max-width: 1200px) { .nav-resources > summary { font-size: 12px; } }
@media (max-width: 1000px) {
  .main-nav > .nav-resources { width: 100%; }
  .nav-resources > summary { min-height: 44px; font-size: 16px; }
  .nav-resources-panel { position: static; min-width: 0; margin-top: 6px; box-shadow: none; }
}
@media (max-width: 760px) {
  .main-nav > .nav-resources { grid-column: auto; min-width: 0; }
  .main-nav > a:last-child { grid-column: auto; align-self: start; }
  .main-nav .nav-resources-panel { width: calc(200% + 6px); }
  .nav-resources > summary { justify-content: space-between; min-height: 48px; padding: 10px 14px; border-radius: 8px; background: var(--soft); }
  .main-nav .nav-resources-panel a { min-height: 44px; font-size: 15px; background: transparent; }
}
