/* AN Blog CTA Banner - colors/font matched to the live price calculator
   block (Outfit font, #3100f7 brand blue, #151322 dark bg - see
   an-blog-cta-banner.php header for where these were sourced from). */

/* Article reading font size - user-requested 24px desktop / 18px mobile
   body copy (Salient's own blog template default is smaller). This file
   is already enqueued ONLY on single blog posts (is_single() + post type
   'post' - see an_blog_cta_should_show() in an-blog-cta-banner.php), the
   right scope for this rule too, so it's kept here rather than adding a
   new stylesheet just for one rule. `.content-inner` is the actual body
   copy wrapper inside Salient's `article > .inner-wrap > .post-content`
   structure (confirmed by inspecting the rendered post) - headings/
   blockquotes/lists all inherit from it, not just <p> tags directly.
   !important overrides Salient's own more-specific selectors for p/li
   text size, which otherwise win on specificity. */
article .content-inner {
	font-size: 24px;
	line-height: 1.65;
}
article .content-inner p,
article .content-inner li,
article .content-inner blockquote {
	font-size: 24px !important;
	line-height: 1.65 !important;
}
@media (max-width: 767px) {
	article .content-inner,
	article .content-inner p,
	article .content-inner li,
	article .content-inner blockquote {
		font-size: 18px !important;
		line-height: 1.6 !important;
	}
}

/* H2 section-heading spacing - user-specified exact values (100px above,
   50px below) via devtools, applied here instead of per-heading inline
   styles so it's consistent across every article automatically. */
article .content-inner h2 {
	padding: 100px 0 50px;
}

/* Avatar in the header byline (added by an-blog-header-style.php) */
.meta-author .fn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.meta-author a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.meta-author img.an-byline-avatar {
	width: 28px !important;
	height: 28px !important;
	border-radius: 50%;
	object-fit: cover;
}

/* Fixed bottom CTA banner clearance - without this, the banner (fixed,
   ~70-90px tall depending on viewport) sits on top of whatever is last on
   the page. Confirmed actual page order on a single post: article content
   -> prev/next post nav -> Salient's own "#author-bio" box (separate from
   the compact .author-section byline at the top) -> the native WordPress
   comment form (".comment-wrap", kept - comments are NOT disabled, just
   given room). Padding goes on .comment-wrap since it is the true last
   element before the footer and its own submit button was the one
   actually getting covered. */
.comment-wrap {
	padding-bottom: 90px;
}
@media (max-width: 640px) {
	.comment-wrap {
		padding-bottom: 120px; /* bottom banner wraps to 2 lines on narrow screens - see the font-size media query above */
	}
}

/* Sidebar callout card (rendered by an_blog_cta_sidebar_callout). */
.an-blog-cta-top {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 40px 0 0;
	padding: 28px 24px;
	border: 1px solid #dcdce2;
	border-radius: 20px;
	background: #ffffff;
	color: #151322;
	font-family: Outfit, Arial, Helvetica, sans-serif;
}
.an-blog-cta-top__text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.an-blog-cta-top__text strong {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	color: #151322;
}
.an-blog-cta-top__text span {
	font-size: 15px;
	line-height: 1.5;
	color: #4a4858;
}
.an-blog-cta-top__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}
.an-blog-cta-top .an-blog-cta-btn {
	justify-content: center;
	text-align: center;
	white-space: normal;
	border-radius: 24px;
	padding: 12px 16px;
}
.an-blog-cta-top .an-blog-cta-btn--ghost {
	background: #ffffff;
	color: #000000;
	border: 1px solid #000000;
}

.an-blog-cta-btn {
	justify-content: center;
}

.an-blog-cta-btn {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 11px 20px;
	border-radius: 999px;
	font-family: Outfit, Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.an-blog-cta-btn:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}
