/* VIC Tools shared site header and footer. Intentionally scoped to avoid changing tool UIs. */
#vic-site-header,
#vic-site-header *,
#vic-site-footer,
#vic-site-footer * {
  box-sizing: border-box;
}

#vic-site-header,
#vic-site-footer {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vic-skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #0b1830;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(15, 31, 61, .18);
}
.vic-skip-link:focus { top: 12px; }

#vic-site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(11, 24, 48, .97);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.vic-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.vic-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.vic-brand:hover { color: #fff; text-decoration: none; }
.vic-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  object-fit: cover;
}
.vic-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.vic-nav a {
  padding: 10px 11px;
  border-radius: 10px;
  color: #e9eef9;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 650;
  line-height: 1.2;
}
.vic-nav a:hover,
.vic-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.11);
  text-decoration: none;
}
.vic-mobile-nav { display: none; position: relative; }
.vic-mobile-nav summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 11px;
  color: #fff;
  background: transparent;
  font-weight: 700;
  line-height: 1.2;
}
.vic-mobile-nav summary::-webkit-details-marker { display: none; }
.vic-mobile-panel {
  position: absolute;
  right: 0;
  top: 49px;
  width: min(310px, calc(100vw - 32px));
  display: grid;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: #0b1830;
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
}
.vic-mobile-panel a {
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}
.vic-mobile-panel a:hover,
.vic-mobile-panel a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.1);
  text-decoration: none;
}

#vic-site-footer {
  width: 100%;
  margin-top: 64px;
  padding: 48px 0 24px;
  background: #0b1830;
  color: #e8edf8;
}
.vic-footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.vic-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
#vic-site-footer .vic-footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
}
#vic-site-footer .vic-footer-copy {
  max-width: 520px;
  margin: 0;
  color: #b9c4d8;
  line-height: 1.7;
}
.vic-footer-links { display: grid; gap: 9px; margin: 0; padding: 0; }
.vic-footer-links a { color: #d9e1ef; text-decoration: none; }
.vic-footer-links a:hover { color: #fff; text-decoration: underline; }
.vic-footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #aeb9cc;
  font-size: .9rem;
}
.vic-page-note {
  width: min(980px, calc(100% - 32px));
  margin: 38px auto 0;
  padding: 18px 20px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #f7f9fc;
  color: #4b5565;
  font: 400 .92rem/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

@media (max-width: 980px) {
  .vic-nav { display: none; }
  .vic-mobile-nav { display: block; }
}
@media (max-width: 700px) {
  .vic-header-inner { min-height: 62px; }
  .vic-brand span { font-size: .95rem; }
  .vic-footer-grid { grid-template-columns: 1fr; }
}
