/**
 * Oregon Levy – landing page sections.
 *
 * Design source: 25400.1 Oregon Levy Landing Page.xd (1920px artboard).
 * Pixel values noted as "@1920" come straight from the XD file.
 */

body,
.editor-styles-wrapper {
	--theme-font-family: var(--wp--preset--font-family--inter-tight);
	--ol-navy: var(--wp--preset--color--ol-navy, #192c57);
	--ol-red: var(--wp--preset--color--ol-red, #e01f1f);
	--ol-gray: var(--wp--preset--color--ol-gray, #6f6f6f);
	--ol-light: var(--wp--preset--color--ol-light, #f4f4f4);
	--ol-rule: #707070;
	--ol-gutter: clamp(16px, 4vw, 48px);
	--ol-pad: clamp(32px, 2.6vw, 50px);
	font-family: var(--wp--preset--font-family--inter-tight);
}

/* ---------- Section shell ---------- */

html body {
	background-color: #fff;
}

.ol-section {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: var(--ol-pad) var(--ol-gutter);
	font-family: var(--wp--preset--font-family--inter-tight);
	font-weight: 500;
	line-height: 1.25;
}

.entry-content > .ol-section,
.is-root-container > .ol-section {
	margin-block: 0;
}

.ol-section :where(h1, h2, h3, h4, p, ul) {
	margin-block: 0;
	font-family: inherit;
	letter-spacing: normal;
}

.ol-section :is(h1, h2, h3, h4) {
	color: inherit;
	font-weight: 600;
	line-height: 1.1;
}

.ol-section > * + * {
	margin-block-start: 0.6em;
}

.ol-eyebrow {
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1.15;
}

.ol-upper {
	text-transform: uppercase;
}

.ol-light {
	font-weight: 300;
}

/* Avoid one-word last lines on narrow screens. */
.ol-section :is(h1, h2, h3, p, summary) {
	text-wrap: pretty;
}

.ol-nowrap {
	white-space: nowrap;
}

/* Red brush-stroke underline (exported from the XD vector). */
.ol-brush::after {
	content: "";
	display: block;
	width: min(6.6em, 100%);
	aspect-ratio: 660 / 21.4;
	margin-top: 0.22em;
	background: url(../img/brush.svg) no-repeat 0 0 / 100% 100%;
}

/* ---------- 1. Hero ---------- */

.ol-hero.wp-block-cover {
	min-height: clamp(340px, 29.75vw, 571px) !important;
	padding-block: clamp(40px, 6vw, 110px);
	padding-inline: var(--ol-gutter);
}

.ol-hero .wp-block-cover__image-background {
	object-position: right center;
}

/* Navy diagonal panel + halftone dots, clipped to the XD mask path (0→64% top, 82.6% bottom). */
.ol-hero .wp-block-cover__background,
.ol-cta::before {
	clip-path: polygon(0 0, 64.05% 0, 82.6% 100%, 0 100%);
	background-image: url(../img/dots.svg);
	background-repeat: no-repeat;
	background-size: 89.9% auto;
	background-position: -0.5% -18.6vw;
}

.ol-hero h1 {
	text-transform: uppercase;
	line-height: 0.98;
	letter-spacing: -0.01em;
}

/* ---------- 2. Intro ---------- */

.ol-intro h2 {
	line-height: 1.2;
}

.ol-intro > * + * {
	margin-block-start: 1em;
}

.ol-strong-copy {
	font-weight: 600;
}

/* ---------- 3. Investment cards ---------- */

.ol-investment > .ol-cards {
	margin-block-start: clamp(28px, 3vw, 56px);
}

.ol-cards {
	gap: clamp(24px, 3vw, 60px);
}

.ol-card.wp-block-media-text {
	align-items: start;
}

.ol-card .wp-block-media-text__media img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
	height: auto;
}

.ol-card .wp-block-media-text__content {
	padding: 0 0 0 clamp(16px, 1.3vw, 25px);
}

.ol-card .wp-block-media-text__content > * + * {
	margin-block-start: 0.35em;
}

.ol-card .wp-block-media-text__content > p:last-child {
	margin-block-start: 1em;
	line-height: 1.25;
}

.ol-card h3 {
	text-transform: uppercase;
}

.ol-label {
	font-weight: 600;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--ol-body);
}

/* Support details: gray box under each card; landing.js collapses it to the first bullets. */
.ol-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 1.2vw, 24px);
}

.ol-cards > .wp-block-column > * {
	margin: 0;
}

