.jc-social[hidden] {
  display: none !important;
}

.jc-social {
  position: fixed;
  z-index: 15;
  right: env(safe-area-inset-right, 0px);
  bottom: 22vh;
  margin: 0;
  padding: 0;
  border: 0;
  color: #eaf9ff;
  background: transparent;
  font: 600 .95rem/1.35 system-ui, sans-serif;
}

.jc-social .jc-social__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  list-style: none;
  border: 1px solid #42758d;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #102d40;
  color: #8aefff;
  cursor: pointer;
  box-shadow: 0 4px 16px #03121d55;
  touch-action: manipulation;
}

.jc-social__toggle::marker { content: ''; }
.jc-social__toggle::-webkit-details-marker { display: none; }

.jc-social__at {
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1;
}

.jc-social__cue {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transition: max-width .2s ease, opacity .15s ease;
}

.jc-social[data-cue] .jc-social__cue,
.jc-social[open] .jc-social__cue,
.jc-social__toggle:focus-visible .jc-social__cue {
  max-width: 9em;
  opacity: 1;
}

.jc-social__cue::before { content: '\00a0'; }

.jc-social .jc-social__links {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  box-sizing: border-box;
  display: grid;
  gap: 0;
  width: max-content;
  min-width: min(13rem, calc(100vw - 1rem));
  max-width: calc(100vw - 1rem);
  max-height: 55vh;
  max-height: 55dvh;
  overflow: auto;
  padding: 10px;
  border: 1px solid #42758d;
  border-radius: 13px 0 0 13px;
  background: #0c2334;
  box-shadow: 0 4px 20px #03121d66;
}

.jc-social__handle {
  padding: 3px 8px 8px;
  color: #afc9d6;
  font-size: .82rem;
}

.jc-social .jc-social__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.jc-social__links a:hover,
.jc-social .jc-social__links a:focus-visible { background: #184159; }

.jc-social__toggle:focus-visible,
.jc-social__links a:focus-visible {
  outline: 2px solid #8aefff;
  outline-offset: -3px;
}

@media (max-width: 760px) {
  .jc-social { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .jc-social__cue { transition: none; }
}

@media print {
  .jc-social { display: none; }
}
