/* CVSD Vote No — site styles. Colors come from theme.json presets. */
:root {
	--navy: var(--wp--preset--color--contrast);
	--navy-2: var(--wp--preset--color--accent-3);
	--amber: var(--wp--preset--color--accent-1);
	--amber-pale: var(--wp--preset--color--accent-6);
	--surface: var(--wp--preset--color--accent-2);
	--muted: var(--wp--preset--color--accent-4);
	--border: var(--wp--preset--color--accent-5);
	--gutter: clamp(1rem, 4vw, 2rem);
}

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--navy);
}
.skip-link:focus { background: var(--amber); color: var(--navy); }

/* ---------- Header ---------- */
.site-header { padding: 0 !important; border-bottom: 4px solid var(--amber); background: var(--navy); color: #fff; }
.site-header .disclaimer-bar {
	margin: 0; padding: 0.4rem var(--gutter); background: var(--navy-2);
	font-size: 0.8125rem; text-align: center; color: #fff;
}
.site-header .header-inner { padding: 0.85rem var(--gutter); max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--gutter)); box-sizing: border-box; margin-inline: auto; gap: 1rem; }
.site-header .wp-block-site-title { margin: 0; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.site-header .wp-block-site-title a { color: #fff; text-decoration: none; }
.site-header .wp-block-site-title a::before { content: "NO"; display: inline-block; margin-right: 0.5rem; padding: 0.1rem 0.45rem; border-radius: 4px; background: var(--amber); color: var(--navy); font-size: 0.875rem; vertical-align: 0.1em; }
.site-header .wp-block-navigation { color: #fff; font-size: 0.9375rem; font-weight: 700; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation a:hover { text-decoration: underline; color: #fff; }
.site-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--navy) !important; color: #fff !important; padding: 1.5rem var(--gutter); }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.1rem; font-size: 1.25rem; }

/* ---------- Page chrome ---------- */
main.wp-block-group { margin-top: 0 !important; }
.wp-block-post-title { margin-bottom: 0.5rem; }
.page-intro { font-size: var(--wp--preset--font-size--large); color: var(--muted); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy :is(h1, h2, h3, p, li, a) { color: #fff; }
.section--amber { background: var(--amber); color: var(--navy); }
.section > * + * { margin-top: 1.1rem; }
.eyebrow {
	margin: 0 0 0.75rem !important; font-size: 0.8125rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.section--navy .eyebrow { color: var(--amber); }
.source {
	font-size: 0.8125rem !important; line-height: 1.45; color: var(--muted);
	border-left: 3px solid var(--border); padding-left: 0.75rem; margin-top: 1.5rem !important;
}
.section--navy .source { color: #C9D3E3; border-color: var(--navy-2); }
.section--navy .source a { color: #fff; }
.need-source { background: var(--amber-pale); color: #7A4B00; font-weight: 800; padding: 0 0.25em; border-radius: 3px; overflow-wrap: anywhere; }
.more-link { font-weight: 800; }
.more-link a { text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: clamp(4rem, 14vw, 8rem) var(--gutter) clamp(3.5rem, 10vw, 6rem) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.hero > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.hero-title { color: #fff !important; font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4.75rem) !important; line-height: 1.04 !important; }
.hero-title .hl { color: var(--amber); }
.hero-sub { margin-top: clamp(1.5rem, 4vw, 2.25rem) !important; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); line-height: 1.6; color: #D5DDEA; }
.vote-badge {
	display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem; margin-top: clamp(2.25rem, 6vw, 3.25rem) !important;
	padding: 0.8rem 1.2rem; border-radius: 8px; background: var(--amber); color: var(--navy);
	font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); font-weight: 800; line-height: 1.2;
}
.vote-badge strong { letter-spacing: 0.02em; }
.vote-badge__date { font-size: 0.95rem; font-weight: 700; }
.hero .wp-block-buttons { margin-top: clamp(1.75rem, 5vw, 2.5rem) !important; gap: 0.9rem; }
.hero-source { margin-top: clamp(2.5rem, 7vw, 4rem) !important; font-size: 0.8125rem; line-height: 1.5; color: #9FB0C8; }
.hero-source a { color: #C9D3E3; }

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: inherit; border: 2px solid currentColor; }
.section--navy .wp-block-button.is-style-outline .wp-block-button__link,
.hero .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; }

/* ---------- Stat cards (pattern: cvsd-vote-no/stat-strip) ---------- */
.stat-grid { display: grid !important; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 782px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
	margin: 0 !important; padding: 1.5rem 1.25rem 1.25rem !important; background: #fff;
	border: 1px solid var(--border); border-top: 6px solid var(--amber); border-radius: 8px;
}
.stat-card > * { margin: 0 !important; }
.stat-card > * + * { margin-top: 0.5rem !important; }
.stat-num { font-size: var(--wp--preset--font-size--stat) !important; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-label { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.stat-context { color: var(--muted); line-height: 1.45; }
.stat-card .source { margin-top: 1rem !important; }

/* ---------- Rate chart (bars scaled from $0, max = $2.50) ---------- */
.rate-chart { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.rate-chart li { display: grid; grid-template-columns: minmax(7.5rem, 32%) 1fr; align-items: center; gap: 0.75rem; }
.rate-chart .rate-label { font-weight: 700; font-size: 0.9375rem; line-height: 1.25; }
.rate-chart .rate-bar {
	position: relative; height: 2.5rem; width: calc(var(--v) / 2.5 * 100%); min-width: 4.5rem;
	background: var(--navy-2); border-radius: 4px; color: #fff; font-weight: 800;
	display: flex; align-items: center; justify-content: flex-end; padding-right: 0.6rem;
}
.rate-chart .is-max .rate-bar { background: var(--amber); color: var(--navy); }
.rate-note { font-size: 0.8125rem; color: var(--muted); margin-top: 0.5rem !important; }

/* ---------- Lists, quotes, tables ---------- */
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.9rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.8rem; height: 0.8rem; background: var(--amber); border-radius: 2px; }
.wp-block-quote { border-left: 6px solid var(--amber); padding: 0.25rem 0 0.25rem 1.25rem; margin-inline: 0; }
.wp-block-quote p { font-size: var(--wp--preset--font-size--large); font-weight: 700; line-height: 1.4; }
.wp-block-quote cite { font-size: 0.9375rem; font-style: normal; color: var(--muted); }
.pull { font-size: var(--wp--preset--font-size--large) !important; font-weight: 800; line-height: 1.35; border-left: 6px solid var(--amber); padding-left: 1.25rem; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--border); padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--navy); color: #fff; border-color: var(--navy); }
.wp-block-table tbody tr:nth-child(even) { background: var(--surface); }
.wp-block-table figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 0.5rem; }

/* FAQ */
.wp-block-details { border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; background: #fff; }
.wp-block-details + .wp-block-details { margin-top: 0.85rem; }
.wp-block-details summary { font-weight: 800; font-size: 1.0625rem; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: 0.75rem; }
.yes-side { background: var(--surface); border-radius: 6px; padding: 0.75rem 1rem; font-size: 0.9375rem; }

/* ---------- CTA, share, forms ---------- */
.cta .wp-block-buttons { justify-content: center; }
.cta { text-align: center; }
.share { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.share__label { font-weight: 800; width: 100%; }
.share a, .share button {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 6px;
	border: 2px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 700;
	text-decoration: none; cursor: pointer;
}
.share a:hover, .share button:hover { background: rgba(255, 255, 255, 0.12); }
html { scroll-behavior: smooth; }
.campaign-form { display: grid; gap: 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.campaign-form label { display: grid; gap: 0.3rem; font-weight: 700; }
.campaign-form input, .campaign-form select { font: inherit; padding: 0.7rem 0.8rem; border: 2px solid var(--border); border-radius: 6px; min-height: 44px; }
.campaign-form button { font: inherit; font-weight: 800; padding: 0.85rem 1.4rem; border: 0; border-radius: 6px; background: var(--amber); color: var(--navy); }
.campaign-form button[disabled] { opacity: 0.6; cursor: not-allowed; }
.form-todo { background: var(--amber-pale); border: 2px dashed #C58B00; border-radius: 6px; padding: 0.75rem 1rem; font-weight: 700; color: #5C3900; }
.ballot-dates { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.ballot-dates li { background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--amber); border-radius: 6px; padding: 0.85rem 1rem; }
.ballot-dates strong { display: block; }

/* Sources */
.source-list li { margin-bottom: 0.6rem; }
.source-list { padding-left: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 3rem var(--gutter) 6rem !important; margin-top: 0 !important; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer p { color: #E4E9F2; }
.site-footer .footer-vote { font-size: var(--wp--preset--font-size--large); font-weight: 800; color: #fff; }
.site-footer .footer-links a { margin-right: 1rem; display: inline-block; margin-bottom: 0.4rem; }
.site-footer .footer-disclaimer { font-size: 0.8125rem; color: #C9D3E3; }

/* ---------- Sticky mobile Vote NO bar ---------- */
.vote-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: flex; justify-content: center; gap: 0.4rem;
	padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom)); background: var(--amber); color: var(--navy);
	font-weight: 700; text-decoration: none; box-shadow: 0 -2px 10px rgba(11, 31, 58, 0.25);
}
.vote-bar strong { font-weight: 800; }
@media (min-width: 782px) { .vote-bar { display: none; } .site-footer { padding-bottom: 3rem !important; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* No block-gap strip between header / main / footer template parts */
.wp-site-blocks > * + * { margin-block-start: 0 !important; }

/* ---------- One shared left edge for every homepage section ----------
   WordPress's constrained layout centers each child at its own width, so a
   1120px headline and a 720px paragraph start at different x positions.
   Anchor every child to the left edge of the 1120px column instead, and cap
   text at a readable measure. */
.entry-content > .hero > *,
.entry-content > .section > * {
	box-sizing: border-box;
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: 0 !important;
	max-width: min(100%, 44rem) !important;
}
.entry-content > .hero > .hero-title,
.entry-content > .hero > .wp-block-buttons,
.entry-content > .section > .stat-grid,
.entry-content > .section > .wp-block-heading {
	max-width: min(100%, var(--wp--style--global--wide-size)) !important;
}
.entry-content > .section > .wp-block-heading { max-width: min(100%, 62rem) !important; text-wrap: balance; }
.vote-badge { display: flex !important; width: fit-content; }
.hero-sub { max-width: min(100%, 40rem) !important; }

/* CTA stays centered, on the full column */
.entry-content > .cta > * { max-width: min(100%, var(--wp--style--global--wide-size)) !important; margin-left: auto !important; margin-right: auto !important; }