/* Side by side, the two support boxes share a row so their tops line up. */
@media (min-width: 782px) {
	.wp-block-columns.ol-cards {
		display: grid;
		grid-template-columns: 1fr 1fr;
		row-gap: clamp(16px, 1.2vw, 24px);
	}

	.ol-cards > .wp-block-column {
		display: grid;
		grid-row: span 2;
		grid-template-rows: subgrid;
	}
}

.ol-support {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: clamp(16px, 1.4vw, 27px);
	background: var(--ol-light);
	border: 1px solid var(--ol-rule);
	font-size: var(--wp--preset--font-size--ol-body);
}

.ol-section .ol-support-title {
	margin: 0 0 0.6em;
	font-size: inherit;
	text-transform: uppercase;
	line-height: 1.2;
}

.ol-support-list.wp-block-list {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.2;
}

.ol-support-list li + li {
	margin-block-start: 0.4em;
}

.ol-support-list li::before {
	content: "•";
	margin-inline-end: 0.3em;
}

.ol-support.ol-peek-2.is-collapsed li:nth-child(n + 3),
.ol-support.ol-peek-3.is-collapsed li:nth-child(n + 4) {
	display: none;
}

.ol-more {
	align-self: flex-end;
	margin-block-start: auto;
	padding: 1em 0 0;
	border: 0;
	background: none;
	color: var(--ol-red);
	font: inherit;
	cursor: pointer;
}

.ol-more:is(:hover, :focus-visible) {
	text-decoration: underline;
}

.ol-more:focus-visible {
	outline: 2px solid var(--ol-red);
	outline-offset: 2px;
}

/* ---------- 4. Benefits strip ---------- */

/* Navy band ends with a slant just past the content column (≈1640px → 1500px @1920);
   extended a little so wrapped bullets never hit the slant at narrower widths. */
.ol-benefits::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	z-index: -1;
	width: calc(50% + 760px);
	background: var(--ol-navy);
	clip-path: polygon(0 0, 100% 0, calc(100% - 136px) 100%, 0 100%);
}

.ol-benefits {
	padding-block: clamp(32px, 2.6vw, 48px) clamp(36px, 3vw, 56px);
}

.ol-inline-list.wp-block-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 1.4em;
	margin-block-start: 0.9em;
	padding: 0 8% 0 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--ol-body);
	font-weight: 600;
}

.ol-inline-list li {
	margin: 0;
}

.ol-inline-list li::before {
	content: "•";
	margin-inline-end: 0.3em;
}

/* ---------- 5. Proposed / stats ---------- */

.ol-proposed > .ol-stats {
	margin-block-start: clamp(28px, 3.5vw, 64px);
}

.ol-stats {
	gap: clamp(16px, 2vw, 40px);
}

.ol-stats .wp-block-column > * + * {
	margin-block-start: 0.6em;
}

.ol-stat {
	font-weight: 600;
	line-height: 1;
}

/* ---------- 6. FAQ ---------- */

.ol-faq-title.ol-section {
	padding-block: clamp(28px, 3.1vw, 60px);
}

.ol-faq-title h2 {
	text-transform: uppercase;
}

.ol-faqs.ol-section {
	padding-block: clamp(40px, 5.2vw, 100px);
}

.ol-faqs > * + * {
	margin-block-start: clamp(14px, 1.3vw, 25px);
}

.ol-faq.wp-block-details {
	background: var(--ol-light);
	border: 1px solid var(--ol-rule);
}

.ol-faq.wp-block-details > summary {
	margin: 0;
}

.ol-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: clamp(14px, 1.2vw, 22px) clamp(16px, 1.5vw, 28px);
	color: var(--ol-navy);
	font-size: var(--wp--preset--font-size--ol-md);
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

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

.ol-faq summary::after {
	content: "+";
	flex: none;
	width: 0.8em;
	font-size: 1.6em;
	font-weight: 700;
	line-height: 0.7;
	text-align: center;
}

.ol-faq[open] summary {
	border-bottom: 1px solid var(--ol-rule);
}

.ol-faq[open] summary::after {
	content: "–";
	color: var(--ol-red);
}

.ol-faq summary:focus-visible {
	outline: 3px solid var(--ol-red);
	outline-offset: 2px;
}

.ol-faq > :not(summary) {
	margin: 0;
	padding: clamp(16px, 1.6vw, 32px) clamp(16px, 1.5vw, 28px) clamp(20px, 2vw, 40px);
}

/* Multi-block answers (e.g. intro line + list) share one padded panel. */
.ol-faq > :not(summary) + :not(summary) {
	padding-top: 0;
}

.ol-faq > :not(summary):not(:last-child) {
	padding-bottom: 0.5em;
}

.ol-faq > .ol-faq-list {
	padding-inline-start: calc(clamp(16px, 1.5vw, 28px) + 1.2em);
}