.an-blog-cta-btn--primary {
	background: #3452ff;
	color: #ffffff;
}
.an-blog-cta-btn--ghost {
	background: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Fixed bottom banner - starts hidden (the [hidden] attribute set in PHP),
   JS toggles it in once the reader scrolls past the hero, and swaps
   data-stage to change .an-blog-cta-bottom__msg's text per scroll depth. */
.an-blog-cta-bottom {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #151322;
	color: #ffffff;
	font-family: Outfit, Arial, Helvetica, sans-serif;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
	transform: translateY(100%);
	transition: transform 0.35s ease;
}
.an-blog-cta-bottom.is-visible {
	transform: translateY(0);
}
.an-blog-cta-bottom__inner {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px var(--an-align, 20px);
}
.an-blog-cta-bottom__msg {
	flex: 1 1 auto;
	font-size: 15px;
	font-weight: 500;
}
.an-blog-cta-bottom__actions {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
}
.an-blog-cta-bottom__close {
	flex: 0 0 auto;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 6px;
}
.an-blog-cta-bottom__close:hover {
	color: #ffffff;
}

@media (max-width: 640px) {
	.an-blog-cta-bottom__inner {
		flex-wrap: wrap;
		padding: 12px var(--an-align, 16px);
	}
	.an-blog-cta-bottom__msg {
		flex: 1 1 100%;
		font-size: 14px;
	}
	.an-blog-cta-bottom__actions .an-blog-cta-btn {
		padding: 9px 14px;
		font-size: 13px;
	}
}

/* "Chat With Us" row after the comments. Matches the production homepage row
   (#hire-us): flat accent blue #3452ff, thin 90px heading, divider, Upwork link,
   translucent form fields, black "Send" button. Sizes and breakpoints were
   measured on the live page: two columns from 1301px, form stacked under the
   text from 1300px down, text centered from 1000px down. Left edge follows the
   article text edge (--an-align, set by an-blog-cta-banner.js). */
.an-blog-hire-us {
	background: #3452ff;
	color: #ffffff;
	font-family: Outfit, Arial, Helvetica, sans-serif;
	padding: 250px var(--an-align, 20px);
}
.an-blog-hire-us__inner {
	margin: 0;
}
.an-blog-hire-us__form {
	padding: 40px 4% 0;
}
.an-blog-hire-us .an-hire-title {
	margin: 0 0 7px;
	font-size: 67.5px;
	line-height: 73.5px;
	font-weight: 100;
	text-transform: none;
	color: #ffffff !important;
}
.an-blog-hire-us .an-hire-sub {
	margin: 0;
	font-size: 20.4px;
	line-height: 26.5px;
	font-weight: 500;
	text-transform: capitalize;
	color: #ffffff !important;
}
.an-blog-hire-us .an-hire-divider {
	width: 120px;
	height: 3px;
	margin: 60px 0;
	background: rgba(255, 255, 255, 0.6);
}
.an-blog-hire-us .an-hire-body {
	margin: 0;
	font-size: 16px !important;
	line-height: 30px !important;
	font-weight: 400;
	color: #ffffff !important;
}
.an-blog-hire-us .an-hire-cta {
	display: inline-block;
	margin-top: 20px;
	font-size: 16px;
	line-height: 30px;
	color: #ffffff !important;
	text-decoration: none;
}
.an-blog-hire-us .an-hire-cta__arrow {
	display: inline-block;
	position: relative;
	width: 26px;
	height: 26px;
	margin-left: 10px;
	border: 1px solid #ffffff;
	border-radius: 50%;
	vertical-align: middle;
}
.an-blog-hire-us .an-hire-cta__arrow::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	border-top: 1.5px solid #ffffff;
	border-right: 1.5px solid #ffffff;
	transform: translate(-65%, -50%) rotate(45deg);
}
.an-blog-hire-us .an-hire-mail {
	margin: 28px 0 0;
	font-size: 16px !important;
	line-height: 20px !important;
	color: #ffffff !important;
}
.an-blog-hire-us .an-hire-mail a {
	color: #ffffff !important;
	text-decoration: none;
}
.an-blog-hire-us form p {
	margin: 0;
}
.an-blog-hire-us label {
	display: block;
	font-size: 20px !important;
	line-height: 1.4;
	font-weight: 500;
	color: #ffffff !important;
}
.an-blog-hire-us input[type="email"],
.an-blog-hire-us input[type="text"],
.an-blog-hire-us textarea {
	display: block;
	width: 100%;
	margin: 0 0 20px;
	padding: 16px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.04);
	color: #ffffff;
	font-size: 20px;
	box-shadow: none;
}
.an-blog-hire-us input[type="email"],
.an-blog-hire-us input[type="text"] {
	height: 60px;
}
.an-blog-hire-us textarea {
	height: 302px;
	padding: 20px;
	margin-bottom: 33px;
}
.an-blog-hire-us input[type="submit"],
.an-blog-hire-us .wpcf7-submit {
	border-radius: 4px !important;
	background: #000000 !important;
	display: block;
	width: 100%;
	padding: 15px 22px;
	border: 0;
	border-radius: 4px;
	background: #000000;
	color: #ffffff;
	font-size: 20px;
	font-weight: 500;
	cursor: pointer;
}
.an-blog-hire-us .wpcf7-response-output {
	margin: 20px 0 0;
	color: #ffffff;
}
/* Two columns only from 1301px, as on the homepage. */
@media (min-width: 1301px) {
	.an-blog-hire-us__inner {
		display: flex;
		align-items: flex-start;
	}
	.an-blog-hire-us__text,
	.an-blog-hire-us__form {
		flex: 1 1 50%;
		min-width: 0;
	}
	.an-blog-hire-us .an-hire-title {
		font-size: 90px;
		line-height: 98px;
	}
	.an-blog-hire-us .an-hire-sub {
		font-size: 24px;
		line-height: 31.2px;
	}
}
/* 1000px and below: smaller padding and heading, text centered. */
@media (max-width: 1000px) {
	.an-blog-hire-us {
		padding-top: 100px;
		padding-bottom: 100px;
		text-align: center;
	}
	.an-blog-hire-us .an-hire-title {
		font-size: 63px;
		line-height: 68.6px;
	}
	.an-blog-hire-us .an-hire-sub {
		font-size: 19.2px;
		line-height: 25px;
	}
	.an-blog-hire-us .an-hire-divider {
		margin-left: auto;
		margin-right: auto;
	}
}
@media (max-width: 768px) {
	.an-blog-hire-us .an-hire-title {
		font-size: 52px;
	}
}
@media (max-width: 600px) {
	.an-blog-hire-us .an-hire-title {
		line-height: 63.7px;
	}
}
@media (max-width: 480px) {
	.an-blog-hire-us .an-hire-title {
		font-size: 48px;
	}
}
/* Dark theme must not recolor this row: the page-wide dark rules for form
   fields and body text would otherwise turn the fields and copy dark. */
