@charset "UTF-8";

/* d28.css: styles for Senate District 28's pages, moved from their <style> blocks (CSS plan, Phase 3).
   Each page sets $page_class (on <body>) and lists this file in $page_css; :where() scopes a rule to its page
   without adding specificity. No media attribute: like the <style> blocks, these rules apply in print too. */

/* == == flags.php only == == */

@media screen and (min-width: 741px) {
	/* DESKTOP STYLES */
	:where(.pg_flags) div.flagform{
		text-align: center;
	}

	:where(.pg_flags) div.flagform img {
		border: 1px solid #333;
	}
}

@media print, (max-width: 740px) {
	/* MOBILE STYLES */
	:where(.pg_flags) div.flagform{
		text-align: center;
	}

	:where(.pg_flags) div.flagform img {
		border: 1px solid #333;
		width: 240px;
	}
}

/* == == _extras.inc only (member page, member.php?d=28) == == */

:where(.pg_member) ul.perry_extra {
	margin-top: 15px;
	line-height: 150%;
}

@media screen and (min-width: 741px) {
	/* DESKTOP STYLES */
	/* newsletter box: the form in a Design A teal panel, the graphic beside it on white, centered (forms project Part B, 2026-11-20) */
	:where(.pg_member) div.enews_extra {
		display: inline-flex;
		align-items: center;
		padding: 0px;
		width: auto;
		margin: auto;
		margin-top: 15px;
	}

	:where(.pg_member) div.enews_extra1 {
		display: inline-block;
		background-color: #e2f1f0;
		border: 2px solid #bcd0d1;
		border-radius: var(--corner-radius);
		padding: 10px;
		width: 400px;
		vertical-align: top;
	}

	:where(.pg_member) div.enews_extra2 {
		display: inline-block;
		margin: 0;
		padding: 0 0 0 15px;
		text-align: right;
		width: 450px;
	}
}

@media print, (max-width: 740px) {
	/* MOBILE STYLES */
	:where(.pg_member) div.enews_extra {
		padding: 0px;
		margin-top: 15px;
	}

	:where(.pg_member) div.enews_extra1 {
		padding: 10px;
		background-color: #e2f1f0;
		vertical-align: top;
		border: 2px solid #bcd0d1;
		border-radius: var(--corner-radius);
	}

	:where(.pg_member) div.enews_extra2 {
		padding: 0px;
		margin-top: 10px; /* clear of the teal box's rounded corners */
		text-align: center;
	}

	:where(.pg_member) div.enews_extra2 img {
		width: 100%;
		padding: 0px;
	}
}

/* newsletter box, all widths: a thin border on the graphic (the fields' border color) and a tighter flat form */
:where(.pg_member) div.enews_extra2 img {
	display: block;
	border: 1px solid #5f6f70;
	border-radius: 4px;
}

:where(.pg_member) div.enews_extra form.sform .sform-field {
	margin-bottom: .5em;
}

:where(.pg_member) div.enews_extra form.sform button.sform-send {
	padding: .55em 1em;
	margin-top: .2em;
}
