/*
 * CTData Site Functions: SEOW Prevention Data Portal styling.
 *
 * Loaded only on pages marked "Part of the SEOW Prevention Portal".
 * Scoped to the page content (.elementor-location-single) so the site
 * header and footer keep the normal site styles.
 *
 * Change the palette and width in ONE place: the variables below.
 */

body.seow-portal {
	--seow-heading: #3a748d;         /* Portal teal, from ctdata.org. */
	--seow-measure: 980px;           /* Portal content width. */
	--seow-button-bg: #26265a;       /* Pill button fill. */
	--seow-button-fg: #f4f4f6;       /* Pill button text. */
	--seow-button-bg-hover: #3d3d80; /* Pill button hover fill. */
}

body.seow-portal .elementor-location-single .e-con,
body.seow-portal .elementor-location-single .e-con > .e-con-inner {
	--container-max-width: var(--seow-measure);
}

/* Portal headings keep the Squarespace teal and weight. */
body.seow-portal .elementor-location-single .elementor-widget-heading .elementor-heading-title {
	color: var(--seow-heading);
	font-weight: 600;
}

body.seow-portal .elementor-location-single h2.elementor-heading-title {
	font-size: 28px;
	line-height: 1.3;
}

body.seow-portal .elementor-location-single h3.elementor-heading-title {
	font-size: 22px;
	line-height: 1.35;
}

/* Links in portal body copy use the teal too. */
body.seow-portal .elementor-location-single .elementor-widget-text-editor a {
	color: var(--seow-heading);
	text-decoration: underline;
}

body.seow-portal .elementor-location-single .elementor-widget-text-editor a:hover {
	text-decoration: none;
}

/* Sub-nav: keep it visually attached to the site header. */
body.seow-portal .elementor-location-single .elementor-widget-nav-menu .elementor-item {
	font-weight: 500;
}

/* Topic tiles: no underline on linked images. */
body.seow-portal .elementor-location-single .elementor-widget-image a {
	text-decoration: none;
}

/* Pill buttons, matching the Squarespace portal. */
body.seow-portal .elementor-location-single .elementor-button {
	background-color: var(--seow-button-bg);
	color: var(--seow-button-fg);
	border: 0;
	border-radius: 300px;
	font-weight: 600;
	font-size: 16.5px;
	padding: 21px 34px;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.2s ease;
}

body.seow-portal .elementor-location-single .elementor-button:hover,
body.seow-portal .elementor-location-single .elementor-button:focus {
	background-color: var(--seow-button-bg-hover);
	color: #fff;
}

/* Pill buttons fill their grid cell so rows line up evenly. */
body.seow-portal .elementor-location-single .e-grid .elementor-widget-button,
body.seow-portal .elementor-location-single .e-grid .elementor-widget-button .elementor-button {
	width: 100%;
}
