/**
 * Dziados for Congress — campaign styles.
 * Palette + custom header/footer/menu. Loaded after GeneratePress styles.
 */

:root {
	/* Palette */
	--dz-navy: #1F3864;
	--dz-navy-dark: #16294A;
	--dz-red: #C22026;
	--dz-red-dark: #9C181D;
	--dz-bg-light: #F4F5F7;
	--dz-border: #E1E5EA;
	--dz-text: #333333;
	--dz-text-light: #555555;
	--dz-white: #FFFFFF;
}

/* ---------- Base typography ---------- */

body,
button,
input,
select,
textarea {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	color: var(--dz-text);
}

/* Sticky footer: header / #page / footer are flex items of body */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	/* White instead of the GP default #F7F8F9 — no gray bands around the
	   white site container. */
	background-color: var(--dz-white);
	overflow-x: clip;
}

#page {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	width: 100%;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	font-weight: 600;
}

a {
	color: var(--dz-red);
}

a:hover,
a:focus {
	color: var(--dz-red-dark);
}

/* ---------- Header ---------- */

.dz-site-header {
	background: var(--dz-white);
	box-shadow: 0 1px 4px rgba(22, 41, 74, 0.12);
	position: relative;
	z-index: 100;
}

.dz-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

/* Logo — CSS recreation of the campaign logo; replace with an <img> once the logo file exists */
.dz-logo {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	background: var(--dz-white);
	border: 3px solid var(--dz-red);
	padding: 8px 18px;
	text-decoration: none;
	line-height: 1;
}

.dz-logo-name {
	color: var(--dz-navy);
	font-size: 27px;
	font-weight: 700;
	letter-spacing: 1px;
}

.dz-logo-tag {
	color: var(--dz-navy);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 4px;
}

.dz-logo:hover,
.dz-logo:focus {
	text-decoration: none;
	border-color: var(--dz-red-dark);
}

/* Menu (managed in Appearance → Menus, location "primary") */

.dz-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.dz-nav li {
	margin: 0;
}

.dz-nav a {
	display: block;
	padding: 10px 14px;
	color: var(--dz-text);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}

.dz-nav a:hover,
.dz-nav a:focus {
	color: var(--dz-red);
	background: none;
}

/* Donate menu item (CSS class "dz-donate" set in Appearance → Menus) */

.dz-nav .dz-donate a {
	background: var(--dz-red);
	color: var(--dz-white);
	border-radius: 4px;
	padding: 12px 30px;
	font-weight: 600;
	transition: background 0.15s ease;
}

.dz-nav .dz-donate a:hover,
.dz-nav .dz-donate a:focus {
	background: var(--dz-red-dark);
	color: var(--dz-white);
}

/* ---------- Footer ---------- */

.dz-site-footer {
	background: var(--dz-navy);
	color: var(--dz-white);
	text-align: center;
	padding: 56px 24px 48px;
	margin-top: auto;
}

.dz-footer-privacy a {
	color: var(--dz-white);
	font-size: 18px;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.dz-footer-privacy a:hover,
.dz-footer-privacy a:focus {
	color: var(--dz-white);
	text-decoration: none;
}

.dz-footer-contact {
	margin-top: 28px;
	font-size: 18px;
	font-weight: 300;
}

.dz-footer-contact a {
	color: var(--dz-white);
	text-decoration: none;
}

.dz-footer-contact a:hover,
.dz-footer-contact a:focus {
	color: var(--dz-white);
	text-decoration: underline;
}

.dz-footer-sep {
	margin: 0 18px;
	opacity: 0.7;
}

.dz-footer-paid {
	display: inline-block;
	margin-top: 36px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.04);
	padding: 10px 28px;
	font-size: 15px;
	font-weight: 300;
}

/* ---------- Privacy Policy page ---------- */

.dz-page-privacypolicy .site-content {
	background: var(--dz-bg-light);
	/* Horizontal gutters are handled by .dz-privacy itself (GP adds 30px here). */
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
	/* Full-bleed: the .site container is capped at 1200px — stretch the light
	   band edge-to-edge like the original site. */
	margin-inline: calc(50% - 50vw);
}

