/* Site overrides, loaded after the theme's stylesheets (see customCSS in hugo.yaml). */

/* The theme's #hero { min-height: 100vh } leaves a large blank band before the
   About section now that the hero copy is short. Let the hero size to its
   content on desktop instead. */
@media (min-width: 992px) {
    #hero {
        min-height: auto;
    }

    /* Hide the hero profile picture (the right-hand image column) on desktop. */
    #hero .col-lg-4 {
        display: none;
    }
}

/* ~22 migrated WordPress posts carry <p style="white-space: pre-wrap">, which
   preserves the raw HTML's newlines and indentation as visible whitespace.
   Neutralize the inline style. */
article.page-content p {
    white-space: normal !important;
}

/* The migrated markup also nests <p> inside <li>, which adds full paragraph
   margins to each bullet. */
article.page-content li > p {
    margin-bottom: 0.25rem;
}

/* The theme uses list-style-position: inside, which strands the bullet marker
   on its own line when the <li> starts with a block <p> (migrated markup).
   Keep markers in the gutter so text sits beside them. */
#single .page-content ol,
#single .page-content ul {
    list-style-position: outside;
}

/* Buttons inside post content, matching the hero button (the theme scopes its
   .btn styling to #hero only). */
a.btn.content-btn {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.7rem 1.75rem;
    border: 1px solid var(--primary-color);
    color: var(--text-color) !important;
    border-radius: .75rem;
}
