/* Site customizations layered on top of the copied theme CSS. */

/* Remove the dark divider lines: under the header menu, under the homepage
   featured post, at the bottom of the content area, and in the footer.
   The theme sets these inline with !important, so these selectors are
   prefixed with html body to win on specificity.
   The light grey full-width line under the header (.navbar-wrap, as in the
   original Once theme) is kept. */
html body header .navbar-primary .navbar-container,
html body.home .section-featured-post .cs-container,
html body .site-content .cs-container,
html body footer .cs-container {
	border-bottom: 0 !important;
}

/* Recolor the remaining dark lines to the same light grey as the header line:
   the vertical divider between content and sidebar, the line after widget
   titles ("TRENDING", "You May Also Like"), and the line under category
   page headers. */
html body div.site-content.sidebar-enabled #primary {
	border-right-color: #e9ecef !important;
}
.design-title-right-border .title-block-wrap.title-block-wrap::after,
.title-block-wrap.title-block-wrap.title-block-wrap::after,
.title-block-wrap.title-block-wrap.title-block-wrap::before {
	border-color: #e9ecef !important;
	background: #e9ecef !important;
	background-color: #e9ecef !important;
}
html body.archive.category .page-header-content {
	border-bottom-color: #e9ecef !important;
}

/* Hide the empty light-grey top bar above the header (its only content,
   the subscribe slot, is empty). */
html body .navbar-topbar {
	display: none !important;
}

/* Headlines in black instead of dark red (#710f26): article titles,
   headings inside articles, archive/category page titles, related-posts title. */
body.archive .title-line.title-line,
body.archive .page-title.page-title:not(.entry-title),
body.single .entry-title.entry-title,
body.single .archive-related .title-line.title-line {
	color: #121416 !important;
}
body.single .entry-content .wp-block-heading.wp-block-heading {
	color: #121416 !important;
}

/* Larger footer logo */
footer .site-info .site-title img {
	height: 40px !important;
	width: auto !important;
	max-width: none !important;
}

/* Red labels in grey instead of dark red (#650015): category links in post
   meta ("CEO", "CXO"), "Latest Articles" and "Trending" section titles. */
.post-meta .post-categories.post-categories a,
.post-meta .post-categories.post-categories a:hover {
	color: #6c757d !important;
}
body.home .post-archive.post-archive::before,
body.home .sidebar .title-widget.title-widget,
.title-block-wrap .title-block.title-block {
	color: #6c757d !important;
}

/* Section divider lines on Elementor pages (About Us, Advertise, etc.)
   in the same light grey as the rest of the site. */
.elementor .elementor-element.elementor-element.e-con {
	border-color: #e9ecef !important;
}


/* Dark-red headings on Elementor pages (About Us and others) in the same
   grey as the rest of the site. Generated from the pages' Elementor CSS. */
.elementor-2215.elementor-2215 .elementor-element.elementor-element-8f15074 .elementor-heading-title,
.elementor-2215.elementor-2215 .elementor-element.elementor-element-575fcdb .elementor-heading-title,
.elementor-2215.elementor-2215 .elementor-element.elementor-element-ab53e7a .elementor-heading-title,
.elementor-2215.elementor-2215 .elementor-element.elementor-element-e8f0ed9 .elementor-heading-title,
.elementor-2215.elementor-2215 .elementor-element.elementor-element-1ac47ed .elementor-heading-title,
.elementor-2215.elementor-2215 .elementor-element.elementor-element-88289db .elementor-heading-title,
.elementor-2215.elementor-2215 .elementor-element.elementor-element-a716929 .elementor-heading-title,
.elementor-2215.elementor-2215 .elementor-element.elementor-element-eec5dd1 .elementor-heading-title,
.elementor-2230.elementor-2230 .elementor-element.elementor-element-190f3ad .elementor-heading-title,
.elementor-2230.elementor-2230 .elementor-element.elementor-element-f36ab96 .ui-e-title,
.elementor-2230.elementor-2230 .elementor-element.elementor-element-31c620c .ui-e-title,
.elementor-2230.elementor-2230 .elementor-element.elementor-element-e8ea645 .ui-e-title,
.elementor-2230.elementor-2230 .elementor-element.elementor-element-5e82264 .ui-e-title,
.elementor-2230.elementor-2230 .elementor-element.elementor-element-8bee9cf .ui-e-title,
.elementor-2230.elementor-2230 .elementor-element.elementor-element-f184c5d .ui-e-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-4c2ecfb .elementor-heading-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-8801a75 .elementor-heading-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-03a6151 .elementor-heading-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-5b5c9a0 .elementor-heading-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-7f26a94 .elementor-heading-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-0e0c5f7 .elementor-heading-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-5868c78 .elementor-heading-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-f7ea5dc .elementor-heading-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-8a7a663 .elementor-heading-title,
.elementor-3.elementor-3 .elementor-element.elementor-element-b1a6a5b .elementor-heading-title,
[style*="650015"],
[style*="710f26"] {
	color: #6c757d !important;
}