/* GP adds margin-top to .entry-content — the title is styled close by already. */
.dz-page-privacypolicy .entry-content {
	margin-top: 0;
}

.dz-page-privacypolicy .inside-article {
	background: transparent;
	padding: 0;
	box-shadow: none;
	border-radius: 0;
}

.dz-page-privacypolicy .entry-title {
	color: var(--dz-red);
	text-align: center;
	text-transform: uppercase;
	font-size: 30px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 1.3;
}

.dz-privacy {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px 50px;
	font-size: 16px;
	color: var(--dz-text-light);
}

.dz-privacy h2:first-child {
	margin-top: 0;
}

.dz-privacy h2 {
	font-size: 17px;
	font-weight: 700;
	color: #1f1f1f;
	margin: 36px 0 14px;
	padding: 0;
}

.dz-privacy p {
	margin: 0 0 14px;
	line-height: 1.85;
}

.dz-privacy ul {
	margin: 0 0 14px;
	padding-left: 22px;
	list-style: disc;
}

.dz-privacy li {
	margin-bottom: 8px;
	line-height: 1.7;
}

.dz-privacy .dz-sms-optout {
	font-weight: 700;
	font-style: italic;
}


/* ---------- Bio page ---------- */

.dz-page-bio .site-content {
	/* Horizontal gutters are handled by .dz-bio itself (GP adds 30px here). */
	padding-left: 0;
	padding-right: 0;
}

.dz-page-bio .entry-content {
	margin-top: 0;
}

.dz-page-bio .entry-title {
	color: #1f1f1f;
	text-align: left;
	font-size: 38px;
	font-weight: 600;
	line-height: 1.25;
	/* Align the title with the .dz-bio column below (site gutters are zeroed for this page). */
	padding: 0 24px;
	margin: 0 0 30px;
}

.dz-bio {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 0;
}

.dz-bio .wp-block-columns {
	gap: 44px;
}

.dz-bio p {
	font-size: 16px;
	line-height: 1.85;
	color: var(--dz-text-light);
	margin: 0 0 18px;
}

.dz-bio figure.wp-block-image {
	margin: 0;
}

.dz-bio img {
	width: 100%;
	height: auto;
}

/* ---------- Policy Priorities (issues) page ---------- */

.dz-page-issues .site-content {
	/* Horizontal gutters are handled by .dz-issues itself (GP adds 30px here). */
	padding-left: 0;
	padding-right: 0;
}

.dz-page-issues .entry-content {
	margin-top: 0;
}

.dz-page-issues .entry-title {
	color: var(--dz-red);
	text-align: center;
	text-transform: uppercase;
	font-size: 30px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 1.3;
}

.dz-issues {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px 50px;
	font-size: 16px;
	color: var(--dz-text-light);
}

.dz-issues h2 {
	color: var(--dz-red);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin: 32px 0 12px;
	padding: 0;
}

.dz-issues h2:first-child {
	margin-top: 0;
}

.dz-issues p {
	margin: 0 0 14px;
	line-height: 1.85;
}

.dz-issues a {
	color: var(--dz-red);
	text-decoration: underline;
}

.dz-issues a:hover {
	color: var(--dz-red-dark);
}

/* ---------- Vote page ---------- */

.dz-page-vote .site-content {
	/* Hero sits flush against the header; gutters are handled by .dz-vote-text. */
	padding: 0;
}

/* Full-width container so the hero banner can span the viewport without
   negative-margin tricks. GP caps .inside-article (40px padding) and the
   group inner-container (1200px) — both are reset here. */
.dz-page-vote .site.grid-container {
	max-width: 100%;
}

.dz-page-vote .inside-article {
	padding: 0;
}

.dz-page-vote .wp-block-group__inner-container {
	max-width: 100%;
	padding: 0;
}

.dz-page-vote .entry-content {
	margin-top: 0;
}

