/*
Shared refinements for every Theme Style - hibbittsdesign.org
Dark Mode colours for these are in each theme-*-dark.css file.
*/

/* Slim header image (Theme option: Header Image Height) */
.myheader.myheader-slim {
    height: 140px;
}

@media (max-width: 960px) {
    .myheader.myheader-slim {
        height: 110px;
    }
}

/* On phones, a slim header image is left out, so the page starts with the NavBar */
@media (max-width: 576px) {
    .myheader.myheader-slim {
        display: none;
    }
}

/* Current page in the NavBar */
.navbar .nav-item.current > .nav-link {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Sidebar headings a step quieter than page headings */
.blog-sidebar h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

/* Weekly (blog post) headings in the text colour, with an underline on hover, like the course cards */
.list-blog-header h1 a,
.list-blog-header h2 a {
    color: inherit;
    text-decoration: none;
}

.list-blog-header h1 a:hover,
.list-blog-header h1 a:focus,
.list-blog-header h2 a:hover,
.list-blog-header h2 a:focus {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* "View all of …" links with the course cards' arrow */
.continue-link-arrow {
    margin-left: 0.25rem;
    transition: margin-left 0.2s ease;
}

a:hover > .continue-link-arrow,
a:focus > .continue-link-arrow {
    margin-left: 0.45rem;
}

/* Soft badges (for example the date badges in reminders, and Default course card badges) */
.badge.badge-secondary {
    background-color: rgba(108, 117, 125, 0.16);
    color: #374151;
    font-weight: 600;
}

/* Friendlier "page not found" page */
.error-page {
    max-width: 36rem;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    text-align: center;
}

.error-page .error-code {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
}

.error-page .error-search {
    max-width: 24rem;
    margin: 1.5rem auto 0;
}

/* [references] shortcode - a list of sources under a small heading */
.course-references {
    border-top: 1px solid rgba(127, 127, 127, 0.25);
    padding-top: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.course-references-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

.course-references-body > :last-child {
    margin-bottom: 0;
}

/* [excerpt] shortcode - a quoted passage */
.blockquote.excerpt {
    border-left: 4px solid rgba(127, 127, 127, 0.35);
    padding: 0.25rem 0 0.25rem 1rem;
    font-size: 1.05rem;
}

.blockquote.excerpt > :last-child {
    margin-bottom: 0;
}

/* [topics] shortcode letter headings - a soft label, like the soft badges (corner size set by each Theme Style) */
h2.topics-letter {
    display: inline-block;
    width: auto;
    min-width: 2.25em;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding: 0.2em 0.6em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    background: rgba(108, 117, 125, 0.16);
    color: inherit;
}

