/* Recognizable local icon colors, with no SDK, tracking pixel, or color block. */
.petro-social-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  color: #656562;
}
.petro-social-actions .petro-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--social-icon-color, #656562);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.petro-social-actions .petro-icon-action--instagram {
  --social-icon-color: #c13584;
}
.petro-social-actions .petro-icon-action--facebook {
  --social-icon-color: #0866ff;
}
.petro-social-actions .petro-icon-action--pinterest {
  --social-icon-color: #e60023;
}
.petro-social-actions .petro-icon-action--apple_podcasts {
  --social-icon-color: #a23ee8;
}
.petro-social-actions .petro-icon-action--spotify {
  --social-icon-color: #1db954;
}
.petro-podcast-links {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
}
.petro-social-actions .petro-icon-action--tiktok,
.petro-social-actions .petro-icon-action--email,
.petro-social-actions .petro-icon-action--share,
.petro-social-actions .petro-icon-action--copy {
  --social-icon-color: #656562;
}
.petro-social-actions .petro-icon-action:hover {
  background: transparent;
  color: var(--social-icon-color, #656562);
  border-color: currentColor;
  text-decoration: none;
}
.petro-social-actions .petro-icon-action:focus-visible {
  color: var(--social-icon-color, #656562);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.petro-social-actions .petro-icon-action:disabled {
  opacity: .6;
  cursor: progress;
}
.petro-icon-action svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  pointer-events: none;
}
.petro-article-share {
  margin: 28px 0 35px;
  padding-top: 15px;
  border-top: 1px solid var(--issue-rule, var(--rule, #d8d8dc));
}
.petro-share-status {
  margin: 0;
  font: 12px/1.5 var(--label, sans-serif);
  color: #656562;
  max-width: 560px;
}
.petro-share-status:not(:empty) { margin-top: 8px; }
.petro-share-manual {
  display: block;
  max-width: 560px;
  margin-top: 12px;
  font: 12px/1.5 var(--label, sans-serif);
}
.petro-share-manual input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid var(--rule, #d8d8dc);
  border-radius: 0;
  background: white;
  color: #656562;
  font: 16px/1.4 var(--label, sans-serif);
}
.petro-share-manual[hidden] { display: none; }

/* One compact channel rail; page and article controls retain their base styles. */
.petro-action-rail {
  position: fixed;
  z-index: 40;
  left: auto;
  right: max(8px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  color: #656562;
  font: 12px/1.4 var(--label, sans-serif);
}
.petro-action-rail,
.petro-action-rail * { box-sizing: border-box; }
.petro-action-rail .petro-rail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #b7d4c5;
  border-radius: 3px;
  background: #a5f3cb;
  color: #656562;
  font: 12px/1.4 var(--label, sans-serif);
  letter-spacing: .025em;
  cursor: pointer;
  box-shadow: none;
}
.petro-rail-toggle-symbol {
  display: inline-block;
  font: 22px/1 var(--label, sans-serif);
  transition: transform .15s ease;
}
.petro-rail-toggle[aria-expanded="true"] .petro-rail-toggle-symbol {
  transform: rotate(45deg);
}
.petro-action-rail .petro-rail-panel {
  display: none;
  position: absolute;
  left: auto;
  right: 0;
  bottom: calc(100% + 8px);
  width: 62px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 999px;
  background: linear-gradient(165deg,rgba(255,255,255,.86),rgba(245,255,250,.64));
  box-shadow: inset 0 2px 4px rgba(255,255,255,.98), inset 0 -5px 12px rgba(165,243,203,.2), 0 18px 42px rgba(49,95,84,.16), 0 2px 6px rgba(72,72,72,.1);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
}
.petro-action-rail.is-open .petro-rail-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.petro-action-rail .petro-profile-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  width: 44px;
  min-height: 44px;
  max-height: calc(100vh - 180px);
  max-height: calc(100dvh - 180px);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.petro-action-rail .petro-profile-actions::-webkit-scrollbar { display: none; }
.petro-action-rail .petro-podcast-links {
  flex-direction: column;
  gap: 2px;
}
.petro-action-rail .petro-rail-share {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  margin: 6px 0 0;
  padding: 6px 0 0;
  border: 0;
  border-top: 1px solid rgba(71,119,107,.24);
}
.petro-action-rail .petro-rail-share > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #656562;
  cursor: pointer;
  list-style: none;
}
.petro-rail-share > summary::-webkit-details-marker { display: none; }
.petro-rail-share > summary::marker { content: ""; }
.petro-rail-share > summary svg {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.petro-action-rail .petro-rail-share[open] > summary {
  background: #7FE3BE;
  border-color: #0C7A58;
  box-shadow: inset 0 2px 3px rgba(255,255,255,.8), 0 4px 10px rgba(12,122,88,.2);
}
.petro-action-rail .petro-rail-share-panel {
  position: absolute;
  left: auto;
  right: calc(100% + 12px);
  bottom: 0;
  width: 230px;
  max-width: calc(100vw - 84px - env(safe-area-inset-left) - env(safe-area-inset-right));
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  color: #656562;
  box-shadow: inset 0 2px 3px #fff, 0 14px 32px rgba(72,72,72,.18);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  overflow-wrap: anywhere;
}
.petro-rail-share:not([open]) > .petro-rail-share-panel { display: none; }
.petro-action-rail .petro-rail-share-panel h2 {
  margin: 0 0 10px;
  color: #656562;
  font: 500 14px/1.4 var(--label, sans-serif);
  letter-spacing: 0;
  text-transform: none;
}
.petro-action-rail .petro-article-share {
  margin: 0;
  padding: 0;
  border: 0;
}
.petro-action-rail .petro-share-status,
.petro-action-rail .petro-share-manual { max-width: 100%; }
.petro-action-rail .petro-share-manual input { min-width: 0; }
.petro-action-rail .petro-rail-toggle:hover,
.petro-action-rail .petro-rail-share > summary:hover {
  color: #656562;
  border-color: #656562;
}
.petro-action-rail .petro-profile-actions .petro-icon-action {
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.petro-action-rail .petro-profile-actions .petro-icon-action:hover {
  transform: translateY(-1px) scale(1.04);
  background: color-mix(in srgb, var(--social-icon-color, #7FE3BE) 14%, white);
  border-color: color-mix(in srgb, var(--social-icon-color, #47776b) 52%, white);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.9), 0 4px 9px rgba(72,72,72,.12);
}
.petro-action-rail .petro-rail-toggle:focus-visible,
.petro-action-rail .petro-rail-share > summary:focus-visible {
  outline: 2px solid #656562;
  outline-offset: 3px;
}
/* Keep keyboard rings inside the narrow scrollable icon column. */
.petro-action-rail .petro-profile-actions .petro-icon-action:focus-visible {
  outline-offset: -3px;
}
@media (min-width: 761px) {
  body:has(.petro-action-rail) { padding-left: 0; padding-right: 80px; }
  .petro-action-rail {
    left: auto;
    right: 12px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .petro-action-rail .petro-rail-toggle { display: none; }
  .petro-action-rail .petro-rail-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    left: auto;
    bottom: auto;
  }
  .petro-action-rail .petro-profile-actions {
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
  }
  .petro-action-rail .petro-rail-share-panel {
    width: 240px;
    max-height: calc(50vh - 8px);
    max-height: calc(50dvh - 8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .petro-action-rail,
  .petro-action-rail * { transition: none; animation: none; }
}
@media print {
  .petro-action-rail { display: none !important; }
  body:has(.petro-action-rail) { padding-left: 0; padding-right: 0; }
}