/* The hero banner carries the visual title — no separate page heading. */
.dz-page-vote .entry-header {
	display: none;
}

.dz-vote {
	padding: 0;
}

.dz-vote-hero {
	margin: 0;
}

.dz-vote-hero img {
	display: block;
	width: 100%;
	height: auto;
}

.dz-vote-text {
	max-width: 1000px;
	margin: 0 auto;
	padding: 48px 24px 60px;
}

.dz-vote-text h2 {
	color: #1f1f1f;
	/* Adaptive: ~20px on phones, 28px on desktop. */
	font-size: clamp(20px, 1.2vw + 12px, 28px);
	font-weight: 600;
	line-height: 1.45;
	margin: 0 0 28px;
	padding: 0;
}

.dz-vote-text p {
	margin: 0 0 18px;
	line-height: 1.85;
	font-size: 16px;
	color: var(--dz-text-light);
}

/* Burger (mobile only) */

.dz-burger {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	line-height: 0;
}

.dz-burger-box {
	display: block;
	width: 26px;
	height: 20px;
	position: relative;
}

.dz-burger-line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--dz-navy);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.dz-burger-line:nth-child(1) { top: 0; }
.dz-burger-line:nth-child(2) { top: 8.5px; }
.dz-burger-line:nth-child(3) { top: 17px; }

.dz-burger-open .dz-burger-line:nth-child(1) {
	top: 8.5px;
	transform: rotate(45deg);
}

.dz-burger-open .dz-burger-line:nth-child(2) {
	opacity: 0;
}

.dz-burger-open .dz-burger-line:nth-child(3) {
	top: 8.5px;
	transform: rotate(-45deg);
}

/* ---------- Financial Resources page ---------- */

.dz-page-financial-resources-veterans-seniors-pa .site-content {
	/* Hero sits flush against the header; gutters are handled by .dz-fin-text. */
	padding: 0;
}

/* Full-width container so the hero can span the viewport without
   negative-margin tricks. GP caps .inside-article (40px padding) and the
   group inner-container (1200px) — both are reset here. */
.dz-page-financial-resources-veterans-seniors-pa .site.grid-container {
	max-width: 100%;
}

.dz-page-financial-resources-veterans-seniors-pa .inside-article {
	padding: 0;
}

.dz-page-financial-resources-veterans-seniors-pa .wp-block-group__inner-container {
	max-width: 100%;
	padding: 0;
}

.dz-page-financial-resources-veterans-seniors-pa .entry-content {
	margin-top: 0;
}

/* The hero carries the page heading — no separate entry title. */
.dz-page-financial-resources-veterans-seniors-pa .entry-header {
	display: none;
}

.dz-fin {
	padding: 0;
}

.dz-fin-hero {
	/* Photo (Pexels #457563) via inline background-image; navy keeps the
	   title readable if the image fails to load. */
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--dz-navy);
	background-size: cover;
	background-position: center;
	padding: 64px 24px;
}

.dz-fin-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(22, 41, 74, 0.8), rgba(22, 41, 74, 0.6));
}

.dz-fin-hero-overlay {
	position: relative;
	max-width: 1000px;
	text-align: center;
}

.dz-fin-hero-overlay h1 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(27px, 2.2vw + 14px, 44px);
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.dz-fin-text {
	max-width: 1000px;
	margin: 0 auto;
	padding: 48px 24px 60px;
}

.dz-fin-text h2 {
	color: var(--dz-navy);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.35;
	margin: 36px 0 14px;
	padding: 0;
}

.dz-fin-text h2:first-child {
	margin-top: 0;
}

.dz-fin-text p {
	margin: 0 0 16px;
	line-height: 1.85;
	font-size: 16px;
	color: var(--dz-text-light);
}

.dz-fin-text ul {
	margin: 0 0 18px;
	padding-left: 22px;
	list-style: disc;
}

.dz-fin-text li {
	margin-bottom: 8px;
	line-height: 1.7;
}

.dz-fin-text a {
	color: var(--dz-red);
	text-decoration: underline;
}