html[data-an-theme="dark"] body.single-post .an-blog-hire-us :is(textarea, input[type="email"], input[type="text"]) {
	background-color: rgba(255, 255, 255, 0.04) !important;
	color: #ffffff !important;
	border-color: transparent !important;
}
html[data-an-theme="dark"] body.single-post .an-blog-hire-us :is(p, label, a, h2) {
	color: #ffffff !important;
}

/* Comment form: left aligned, heading styled like the article h2 headings
   (size/line-height are copied from the real article h2 by the script as
   --an-h2-size / --an-h2-lh, because the theme changes them per breakpoint),
   all text 24px (18px on phones), black pill submit that turns blue.
   body.single + !important because the theme's own comment rules are more
   specific than a plain .comment-wrap selector. */
body.single .comment-wrap,
body.single .comment-wrap .comment-respond,
body.single .comment-wrap .form-submit {
	text-align: left !important;
}
body.single .comment-wrap #reply-title {
	text-align: left !important;
	font-size: var(--an-h2-size, 47.6px) !important;
	line-height: var(--an-h2-lh, 50px) !important;
	font-weight: 200 !important;
	text-transform: capitalize;
	padding: 100px 0 50px !important;
	margin: 10px 0 7px !important;
}
body.single .comment-wrap .logged-in-as,
body.single .comment-wrap .logged-in-as a,
body.single .comment-wrap label,
body.single .comment-wrap textarea,
body.single .comment-wrap input[type="text"],
body.single .comment-wrap input[type="email"],
body.single .comment-wrap input[type="url"],
body.single .comment-wrap #reply-title small a {
	font-size: 24px !important;
	line-height: 1.5 !important;
}
body.single .comment-wrap .form-submit {
	margin: 0 !important;
}
body.single .comment-wrap input#submit {
	background: #000000 !important;
	color: #ffffff !important;
	font-family: Outfit, Arial, Helvetica, sans-serif;
	font-size: 24px !important;
	font-weight: 600;
	line-height: 1.2 !important;
	padding: 16px 40px !important;
	border: 0 !important;
	border-radius: 999px !important;
	cursor: pointer;
	transition: background-color 0.3s ease !important;
}
body.single .comment-wrap input#submit:hover {
	background: #3452ff !important;
}
@media (max-width: 767px) {
	body.single .comment-wrap .logged-in-as,
	body.single .comment-wrap .logged-in-as a,
	body.single .comment-wrap label,
	body.single .comment-wrap textarea,
	body.single .comment-wrap input[type="text"],
	body.single .comment-wrap input[type="email"],
	body.single .comment-wrap input[type="url"],
	body.single .comment-wrap #reply-title small a,
	body.single .comment-wrap input#submit {
		font-size: 18px !important;
	}
}

