/* =============================================================================
 * Krannon Archaeology — UI Refinement v1.4.5
 *
 * Micro patch on top of v1.4.4. Single navigation block below the hero,
 * tighter parent-nav strip, less air before the intro section.
 *
 * Loaded last in the front-end stylesheet chain.
 * ========================================================================== */


/* -----------------------------------------------------------------------------
 * 1. Compact parent navigation strip below the hero.
 * v1.4.4 set 22px / 18px. v1.4.5 brings it down to ~24px / 18px desktop,
 * 20px / 16px tablet, 18px / 14px mobile (≈ 35–40% reduction in the
 * effective vertical footprint, factoring in the inner gap and label
 * removal).
 * -------------------------------------------------------------------------- */

.krannon-local-nav {
  padding-top: 14px;
  padding-bottom: 12px;
}

.krannon-local-nav .krannon-container {
  gap: 0;
}

@media (max-width: 900px) {
  .krannon-local-nav {
    padding-top: 12px;
    padding-bottom: 10px;
  }
}

@media (max-width: 560px) {
  .krannon-local-nav {
    padding-top: 10px;
    padding-bottom: 8px;
  }
}


/* -----------------------------------------------------------------------------
 * 2. Sibling tabs as the primary navigation.
 * Drop the parent label column so the tabs sit on their own line, full
 * width. The aria-label on the <nav> retains accessibility context.
 * -------------------------------------------------------------------------- */

.krannon-local-nav-siblings {
  display: block;
}

.krannon-local-nav-siblings .krannon-local-nav-label {
  display: none;
}

.krannon-local-nav-siblings .krannon-local-nav-pills {
  margin: 0;
  padding: 0;
}


/* -----------------------------------------------------------------------------
 * 3. Pull the intro section closer to the navigation.
 * v1.4.4 set 36px / 28px. v1.4.5 trims it further so the first content
 * block reads as a continuation of the page rather than a separate
 * landing zone.
 * -------------------------------------------------------------------------- */

.krannon-local-nav + .krannon-section,
.krannon-local-nav + .krannon-section.krannon-bg-white,
.krannon-local-nav + .krannon-section.krannon-bg-soft {
  padding-top: 24px;
}

@media (max-width: 900px) {
  .krannon-local-nav + .krannon-section,
  .krannon-local-nav + .krannon-section.krannon-bg-white,
  .krannon-local-nav + .krannon-section.krannon-bg-soft {
    padding-top: 18px;
  }
}

@media (max-width: 560px) {
  .krannon-local-nav + .krannon-section,
  .krannon-local-nav + .krannon-section.krannon-bg-white,
  .krannon-local-nav + .krannon-section.krannon-bg-soft {
    padding-top: 14px;
  }
}


/* -----------------------------------------------------------------------------
 * 4. Children-as-fallback list (top-level parent pages without siblings).
 * Inherits the v1.4.4 scholarly-index styling. Just trim the leading air
 * to match the new compact strip.
 * -------------------------------------------------------------------------- */

.krannon-local-nav-children {
  margin-top: 0;
}

.krannon-local-nav-children .krannon-local-nav-pills {
  border-top: 0;
}

.krannon-local-nav-children .krannon-local-pill:first-child {
  border-top: 1px solid var(--krannon-border);
}