.dz-fin-text a:hover {
	color: var(--dz-red-dark);
}

/* ---------- Home (front) page ---------- */

.dz-page-home .site-content {
	/* Hero sits flush against the header; gutters are handled by the sections. */
	padding: 0;
}

/* Full-width sections: GP caps .inside-article (40px padding) and the group
   inner-container (1200px) — both are reset here. */
.dz-page-home .site.grid-container {
	max-width: 100%;
}

.dz-page-home .inside-article {
	padding: 0;
}

.dz-page-home .wp-block-group__inner-container {
	max-width: 100%;
	padding: 0;
}

.dz-page-home .entry-content {
	margin-top: 0;
}

/* The hero carries the visual intro — no separate page heading. */
.dz-page-home .entry-header {
	display: none;
}

.dz-home {
	padding: 0;
}

/* Visually hidden H1: the hero photo carries the visual intro, but the page
   still needs a heading for search engines and screen readers. */
.dz-home-h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.dz-home-hero {
	margin: 0;
}

.dz-home-hero img {
	display: block;
	width: 100%;
	height: auto;
}

/* Intro: four red theses + paragraph. */
.dz-home-intro {
	max-width: 1000px;
	margin: 0 auto;
	padding: 44px 24px 48px;
	text-align: center;
}

.dz-home-intro h2 {
	color: var(--dz-red);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 7px;
	padding: 0;
}

.dz-home-intro p {
	margin: 30px auto 0;
	padding: 0;
	text-align: left;
	font-size: 15px;
	line-height: 1.8;
	color: var(--dz-text);
}

/* Donate band: inert mockup buttons + underlined title. */
.dz-home-donate {
	background: var(--dz-navy);
	padding: 46px 24px;
}

.dz-home-donate-inner {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 64px;
}

.dz-home-donate-grid {
	display: grid;
	grid-template-columns: repeat(2, 150px);
	gap: 14px 22px;
	flex: 0 0 auto;
}

.dz-home-donate-btn {
	height: 42px;
	border: 0;
	border-radius: 4px;
	background: #ffffff;
	color: var(--dz-navy);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: default;
}

.dz-home-donate-title {
	margin: 0;
	color: #ffffff;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: underline;
	max-width: 430px;
}

/* Why I am running: town photo under a white veil. */
.dz-home-why {
	position: relative;
	padding: 56px 24px 64px;
	background: url('../img/home-town.jpg') center / cover no-repeat;
}

.dz-home-why::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.87);
}

.dz-home-why .wp-block-group__inner-container {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
}

.dz-home-why h2 {
	margin: 0 0 26px;
	padding: 0;
	color: #1f1f1f;
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
}

.dz-home-why p {
	margin: 0 0 18px;
	padding: 0;
	font-size: 15px;
	line-height: 1.8;
	color: var(--dz-text);
}

.dz-home-why p:last-child {
	margin-bottom: 0;
}

/* Get Involved: inert mockup form (visually normal, submits nowhere). */
.dz-home-involved {
	background: var(--dz-bg-light);
	padding: 56px 24px 64px;
}

.dz-home-involved-title {
	max-width: 1000px;
	margin: 0 auto 30px;
	padding: 0;
	color: var(--dz-red);
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
}

.dz-home-form {
	max-width: 1000px;
	margin: 0 auto;
}

.dz-home-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	color: #2b2b2b;
}

.dz-home-req {
	font-size: 11px;
	color: #8a8f98;
	margin-left: 4px;
}

.dz-home-sublabel {
	display: block;
	margin: 0 0 4px;
	font-size: 12px;
	color: #555555;
}

.dz-home-form input[type='text'],
.dz-home-form input[type='email'],
.dz-home-form input[type='tel'] {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #c9ced6;
	border-radius: 3px;
	background: #ffffff;
	font-family: inherit;
	font-size: 15px;
	color: var(--dz-text);
}

.dz-home-name-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.dz-home-field {
	margin: 0 0 18px;
}

.dz-home-check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--dz-text);
}

