/**
 * NatureDoc Com Styles: sitewide styles.
 *
 * Sections
 * 1. Base: weight, links, images, checkboxes
 * 2. Header and navigation (BuddyBoss)
 * 3. Headings and post content (posts and LearnDash)
 * 4. Components: content box, testimonials, headlines, flex row
 * 5. Widgets
 * 6. Media and embeds
 * 7. Recipes (WP Recipe Maker)
 *
 * Gravity Forms rules are in ndcst-forms.css. Quote blocks are in
 * ndcst-quotes.css.
 */

/* 1. Base
---------------------------------------------------------------- */

strong {
	font-weight: 600;
}

p a {
	color: #3072c6;
}

a:hover {
	text-decoration: underline;
}

/* Rounds every image to match the rounded image containers. */
img {
	border-radius: 10px;
}

/* Sitewide, so it stays here rather than in the forms file. */
input[type="checkbox"] {
	accent-color: var(--bb-primary-color);
}

/* 2. Header and navigation (BuddyBoss)
---------------------------------------------------------------- */

.bb-template-v2 .site-header #primary-navbar .menu-item > .ab-submenu .bb-sub-menu .menu-item a:hover {
	background: #daf1f3;
}

.bb-template-v2 .site-header #primary-navbar .menu-item a:hover {
	color: #576d9e;
}

/* Hover colour of the top-level menu items. */
.bb-template-v2 .primary-menu > li:hover > a {
	position: relative;
	color: #576d9e;
}

.bb-template-v2 .primary-menu > li:hover > a::before {
	height: 32px;
}

.menu-style-standard .primary-menu .menu-item-has-children:hover:not(.hideshow)::after {
	color: var(--bb-primary-color);
}

/* User name in the header: grey rather than white. */
.bb-template-v2 .site-header .user-wrap.menu-item-has-children .user-link .user-name {
	color: #51585a;
}

/* Header buttons when logged out. */
.bb-header-buttons .button.outline:hover {
	color: #d6d9dd !important;
}

/* Header search bar in the primary colour. */
input.search-field-top.ui-autocomplete-input {
	background: #576d9e;
}

/* 3. Headings and post content
---------------------------------------------------------------- */

.entry-title {
	font-size: 40px;
	margin-top: 20px;
	line-height: 1.5;
}

h1 {
	margin-top: 40px;
	line-height: 1.2;
}

.single-post .entry-content p {
	font-size: 17px;
	line-height: 18pt;
	margin-bottom: 13px;
}

/* Banded h2 and tight h4, shared by blog posts and LearnDash content. */
.single-post .entry-content h2,
body.single-sfwd-courses .learndash-wrapper .ld-tab-content h2,
body.single-sfwd-lessons .learndash-wrapper .ld-tab-content h2,
body.single-sfwd-topic .learndash-wrapper .ld-tab-content h2,
body.single-sfwd-quiz .learndash-wrapper .ld-tab-content h2 {
	background-color: #576d9e;
	color: #fff;
	font-family: 'Source Sans Pro';
	font-size: 20px;
	padding-left: 15px;
	padding-top: 6px;
	padding-bottom: 7px;
	margin-bottom: 10px;
	margin-top: 20px;
	border-radius: 5px;
}

.single-post .entry-content h4,
body.single-sfwd-courses .learndash-wrapper .ld-tab-content h4,
body.single-sfwd-lessons .learndash-wrapper .ld-tab-content h4,
body.single-sfwd-topic .learndash-wrapper .ld-tab-content h4,
body.single-sfwd-quiz .learndash-wrapper .ld-tab-content h4 {
	margin-bottom: 0;
	font-weight: 600;
}

/* Space between an h2 band and a following quote box or other block.
   Margins collapse with the h2's 10px bottom margin, so this is the gap. */
.single-post .entry-content h2 + :not(p, ul, ol),
body.single-sfwd-courses .learndash-wrapper .ld-tab-content h2 + :not(p, ul, ol),
body.single-sfwd-lessons .learndash-wrapper .ld-tab-content h2 + :not(p, ul, ol),
body.single-sfwd-topic .learndash-wrapper .ld-tab-content h2 + :not(p, ul, ol),
body.single-sfwd-quiz .learndash-wrapper .ld-tab-content h2 + :not(p, ul, ol) {
	margin-top: 20px;
}

/* Space between an h4 and a following quote box or other block. */
.single-post .entry-content h4 + :not(p, ul, ol),
body.single-sfwd-courses .learndash-wrapper .ld-tab-content h4 + :not(p, ul, ol),
body.single-sfwd-lessons .learndash-wrapper .ld-tab-content h4 + :not(p, ul, ol),
body.single-sfwd-topic .learndash-wrapper .ld-tab-content h4 + :not(p, ul, ol),
body.single-sfwd-quiz .learndash-wrapper .ld-tab-content h4 + :not(p, ul, ol) {
	margin-top: 12px;
}

/* Featured images on single posts. */
body.single-post .entry-content-wrap .entry-img img {
	position: relative;
	border-radius: 7px;
	border: 1px solid #d6d9dd;
}

body.single-post .entry-content-wrap .entry-img,
body.single .post.full-fi figure.entry-img,
body.single .post.full-fi-invert figure.entry-img {
	padding-top: 0;
}

/* Image container radius to match the image radius. */
.bb-template-v2.single .default-fi .entry-img {
	border-radius: 10px;
}

/* 4. Components
---------------------------------------------------------------- */

/* Content box: bordered box with a banded title. */
.box-content {
	border: 2px solid #99216a;
	border-radius: 7px;
	margin: 0 0 20px 0;
	padding: 0;
	overflow: hidden; /* Lets the title band fill to the rounded edges. */
}

.box-content .entry-title {
	display: block;
	padding: 0.5em 1em;
	font-weight: 700;
	font-size: 1.1em;
	background-color: #99216a;
	color: #fff;
	margin: 0;
	border-radius: 0;
}

.box-content .entry-content {
	padding: 1em;
}

/* Testimonials. */
.testi-block img {
	position: absolute;
	top: 30px;
	left: 30px;
}

.testi-block.small-testi img {
	left: 0;
	right: 0;
	margin: auto;
}

/* Practitioner headlines. */
.light-headline {
	color: #fff;
	text-shadow: 0 0 10px rgb(102, 102, 102);
}

.dark-headline {
	color: #505759;
	text-shadow: 0 0 10px rgb(255, 255, 255);
}

/* Two-column flex row. */
.row-flex {
	display: flex;
}

.column-flex {
	flex: 50%;
}

/* 5. Widgets
---------------------------------------------------------------- */

/* Categories widget: compact list with bullets. */
.widget_block .wp-block-categories-list {
	list-style: disc outside;
	padding-left: 1.25em;
	margin: 0;
}

.widget_block .wp-block-categories-list li {
	margin: 0;
	padding: 0;
}

.widget_block .wp-block-categories-list li a {
	padding: 2px 0;
	display: inline-block;
	line-height: 1.4;
}

.widget_block .wp-block-categories-list li::marker {
	color: #576d9e;
}

/* 6. Media and embeds
---------------------------------------------------------------- */

/* Vimeo player in courses: border and rounded corners. */
.vp-center {
	border: 1px solid #d6d9dd;
	border-radius: 10px;
}

/* PDF Embedder border. */
.pdfembed-iframe {
	border: 1px solid #d6d9dd !important;
}

/* 7. Recipes (WP Recipe Maker)
---------------------------------------------------------------- */

/* Ingredient archive spacing. */
#main [class*="wprm_ingredient-"] .entry-content-wrap {
	padding-bottom: 0;
	margin-bottom: -7px;
}
