:root {
	--green-950: #052f20;
	--green-900: #06472c;
	--green-800: #07613a;
	--green-700: #087b46;
	--green-100: #dff3e7;
	--green-50: #f2faf5;
	--gold-500: #d7a52e;
	--gold-300: #f0ce70;
	--ink: #17221c;
	--muted: #5d6962;
	--line: #dce5df;
	--paper: #ffffff;
	--soft: #f7f9f7;
	--shadow-sm: 0 8px 24px rgba(5, 47, 32, .07);
	--shadow: 0 18px 48px rgba(5, 47, 32, .1);
	--radius-sm: 10px;
	--radius: 18px;
	--radius-lg: 24px;
	--content-width: 1120px;
	--motion: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-underline-offset: .18em; transition: color var(--motion), background-color var(--motion), border-color var(--motion); }
a:hover { color: var(--green-900); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.wrap { width: min(var(--content-width), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 99999; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 18px; clip: auto; background: #fff; color: #000; }

.site-header { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(7,97,58,.1); box-shadow: 0 1px 0 rgba(5,47,32,.03); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.custom-logo-link { flex: 0 0 auto; padding: 6px; border-radius: 12px; background: #fff; }
.custom-logo { display: block; width: 60px; height: 60px; object-fit: contain; }
.site-branding__text { min-width: 0; display: grid; color: var(--green-950); line-height: 1.1; text-decoration: none; }
.site-branding__name { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.site-branding__tagline { margin-top: 5px; color: var(--muted); font-size: .76rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.menu a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; color: var(--ink); font-size: .94rem; font-weight: 680; text-decoration: none; border-radius: 999px; }
.menu a:hover { background: var(--green-50); color: var(--green-800); }
.menu .menu__action { padding-inline: 20px; background: var(--green-800); color: #fff; }
.menu .menu__action:hover { background: var(--green-950); color: #fff; }
.menu .menu__logout { border: 1px solid #d9b7b7; color: #8a2424; background: #fff8f8; }
.menu .menu__logout:hover { border-color: #b96767; color: #6f1717; background: #fff0f0; }
.menu-toggle { flex: 0 0 auto; display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--green-900); content: ""; transition: transform .2s ease; }
.menu-toggle__icon::before { transform: translateY(-6px); }
.menu-toggle__icon::after { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(2px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: rotate(-45deg); }

.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, var(--green-950), var(--green-800)); }
.hero::after { position: absolute; right: -10%; bottom: -70%; width: 600px; height: 600px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.hero__pattern { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(30deg, transparent 48%, rgba(255,255,255,.17) 49%, rgba(255,255,255,.17) 51%, transparent 52%); background-size: 42px 72px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero__inner { position: relative; z-index: 1; min-height: 590px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: clamp(40px, 6vw, 72px); padding-block: 72px; }
.hero__content { max-width: 690px; }
.eyebrow { margin: 0 0 16px; color: var(--gold-300); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow--green { color: var(--green-700); }
h1, h2, h3 { margin-top: 0; color: inherit; font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.025em; }
.hero h1 { max-width: 780px; margin-bottom: 24px; overflow-wrap: break-word; font-size: clamp(2.8rem, 5.5vw, 5.15rem); text-wrap: balance; }
.hero__intro { max-width: 650px; margin: 0; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 24px; border: 0; border-radius: 10px; font-weight: 800; text-align: center; text-decoration: none; transition: transform var(--motion), background-color var(--motion), box-shadow var(--motion); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: #1e271f; box-shadow: 0 10px 30px rgba(215,165,46,.25); }
.button--gold:hover { color: #111; background: #f6d780; }
.button--green { background: var(--green-800); color: #fff; }
.button--green:hover { background: var(--green-950); color: #fff; }
.button--logout { min-height: 44px; padding: 10px 18px; border: 1px solid #d9b7b7; color: #842020; background: #fff8f8; box-shadow: none; }
.button--logout:hover { color: #681515; background: #fff0f0; }
.text-link { color: #fff; font-weight: 750; text-decoration: none; }
.text-link:hover { color: var(--gold-300); }
.hero__crest { position: relative; aspect-ratio: 1; }
.hero__crest::before { position: absolute; inset: 6%; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 30px 80px rgba(0,0,0,.28); content: ""; }
.hero__crest img { position: relative; width: min(100%, 420px); margin-inline: auto; padding: 16px; border-radius: 22%; background: #fff; }

.trust-strip { color: #fff; background: #04291c; }
.trust-strip__inner { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: clamp(24px, 8vw, 90px); }
.trust-strip span { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 720; }
.trust-strip i { display: grid; width: 24px; height: 24px; place-items: center; color: var(--green-950); font-style: normal; border-radius: 50%; background: var(--gold-300); }

.section { padding-block: 80px; }
.section--light { background: var(--soft); }
.section-heading { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .ballot-shell h2, .notice-card h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.15rem); }
.section-heading p:last-child, .ballot-shell__intro > p:last-child { color: var(--muted); font-size: 1.05rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { position: relative; min-height: 245px; padding: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.step-card__number { position: absolute; top: 14px; right: 20px; color: rgba(8,123,70,.1); font-family: Georgia, serif; font-size: 4rem; font-weight: 800; line-height: 1; }
.step-card h3 { position: relative; margin: 44px 0 10px; color: var(--green-950); font-size: 1.55rem; }
.step-card p { position: relative; margin: 0; color: var(--muted); }
.step-card::before { display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--gold-500); content: ""; }

.ballot-section { background: linear-gradient(180deg, #fff, var(--green-50)); }
.ballot-shell { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(42px, 6vw, 72px); }
.ballot-shell__panel { padding: clamp(28px, 5vw, 48px); border: 1px solid #cfe2d6; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.ballot-shell__panel > p { color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 7px 12px; color: #774e00; font-size: .82rem; font-weight: 800; border-radius: 99px; background: #fff3ce; }
.status-badge--success { color: var(--green-900); background: var(--green-100); }
.status-badge--testing { color: #714b00; background: #fff0b8; }
.voting-portal > * + * { margin-top: 22px; }
.election-schedule { display: grid; gap: 12px; margin-bottom: 24px; }
.election-schedule__item { position: relative; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--green-50); }
.election-schedule__item.is-active { border-color: var(--green-700); background: #ecf8f0; box-shadow: 0 0 0 2px rgba(8,123,70,.08); }
.election-schedule__item strong, .election-schedule__item span { display: block; }
.election-schedule__item strong { color: var(--green-950); }
.election-schedule__item strong a { color: inherit; text-decoration-thickness: 2px; text-decoration-color: var(--gold-500); }
.election-schedule__item strong a:hover { color: var(--green-700); }
.election-schedule__item span { margin-top: 4px; color: var(--muted); font-size: .93rem; }
.election-schedule__item small { position: absolute; top: 14px; right: 14px; padding: 3px 8px; color: #fff; font-size: .72rem; font-weight: 800; border-radius: 999px; background: var(--green-700); }
.election-schedule__timezone { margin: 0; color: var(--muted); font-size: .84rem; font-weight: 650; }
.active-election h3, .election-closed h3 { margin-bottom: 10px; color: var(--green-950); font-size: 1.7rem; }
.active-election p:last-child, .election-closed p { margin-bottom: 0; color: var(--muted); }
.election-polls { display: grid; gap: 24px; margin-top: 26px; }
.election-poll { min-width: 0; padding: clamp(14px, 2.5vw, 24px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.election-poll h4 { margin: 0 0 16px; color: var(--green-950); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.05rem; font-weight: 850; letter-spacing: 0; text-align: center; }
.election-page { min-height: 70vh; padding-block: 56px 80px; background: linear-gradient(180deg, var(--green-50), #fff); }
.election-page__header { max-width: 820px; margin: 0 auto 38px; text-align: center; }
.election-page__header h1 { margin-bottom: 14px; color: var(--green-950); font-size: clamp(2.4rem, 6vw, 4.6rem); }
.election-page__header > p:last-child { margin: 0; color: var(--muted); }
.election-page__panel { padding: clamp(22px, 4vw, 44px); border: 1px solid #cfe2d6; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.election-page__panel > .status-badge + .status-badge { margin-left: 8px; }
.election-page__statusbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.election-page__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.election-page__badges .status-badge { margin-bottom: 0; }
.election-page__account-rule { max-width: 760px; margin: 18px auto 0; color: var(--green-900); font-weight: 750; text-align: center; }
.election-countdown { margin: 28px 0 30px; padding: clamp(20px, 4vw, 30px); border: 1px solid rgba(240,206,112,.75); border-radius: 18px; color: #fff; background: linear-gradient(125deg, var(--green-950), var(--green-800)); box-shadow: 0 16px 36px rgba(5,47,32,.18); }
.election-countdown__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.election-countdown__eyebrow { margin: 0 0 3px; color: var(--gold-300); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.election-countdown h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.election-countdown time { color: rgba(255,255,255,.82); font-size: .88rem; font-weight: 700; text-align: right; }
.election-countdown__digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 16px); }
.election-countdown__digits span { min-width: 0; padding: clamp(10px, 2vw, 16px) 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.08); text-align: center; }
.election-countdown__digits strong { display: block; color: #fff; font-size: clamp(1.7rem, 5vw, 3rem); font-variant-numeric: tabular-nums; font-weight: 900; line-height: 1; letter-spacing: .02em; }
.election-countdown__digits small { display: block; margin-top: 7px; color: rgba(255,255,255,.78); font-size: clamp(.64rem, 1.8vw, .78rem); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Keep the third-party ballot compact, responsive, and aligned with the site design. */
.election-page .it_epoll_container { width: 100%; margin: 16px 0 0; padding: clamp(14px, 2.5vw, 24px); overflow: hidden; border: 0; border-radius: var(--radius); font-family: inherit; box-shadow: none; }
.election-page .it_epoll_inner { width: 100%; font-family: inherit; text-align: center; }
.election-page .it_epoll_title { margin: 0 0 18px; padding: 8px 48px 12px !important; font-size: clamp(1.25rem, 3vw, 1.65rem) !important; }
.election-page .it_epoll_grid { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 18px; }
.election-page .it_epoll_grid .it_epoll_survey-item { flex: 0 1 calc((100% - 36px) / 3); width: calc((100% - 36px) / 3); min-width: 0; max-width: 360px; margin: 0; display: block; text-align: center; }
.election-page .it_epoll_grid .it_epoll_survey-name { min-height: 58px; padding: 18px 12px 8px; color: var(--ink); font-family: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.35; text-align: center; }
.election-page .it_epoll_survey-item-action { min-height: 56px; justify-content: center; text-align: center; }
.election-page #it_epoll_survey-vote-button,
.election-page .it_epoll_survey-notfound-button { min-width: 112px; min-height: 46px; padding: 12px 20px !important; border-radius: 8px !important; font-family: inherit; font-weight: 800; }
.election-page #it_epoll_survey-vote-button:focus-visible,
.election-page .it_epoll_frontend_close_btn:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.election-page .it_epoll_powered_by { display: none; }
.notice-section { padding-top: 0; background: var(--green-50); }
.notice-card { display: flex; gap: 22px; padding: 32px; border-left: 5px solid var(--gold-500); border-radius: 12px; background: #fff; box-shadow: 0 12px 34px rgba(5,47,32,.06); }
.notice-card__icon { flex: 0 0 auto; display: grid; width: 42px; height: 42px; place-items: center; color: #fff; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 800; border-radius: 50%; background: var(--green-800); }
.notice-card h2 { margin-bottom: 8px; font-size: 1.45rem; }
.notice-card p { margin: 0; color: var(--muted); }

.content-shell { max-width: 820px; }
.content-shell.wide, .front-page-content .content-shell { max-width: 1120px; }
.entry-header h1, .archive-header h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.entry-content { overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.35em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.entry-content input:not([type="checkbox"]):not([type="radio"]), .entry-content select, .entry-content textarea { width: 100%; max-width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #aabbb0; border-radius: 8px; background: #fff; }
.entry-content input[type="submit"], .entry-content button { padding: 12px 20px; color: #fff; font-weight: 750; border: 0; border-radius: 8px; background: var(--green-800); cursor: pointer; }
.entry-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.entry-title a { color: var(--green-950); text-decoration: none; }
.entry-image { margin: 30px 0; }
.error-page { min-height: 55vh; display: grid; align-items: center; text-align: center; }
.error-page__code { margin: 0; color: var(--gold-500); font-size: 5rem; font-weight: 900; line-height: 1; }

/* Keep third-party ballot output readable without overriding plugin controls. */
.it_epoll_container, .it_epoll_poll, [class*="epoll"] { max-width: 100%; }
.it_epoll_container img, .it_epoll_poll img, [class*="epoll"] img { height: auto; }

.site-footer { padding-block: 48px; color: rgba(255,255,255,.78); background: #031f15; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 6px 0 0; }
.footer-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: #fff; }
.site-footer__copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }

@media (max-width: 800px) {
	.admin-bar .site-header { top: 46px; }
	.wrap { width: min(calc(100% - 28px), 680px); }
	.site-header__inner { min-height: 76px; }
	.custom-logo-link { padding: 4px; }
	.custom-logo { width: 48px; height: 48px; }
	.site-branding__tagline { display: none; }
	.menu-toggle { display: block; }
	.primary-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 12px 14px 20px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 18px 30px rgba(5,47,32,.12); }
	.primary-navigation.is-open { display: block; }
	.menu { display: grid; gap: 4px; }
	.menu a { display: flex; border-radius: 10px; }
	.menu .menu__action { justify-content: center; margin-top: 6px; }
	.menu__session { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
	.menu .menu__logout { justify-content: center; }
	.hero__inner { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 56px; text-align: center; }
	.hero__content { margin-inline: auto; }
	.hero__actions { justify-content: center; }
	.hero__crest { width: min(300px, 78vw); margin-inline: auto; }
	.hero__crest img { padding: 12px; }
	.steps { grid-template-columns: 1fr; }
	.step-card { min-height: 0; }
	.ballot-shell { grid-template-columns: 1fr; gap: 34px; }
	.section { padding-block: 60px; }
	.election-page { padding-block: 48px 64px; }
	.election-page .it_epoll_grid .it_epoll_survey-item { flex-basis: calc((100% - 18px) / 2); width: calc((100% - 18px) / 2); max-width: 420px; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer__copyright { grid-column: auto; }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 520px) {
	.site-branding { gap: 8px; }
	.site-branding__name { max-width: 170px; font-size: .98rem; white-space: normal; }
	.custom-logo { width: 46px; height: 46px; }
	.hero__inner { gap: 34px; padding-block: 48px; }
	.hero h1 { font-size: clamp(2.35rem, 11vw, 3.25rem); }
	.hero__actions { align-items: stretch; flex-direction: column; }
	.hero__actions .text-link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
	.hero__crest { width: min(260px, 72vw); }
	.trust-strip__inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 20px; }
	.section { padding-block: 52px; }
	.section-heading { margin-bottom: 34px; }
	.step-card { padding: 26px; }
	.ballot-shell__panel, .election-page__panel { padding: 20px; border-radius: 16px; }
	.election-page__header { margin-bottom: 28px; }
	.election-page__header h1 { font-size: clamp(2.2rem, 12vw, 3.2rem); }
	.election-page__panel > .status-badge + .status-badge { margin-left: 0; }
	.election-page__statusbar { align-items: stretch; flex-direction: column; }
	.election-page__statusbar .button--logout { width: 100%; }
	.election-countdown__heading { align-items: flex-start; flex-direction: column; gap: 8px; }
	.election-countdown time { text-align: left; }
	.election-page .it_epoll_container { margin-inline: 0; padding: 10px; }
	.election-page .it_epoll_title { padding-inline: 42px !important; }
	.election-page .it_epoll_grid { gap: 14px; }
	.election-page .it_epoll_grid .it_epoll_survey-item { flex-basis: 100%; width: 100%; max-width: 420px; margin: 0; }
	.notice-card { flex-direction: column; }
	.footer-menu { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