/* Header byline: one flex row, everything (By, avatar, name, date, comments)
   centered on the same horizontal axis so the avatar lines up with the text. */
body.single #single-below-header {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
body.single #single-below-header > span,
body.single #single-below-header .meta-author .fn,
body.single #single-below-header .meta-author a {
	display: inline-flex;
	align-items: center;
}
body.single #single-below-header .meta-author a {
	gap: 8px;
}
body.single #single-below-header img.an-byline-avatar {
	display: block;
	margin: 0;
}
body.single #single-below-header .author-leading {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	margin: 0;
	padding: 0;
}
body.single #single-below-header > span,
body.single #single-below-header .meta-author .fn,
body.single #single-below-header .author-leading,
body.single #single-below-header .meta-author a {
	display: inline-flex !important;
	align-items: center !important;
	line-height: 1.2 !important;
}

.an-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
body.single .comment-wrap textarea::placeholder {
	color: #8a8a94;
	opacity: 1;
}

/* Images placed inside articles: full article width, natural height, small
   caption. width/height attributes on the <img> reserve the space so the
   page does not jump while images load. */
article .content-inner figure.an-article-figure {
	margin: 56px 0;
}
article .content-inner figure.an-article-figure img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #e6e6ea;
	border-radius: 12px;
}
article .content-inner figure.an-article-figure figcaption {
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.5;
	color: #5b5b66;
}
@media (max-width: 767px) {
	article .content-inner figure.an-article-figure {
		margin: 36px 0;
	}
	article .content-inner figure.an-article-figure figcaption {
		font-size: 14px;
	}
}

/* Reassurance line under the sidebar card buttons. */
.an-blog-cta-top .an-blog-cta-top__note {
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.4;
	color: #5b5b66;
	text-align: center;
}
html[data-an-theme="dark"] body:is(.single-post) .an-blog-cta-top .an-blog-cta-top__note {
	color: #a8a8b8 !important;
}

/* Hints on the sidebar card buttons: accent blue (#3452ff, same as the Chat With
   Us row) with white text. Shown on hover/focus, and toggled by the "i" button
   on touch screens. */
.an-blog-cta-top .an-hint-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}
.an-blog-cta-top .an-hint-row .an-blog-cta-btn {
	flex: 1;
}
.an-hint-btn {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: #5b5b66;
	font: italic 600 14px/1 Georgia, serif;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.an-hint-btn:hover,
.an-hint-btn:focus-visible,
.an-hint-btn[aria-expanded="true"] {
	background: #3452ff;
	border-color: #3452ff;
	color: #ffffff;
}
.an-hint-tip {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + 10px);
	z-index: 5;
	padding: 12px 14px;
	border-radius: 12px;
	background: #3452ff;
	color: #ffffff !important;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	box-shadow: 0 10px 24px rgba(52, 82, 255, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	pointer-events: none;
}
.an-hint-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	right: 10px;
	border: 7px solid transparent;
	border-top-color: #3452ff;
}
.an-hint-row:hover .an-hint-tip,
.an-hint-row:focus-within .an-hint-tip,
.an-hint-row.is-open .an-hint-tip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
html[data-an-theme="dark"] body:is(.single-post) .an-hint-btn {
	color: #a8a8b8;
}
html[data-an-theme="dark"] body:is(.single-post) .an-hint-btn:hover,
html[data-an-theme="dark"] body:is(.single-post) .an-hint-btn[aria-expanded="true"] {
	color: #ffffff;
}

/* Blue buttons always carry white text. The sidebar link color from the theme
   was turning the card's primary button label black. */
.an-blog-cta-btn--primary,
.an-blog-cta-top .an-blog-cta-btn--primary,
.an-blog-cta-bottom .an-blog-cta-btn--primary,
body.single .an-blog-cta-top a.an-blog-cta-btn--primary {
	color: #ffffff !important;
}

body.single .an-blog-hire-us form input.wpcf7-submit[type="submit"] {
	border-radius: 4px !important;
}
