/*
Theme Name: Qwery Child Theme
Theme URI: https://www.ontarioinfrastructure.ca/
Author: Matt Rock
Author URI: https://www.lester.ca/
Version: 1.1
Text Domain: qwery
Template: qwery
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

:root {
	
	--orba-red: #ec1d2e;
	--orba-dark: #0c0f26; 
	--black: #272525;
	--white: #fff;
	--grey: #e0e9ed;
	--dark-grey: #868686;
	--med-grey: #bababa;
	--light-grey: #e9f0f2;
	--lighter-grey: #f6f6f6;
	
}

/*

1. MISC/CONTENT BLOCKS
   - MISC
   - BLOCK/PULLQUOTES
   - ASIDES
2. WIDGETS
3. FORMS
4. POSTS/LAYOUT/CONTENT

*/


/* 
############################

1. MISC/CONTENT BLOCKS

############################
*/

.menu_hover_zoom_line .sc_layouts_menu_nav > li:not(.menu-collapse) > a::after { background-color: #ffffff; }
.menu_footer_nav_area > ul > li, .footer_wrap .sc_layouts_menu > ul > li { font-size: 16px; }
.scroll_to_top_style_default:hover { background-color: var(--orba-red); }
.scroll_progress_wrap .scroll_progress_status { background-color: var(--orba-red); }

article.post_item_single .post_content_single a { border-bottom: 1px solid var(--dark-grey) ; }
article.post_item_single .post_content_single a:hover { border-bottom: 1px solid transparent ; }

.post_content figure figcaption, 
.post_content .wp-block-image figcaption,
.post_content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { font-size: 80%; opacity: .8; }

.post_content_single ul[class*="wp-block-"], 
.post_content_single ol[class*="wp-block-"] { margin-bottom: var(--theme-font-p_margin-bottom); }

.wp-block-separator { border-top: 1px solid var(--med-grey); }
.sc_layouts_panel .sc_button { font-size: 20px; padding: 16px 28px; }

@media (max-width: 1279px) {
  .menu_mobile a.sc_layouts_logo img { max-height: 50px; } 
  .search_modern .search_header_wrap .logo_image { max-height: 60px; } 
  .wp-block-image.alignfull img, 
  .wp-block-image.alignwide img { margin-top: 1em; }
  .wp-block-gallery.has-nested-images figure.wp-block-image img { margin-top: .5em; }
}

/* BLOCKQUOTES */

.blog_mode_post blockquote, 
.blog_mode_page blockquote,
.wp-block-pullquote { 
  max-width: none; 
  font-family: var(--theme-font-h5_font-family);
}

blockquote[class*="wp-block-quote"][class*="is-"]::before, 
.wp-block-quote:not(.is-large):not(.is-style-large)::before, 
.wp-block-quote.is-large:not(.is-style-plain)::before, 
.wp-block-quote.is-style-large:not(.is-style-plain)::before {
  content: "\e9a1";
  display: block;
  font-family: "fontello";
  font-size: 22px;
  margin: 0 0 .8em;
}

blockquote.wp-block-quote:not(.is-style-plain, .trx_addons_blockquote_style_1, .trx_addons_blockquote_style_2) { border-left: 2px solid var(--orba-red); }
.wp-block-quote:not(.is-style-plain, .trx_addons_blockquote_style_1)::before { color: var(--orba-red); }
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > cite::before { background-color: var(--orba-red); }

.post_content blockquote > cite, 
.post_content blockquote > p > cite, 
.post_content blockquote > .wp-block-pullquote__citation, 
.post_content .wp-block-quote .wp-block-quote__citation { margin-top: 1.35em; }

.post_content blockquote > cite, blockquote > p > cite, 
.post_content blockquote > .wp-block-pullquote__citation, .wp-block-quote .wp-block-quote__citation { font-weight: 500; }

.post_content blockquote > a, 
.post_content blockquote > p > a { padding-left: 0; }

/* DEFAULT (DARK) */

/*.wp-block-pullquote blockquote,
blockquote.wp-block-quote:not(.is-style-plain, .trx_addons_blockquote_style_1, .trx_addons_blockquote_style_2) { border-left: 2px solid var(--theme-color-alter_dark); }
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > cite::before { background-color: var(--theme-color-alter_dark); }
*/

body.scheme_light blockquote.wp-block-quote.is-style-plain { 
  color: var(--grey); 
  border-top: 1px dashed var(--orba-dark);
  border-bottom: 1px dashed var(--orba-dark); 
}

/* ORBA DARK */
blockquote.trx_addons_blockquote_style_1 { border-left: 2px solid var(--orba-dark); }
blockquote.trx_addons_blockquote_style_1::before, 
blockquote.trx_addons_blockquote_style_1 a, 
blockquote.trx_addons_blockquote_style_1 cite { color: var(--orba-dark); }
blockquote.trx_addons_blockquote_style_1 a::before, 
blockquote.trx_addons_blockquote_style_1 cite::before { background-color: var(--orba-dark); }

/* ORBA RED */
blockquote.trx_addons_blockquote_style_2 { border-left: 2px solid var(--orba-red); }
blockquote.trx_addons_blockquote_style_2::before, 
blockquote.trx_addons_blockquote_style_2 a { color: var(--orba-red); }
blockquote.trx_addons_blockquote_style_2 a::before, 
blockquote.trx_addons_blockquote_style_2 cite { color: var(--orba-dark); }
blockquote.trx_addons_blockquote_style_2 cite::before { background-color: var(--orba-red); }


figure:not(.has-background) > blockquote:not(.has-background):not(.is-style-plain) { background-color: transparent; }
blockquote p,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) p { 
  font-size: 24px;
  line-height: 36px;
  font-style: italic;
  color: var(--theme-color-text_dark) !important;
}

