:root {
  --yc-topbar-navy: #0c2348;
  --yc-topbar-gold: #b9862f;
  --yc-topbar-bg: #f4f7fb;
  --yc-topbar-border: rgba(12, 35, 72, 0.12);
}

.yc-topbar,
.yc-topbar * {
  box-sizing: border-box;
}

.yc-topbar {
  position: relative;
  z-index: 1100;
  width: 100%;
  color: var(--yc-topbar-navy);
  background:
    linear-gradient(90deg, rgba(12, 35, 72, 0.035), rgba(185, 134, 47, 0.035), rgba(12, 35, 72, 0.035)),
    var(--yc-topbar-bg);
  border-bottom: 1px solid var(--yc-topbar-border);
  font-family: Arial, Helvetica, sans-serif;
}

.yc-topbar__inner {
  width: min(calc(100% - 40px), 1200px);
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.yc-topbar__location,
.yc-topbar__nav,
.yc-topbar__button,
.yc-topbar__social {
  display: flex;
  align-items: center;
}

.yc-topbar__location {
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.yc-topbar__location svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.yc-topbar__nav {
  gap: 6px;
}

.yc-topbar__item {
  position: relative;
}

.yc-topbar__button,
.yc-topbar__social {
  min-height: 30px;
  justify-content: center;
  gap: 6px;
  padding: 5px 7px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.yc-topbar__social {
  width: 30px;
  padding: 6px;
}

.yc-topbar__button:hover,
.yc-topbar__button:focus-visible,
.yc-topbar__button[aria-expanded="true"],
.yc-topbar__social:hover,
.yc-topbar__social:focus-visible {
  color: var(--yc-topbar-gold);
  background: rgba(12, 35, 72, 0.07);
  outline: none;
  transform: translateY(-1px);
}

.yc-topbar__button svg,
.yc-topbar__social svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yc-topbar__dot {
  fill: currentColor;
  stroke: none;
}

.yc-topbar__divider {
  width: 1px;
  height: 18px;
  margin: 0 3px;
  background: rgba(12, 35, 72, 0.16);
}

.yc-topbar__popup {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 1110;
  min-width: 205px;
  padding: 12px 14px;
  color: var(--yc-topbar-navy);
  text-align: left;
  background: #fff;
  border: 1px solid rgba(12, 35, 72, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(12, 35, 72, 0.16);
  transform: translateX(-50%);
  animation: ycTopbarPopup 150ms ease;
}

.yc-topbar__popup::before {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 9px;
  height: 9px;
  background: #fff;
  border-top: 1px solid rgba(12, 35, 72, 0.12);
  border-left: 1px solid rgba(12, 35, 72, 0.12);
  transform: rotate(45deg);
}

.yc-topbar__popup-label {
  display: block;
  margin-bottom: 4px;
  color: #737c8d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yc-topbar__popup a {
  color: var(--yc-topbar-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.yc-topbar__popup a:hover,
.yc-topbar__popup a:focus-visible {
  color: var(--yc-topbar-gold);
  outline: none;
}

@keyframes ycTopbarPopup {
  from { opacity: 0; transform: translate(-50%, -5px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 700px) {
  .yc-topbar__inner {
    width: calc(100% - 28px);
    min-height: 48px;
    justify-content: center;
  }

  .yc-topbar__location,
  .yc-topbar__desktop-label {
    display: none;
  }

  .yc-topbar__nav {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }

  .yc-topbar__button,
  .yc-topbar__social {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 7px;
  }

  .yc-topbar__popup {
    position: fixed;
    top: 58px;
    right: 14px;
    left: 14px;
    min-width: 0;
    text-align: center;
    transform: none;
  }

  .yc-topbar__popup::before { display: none; }

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

@media (prefers-reduced-motion: reduce) {
  .yc-topbar__button,
  .yc-topbar__social,
  .yc-topbar__popup {
    animation: none;
    transition: none;
  }
}

/* SizeWebsite: preserve the computed original contact bar background. */
.yc-topbar.sw-yc-topbar {
  background: var(--sw-yc-preserved-bg, #edf1f7);
}
/* The reference popups use [hidden]; ensure the site’s styles cannot expose them. */
.sw-yc-topbar [hidden] { display: none !important; }
/* Align with actual YILCORE screenshots: left contact cluster, right social cluster. */
.sw-yc-topbar .yc-topbar__nav { flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
.sw-yc-topbar .yc-topbar__desktop-label { display: none; }
.sw-yc-topbar .yc-topbar__button { width: 30px; padding: 6px; }
.sw-yc-topbar .yc-topbar__social[href*="instagram.com"] { margin-left: auto; }
.sw-yc-topbar .yc-topbar__divider { display: none; }
@media (max-width: 700px) {
  .sw-yc-topbar .yc-topbar__nav { width: 100%; justify-content: flex-start; gap: 6px; }
  .sw-yc-topbar .yc-topbar__button { width: 34px; height: 34px; padding: 7px; }
  .sw-yc-topbar .yc-topbar__social { width: 34px; height: 34px; }
}
