/*
 * Early Warning page styles + global fixes for shared block patterns
 * surfaced by the Early Warning pages.
 *
 * Loaded site-wide (selectors are scoped by block class).
 */

/* ---------------------------------------------------------------------
 * Cramped list line-height in text-img-and-col bottom slot.
 *
 * The default theme rule sets line-height: 14px on these <li> elements,
 * which works for one-liners but causes wrapped lines to overlap.
 * --------------------------------------------------------------------- */
.section-text-img-col .content-block-wrapper ul,
.section-text-img-col .content-block-wrapper ol,
.section-text .content-wrapper ul,
.section-text .content-wrapper ol {
	margin-top: 1.2em;
	margin-bottom: 1.4em;
}

.section-text-img-col .content-block-wrapper ul li,
.section-text-img-col .content-block-wrapper ol li,
.section-text .content-wrapper ul li,
.section-text .content-wrapper ol li {
	line-height: 1.55;
	margin-bottom: 0.6em;
}

.section-text-img-col .content-block-wrapper ul li:last-child,
.section-text-img-col .content-block-wrapper ol li:last-child,
.section-text .content-wrapper ul li:last-child,
.section-text .content-wrapper ol li:last-child {
	margin-bottom: 0;
}

.section-text-img-col .content-block-wrapper ul ul li,
.section-text-img-col .content-block-wrapper ol ol li,
.section-text-img-col .content-block-wrapper ul ol li,
.section-text-img-col .content-block-wrapper ol ul li,
.section-text .content-wrapper ul ul li,
.section-text .content-wrapper ol ol li,
.section-text .content-wrapper ul ol li,
.section-text .content-wrapper ol ul li {
	line-height: 1.55;
	margin-bottom: 0.4em;
}

/* ---------------------------------------------------------------------
 * Comparison table on /services/early-warning/.
 * --------------------------------------------------------------------- */
.ew-page table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: 16px;
}

.ew-page table thead th {
	text-align: left;
	padding: 0.9em 1em;
	border-bottom: 2px solid #1a1d21;
	font-weight: 600;
}

.ew-page table tbody td {
	padding: 0.9em 1em;
	border-bottom: 1px solid #e6e6e6;
	vertical-align: top;
	line-height: 1.5;
}

.ew-page table tbody tr:nth-child(odd) {
	background: rgba(245, 245, 245, 0.4);
}

.ew-page table tbody tr:first-child td {
	font-weight: 500;
}

@media (max-width: 768px) {
	.ew-page table {
		display: block;
		overflow-x: auto;
		font-size: 14px;
	}
}

/* ---------------------------------------------------------------------
 * FAQ collapsibles (rendered inside a div.ew-faq).
 * --------------------------------------------------------------------- */
.ew-faq {
	max-width: 920px;
	margin: 0 auto;
}

.ew-faq details {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1em 1.4em;
	margin: 0.6em 0;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.ew-faq details[open] {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	border-color: #c8c8c8;
}

.ew-faq summary {
	cursor: pointer;
	padding: 0.4em 0;
	list-style: none;
	font-size: 17px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	line-height: 1.4;
}

.ew-faq summary::-webkit-details-marker {
	display: none;
}

.ew-faq summary::after {
	content: "+";
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	color: #888;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.ew-faq details[open] summary::after {
	content: "\2212"; /* minus */
}

.ew-faq details p {
	margin-top: 0.8em;
	padding-top: 0.8em;
	border-top: 1px solid #f0f0f0;
	line-height: 1.55;
}

/* (Subscription-plans pricing disclaimer: keep theme defaults — earlier
 * gray-box override was rejected as visually heavy. Visual separation
 * from the next section comes from the next section's coloured
 * background.) */

/* ---------------------------------------------------------------------
 * Universal notes below the tier cards.
 *
 * Replaces the per-card orange band — the bottom_text values were
 * never card-specific in practice, so they are now collected and
 * rendered once below all cards. Same orange tone as before, just
 * positioned correctly.
 * --------------------------------------------------------------------- */
.section-subscription-plans .subscription-plans__universal-notes {
	margin: 1.4em auto 0;
	max-width: 1100px;
	text-align: center;
	color: #f37121;
	font-size: 14px;
	line-height: 1.55;
}

.section-subscription-plans .subscription-plans__universal-notes p {
	margin: 0.3em 0;
}

/* ---------------------------------------------------------------------
 * Subscription-plans tier-card responsive layout.
 *
 * The slider's swiper-wrapper falls back to a plain flex container.
 * - Desktop (>=992px): three cards share width evenly, no wrap.
 * - Tablet/mobile (<992px): cards stack vertically, full width.
 *
 * Applies to both /services/ Hosting Plans and the Dashboard page.
 * --------------------------------------------------------------------- */
.section-subscription-plans .plans-slider .swiper-wrapper {
	display: flex;
}

@media (min-width: 992px) {
	.section-subscription-plans .plans-slider .swiper-wrapper {
		flex-wrap: nowrap;
		gap: 1em;
	}
	.section-subscription-plans .plans-slider .subscription-plans-plan.swiper-slide {
		flex: 1 1 0;
		min-width: 0;
	}
}

@media (max-width: 991px) {
	.section-subscription-plans .plans-slider {
		padding-left: 1.5em;
		padding-right: 1.5em;
		box-sizing: border-box;
		overflow: visible;
	}
	/* Swiper applies horizontal transforms on the wrapper to scroll
	 * between slides. In column mode we never scroll horizontally,
	 * so neutralize any transform/positioning. */
	.section-subscription-plans .plans-slider .swiper-wrapper {
		flex-direction: column;
		gap: 1.4em;
		max-width: 560px;
		margin-left: auto;
		margin-right: auto;
		transform: none !important;
		left: 0 !important;
	}
	.section-subscription-plans .plans-slider .subscription-plans-plan.swiper-slide {
		flex: 0 0 auto;
		width: 100% !important;
		max-width: 100%;
		transform: none !important;
		left: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
