/* THE NEWS FRONTLINE — Article Share Rail */
#tnf-share-rail {
  position: fixed;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Desktop: vertical rail docked to the left edge, middle of viewport */
@media (min-width: 861px) {
  #tnf-share-rail {
    flex-direction: column;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 14px 10px;
    border-radius: 0 10px 10px 0;
    border-left: none;
  }
  #tnf-share-rail .tnf-share-rail-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
  }
}

/* Mobile/tablet: horizontal bar docked to the bottom, safe-area aware */
@media (max-width: 860px) {
  #tnf-share-rail {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

.tnf-share-rail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
}

.tnf-share-rail-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
  padding: 0;
}
.tnf-share-rail-btn:hover { transform: scale(1.1); opacity: 0.9; }
.tnf-share-rail-btn svg { width: 16px; height: 16px; }

.tnf-share-rail-fb   { background: #1877f2; }
.tnf-share-rail-x    { background: #000000; }
.tnf-share-rail-wa   { background: #25d366; }
.tnf-share-rail-copy { background: #555555; }
.tnf-share-rail-copy.tnf-share-rail-copied { background: #1a8f4c; }
