:root {
  --vocamed-nav-height: 78px;
}

html,
body {
  overflow-x: clip;
}

body.vocamed-nav-open {
  overflow: hidden;
}

[data-vocamed-nav] {
  position: sticky;
  top: 0;
  z-index: 120;
}

.vocamed-skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--navy, #061427);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: top 0.15s ease;
}

.vocamed-skip-link:focus {
  top: 12px;
  outline: 3px solid var(--teal, #047857);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

.vocamed-public-header {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid rgba(217, 230, 242, 0.9);
  box-shadow: 0 1px 0 rgba(6, 20, 39, 0.02);
}

.vocamed-public-header.is-scrolled {
  border-bottom-color: rgba(197, 214, 231, 0.95);
  box-shadow: 0 14px 34px rgba(6, 20, 39, 0.08);
}

.vocamed-nav-inner {
  width: min(1260px, calc(100% - 40px));
  min-height: var(--vocamed-nav-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 32px;
}

.vocamed-brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy, #061427);
  font-size: 1.34rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.vocamed-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy, #061427);
}

.vocamed-public-nav {
  grid-column: 1 / -1;
  grid-row: 1;
  position: static;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 32px;
  min-height: auto;
  color: var(--muted, #64748b);
  font-size: 0.88rem;
  font-weight: 750;
}

.vocamed-nav-primary {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vocamed-nav-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.vocamed-public-nav a {
  color: inherit;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vocamed-public-nav a:hover,
.vocamed-public-nav a:focus,
.vocamed-public-nav a.active {
  text-decoration: none !important;
}

.vocamed-nav-primary a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted, #64748b);
  font-weight: 750;
}

.vocamed-nav-primary a:hover {
  color: var(--navy, #061427);
}

.vocamed-nav-primary a.active {
  color: var(--navy, #061427);
  border-bottom-color: var(--teal, #047857);
  font-weight: 850;
}

.vocamed-nav-secondary {
  display: none;
}

.vocamed-nav-dropdown {
  position: relative;
}

.vocamed-nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 24px 9px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted, #64748b);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.vocamed-nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.vocamed-nav-dropdown.open .vocamed-nav-dropdown-toggle::after {
  transform: translateY(-30%) rotate(-135deg);
}

.vocamed-nav-dropdown-toggle:hover,
.vocamed-nav-dropdown-toggle.active {
  color: var(--navy, #061427);
}

.vocamed-nav-dropdown-toggle.active {
  border-bottom-color: var(--teal, #047857);
  font-weight: 850;
}

.vocamed-nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--border, var(--line, #d9e6f2));
  border-radius: 16px;
  background: var(--card, #ffffff);
  box-shadow: 0 18px 40px rgba(6, 18, 37, 0.14);
}

.vocamed-nav-dropdown.open .vocamed-nav-dropdown-panel {
  display: grid;
  gap: 3px;
}

.vocamed-nav-dropdown-panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--text, #24364b);
  font-size: 0.92rem;
  font-weight: 750;
  white-space: nowrap;
}

.vocamed-nav-dropdown-panel a:hover,
.vocamed-nav-dropdown-panel a:focus-visible {
  background: var(--primary-soft, var(--soft-2, #eaf4ff));
  color: var(--blue, #1d4ed8);
  outline: none;
}

.vocamed-nav-dropdown-panel a.active {
  color: var(--navy, #061427);
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  font-weight: 900;
}

.vocamed-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--navy, #061427);
  color: #fff !important;
  font-weight: 800;
  white-space: nowrap;
}

.vocamed-nav-cta:hover,
.vocamed-nav-cta.active {
  color: #ffffff !important;
  background: var(--teal, #047857);
}

.vocamed-nav-toggle {
  position: relative;
  z-index: 130;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line, #d9e6f2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy, #061427);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  place-items: center;
  box-shadow: 0 12px 28px rgba(6, 18, 37, 0.08);
}

.vocamed-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: relative;
}

.vocamed-nav-toggle span::before,
.vocamed-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: inherit;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}

.vocamed-nav-toggle span::before { top: -6px; }
.vocamed-nav-toggle span::after { top: 6px; }

.vocamed-nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.vocamed-nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.vocamed-nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.vocamed-nav-backdrop {
  display: none;
}

.vocamed-doc-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 34px;
}

.vocamed-doc-shell {
  padding: 54px 0 84px;
}

.vocamed-doc-sidebar {
  min-width: 0;
}

.vocamed-doc-content {
  min-width: 0;
}

.vocamed-doc-content > section:not(.cta):not(.cta-box) {
  padding: 0 0 44px;
}

.vocamed-doc-content > section:not(.cta):not(.cta-box):last-child {
  padding-bottom: 0;
}

.vocamed-doc-content > section[class*="section-soft"] {
  background: transparent;
}

.vocamed-doc-content > section > .container {
  width: 100%;
  margin: 0;
}

.vocamed-doc-nav-panel {
  position: sticky;
  top: calc(var(--vocamed-nav-height) + 24px);
  padding: 16px;
  border: 1px solid var(--border, var(--line, #d9e6f2));
  border-radius: 24px;
  background: var(--card, #ffffff);
  box-shadow: 0 12px 30px rgba(16, 32, 51, 0.05);
}

.vocamed-doc-nav-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy, #061427);
  font-size: 0.92rem;
  font-weight: 900;
}

.vocamed-doc-nav-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border, var(--line, #d9e6f2));
}

.vocamed-doc-nav-group h2 {
  margin: 0 0 8px;
  color: var(--muted, #64748b);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vocamed-doc-nav-links {
  display: grid;
  gap: 5px;
}

.vocamed-doc-nav-links a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted, #64748b);
  font-size: 0.93rem;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.vocamed-doc-nav-links a:hover,
.vocamed-doc-nav-links a:focus-visible {
  background: var(--primary-soft, var(--soft-2, #eaf4ff));
  color: var(--blue, #1d4ed8);
  outline: none;
}

.vocamed-doc-nav-links a.active {
  color: var(--navy, #061427);
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10), inset 0 0 0 1px rgba(4, 120, 87, 0.06);
  font-weight: 900;
}

.vocamed-doc-nav-mobile {
  display: none;
}

.vocamed-deep-links-section {
  padding: 22px 0 38px;
}

.vocamed-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  gap: 28px;
  padding: 6px 0 26px;
  border-bottom: 1px solid var(--line, #d9e6f2);
}

.vocamed-footer-nav-group h2 {
  margin: 0 0 10px;
  color: var(--muted, #64748b);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vocamed-footer-nav-links {
  display: grid;
  gap: 4px;
}

.vocamed-footer-nav-links a {
  display: block;
  padding: 5px 0;
  color: var(--text, #24364b);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.vocamed-footer-nav-links a:hover,
.vocamed-footer-nav-links a:focus-visible {
  color: var(--blue, #1d4ed8);
  text-decoration: underline;
  outline: none;
}

@media (max-width: 1240px) {
  .vocamed-nav-inner {
    width: min(100% - 28px, 1160px);
    min-height: 66px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
  }

  .vocamed-logo {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .vocamed-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.16rem;
  }

  .vocamed-nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .vocamed-public-nav {
    grid-column: auto;
    grid-row: auto;
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 100;
    width: min(350px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    padding: 74px 16px 16px;
    border: 1px solid rgba(228, 237, 247, 0.92);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 26px 60px rgba(6, 18, 37, 0.16);
    transform: translateX(calc(100% + 20px));
    transition: transform 0.22s ease;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vocamed-nav-primary,
  .vocamed-nav-actions {
    display: contents;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .vocamed-public-nav.open {
    transform: translateX(0);
  }

  .vocamed-public-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--text, #24364b);
  }

  .vocamed-public-nav a:not(.vocamed-nav-cta):hover,
  .vocamed-public-nav a:not(.vocamed-nav-cta).active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--navy, #061427);
  }

  .vocamed-nav-dropdown {
    display: none;
  }

  .vocamed-nav-secondary {
    display: grid;
    gap: 3px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line, #d9e6f2);
  }

  .vocamed-nav-secondary-label {
    padding: 0 12px;
    margin-bottom: 2px;
    color: var(--muted, #64748b);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .vocamed-nav-cta {
    margin-top: 12px;
    width: 100%;
    min-height: 48px;
  }

  .vocamed-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(6, 18, 37, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .vocamed-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .vocamed-doc-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .vocamed-doc-shell {
    padding: 34px 0 64px;
  }

  .vocamed-doc-nav-panel {
    display: none;
  }

  .vocamed-doc-nav-mobile {
    display: block;
    border: 1px solid var(--border, var(--line, #d9e6f2));
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 32, 51, 0.06);
    overflow: hidden;
  }

  .vocamed-doc-nav-mobile summary {
    cursor: pointer;
    min-height: 50px;
    padding: 14px 16px;
    color: var(--navy, #061427);
    font-weight: 900;
    list-style: none;
  }

  .vocamed-doc-nav-mobile summary::-webkit-details-marker {
    display: none;
  }

  .vocamed-doc-nav-mobile summary:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px var(--teal, #047857);
  }

  .vocamed-doc-nav-mobile summary::after {
    content: "+";
    float: right;
    font-weight: 950;
  }

  .vocamed-doc-nav-mobile[open] summary::after {
    content: "-";
  }

  .vocamed-doc-nav-mobile > .vocamed-doc-nav-links,
  .vocamed-doc-nav-mobile > .vocamed-doc-nav-group {
    padding: 0 14px 14px;
  }

  .vocamed-doc-nav-links a {
    min-height: 42px;
  }

  .vocamed-footer-nav {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 420px) {
  .vocamed-public-nav {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