/* PULLQUOTE */

.wp-block-pullquote blockquote { border-top: 1px dashed var(--orba-dark); border-bottom: 1px dashed var(--orba-dark); }
.wp-block-pullquote blockquote > cite::before { background-color: var(--orba-dark) !important; }

/* pullquote if preceding block with drop cap */
figure.wp-block-pullquote:has( + p.has-drop-cap) { margin-top: 0; margin-bottom: 2.5em; }
figure.wp-block-pullquote:has( + p.has-drop-cap) blockquote { padding: 2.75em 4.75em; }
figure:not(.has-text-color).wp-block-pullquote:has( + p.has-drop-cap) > blockquote:not(.has-text-color):not(.is-style-plain) p { color: var(--theme-color-text) !important; }

@media (min-width: 1280px) {
  .blog_mode_post blockquote, 
  .blog_mode_page blockquote { margin: 2em -4em; }
  .wp-block-pullquote { margin: 2em -2.5em; }
  .wp-block-pullquote blockquote { padding: 3em 4em; }
  blockquote { padding: 2.75em 7.9em; }

  blockquote[class*="wp-block-quote"][class*="is-"], 
  .wp-block-quote:not(.is-large):not(.is-style-large), 
  .wp-block-quote.is-large:not(.is-style-plain), 
  .wp-block-quote.is-style-large:not(.is-style-plain) { padding: 4em 6em; }
}
@media (max-width: 1279px) {
  .post_content blockquote p { font-size: 20px; line-height: 1.6; }
  .post_content blockquote > cite, blockquote > p > cite, 
  .post_content blockquote > .wp-block-pullquote__citation, .wp-block-quote .wp-block-quote__citation { line-height: 1.3; }
  .wp-block-pullquote { margin: 2em -1em; }
}