/* ---------- 7. Vote explainer ---------- */

.ol-vote > * + * {
	margin-block-start: 0.6em;
}

.ol-vote > h2 + * {
	margin-block-start: 0.9em;
}

.ol-ballot {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.35em;
	min-height: clamp(30px, 2.3vw, 44px);
	padding-inline-start: calc(clamp(30px, 2.3vw, 44px) + 0.8em);
	font-size: var(--wp--preset--font-size--ol-body);
	font-weight: 600;
}

.ol-ballot strong {
	font-size: 1.4em;
	font-weight: 600;
}

.ol-ballot::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: clamp(30px, 2.3vw, 44px);
	aspect-ratio: 1;
	background: url(../img/ballot-empty.svg) no-repeat center / contain;
}

.ol-ballot-no::before {
	background-image: url(../img/ballot-check.svg);
}

.ol-vote > .wp-block-buttons {
	margin-block-start: clamp(24px, 2.2vw, 42px);
}

.ol-btn .wp-block-button__link {
	min-width: min(380px, 100%);
	padding: 0.3em 1.2em;
	border-radius: 0;
	font-size: var(--wp--preset--font-size--ol-md);
	font-weight: 600;
	text-transform: uppercase;
	transition: background-color 0.15s, color 0.15s;
}

.ol-btn .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: var(--ol-navy) !important;
	color: #fff !important;
}

.ol-btn .wp-block-button__link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* ---------- 8. Sign-up form ---------- */

.ol-signup.ol-section {
	border-block: 1px solid var(--ol-rule);
	padding-block: clamp(28px, 2vw, 38px) clamp(32px, 2.5vw, 48px);
}

.ol-signup-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px clamp(24px, 2.9vw, 56px);
	margin-block-start: 0.9em;
	font-size: var(--wp--preset--font-size--ol-body);
	font-weight: 500;
}

.ol-field {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ol-field-email {
	flex: 1 1 320px;
	max-width: 606px;
}

.ol-signup-form :is(label, legend) {
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.2;
}

.ol-field > label,
.ol-field > legend {
	display: block;
	margin-inline: 0;
	margin-block-end: 0.5em;
	padding: 0;
	color: var(--ol-red);
}

.ol-field-email input {
	box-sizing: border-box;
	width: 100%;
	height: clamp(44px, 3.2vw, 62px);
	padding: 0 0.6em;
	border: 1px solid var(--ol-rule);
	border-radius: 0;
	background: #fff;
	font: inherit;
	color: var(--ol-navy);
}

.ol-options {
	display: flex;
	column-gap: 1.2em;
}

.ol-options > label {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: clamp(44px, 3.2vw, 62px);
	margin: 0;
	color: var(--ol-gray);
	cursor: pointer;
}

/* Square Yes/No boxes per the design; still radio buttons (one answer each). */
.ol-options input[type="radio"] {
	appearance: none;
	font-size: inherit;
	flex: none;
	width: 1.2em;
	height: 1.2em;
	margin: 0;
	border: 1px solid var(--ol-rule);
	border-radius: 0;
	background: #fff;
	cursor: pointer;
}

.ol-options input[type="radio"]:checked {
	border-color: var(--ol-red);
	background: var(--ol-red) url(../img/ballot-check.svg) no-repeat center / 100%;
	box-shadow: inset 0 0 0 2px #fff;
}

.ol-signup-form :focus-visible {
	outline: 2px solid var(--ol-navy);
	outline-offset: 2px;
}

.ol-submit {
	height: clamp(44px, 3.2vw, 62px);
	min-width: 171px;
	padding: 0 1em;
	border: 0;
	border-radius: 0;
	background: var(--ol-red);
	color: #fff;
	font: inherit;
	font-size: var(--wp--preset--font-size--ol-md);
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s;
}

@media (min-width: 600px) {
	.ol-submit {
		margin-inline-start: auto;
	}
}

.ol-submit:is(:hover, :focus-visible) {
	background: var(--ol-navy);
}

.ol-hp {
	position: absolute;
	left: -9999px;
}

.ol-signup-msg {
	flex-basis: 100%;
	margin: 0;
	color: var(--ol-navy);
	font-weight: 600;
}

.ol-signup-note {
	flex-basis: 100%;
	margin: 0;
	color: var(--ol-gray);
	font-size: 0.7em;
}

.ol-signup-note a {
	color: var(--ol-navy);
}

.ol-signup-msg.is-error {
	color: var(--ol-red);
}

/* ---------- 9. Closing CTA ---------- */

.ol-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}

.ol-cta-cols {
	gap: clamp(24px, 4vw, 96px);
}

.ol-cta-left {
	text-align: center;
}

