/* Share control — one button, panel on demand. Readable on both themes,
   44px touch targets, opens upward-safe because it lives mid-page. */
.kicc-share {
  margin: 1.6rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  display: block;
}

/* ── Trigger ─────────────────────────────────────────────────────────── */
.kicc-share__trigger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem 0 .85rem;
  border: 1px solid rgba(128, 128, 128, .34);
  border-radius: 999px;
  background: rgba(128, 128, 128, .05);
  color: inherit;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: border-color .16s, background .16s;
  user-select: none;
}
.kicc-share__trigger::-webkit-details-marker { display: none; }
.kicc-share__trigger::marker { content: ''; }
.kicc-share__trigger:hover,
.kicc-share__trigger:focus-visible {
  border-color: #FFCD05;
  background: rgba(255, 205, 5, .12);
  outline: none;
}
.kicc-share[open] > .kicc-share__trigger {
  border-color: #FFCD05;
  background: rgba(255, 205, 5, .12);
}
.kicc-share__icon svg { width: 17px; height: 17px; display: block; }
.kicc-share__chev {
  display: inline-flex;
  opacity: .55;
  transition: transform .18s ease;
}
.kicc-share__chev svg { width: 15px; height: 15px; display: block; }
.kicc-share[open] .kicc-share__chev { transform: rotate(180deg); opacity: .8; }

/* ── Panel ───────────────────────────────────────────────────────────── */
.kicc-share__panel {
  margin: .6rem 0 0;
  padding: .95rem 1rem 1rem;
  max-width: 34rem;
  border: 1px solid rgba(128, 128, 128, .28);
  border-radius: 16px;
  background: rgba(128, 128, 128, .07);
  /* Never let the panel push a horizontal scrollbar on a phone. */
  overflow-wrap: anywhere;
}
.kicc-share__panel-title {
  margin: 0 0 .7rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .62;
}
.kicc-share__native {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  margin: 0 0 .7rem;
  padding: 0 .95rem;
  border: 1px solid rgba(128, 128, 128, .4);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
}
.kicc-share__native:hover,
.kicc-share__native:focus-visible { border-color: #FFCD05; outline: none; }

.kicc-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kicc-share__btn {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 40px;
  padding: 0 .8rem;
  border: 1px solid rgba(128, 128, 128, .32);
  border-radius: 10px;
  background: rgba(128, 128, 128, .05);
  color: inherit;
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.kicc-share__btn:hover,
.kicc-share__btn:focus-visible {
  border-color: #FFCD05;
  background: rgba(255, 205, 5, .12);
  outline: none;
}
.kicc-share__row-end { margin-left: auto; }
.kicc-share__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  flex: 0 0 auto;
}
.kicc-share__btn--whatsapp .kicc-share__dot { background: #25D366; opacity: 1; }
.kicc-share__btn--facebook .kicc-share__dot { background: #1877F2; opacity: 1; }
.kicc-share__btn--x .kicc-share__dot { background: #111; opacity: 1; }
html[data-theme="dark"] .kicc-share__btn--x .kicc-share__dot { background: #fff; }
.kicc-share__btn--linkedin .kicc-share__dot { background: #0A66C2; opacity: 1; }
.kicc-share__btn--telegram .kicc-share__dot { background: #229ED9; opacity: 1; }
.kicc-share__btn--pinterest .kicc-share__dot { background: #E60023; opacity: 1; }
.kicc-share__btn--reddit .kicc-share__dot { background: #FF4500; opacity: 1; }
.kicc-share__btn--email .kicc-share__dot { background: #6B6B6B; opacity: 1; }
.kicc-share__hint {
  font-size: .64rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  /* inherit, not a fixed cream: a globally-themed small-text rule painted this
     cream (#fff8ef) on the light theme's cream panel — ~1.1:1, invisible. The
     button's own colour is correct in both themes. */
  color: inherit;
  opacity: .58;
}
.kicc-share__status {
  margin: .6rem 0 0;
  min-height: 1.1em;
  font-size: .8rem;
  font-weight: 600;
  color: #0A7A3D;
}
html[data-theme="dark"] .kicc-share__status { color: #63D69A; }
.kicc-share__note {
  margin: .4rem 0 0;
  font-size: .74rem;
  line-height: 1.5;
  opacity: .64;
}
.kicc-share__note code {
  font-size: .7rem;
  padding: .05rem .3rem;
  border-radius: 4px;
  background: rgba(128, 128, 128, .18);
}

@media (max-width: 560px) {
  .kicc-share__panel { padding: .85rem; }
  .kicc-share__row-end { margin-left: 0; }
  .kicc-share__btn { flex: 1 1 calc(50% - .45rem); justify-content: center; }
  .kicc-share__hint { display: none; }
}
