/* 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. */
.archive-banner {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(111, 66, 193, 0.5);
    border-radius: 12px;
    background: rgba(111, 66, 193, 0.08);
    box-shadow: 0 4px 28px rgba(111, 66, 193, 0.15);
}

/* 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;
}

.archive-banner-brand {
    color: var(--hp-ember, #ffb454);
    font-weight: 600;
}

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