/* Article text in the site design (blog posts and the Houston pages): .apx .apx-prose wraps text from the block editor
   or the page's text boxes. Loaded after specialists.css. Parts inside the "blog CTA" banner keep their own style. */

.apx .apx-prose {
	--apx-a: var(--apx-blue);
	--apx-a-hover: var(--apx-navy);
	font-size: 18px;
	line-height: 1.75;
	color: var(--apx-ink);
	overflow-wrap: break-word;
}
.apx .apx-prose > :first-child { margin-top: 0 !important; }
.apx .apx-prose > :last-child { margin-bottom: 0 !important; }

/* Text */
.apx .apx-prose :is(p, li, td, th, dd, figcaption, blockquote):not(.blog-cta *) { font-family: inherit; letter-spacing: normal; }
.apx .apx-prose p:not(.blog-cta *) { margin: 0 0 1.2em; font-size: 18px; line-height: 1.75; color: var(--apx-ink); }
.apx .apx-prose :is(strong, b):not(.blog-cta *) { font-weight: 600; color: var(--apx-navy); }
.apx .apx-prose :is(em, i):not(.blog-cta *):not([class]) { font-style: italic; }
.apx .apx-prose :is(.apptly-btn, .wp-block-button__link):not(.blog-cta *) { --apx-a: #fff; --apx-a-hover: #fff; }
.apx .apx-prose .is-style-outline .wp-block-button__link:not(.blog-cta *) { --apx-a: var(--apx-blue); --apx-a-hover: var(--apx-navy); }
.apx .apx-prose a:not(.blog-cta *):not(.apptly-btn):not(.wp-block-button__link) {
	color: var(--apx-blue);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .2s ease, text-decoration-color .2s ease;
}
.apx .apx-prose a:not(.blog-cta *):not(.apptly-btn):not(.wp-block-button__link):hover { color: var(--apx-navy); text-decoration-thickness: 2px; }

/* Headings (an H1 inside the text is shown like a main heading) */
.apx .apx-prose :is(h1, h2, h3, h4, h5, h6):not(.blog-cta *) {
	font-family: inherit;
	color: var(--apx-navy);
	text-transform: none;
	scroll-margin-top: 110px;
}
.apx .apx-prose :is(h1, h2):not(.blog-cta *) { margin: 1.9em 0 .55em; font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.6px; }
.apx .apx-prose h3:not(.blog-cta *) { margin: 1.6em 0 .45em; font-size: 23px; font-weight: 600; line-height: 1.3; letter-spacing: -.2px; }
.apx .apx-prose :is(h4, h5, h6):not(.blog-cta *) { margin: 1.4em 0 .4em; font-size: 19px; font-weight: 600; line-height: 1.35; }
.apx .apx-prose :is(h2, h3, h4) + :is(h3, h4):not(.blog-cta *) { margin-top: .6em; }

/* Lists: one blue dot or number per item */
.apx .apx-prose :is(ul, ol):not(.blog-cta *):not([class*="rank-math"]) { margin: 0 0 1.3em; padding: 0; list-style: none; }
.apx .apx-prose :is(ul, ol):not(.blog-cta *) li { position: relative; margin: 0 0 .55em; padding: 0 0 0 30px; font-size: 18px; line-height: 1.7; color: var(--apx-ink); list-style: none; }
.apx .apx-prose :is(ul, ol):not(.blog-cta *) li::before { content: none; }
.apx .apx-prose ul:not(.blog-cta *):not([class*="rank-math"]) > li::before {
	content: "";
	position: absolute;
	left: 8px;
	top: .72em;
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--apx-grad);
	box-shadow: 0 0 0 3px var(--apx-blue-10);
}
.apx .apx-prose ol:not(.blog-cta *):not([class*="rank-math"]) { counter-reset: apx-ol; }
.apx .apx-prose ol:not(.blog-cta *):not([class*="rank-math"]) > li { padding-left: 40px; counter-increment: apx-ol; }
.apx .apx-prose ol:not(.blog-cta *):not([class*="rank-math"]) > li::before {
	content: counter(apx-ol);
	position: absolute;
	left: 0;
	top: .15em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 27px;
	height: 27px;
	border-radius: 50%;
	background: var(--apx-blue-10);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: var(--apx-blue);
}
.apx .apx-prose li > :is(ul, ol):not(.blog-cta *) { margin: .5em 0 0; }
.apx .apx-prose li > p:not(.blog-cta *) { margin: 0 0 .4em; }