@media (max-width: 1023px) {
  .post_content figure:not(.wp-block-pullquote) blockquote, 
  .post_content blockquote[class*="wp-block-quote"][class*="is-"], 
  .post_content .wp-block-quote:not(.is-large):not(.is-style-large), 
  .post_content .wp-block-quote.is-large:not(.is-style-plain), 
  .post_content .wp-block-quote.is-style-large:not(.is-style-plain), 
  .post_content .wp-block-freeform.block-library-rich-text__tinymce blockquote { margin: 2em -2em; padding: 3em 4em; }
  .post_content figure:not(.wp-block-pullquote) blockquote { padding: 3em; }
  .post_content .wp-block-pullquote { margin: 2em -1em; }
  blockquote p, 
  figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) p { font-size: 22px; line-height: 1.5; }
}

@media (max-width: 479px) {
  .post_content blockquote,
  figure.wp-block-pullquote:has(+ p.has-drop-cap) blockquote { padding: 2.5em; }
}

/* ASIDES */

.wp-block-lazyblock-author { 
  font-family: var(--theme-font-h1_font-family); 
  font-size: 14px; 
  margin-bottom: 4em; 
  text-align: center; 
}
.wp-block-lazyblock-author p:last-of-type { margin-bottom: 0; }
article.post_item_single .post_content_single .wp-block-lazyblock-author a { color: inherit; border-bottom: 1px solid #d4d4d4; }
article.post_item_single .post_content_single .wp-block-lazyblock-author a:hover { color: var(--orba-dark); border-bottom: 1px solid var(--orba-dark); }

.wp-block-lazyblock-footnote { 
  font-size: 16px;
  font-family: var(--theme-font-h1_font-family); 
  font-style: italic;
  line-height: 1.4;
  margin-top: var(--sc-space-small);
  padding: .7em 1.7em;
  border-left: 2px solid var(--dark-grey);
  background: var(--lighter-grey);

}

.xwp-block-lazyblock-footnote /* alt */ { 
  font-family: var(--theme-font-h1_font-family); 
  font-style: italic;
  margin-top: var(--sc-space-small);
  padding: .4em var(--sc-space-small);
  border-left: 2px solid var(--orba-dark);
  background: var(--lighter-grey);
}
.wp-block-lazyblock-footnote p:last-of-type { margin-bottom: 0; }



/* 
############################

2. WIDGETS

############################
*/


/* ThemeREX Blogger */

.sc_blogger_item_default.sc_blogger_item_image_position_left .sc_blogger_item_body {
  -webkit-align-items: normal;
  -ms-flex-align: normal;
  align-items: normal;
}

.widget .widget_title { 
  font-size: 26px;
  padding-bottom: .5em;
  margin-bottom: 1em;
  border-bottom: 1px solid var(--theme-color-bd_color); 
}
.sc_blogger_item_default.sc_blogger_item_image_position_left .sc_blogger_item_content, 
.sc_blogger_item_default.sc_blogger_item_image_position_alter.sc_blogger_item_odd .sc_blogger_item_content { padding-left: 1em; }
.widget .upfront .sc_blogger_item_title { 
  font-size: 20px; 
  line-height: 1.3; 
  margin-top: 8px; 
}
.widget .upfront .post_meta { margin-bottom: 0 ; }
.sc_blogger_default.sc_blogger_default_classic_simple .sc_blogger_content .sc_blogger_item_default + .sc_blogger_item_default { margin-top: 1.5em; }

/* TREX Social Icons */
.sc_layouts_panel .sc_layouts_panel_inner .sc_socials.sc_socials_default .socials_wrap .social_item .social_icon { border-radius: 50%; }
.sc_layouts_panel .sc_socials.sc_socials_default .socials_wrap .social_item:hover .social_icon { color: white !important; }
.sc_layouts_panel .sc_socials.sc_socials_default.modern .socials_wrap .social_item:hover .social_icon { background-color: var(--orba-red); }

[class*="scheme_"].sidebar .sc_layouts_row_type_compact .socials_wrap .social_item:hover .social_icon, 
[class*="scheme_"].footer_wrap .sc_layouts_row_type_compact .socials_wrap .social_item:hover .social_icon { color: var(--orba-red) !important; }

/* filter */
.sc_item_filters_align_left { border-bottom: none; padding-bottom: 0; }
.sc_item_filters_align_left .sc_item_filters_tabs { justify-content: center; max-width: 90%; margin: 0 auto !important; }


@media (max-width: 1279px) {
  .related_wrap .post_categories { font-size: 12px; }
}


/* 
############################

3. FORMS

############################
*/


/* Contact Form 7 */
.subscription-checkboxes { margin-bottom: 2em ;}
.wpcf7 .wpcf7-form span.wpcf7-not-valid-tip { color: var(--orba-red) !important; }

.wpcf7 form .wpcf7-form  .trx_addons_message_box.wpcf7-response-output.trx_addons_message_box_error, 
.wpcf7 form .wpcf7-form  .trx_addons_message_box.wpcf7-response-output.wpcf7-validation-errors, 
.wpcf7 form .wpcf7-form  .trx_addons_message_box.wpcf7-response-output.wpcf7-acceptance-missing, 
.wpcf7 .wpcf7-form  div.wpcf7-response-output.trx_addons_message_box_error, 
.wpcf7 .wpcf7-form  div.wpcf7-response-output.wpcf7-validation-errors, 
.wpcf7 .wpcf7-form  div.wpcf7-response-output.wpcf7-acceptance-missing,
.wpcf7 .wpcf7-form .wpcf7-not-valid { border-color: var(--orba-red) !important; }

.trx_addons_message_box.trx_addons_message_box_error { background-color: var(--orba-red) }

footer .wpcf7 input::placeholder,
footer .wpcf7 p,
footer .wpcf7 .wpcf7-form-control-wrap[data-name*="acceptance"],
footer .wpcf7 .wpcf7-form-control-wrap.acceptance { text-align: center; }
footer .wpcf7 .columns_wrap { margin-bottom: 2em; }



/* 
############################

4. POSTS/LAYOUT/CONTENT

############################
*/

.post_header_wrap_style_style-3 .post_header .post_meta_categories { margin-bottom: 2em; }

.post_content_single .has-drop-cap:not(:focus)::first-letter { font-size: 2.9em; margin: 7px 14px 0 0; }
.has-drop-cap:not(:focus)::first-line { color: #0c0f26; font-weight: 600; }
.post_content.post_content_single.entry-content .has-drop-cap {
  font-size: 1.6em;
  initial-letter: 2;
  line-height: 1.4;
  font-family: var(--theme-font-h1_font-family);
  letter-spacing: normal;
}
p + p.has-drop-cap { margin-top: var(--theme-font-p_margin-bottom); }
.post_content_single.entry-content h2 + p::first-line { color: #0c0f26; font-weight: 500; }

.post_layout_band .post_content_wrap .post_meta_item.post_categories a { font-size: 10px; }

@media (max-width: 1279px) {
  .post_header_wrap_style_style-3 .post_header.post_header_single .post_meta_categories { margin-bottom: 1em; }
  .posts_container .post_layout_band .post_content_wrap .post_category { margin-bottom: 1em; }
  .post_header_wrap_style_style-3 .post_header.post_header_single .content_wrap,
  .single_style_style-3 .content_wrap .post_content_single { padding: 25px; } /* Match content width in header */
  .post_header_wrap_style_style-3 .post_header.post_header_single .content_wrap { padding-top: 40px; }
  .single_style_style-3 .content_wrap .post_content_single { padding-top: 0; }
  .post_content.post_content_single.entry-content .has-drop-cap { font-size: 1.4em; }
  h1, h2, h3, h4, h5, h6 { -ms-hyphens: inherit !important; hyphens: inherit !important; }
}

@media (max-width: 767px) {
  .post_header_wrap_style_style-3 .post_header .post_subtitle { font-size: 1.1em; line-height: 1.2; }
}