/* Sidebar: the theme's "stick to bottom" mode pushes the Trending widget
   down and leaves empty space above it while scrolling. Keep it at the top
   of the sidebar instead, and let it stick there as the page scrolls. */
@media (min-width: 1020px) {
	body.sticky-sidebar-enabled.stick-to-bottom .sidebar-area .sidebar-1 {
		margin-top: 0 !important;
		top: 2rem !important;
		bottom: auto !important;
	}
}

/* ---------- Light / dark mode ----------
   Toggle sits next to the header search icon. Dark mode inverts the page's
   colours (so every theme and Elementor section follows), then flips photos,
   video and embeds back so they look normal. The logo stays inverted, which
   turns the black wordmark white. */
.navbar-col:has(> .navbar-toggle-search) { display: flex; align-items: center; gap: 1.25rem; }
.csb-theme-toggle {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px; margin: 0; border: 0; background: none; cursor: pointer;
	color: inherit; line-height: 1; -webkit-appearance: none; appearance: none;
}
.csb-theme-toggle svg { width: 16px; height: 16px; display: block; fill: currentColor; transition: opacity .2s; }
.csb-theme-toggle .csb-switch {
	position: relative; width: 26px; height: 14px; border-radius: 7px; background: currentColor; display: block;
}
.csb-theme-toggle .csb-knob {
	position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%;
	background: #fff; transition: transform .2s ease;
}
.csb-theme-toggle[aria-pressed="true"] .csb-knob { transform: translateX(12px); }
.csb-theme-toggle .csb-sun { opacity: 1; }
.csb-theme-toggle .csb-moon { opacity: .45; }
.csb-theme-toggle[aria-pressed="true"] .csb-sun { opacity: .45; }
.csb-theme-toggle[aria-pressed="true"] .csb-moon { opacity: 1; }
.csb-theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 599px) { .csb-theme-toggle .csb-sun, .csb-theme-toggle .csb-moon { display: none; } }

html[data-theme="dark"] {
	filter: invert(0.92) hue-rotate(180deg);
	background: #fff; /* becomes near-black after the invert */
}
html[data-theme="dark"] img,
html[data-theme="dark"] picture,
html[data-theme="dark"] video,
html[data-theme="dark"] iframe,
html[data-theme="dark"] embed,
html[data-theme="dark"] object,
html[data-theme="dark"] [style*="background-image"] {
	filter: invert(1) hue-rotate(180deg);
}
/* logos: keep them inverted so the black wordmark reads white */
html[data-theme="dark"] .navbar-brand img,
html[data-theme="dark"] .site-title img,
html[data-theme="dark"] .offcanvas-header img,
html[data-theme="dark"] img[src*="c-suite-brief-logo"],
html[data-theme="dark"] img[src*="/2024/10/icon-"] {
	filter: none;
}
@media print { html[data-theme="dark"] { filter: none; } }
/* the theme styles pressed buttons with a solid background; keep the toggle bare */
button.csb-theme-toggle.csb-theme-toggle,
button.csb-theme-toggle.csb-theme-toggle:hover,
button.csb-theme-toggle.csb-theme-toggle:focus,
button.csb-theme-toggle.csb-theme-toggle:active,
button.csb-theme-toggle.csb-theme-toggle[aria-pressed="true"] {
	background: transparent !important; box-shadow: none !important; border: 0 !important; color: inherit !important;
}
/* the theme animates a black fill (::before) into every button on hover */
.site button.csb-theme-toggle::before,
.site button.csb-theme-toggle::after,
.site button.csb-theme-toggle:hover::before {
	display: none !important; content: none !important; width: 0 !important;
}
.site button.csb-theme-toggle.csb-theme-toggle:hover { color: inherit !important; opacity: .75; }

