/*
 * Base layout for salforest-block. Written for this theme to replace the Divi 3.0.23 layout primitives
 * that the ported child CSS (legacy-child.css) builds on. Geometry measured on the old site at 1280px:
 * 32px top bar + 88px header (both fixed in Divi; static here), 80% / 1080px container, 79.125% / 20.875%
 * content/sidebar, 4 footer columns of 20.875% with 5.5% gutters.
 */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Boon300, Thonburi, Tahoma, sans-serif; font-size: 17px; line-height: 1.7em; font-weight: 400; color: #222; background: #fff; -webkit-font-smoothing: antialiased; }
p { padding-bottom: 1em; margin: 0; }
p:last-of-type { padding-bottom: 0; }
h1, h2, h3, h4, h5, h6 { color: #333; padding-bottom: 10px; line-height: 1.3em; font-weight: 500; margin: 0; }
h1 { font-size: 36px; } h2 { font-size: 28px; } h3 { font-size: 24px; } h4 { font-size: 22px; } h5 { font-size: 18px; } h6 { font-size: 16px; }
a { text-decoration: none; color: #19928e; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: disc; padding: 0 0 23px 1em; line-height: 26px; margin: 0; }
ol { list-style: decimal; padding: 0 0 23px 1em; line-height: 26px; margin: 0; }
blockquote { margin: 20px 0 30px; padding-left: 20px; border-left: 5px solid #19928e; }
strong, b { font-weight: bold; }
table { border-collapse: collapse; }
input, textarea, button { font-family: inherit; }
.clearfix::after { content: ""; display: table; clear: both; }
.clear { clear: both; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.alignleft { float: left; margin-right: 15px; } .alignright { float: right; margin-left: 15px; } .aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.sf-header-part, .sf-footer-part { margin: 0 !important; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; position: relative; }

/* ---------------- top bar + header */
#top-header { background-color: #eee; font-size: 12px; line-height: 23px; position: relative; z-index: 100; }
#top-header .container { padding-top: .75em; }
#et-secondary-menu { float: right; }
#et-secondary-nav { list-style: none; margin: 0; padding: 0; line-height: 12px; }
#et-secondary-nav li { display: inline-block; margin-right: 15px; position: relative; }
#et-secondary-nav li:last-child { margin-right: 0; }
#et-secondary-nav a { display: block; font-size: 14px; font-weight: 600; color: #666; padding-bottom: .75em; }
#main-header { position: relative; z-index: 99; width: 100%; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); font-size: 17px; line-height: 23px; font-weight: 500; }
#main-header .container { height: 88px; }
.logo_container { position: absolute; top: 0; left: 0; height: 100%; width: 100%; }
.logo_helper { display: inline-block; height: 100%; vertical-align: middle; width: 0; }
#logo { display: inline-block; vertical-align: middle; max-height: 54%; width: auto; margin-left: 5px; }
#et-top-navigation { float: right; padding-top: 33px; position: relative; z-index: 2; }
#top-menu-nav { float: left; }
#top-menu { list-style: none; margin: 0; padding: 0; line-height: 0; }
#top-menu li { list-style: none; position: relative; font-size: 16px; }
#top-menu > li { display: inline-block; padding-right: 22px; }
#top-menu > li:last-child { padding-right: 0; }
#top-menu a { display: block; position: relative; color: #19928e; font-weight: 600; line-height: 22px; text-decoration: none; }
#top-menu > li > a { padding-bottom: 33px; }
#top-menu .menu-item-has-children > a:first-child { padding-right: 20px; }
#top-menu .menu-item-has-children > a:first-child::after { content: ""; position: absolute; right: 2px; top: 6px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#top-menu .sub-menu .menu-item-has-children > a:first-child::after { right: 22px; top: 12px; transform: rotate(-45deg); }
#top-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 9999; width: 240px; padding: 20px 0; margin: 0; background: #fff; border-top: 3px solid #2ea3f2; box-shadow: 0 2px 5px rgba(0,0,0,.1); line-height: 1.3; text-align: left; font-size: 14px; }
#top-menu .sub-menu .sub-menu { top: -23px; left: 240px; }
#top-menu li:hover > .sub-menu, #top-menu li:focus-within > .sub-menu { display: block; }
#top-menu .sub-menu li { display: block; padding: 0 20px; margin: 0; float: none; }
#top-menu .sub-menu li a { padding: 6px 20px; width: 200px; font-size: 14px; line-height: 1.3; color: #19928e; }
#top-menu .sub-menu li a:hover { background: rgba(0,0,0,.03); opacity: .7; }
#et_top_search { float: right; margin: 3px 0 0 22px; position: relative; display: block; width: 18px; }
#et_search_icon { display: block; width: 16px; height: 16px; padding: 0; border: 0; cursor: pointer; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='5' fill='none' stroke='%23222' stroke-width='1.6'/%3E%3Cpath d='M10.3 10.3 15 15' stroke='%23222' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / 15px 15px; }
.et_search_outer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.et_search_form_container { height: 100%; opacity: 0; transition: opacity .3s; background: #fff; pointer-events: none; }
.sf-search-open .et_search_form_container { opacity: 1; pointer-events: auto; }
.et-search-form { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; }
.et-search-field { width: 100%; border: 0; font-size: 20px; padding: 0; background: transparent; color: #333; outline: none; }
.et_close_search_field { position: absolute; right: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; cursor: pointer; }
.et_close_search_field::before, .et_close_search_field::after { content: ""; position: absolute; top: 9px; left: 0; width: 20px; height: 2px; background: #222; transform: rotate(45deg); }
.et_close_search_field::after { transform: rotate(-45deg); }
.sf-menu-toggle { display: none; }

/* ---------------- content */
#main-content { background: #fff; }
#main-content .container { padding-top: 58px; }
.et_right_sidebar #main-content .container::before { content: ""; position: absolute; top: 0; right: 20.875%; height: 100%; width: 1px; background: #e2e2e2; }
#content-area::after { content: ""; display: table; clear: both; }
#left-area { width: 79.125%; padding-bottom: 23px; float: left; padding-right: 5.5%; }
#sidebar { float: right; width: 20.875%; padding-left: 30px; padding-bottom: 28px; }
.et_pb_post { margin-bottom: 60px; word-wrap: break-word; }
.et_post_meta_wrapper h1 { padding-bottom: 10px; }
#left-area .post-meta, .post-meta { font-size: 15px; margin-bottom: 6px; padding-bottom: 15px; }
.post-meta a { color: #19928e; }
.single .et_pb_post { margin-bottom: 27px; }
h1.main_title { padding-bottom: 10px; margin-bottom: 20px; }
.entry-content table { width: 100%; border: 1px solid #eee; margin: 0 0 15px; text-align: left; }
.entry-content td, .entry-content th { padding: 6px 24px; border-top: 1px solid #eee; }
#content-area table tr, #content-area table td, #content-area table th { max-width: 100px; padding: .857em .587em; } /* Divi */
.single-tag { margin-top: 30px; font-size: 13.6px; }
.not_found .entry h1 { padding-bottom: 10px; }
.page-title { font-size: 36px; padding-bottom: 30px; }
.entry-right-column h2 { font-size: 26px; line-height: 32px; padding-bottom: 0; }
.entry-date { font-size: 13px; color: #777; }
.wp-pagenavi { border-top: 1px solid #e2e2e2; padding-top: 13px; margin-bottom: 30px; }
.wp-pagenavi a, .wp-pagenavi span { padding: 3px 5px; margin: 2px; border: 1px solid #bfbfbf; text-decoration: none; display: inline-block; line-height: 1.4; }
.wp-pagenavi span.current { font-weight: bold; border-color: #000; }
.wp-pagenavi span.pages, .wp-pagenavi span.extend { border: 0; }

/* sidebar widgets */
.et_pb_widget { margin: 0 0 20px; padding-bottom: 20px; float: none; width: 100%; word-wrap: break-word; }
#sidebar .et_pb_widget { border-bottom: 1px solid #d8d8d8; }
.et_pb_widget h4.widgettitle { font-family: RSURegular, Thonburi, sans-serif; font-size: 22px; line-height: 1.3; padding-bottom: 10px; }
.et_pb_widget ul { list-style: none; padding: 0; margin: 0; line-height: inherit; }
.et_pb_widget ul li { margin-bottom: .5em; }
.et_pb_widget_area_left { border-right: 1px solid rgba(0,0,0,.1); padding-right: 30px; }
.et_pb_widget_area_right { border-left: 1px solid rgba(0,0,0,.1); padding-left: 30px; }
.et_pb_widget_area .et_pb_widget { font-size: 17px; line-height: 28.9px; border: 0; padding: 0; }
.widget_authors img.avatar { vertical-align: middle; margin: 0 6px 0 0; }
.mks_author_widget { text-align: center; }
.mks_author_widget img.avatar { border-radius: 50%; display: block; margin: 0 auto 10px; }

/* ---------------- footer */
#main-footer { background-color: #19928e; border-top: 1px solid #eee; font-size: 15px; line-height: 20px; color: #fff; }
#footer-widgets { padding: 6% 0 0; }
#footer-widgets .footer-widget { float: left; width: 20.875%; margin: 0 5.5% 5.5% 0; color: #fff; }
#footer-widgets .footer-widget:nth-child(4n), #footer-widgets .footer-widget.last { margin-right: 0; }
#footer-widgets .footer-widget a { color: #fff; }
#footer-widgets h4.title { font-family: RSURegular, Thonburi, sans-serif; font-size: 22px; line-height: 1.3; color: #fff; padding-bottom: 10px; }
#footer-widgets .fwidget { margin-bottom: 40px; padding: 0; font-size: 15px; line-height: 20px; }
#footer-widgets .fwidget:last-child { margin-bottom: 0; }

/* Divi epanel [button] shortcode, own styles */
a.small-button, a.big-button, a.icon-button { display: inline-block; border-radius: 10px; line-height: 26px; padding: 6px 14px; font-weight: bold; font-size: 12px; margin: 0 5px 8px 0; color: #595a5a; background: linear-gradient(to bottom, #f5f5f5 0%, #e1e1e1 100%); border: 1px solid #c3c3c3; box-shadow: inset 0 1px 0 0 rgba(255,255,255,.9), 1px 1px 1px rgba(0,0,0,.1); }
a.icon-button { padding-left: 36px; position: relative; }
a.icon-button span.et-icon { position: absolute; top: 11px; left: 12px; width: 13px; height: 15px; border: 1.5px solid #888; border-radius: 1px; background: linear-gradient(#888, #888) 2px 3px / 7px 1px no-repeat, linear-gradient(#888, #888) 2px 6px / 7px 1px no-repeat, linear-gradient(#888, #888) 2px 9px / 5px 1px no-repeat; }

/* ---------------- responsive */
@media (max-width: 980px) {
	#top-header { display: none; }
	.container { width: 80%; }
	#left-area, #sidebar { width: 100%; float: none; padding: 0; }
	#sidebar { margin-top: 30px; }
	.et_right_sidebar #main-content .container::before { display: none; }
	#main-header .container { height: 80px; }
	#et-top-navigation { padding-top: 24px; }
	#top-menu-nav, #et_top_search { display: none; }
	.sf-menu-toggle { display: block; width: 32px; height: 32px; background: transparent; border: 0; cursor: pointer; padding: 0; }
	.sf-menu-toggle::before { content: "\2630"; color: #19928e; font-size: 28px; line-height: 32px; }
	.sf-menu-open #top-menu-nav { display: block; position: absolute; top: 56px; right: 0; width: 80vw; max-width: 400px; background: #fff; border-top: 3px solid #2ea3f2; box-shadow: 0 2px 5px rgba(0,0,0,.1); padding: 5%; z-index: 999; }
	.sf-menu-open #top-menu { line-height: 1.5; }
	.sf-menu-open #top-menu > li { display: block; padding: 0; }
	.sf-menu-open #top-menu a { padding: 8px 0 !important; }
	.sf-menu-open #top-menu .menu-item-has-children > a:first-child::after { display: none; }
	.sf-menu-open #top-menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 1em; width: auto; }
	.sf-menu-open #top-menu .sub-menu li { padding: 0; }
	.sf-menu-open #top-menu .sub-menu li a { width: auto; padding: 6px 0 !important; }
	#footer-widgets .footer-widget { width: 47.25%; }
	#footer-widgets .footer-widget:nth-child(2n) { margin-right: 0; }
}
@media (max-width: 600px) {
	.container { width: 90%; }
	#footer-widgets .footer-widget { width: 100%; margin-right: 0; float: none; }
}
.single .post { padding-bottom: 25px; }
.et_pb_widget_area.d2b-lh li { line-height: var(--d2b-lh); }
