/*override margins set by design system*/
/* reset bottom margin for last child paragraph */
p:last-child {
    margin-bottom: 18px;
}

/* only remove bottom margin for last direct child of a container */
.container-sm > p:last-child {
    margin-bottom: 0;
}

/* override showing nav placeholder in header as search isn't using a header nav at all */
nav#header-nav {
    display: none;
}

/* limit size of images in rendered HTML content */
img {
    max-width: 100%;
}

/* override design system headings */
h1, h2, h3, h4, h5, h6 {
    max-width: 100%;
}

h1 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* prevent long lines (usually urls) */
.wrap-anywhere, .reading-width {
    overflow-wrap: anywhere;
}

/* Styling for blockquotes */

blockquote {
    position: relative;
    margin: 1rem;
    padding-left: 2rem;
    font-size: 1.25rem;
}

blockquote::before {
    content: open-quote;
    position: absolute;
    left: 0.5rem;
    top: -0.1rem;
    font-size: 3rem;
    line-height: 1;
    color: #717171;
}

blockquote p:last-of-type:after {
    content: close-quote;
    color: #717171;
}