.post-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

.post-read {
  letter-spacing: 0.02em;
}

.post-listen {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.post-listen__toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 170ms ease, background-color 170ms ease, color 170ms ease;
}

.post-listen__toggle:hover,
.post-listen__toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px var(--wash);
}

.post-listen__toggle[aria-pressed="true"] {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--on-accent);
}

.post-listen__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.post-listen__icon svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.post-listen__pause {
  display: none;
}

.post-listen.is-playing .post-listen__play {
  display: none;
}

.post-listen.is-playing .post-listen__pause {
  display: inline;
}

.post-listen__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex: 0 0 auto;
}

.post-listen__bars span {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.55;
  transform-origin: bottom;
  transform: scaleY(var(--bar, 0.45));
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.post-listen__bars span:nth-child(1) { --bar: 0.38; }
.post-listen__bars span:nth-child(2) { --bar: 0.78; }
.post-listen__bars span:nth-child(3) { --bar: 0.52; }
.post-listen__bars span:nth-child(4) { --bar: 0.90; }

.post-listen.is-playing .post-listen__bars span,
.post-listen-dock.is-playing .post-listen__bars span {
  opacity: 0.92;
  animation: post-listen-eq 0.9s ease-in-out infinite alternate;
}

.post-listen.is-playing .post-listen__bars span:nth-child(1),
.post-listen-dock.is-playing .post-listen__bars span:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 0.85s;
}

.post-listen.is-playing .post-listen__bars span:nth-child(2),
.post-listen-dock.is-playing .post-listen__bars span:nth-child(2) {
  animation-delay: 0.18s;
  animation-duration: 0.72s;
}

.post-listen.is-playing .post-listen__bars span:nth-child(3),
.post-listen-dock.is-playing .post-listen__bars span:nth-child(3) {
  animation-delay: 0.32s;
  animation-duration: 0.95s;
}

.post-listen.is-playing .post-listen__bars span:nth-child(4),
.post-listen-dock.is-playing .post-listen__bars span:nth-child(4) {
  animation-delay: 0.12s;
  animation-duration: 0.78s;
}

@keyframes post-listen-eq {
  0% { transform: scaleY(0.28); }
  100% { transform: scaleY(1); }
}

.post-listen__player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 280px);
}

.post-listen__player[hidden] {
  display: none !important;
}

.post-listen__seek {
  flex: 1 1 120px;
  min-width: 100px;
  min-height: 36px;
  accent-color: var(--accent);
  cursor: pointer;
}

.post-listen__time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 5.5em;
  text-align: right;
}

.post-listen audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Discrete floating pill while scrolling during playback */
.post-listen-dock {
  position: fixed;
  right: 20px;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 4px 6px 4px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 10px 26px var(--shadow-md);
}

.post-listen-dock[hidden] {
  display: none !important;
}

.post-listen-dock .post-listen__bars {
  color: var(--accent);
}

.post-listen-dock__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.post-listen-dock__state {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.post-listen-dock__time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

.post-listen-dock__actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.post-listen-dock__toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--accent-fill);
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.post-listen-dock__toggle:hover {
  background: var(--accent-fill-hover);
  border-color: var(--accent-fill-hover);
}

.post-listen-dock__close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.post-listen-dock__close:hover {
  color: var(--ink);
}

.post-linkedin {
  margin: 28px 0 0;
  font-size: 15px;
}

.post-linkedin a {
  text-underline-offset: 3px;
}

.post-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: 18px 0 0;
  font-size: 14px;
}

.post-connect a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.post-connect a:hover {
  color: var(--ink);
}

.post-connect a:focus-visible {
  color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.writing > .post-connect {
  margin-top: 24px;
}

.main > .kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.main > .kicker .post-connect--kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  font-size: 14px;
}

.main > .kicker .share-actions {
  margin-left: auto;
}

.post-connect--header {
  margin: -8px 0 18px;
}

@media (max-width: 720px) {
  .main > .kicker .share-actions {
    margin-left: 0;
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .post-listen-dock {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-listen.is-playing .post-listen__bars span,
  .post-listen-dock.is-playing .post-listen__bars span {
    animation: none;
  }
}
