/* Subtle Scenic Ridge Backdrop Behind Header to Showcase Ribbon Translucency */

/* 3D Stitched Satin-Weave Federal Navy Ribbon Banner (Crisp Architectural Edge) */
.ribbon-banner {
  position: relative;
  z-index: 20;
  overflow: visible;
}

/* Crisp Translucent Satin-Weave Navy Ribbon Face */
.ribbon-wave-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 3px;
  background-color: transparent;
  background-image:
    /* Outer Amber-200 Star (#fde68a) with Centered White Inner Star (#ffffff) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpolygon points='32,6 39.2,22.8 57.5,24.6 43.7,36.8 47.8,54.8 32,45.4 16.2,54.8 20.3,36.8 6.5,24.6 24.8,22.8' fill='%23fde68a' fill-opacity='1'/%3E%3Cpolygon points='32,17 36.1,26.6 46.6,27.6 38.7,34.6 41.0,44.9 32,39.5 23.0,44.9 25.3,34.6 17.4,27.6 27.9,26.6' fill='%23ffffff' fill-opacity='1'/%3E%3C/svg%3E"),
    /* Fine Diagonal Satin Fabric Weave */
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.045) 0px,
      rgba(255, 255, 255, 0.045) 2px,
      transparent 2px,
      transparent 6px),
    /* Semi-Transparent Federal Navy Satin Gradient (0.7 opacity) */
    linear-gradient(180deg, rgba(30, 58, 138, 1) 0%, rgba(23, 37, 84, 0.75) 55%, rgba(19, 30, 71, 0.75) 100%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: 14px center, center, center;
  background-size: 40px 40px, auto, 100% 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 10px 22px -4px rgba(15, 23, 42, 0.35),
    inset 0 1px 0 rgba(251, 191, 36, 0.55),
    inset 0 -1px 0 rgba(251, 191, 36, 0.55);
}

/* Straight Metallic Gold Dashed Stitch Lines Inside the Ribbon */
.ribbon-stitch {
  position: absolute;
  inset: 4px 6px;
  pointer-events: none;
  z-index: 1;
  border-top: 1.5px dashed rgba(253, 224, 71, 0.55);
  border-bottom: 1.5px dashed rgba(253, 224, 71, 0.55);
}

/* Left & Right Semi-Transparent Notched Ribbon Tails */
.ribbon-banner::before,
.ribbon-banner::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 32px;
  height: 100%;
  background: linear-gradient(180deg, rgba(19, 30, 71, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -2;
  pointer-events: none;
}

.ribbon-banner::before {
  left: -22px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%);
}

.ribbon-banner::after {
  right: -22px;
  clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%);
}

/* Semi-Transparent Midnight Navy Folded Corner Triangles */
.ribbon-fold-left,
.ribbon-fold-right {
  position: absolute;
  bottom: -10px;
  width: 10px;
  height: 10px;
  background: rgba(7, 12, 26, 0.7);
  z-index: -1;
  pointer-events: none;
}

.ribbon-fold-left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.ribbon-fold-right {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
/* Top Scenic Capitol Backdrop */
.top-capitol-bg {
  background-image: var(--header-bg, url('../test_2025/header_fall.jpg'));
  margin: 0;
  min-height: clamp(260px, 25vw, 420px);
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}

/* Compact Menu-Only Header Mode (No Background Picture or Wave) */
.top-capitol-bg.no-header-bg {
  background-image: none !important;
  background-color: transparent;
  min-height: auto;
  padding-top: 12px;
  padding-bottom: 14px;
}

.top-capitol-bg.no-header-bg > div:last-child {
  display: none;
}

/* Dropdown Active States */
.nav-dropdown-link.active {
  background-color: rgba(254, 243, 199, 0.95);
  color: #172554;
}

.nav-dropdown-link.active::before {
  content: "✓";
  margin-right: 4px;
  color: #b45309;
  font-weight: 800;
}

@media (min-width: 768px) {
  .nav-dropdown-trigger.has-active-child {
    color: #fde68a;
  }
}