/* Headings for search engines and screen readers only (homepage and archive pages) */
.csb-sr-only {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
	overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Article typography: 16px text with more breathing room (1.7 line height),
   tighter paragraph gaps, and headings that sit with the section they open. */
body.single .entry-content > p,
body.single .entry-content > ul li,
body.single .entry-content > ol li,
body.single .entry-content blockquote p {
	font-size: 16px !important;
	line-height: 1.7 !important;
}
body.single .entry-content > p,
body.single .entry-content > ul,
body.single .entry-content > ol {
	margin: 0 0 1.25em !important;
}
body.single .entry-content > h2 {
	font-size: 26px !important;
	line-height: 1.25 !important;
	margin: 2em 0 .6em !important;
}
body.single .entry-content > h3 {
	font-size: 20px !important;
	line-height: 1.3 !important;
	margin: 1.6em 0 .5em !important;
}
body.single .entry-content .cs-aeo-summary .aeo-text { font-size: 16px !important; line-height: 1.65 !important; }
body.single .entry-content .cs-aeo-faq summary { font-size: 17px !important; }
body.single .entry-content .cs-aeo-faq details p { font-size: 16px !important; line-height: 1.65 !important; }
@media (max-width: 599px) {
	body.single .entry-content > h2 { font-size: 23px !important; }
}

/* ---------- Forms (Contact Us, Submit Your Story, Advertise With Us) ---------- */
/* WordPress's hidden bot-trap fields: hide immediately (the plugin script that
   hid them no longer runs) */
#wpforms-2218-field_4-container, #wpforms-2461-field_2-container {
	position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
}
div.wpforms-container-full .csb-captcha, .csb-captcha {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	max-width: 360px; margin: 1.25rem 0; padding: .85rem 1rem; border: 1px solid #dee2e6; background: #fafafa; font-size: 15px;
}
.csb-form-done ~ * .csb-captcha { display: none; }
.csb-captcha .csb-captcha-check, .csb-captcha .csb-captcha-check:hover, .csb-captcha .csb-captcha-check:focus {
	display: flex !important; align-items: center; gap: .6rem; cursor: pointer; margin: 0 !important; padding: 0 !important;
	font: inherit !important; font-weight: 500 !important; color: #121416 !important; background: none !important; border: 0 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important;
}
.csb-captcha .csb-captcha-check::before, .csb-captcha .csb-captcha-check::after { display: none !important; }
.csb-captcha .csb-captcha-check:focus-visible { outline: 2px solid #121416 !important; outline-offset: 4px; }
div.wpforms-container-full .csb-captcha { border: 1px solid #dee2e6; background: #fafafa; }
div.wpforms-container-full .csb-captcha.done { border-color: #1f8a4c; }
div.wpforms-container-full .csb-captcha-box, .csb-captcha-box { width: 20px; height: 20px; border: 2px solid #6c757d; border-radius: 3px; background: #fff; flex: none; position: relative; }
div.wpforms-container-full .csb-captcha.done .csb-captcha-box { background: #1f8a4c; border-color: #1f8a4c; }
div.wpforms-container-full .csb-captcha.done .csb-captcha-box::after, .csb-captcha.done .csb-captcha-box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.csb-captcha-note { font-size: 12px; color: #6c757d; }
.csb-captcha.busy .csb-captcha-text::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid #ced4da; border-top-color: #121416; border-radius: 50%; animation: csb-spin .8s linear infinite; vertical-align: -1px; }
.csb-captcha.done { border-color: #1f8a4c; }
.csb-captcha.done .csb-captcha-text { color: #1f8a4c !important; }
@keyframes csb-spin { to { transform: rotate(360deg); } }
.csb-form-msg { margin-top: 1rem; font-size: 15px; }
.csb-form-msg.error { color: #c0392b; }
.csb-form-done { border: 1px solid #e9ecef; background: #fafafa; padding: 1.25rem 1.5rem; }
.csb-form-done p { margin: 0; }
#csb-advertise-form { scroll-margin-top: 100px; max-width: 720px; margin: 2.5rem auto 0; text-align: left; }
#csb-advertise-form h2 { font-size: 26px; margin: 0 0 .5rem; }
#csb-advertise-form .csb-lede { color: #6c757d; margin: 0 0 1.5rem; }

/* Form submit buttons in the site's black button style (About page style) */
div.wpforms-container-full .wpforms-form button[type=submit].wpforms-submit,
div.wpforms-container-full .wpforms-form button[type=submit].wpforms-submit:hover,
div.wpforms-container-full .wpforms-form button[type=submit].wpforms-submit:focus {
	background: #121416 !important; color: #fff !important; border: 1px solid #121416 !important; border-radius: 0 !important;
	padding: .75rem 1.6rem !important; font-weight: 500 !important; font-size: .95rem !important; height: auto !important; box-shadow: none !important;
}
div.wpforms-container-full .wpforms-form button[type=submit].wpforms-submit:hover { background: #343a40 !important; }