.dz-home-check input[type='checkbox'] {
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.dz-home-check-consent label {
	font-size: 12px;
	line-height: 1.65;
	color: var(--dz-text-light);
}

.dz-home-submit-row {
	margin-top: 10px;
	text-align: center;
}

.dz-home-submit {
	padding: 12px 30px;
	border: 0;
	border-radius: 3px;
	background: var(--dz-red);
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.dz-home-submit:hover {
	background: var(--dz-red-dark);
}

/* ---------- Responsive ----------
   All per-page mobile rules live here — AFTER the base rules above — so they
   reliably win the cascade. */

@media (max-width: 768px) {
	/* Header: logo left, burger right on one row; menu drops down on tap. */
	.dz-header-inner {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 10px 12px;
	}

	.dz-logo {
		padding: 6px 12px;
	}

	.dz-logo-name {
		font-size: 22px;
	}

	.dz-logo-tag {
		font-size: 9px;
		letter-spacing: 3px;
	}

	.dz-burger {
		display: inline-flex;
	}

	.dz-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--dz-white);
		border-top: 1px solid var(--dz-border);
		box-shadow: 0 10px 18px rgba(22, 41, 74, 0.14);
	}

	.dz-nav.dz-nav-open {
		display: block;
	}

	.dz-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 6px 0;
	}

	.dz-nav a {
		padding: 13px 24px;
	}

	.dz-nav li + li a {
		border-top: 1px solid var(--dz-border);
	}

	.dz-footer-contact {
		font-size: 16px;
	}

	.dz-footer-sep {
		margin: 0 10px;
	}

	/* Privacy Policy */
	.dz-page-privacypolicy .entry-title {
		font-size: 24px;
	}

	.dz-privacy {
		padding: 0 12px 30px;
		font-size: 14px;
	}

	.dz-privacy h2 {
		font-size: 15px;
	}

	/* Bio */
	.dz-page-bio .entry-title {
		font-size: 28px;
		padding: 0 12px;
		margin-bottom: 20px;
	}

	.dz-bio {
		padding: 0 12px 0;
	}

	.dz-bio .wp-block-columns {
		gap: 28px;
	}

	/* Policy Priorities */
	.dz-page-issues .entry-title {
		font-size: 24px;
	}

	.dz-issues {
		padding: 0 12px 30px;
		font-size: 14px;
	}

	.dz-issues h2 {
		font-size: 15px;
	}

	/* Vote */
	.dz-vote-text {
		padding: 28px 12px 40px;
	}

	.dz-vote-text p {
		font-size: 14px;
	}

	/* Financial Resources */
	.dz-fin-hero {
		min-height: 300px;
		padding: 44px 16px;
	}

	.dz-fin-hero-overlay h1 {
		font-size: 26px;
	}

	.dz-fin-text {
		padding: 28px 12px 40px;
	}

	.dz-fin-text h2 {
		font-size: 18px;
	}

	.dz-fin-text p {
		font-size: 14px;
	}

	/* Home */
	.dz-home-intro {
		padding: 32px 12px 36px;
	}

	.dz-home-intro h2 {
		font-size: 15px;
	}

	.dz-home-intro p {
		margin-top: 22px;
		font-size: 14px;
	}

	.dz-home-donate {
		padding: 36px 16px;
	}

	.dz-home-donate-inner {
		flex-direction: column;
		gap: 26px;
	}

	.dz-home-donate-grid {
		grid-template-columns: repeat(2, minmax(120px, 150px));
		justify-content: center;
	}

	.dz-home-donate-title {
		max-width: 300px;
		text-align: center;
		font-size: 20px;
	}

	.dz-home-why {
		padding: 40px 12px 46px;
	}

	.dz-home-why h2 {
		font-size: 22px;
	}

	.dz-home-why p {
		font-size: 14px;
	}

	.dz-home-involved {
		padding: 40px 12px 48px;
	}

	.dz-home-involved-title {
		font-size: 25px;
	}

	.dz-home-name-row {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}
