html {
    overflow-y: scroll;
}

.jumbotron {
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    background-color: var(--bs-light);
    border-radius: .3rem;  
}

%callout-shared {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    background-color: var(--bd-callout-bg, var(--bs-gray-100));
    border-left: 0.25rem solid var(--bd-callout-border, var(--bs-gray-300))
}

blockquote {
    @extend %callout-shared;
    text-align: center;
}

.callout {
    @extend %callout-shared;
}

.callout-info {
    --bd-callout-bg: rgba(var(--bs-info-rgb), .075);
    --bd-callout-border: rgba(var(--bs-info-rgb), .5)
}

.callout-warning {
    --bd-callout-bg: rgba(var(--bs-warning-rgb), .075);
    --bd-callout-border: rgba(var(--bs-warning-rgb), .5)
}

.callout-danger {
    --bd-callout-bg: rgba(var(--bs-danger-rgb), .075);
    --bd-callout-border: rgba(var(--bs-danger-rgb), .5)
}

.feather {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.feather-big {
    width: 4em;
    height: 4em;
}

// Highlighted code blocks.
//
// Chroma supplies the colours only - with noClasses they arrive as an inline
// style on the <pre> - and Bootstrap's reboot gives pre nothing but display,
// margin and overflow. Without the rules below the code sits hard against the
// edges of its own background, reading as a full-bleed slab rather than a code
// block. Padding has to go on the pre, not the .highlight wrapper, because the
// background colour is on the pre.
//
// The border does the work a dark background used to: the syntax theme is a
// light one, so without it a block would be white on white and have no edge.
.highlight {
    margin-bottom: 1rem;

    pre {
        padding: 1rem;
        margin-bottom: 0;
        border: 1px solid var(--bs-border-color);
        border-radius: var(--bs-border-radius);
    }
}

a /*.feather*/ {
    $twitter-blue: #55acee;
    $github-black: #000;

    .feather-twitter:hover {
        stroke: $twitter-blue;
        fill: $twitter-blue;
    }

    .feather-github:hover {
        stroke: $github-black;
        fill: $github-black;
    }
}

// Static map shortcode.
//
// The anchor wraps nothing but the image, so it has to become a block: left
// inline it sits on a text baseline and leaves a gap under the picture.
// Height is deliberately not set here - how tall the map band should be is a
// decision for the site, not the theme.
.static-map {
    > a {
        display: block;
    }

    img {
        display: block;
        width: 100%;
        // The height attribute is a ratio hint; left fixed, it squashes the
        // portrait mobileImage into the wide image's box.
        height: auto;
    }
}

.static-map-credit {
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    text-align: right;
}