/* Images and figures */
.apx .apx-prose :is(figure, .wp-block-image):not(.blog-cta *):not(.wp-block-table):not(.wp-block-embed) { margin: 2em 0; }
.apx .apx-prose img:not(.blog-cta *) { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.apx .apx-prose :is(figure, .wp-block-image) img:not(.blog-cta *) { box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .28); }
.apx .apx-prose .aligncenter:not(.blog-cta *), .apx .apx-prose .aligncenter img:not(.blog-cta *) { margin-left: auto; margin-right: auto; }
.apx .apx-prose figcaption:not(.blog-cta *) { margin-top: 10px; font-size: 14px; line-height: 1.5; text-align: center; color: var(--apx-muted); }
.apx .apx-prose :is(iframe, video, embed):not(.blog-cta *) { display: block; max-width: 100%; border: 0; border-radius: 14px; }
.apx .apx-prose .wp-block-embed:not(.blog-cta *) { margin: 2em 0; }

/* Tables: readable, navy heading row, scroll sideways on small screens */
.apx .apx-prose :is(.wp-block-table, .apptly-table):not(.blog-cta *) { margin: 2em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.apx .apx-prose table:not(.blog-cta *) {
	width: 100%;
	min-width: 520px;
	margin: 0;
	border: 1px solid var(--apx-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--apx-shadow-sm);
	font-size: 16px;
	line-height: 1.55;
	table-layout: auto;
}
.apx .apx-prose table :is(th, td):not(.blog-cta *) {
	padding: 14px 18px;
	border: 0;
	background: #fff;
	text-align: left;
	vertical-align: top;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--apx-ink);
}
.apx .apx-prose table tbody tr + tr > :is(th, td):not(.blog-cta *) { border-top: 1px solid var(--apx-line); }
.apx .apx-prose table tbody tr:nth-child(even) > :is(th, td):not(.blog-cta *) { background: #FAFCFF; }
.apx .apx-prose table thead :is(th, td):not(.blog-cta *) { background: var(--apx-navy); font-size: 15px; font-weight: 600; color: #fff; }
.apx .apx-prose table thead :is(th, td) :is(strong, b):not(.blog-cta *) { color: #fff; }
.apx .apx-prose table tbody th:not(.blog-cta *) { font-weight: 600; color: var(--apx-navy); }
.apx .apx-prose .wp-block-table figcaption:not(.blog-cta *) { text-align: left; }

/* Quotes and lines */
.apx .apx-prose blockquote:not(.blog-cta *) {
	position: relative;
	margin: 2em 0;
	padding: 22px 26px 22px 30px;
	border: 0;
	border-radius: 0 14px 14px 0;
	background: var(--apx-blue-5);
	font-size: 20px;
	line-height: 1.6;
	color: var(--apx-navy);
}
.apx .apx-prose blockquote:not(.blog-cta *)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: var(--apx-grad); }
.apx .apx-prose blockquote p:not(.blog-cta *) { font-size: inherit; color: inherit; }
.apx .apx-prose blockquote cite:not(.blog-cta *) { display: block; margin-top: 8px; font-size: 15px; font-style: normal; color: var(--apx-muted); }
.apx .apx-prose hr:not(.blog-cta *) { height: 1px; margin: 2.4em 0; border: 0; background: var(--apx-line); }

/* Buttons written in the text */
.apx .apx-prose :is(.apptly-cta, .wp-block-buttons):not(.blog-cta *) { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0; }
.apx .apx-prose :is(.apptly-btn, .wp-block-button__link):not(.blog-cta *) {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	overflow: hidden;
	border: 2px solid var(--apx-blue);
	border-radius: 6px;
	background: var(--apx-blue);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.25;
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.apx .apx-prose :is(.apptly-btn, .wp-block-button__link):not(.blog-cta *)::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0)); transform: skewX(-20deg); pointer-events: none; transition: left .6s ease; }
.apx .apx-prose :is(.apptly-btn, .wp-block-button__link):not(.blog-cta *):hover { background: rgba(46, 102, 255, .9); color: #fff; transform: translateY(-3px); box-shadow: var(--apx-shadow-lg); }
.apx .apx-prose :is(.apptly-btn, .wp-block-button__link):not(.blog-cta *):hover::after { left: 120%; }
.apx .apx-prose .is-style-outline .wp-block-button__link:not(.blog-cta *) { background: transparent; color: var(--apx-blue); }

/* Notes: emergency note, "on this page" box, FAQ group */
.apx .apx-prose .apptly-alert:not(.blog-cta *) {
	display: flex;
	gap: 14px;
	margin: 1.8em 0;
	padding: 18px 22px;
	border: 1px solid #FBD0D0;
	border-left: 5px solid #DC2626;
	border-radius: 0 14px 14px 0;
	background: #FEF2F2;
}
.apx .apx-prose .apptly-alert:not(.blog-cta *)::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #DC2626; font-size: 15px; font-weight: 700; color: #fff; }
.apx .apx-prose .apptly-alert p:not(.blog-cta *) { margin: 0; color: #7F1D1D; }
.apx .apx-prose .apptly-alert :is(strong, b):not(.blog-cta *) { color: #7F1D1D; }
.apx .apx-prose .apptly-toc:not(.blog-cta *) { margin: 0 0 2em; padding: 20px 24px; border: 1px solid var(--apx-blue-20); border-radius: 16px; background: linear-gradient(135deg, rgba(204, 245, 255, .45), rgba(46, 102, 255, .06)); }
.apx .apx-prose .apptly-toc > :is(p, strong, h2, h3, h4):first-child:not(.blog-cta *) { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--apx-blue); }
.apx .apx-prose .apptly-toc :is(ul, ol):not(.blog-cta *) { margin: 0; }
.apx .apx-prose .apptly-toc li:not(.blog-cta *) { margin-bottom: .3em; font-size: 17px; }
.apx .apx-prose .apptly-toc a:not(.blog-cta *) { text-decoration: none; }
.apx .apx-prose .apptly-faq:not(.blog-cta *) { margin: 1em 0 2em; border-top: 1px solid var(--apx-line); }
.apx .apx-prose .apptly-faq h3:not(.blog-cta *) { margin: 0; padding: 22px 0 6px; font-size: 20px; line-height: 1.4; letter-spacing: 0; }
.apx .apx-prose .apptly-faq h3 + :is(p, ul, ol):not(.blog-cta *) { margin-top: 0; }
.apx .apx-prose .apptly-faq > :is(p, ul, ol):not(.blog-cta *) { margin-bottom: 0; padding-bottom: 20px; border-bottom: 1px solid var(--apx-line); font-size: 17px; color: var(--apx-ink); }

/* Rank Math FAQ block */
.apx .apx-prose .rank-math-block:not(.blog-cta *) { margin: 1.5em 0 2em; }
.apx .apx-prose .rank-math-list:not(.blog-cta *) { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.apx .apx-prose .rank-math-list-item:not(.blog-cta *) { margin: 0; padding: 20px 22px; border: 1px solid var(--apx-line); border-radius: 14px; background: #fff; box-shadow: var(--apx-shadow-sm); transition: border-color .25s ease, box-shadow .25s ease; }
.apx .apx-prose .rank-math-list-item:not(.blog-cta *):hover { border-color: var(--apx-blue-20); box-shadow: 0 12px 24px -16px rgba(15, 23, 42, .3); }
.apx .apx-prose .rank-math-question:not(.blog-cta *) { margin: 0 0 6px; padding: 0; font-size: 19px; line-height: 1.4; letter-spacing: 0; }
.apx .apx-prose .rank-math-answer:not(.blog-cta *), .apx .apx-prose .rank-math-answer p:not(.blog-cta *) { margin: 0; font-size: 17px; line-height: 1.7; color: var(--apx-ink); }

/* Booking screenshots ([apptly_screenshots]) */
.apx .apx-prose .apptly-shots:not(.blog-cta *) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 2em 0; }
.apx .apx-prose .apptly-shots figure:not(.blog-cta *) { margin: 0; }
.apx .apx-prose .apptly-shots img:not(.blog-cta *) { width: 100%; border: 1px solid var(--apx-line); border-radius: 14px; }

/* The "blog CTA" banner keeps its own design; in the text column it uses its stacked layout (text above the search). */
.apx .apx-prose .blog-cta { margin: 2.4em 0; border-radius: 20px; }
.apx .apx-prose .blog-cta .container { width: 100%; max-width: 100%; margin: 0; padding: 48px 40px 190px; }
.apx .apx-prose .blog-cta .blog-cta__inner { flex-direction: column; align-items: stretch; gap: 28px; }
.apx .apx-prose .blog-cta .blog-cta__text, .apx .apx-prose .blog-cta .blog-cta__search { flex: none; width: 100%; max-width: 100%; }
.apx .apx-prose .blog-cta .blog-cta__title { font-size: 34px; }

@media (max-width: 767px) {
	.apx .apx-prose, .apx .apx-prose p:not(.blog-cta *), .apx .apx-prose :is(ul, ol):not(.blog-cta *) li { font-size: 17px; }
	.apx .apx-prose :is(h1, h2):not(.blog-cta *) { font-size: 26px; letter-spacing: -.3px; }
	.apx .apx-prose h3:not(.blog-cta *) { font-size: 21px; }
	.apx .apx-prose .apptly-faq h3:not(.blog-cta *) { font-size: 18px; }
	.apx .apx-prose table:not(.blog-cta *) { min-width: 460px; }
	.apx .apx-prose table :is(th, td):not(.blog-cta *) { padding: 12px 14px; font-size: 15px; }
	.apx .apx-prose .apptly-shots:not(.blog-cta *) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apx .apx-prose :is(.apptly-btn, .wp-block-button__link):not(.blog-cta *) { width: 100%; }
	.apx .apx-prose .blog-cta .container { padding: 36px 22px 170px; }
	.apx .apx-prose .blog-cta .blog-cta__title { font-size: 28px; }
}
