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

/* Star CTA closing every main post, just above the nav arrows */
.star-cta {
    margin-top: 2.5rem;
}

.star-cta p {
    margin-bottom: 0.75rem;
}

.star-cta img {
    display: block;
}

/* Brand logos inside the post footer links ([Comment] [Subscribe]);
   the mask paints each one in the link color. */
.link-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: var(--links);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.reddit-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z'/%3E%3C/svg%3E"); }
.mail-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); }
