.tweet-embed {
    margin: 36px 0;
    width: 100%;
    max-width: none;
  }

  .tweet-fallback[hidden] {
    display: none;
  }

  .tweet-embed-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  .tweet-embed-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .tweet-embed-label .xh {
    width: 7px;
    height: 7px;
    background: var(--neon);
    flex-shrink: 0;
  }

  /* ── Custom recreation card (fallback) ── */
  .tweet-embed-card {
    position: relative;
    margin: 0;
    padding: 20px 20px 16px;
    background: linear-gradient(180deg, var(--panel) 0%, #0c0e0f 100%);
    border: 1px solid var(--line);
    quotes: none;
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  }
  .tweet-embed-corner-line {
    position: absolute;
    top: 0;
    left: calc(100% - 40px);
    width: 57px;
    height: 2px;
    background: var(--line);
    transform: rotate(45deg);
    transform-origin: 0 0;
    z-index: 1;
    pointer-events: none;
  }
  .tweet-embed-arrow {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--neon);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 2;
    pointer-events: none;
  }
  .tweet-embed-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .tweet-embed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--panel);
    border: 1px solid var(--line);
  }
  .tweet-embed-avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink-soft);
  }
  .tweet-embed-who {
    flex: 1;
    min-width: 0;
  }
  .tweet-embed-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    color: var(--ink);
    text-decoration: none;
  }
  .tweet-embed-name:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .tweet-embed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
  }
  .tweet-embed-meta a {
    color: var(--ink-soft);
    text-decoration: none;
  }
  .tweet-embed-meta a:hover {
    color: var(--ink);
  }
  .tweet-embed-dot {
    width: 3px;
    height: 3px;
    border-radius: 0;
    background: var(--ink-faint);
    flex-shrink: 0;
  }
  .tweet-embed-x {
    flex-shrink: 0;
    color: var(--ink);
    opacity: 0.55;
    transition: opacity 0.15s;
    display: flex;
    padding: 4px;
  }
  .tweet-embed-x:hover {
    opacity: 1;
  }
  .tweet-embed-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink);
    margin: 0 0 14px;
    white-space: pre-wrap;
  }
  .tweet-embed-media {
    display: block;
    margin: 0 0 14px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--panel);
  }
  .tweet-embed-media img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
  }
  .tweet-embed-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 12px 0;
    margin-bottom: 4px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .tweet-embed-stats b {
    font-weight: 700;
    color: var(--ink);
    margin-right: 4px;
  }
  .tweet-embed-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding-top: 4px;
  }
  .tweet-embed-link .tarrow {
    color: var(--ink-soft);
    transition: transform 0.15s ease, color 0.15s ease;
  }
  .tweet-embed-link:hover .tarrow {
    color: var(--neon-dim);
    transform: rotate(45deg) translate(2px, -2px);
  }

  .abody .tweet-embed-card,
  .prose .tweet-embed-card {
    border-left: 1px solid var(--line);
    padding-left: 20px;
    font-size: inherit;
    font-weight: inherit;
  }
  .abody .tweet-embed-text,
  .prose .tweet-embed-text {
    font-size: 16px;
    line-height: 1.55;
  }

  /* ── Primary live X embed (pre-hydrate fallback link) ── */
  .tweet-embed blockquote.twitter-tweet {
    margin: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, var(--panel) 0%, #0c0e0f 100%);
    border: 1px solid var(--line);
    border-radius: 0;
  }
  .tweet-embed blockquote.twitter-tweet a {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    text-decoration: none;
  }
  .tweet-embed blockquote.twitter-tweet a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .tweet-embed blockquote.twitter-tweet[hidden] {
    display: none;
  }

  @media (max-width: 720px) {
    .tweet-embed {
      margin: 28px 0;
    }
    .tweet-embed-card {
      padding: 16px 14px 14px;
    }
    .tweet-embed-text {
      font-size: 15px;
    }
  }.md-chunk[data-astro-cid-q5fravpf] > :first-child {
  margin-top: 0;
}

.md-chunk[data-astro-cid-q5fravpf] > :last-child {
  margin-bottom: 0;
}
