/* Blog post content helpers (classes carried over from imported posts) */

.content p,
.content li {
    line-height: 1.6;
}

/* Post title links on the index page — brand ember, like the rest of the
   theme. mdbook nests markdown heading links inside its .header anchor; the
   HTML parser splits the invalid nested <a> into siblings, hence :not(.header). */
.content h2>a:not(.header),
.content h2>a:not(.header):visited {
    color: var(--hp-ember, #ffb454);
}

.content h2>a:not(.header):hover {
    color: var(--hp-ember, #ffb454);
    text-decoration: underline;
}

.center-image {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
}

.center {
    text-align: center;
}

/* Archive post banner — points legacy readers to the current hotpath-rs docs.
   Reuses the waitlist-card box; restores paragraph spacing the card flattens. */
/* Whole row is the link; crab sits inline, just left of the CTA text */
.archive-banner-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.archive-banner-ferris {
    width: 48px;
    height: auto;
    flex-shrink: 0;
}

.archive-banner p {
    margin-bottom: 0.75rem;
}

.archive-banner p:last-child {
    margin-bottom: 0;
}

.archive-banner-link,
.archive-banner-link:visited {
    color: var(--hp-ember, #ffb454);
    font-weight: 600;
    text-decoration: none;
}

.archive-banner-link:hover {
    text-decoration: underline;
}

.annotation {
    font-size: 1.6rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.vid-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 1.5rem 0;
}

.vid-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}