/* ClickDialog Premium Navigation V6 — Clear, Responsive, Accessible
   Compatible with native <details>/<summary> disclosure contracts. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.site-header .header-row {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: #0f172a;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.site-header .brand:hover {
  opacity: 0.85;
}

.site-header .brand img {
  display: block;
}

.site-header .cd-nav-v3 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cd-nav-disclosure {
  position: static;
}

.cd-nav-disclosure > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  color: #334155;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cd-nav-disclosure > summary::-webkit-details-marker,
.cd-mobile-v3 > summary::-webkit-details-marker,
.cd-mobile-section > summary::-webkit-details-marker {
  display: none;
}

.cd-nav-disclosure > summary:hover,
.cd-nav-disclosure[open] > summary {
  color: #1554c9;
  background: #f1f5f9;
}

.cd-nav-chevron {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #94a3b8;
}

.cd-nav-disclosure[open] .cd-nav-chevron {
  transform: rotate(180deg);
  color: #1554c9;
}

.cd-nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 24px;
  left: auto;
  z-index: 110;
  width: min(720px, calc(100vw - 48px));
  max-height: min(78vh, 640px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.12);
  padding: 26px 30px;
  color: #0f172a;
  animation: cdNavPanelFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cdNavPanelFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cd-nav-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.cd-nav-panel-heading strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.cd-nav-panel-heading p {
  display: none;
}

.cd-nav-panel-heading > a {
  font-size: 13px;
  color: #1554c9;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.cd-nav-panel-heading > a:hover {
  color: #0b2cbf;
  text-decoration: underline;
}

.cd-nav-panel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
}

.cd-nav-panel-list > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 14px;
  text-decoration: none;
  color: #0f172a;
  background: transparent;
  border-radius: 8px;
  border-bottom: none;
  transition: all 0.15s ease;
}

.cd-nav-panel-list > a:hover,
.cd-nav-panel-list > a:focus-visible {
  background: #f8fafc;
  transform: translateX(2px);
}

.cd-nav-panel-list strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
  color: #0f172a;
}

.cd-nav-panel-list > a:hover strong {
  color: #1554c9;
}

.cd-nav-panel-list span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.cd-nav-panel-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 0 0;
  border-top: 1px solid #f1f5f9;
  background: none;
  border-radius: 0;
}

.cd-nav-panel-feature span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
}

.cd-nav-panel-feature a {
  font-size: 13px;
  font-weight: 600;
  color: #1554c9;
  text-decoration: none;
}

.cd-nav-panel-feature a:hover {
  text-decoration: underline;
}

.site-header .cd-nav-v3 > .cd-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  min-height: 40px;
  margin-left: 16px;
  padding: 0 18px;
  background: #1554c9;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(21, 84, 201, 0.25);
  transition: all 0.15s ease;
}

.site-header .cd-nav-v3 > .cd-nav-cta:hover {
  background: #0b2cbf;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 84, 201, 0.35);
}

.site-header .cd-nav-v3 > .cd-nav-login {
  margin-left: 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.site-header .cd-nav-v3 > .cd-nav-login:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.site-header :is(summary, a):focus-visible,
.cd-objective :is(summary, a):focus-visible {
  outline: 2px solid #1554c9;
  outline-offset: 3px;
}

.site-header .cd-mobile-v3 {
  display: none;
}

@media (max-width:1120px) {
  .site-header .cd-nav-v3 {
    display: none;
  }
  .site-header .cd-mobile-v3 {
    display: block;
  }
  .site-header .header-row {
    min-height: 64px;
  }
  .cd-mobile-v3 > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  .cd-mobile-v3 > nav {
    position: absolute;
    right: 0;
    top: calc(100% + 1px);
    width: min(420px, calc(100vw - 24px));
    max-height: min(84vh, 760px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 24px 24px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.18);
    border-radius: 0 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .cd-mobile-section {
    border-bottom: 1px solid #f1f5f9;
  }
  .cd-mobile-section>summary{border:0;border-radius:0;background:transparent}
  .cd-mobile-section > summary {
    list-style: none;
    display: flex;
    min-height: 52px;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    color: #0f172a;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .cd-mobile-section[open] > summary {
    color: #1554c9;
  }
  .cd-mobile-section-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 12px;
  }
  .cd-mobile-v3 nav .cd-mobile-section-content a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #334155;
    text-decoration: none;
    transition: background-color 0.12s ease;
  }
  .cd-mobile-v3 nav .cd-mobile-section-content a:hover {
    background: #f8fafc;
    color: #1554c9;
  }
  .cd-mobile-v3 nav .cd-mobile-section-content .cd-mobile-all {
    color: #1554c9;
    font-weight: 650;
    background: none;
    padding-left: 12px;
    margin-bottom: 4px;
  }
  .cd-mobile-v3 nav .cd-mobile-cta {
    margin-top: 20px;
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1554c9;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 650;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(21, 84, 201, 0.25);
  }
  .cd-mobile-v3 nav .cd-mobile-login {
    min-height: 44px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-nav-chevron {
    transition: none;
  }
  .cd-nav-panel {
    animation: none;
  }
}