.ol-section .ol-vote-no {
	line-height: 0.84;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.ol-issue {
	display: table;
	margin: 0.06em auto 0;
	font-size: clamp(46px, 4.95vw, 95px);
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

.ol-issue.ol-brush::after {
	width: 100%;
	margin-top: 0.12em;
}

.ol-cta-cols .wp-block-column > * + * {
	margin-block-start: 0.2em;
}

.ol-cta .ol-light {
	line-height: 1.18;
}

.ol-cta-cols .wp-block-column > .ol-election-tag {
	width: fit-content;
	margin-block-start: 1.1em;
	padding: 0.45em 2.4em 0.45em 0.55em;
	background: #fff;
	color: var(--ol-red);
	font-weight: 600;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, calc(100% - 1.25em) 100%, 0 100%);
}

.ol-cta-cols .wp-block-column > .ol-disclaimer {
	margin-block-start: 2em;
	font-size: clamp(12px, 0.85vw, 16px);
	font-weight: 600;
	line-height: 1.6;
}

/* ---------- 10. Facebook bar ---------- */

.ol-facebook.ol-section {
	padding-block: clamp(14px, 1vw, 20px);
}

.ol-follow a {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.2em 0.5em;
	color: var(--ol-red);
	font-size: var(--wp--preset--font-size--ol-lg);
	font-weight: 600;
	text-decoration: none;
}

.ol-follow a::before {
	content: "";
	width: 0.95em;
	aspect-ratio: 1;
	background: url(../img/facebook.svg) no-repeat center / contain;
}

.ol-follow .ol-click {
	margin-inline-start: 0.4em;
	color: var(--ol-navy);
	font-size: 0.7em;
	text-transform: uppercase;
}

.ol-follow .ol-click::after {
	width: 100%;
	margin-top: 0.05em;
}

.ol-follow a:is(:hover, :focus-visible) .ol-click {
	color: var(--ol-red);
}

/* ---------- Privacy policy page ---------- */

.ol-privacy.ol-section {
	padding-block: clamp(40px, 5vw, 96px);
	color: var(--ol-gray);
	font-size: clamp(16px, 1.1vw, 19px);
	line-height: 1.55;
}

.ol-privacy > h2 {
	margin-block-start: 1.6em;
}

.ol-privacy strong {
	color: var(--ol-navy);
}

.ol-privacy > .ol-disclaimer {
	margin-block-start: 3em;
	font-size: 0.85em;
}

/* ---------- Responsive ---------- */

@media (max-width: 999.98px) {
	.ol-hero .wp-block-cover__background,
	.ol-cta::before {
		clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
	}
}

@media (max-width: 781.98px) {
	.wp-block-columns.ol-stats {
		flex-wrap: wrap !important;
		row-gap: 28px;
	}

	.wp-block-columns.ol-stats > .wp-block-column.wp-block-column {
		flex-basis: calc(50% - 8px) !important;
	}

	.ol-stats br {
		display: none;
	}

	.ol-cta-cols .wp-block-column {
		text-align: center;
	}

	.ol-cta-cols .wp-block-column > .ol-election-tag {
		margin-inline: auto;
		padding-inline: 1.6em;
		clip-path: polygon(0 0, 100% 0, calc(100% - 0.9em) 100%, 0.9em 100%);
	}
}

@media (max-width: 599.98px) {
	/* Photo sits behind a near-solid navy panel on phones. */
	.ol-hero .wp-block-cover__background,
	.ol-cta::before {
		clip-path: none;
	}

	.ol-hero .wp-block-cover__background {
		opacity: 0.9;
	}

	/* Fixed-size halftone so the dots keep their desktop scale instead of shrinking with the viewport. */
	.ol-hero .wp-block-cover__background,
	.ol-cta::before {
		background-size: 780px auto;
		background-position: -4px -161px;
	}

	.ol-inline-list.wp-block-list {
		flex-direction: column;
	}

	.ol-card .wp-block-media-text__content {
		padding: 16px 0 0;
	}

	.ol-field-email,
	.ol-submit {
		flex-basis: 100%;
		max-width: none;
	}

	/* Icon + "Follow us…" on one line, CLICK HERE centered below with its own-width brush. */
	.ol-follow a {
		display: inline-block;
		font-size: clamp(22px, 6.6vw, 28px);
	}

	.ol-follow a::before {
		display: inline-block;
		margin-inline-end: 0.3em;
		vertical-align: -0.15em;
	}

	.ol-follow .ol-click {
		display: table;
		margin: 0.2em auto 0;
	}

	.ol-card .wp-block-media-text__media img {
		aspect-ratio: 4 / 3;
		object-position: center top;
	}
}
