.gcda-portal,
.gcda-access-message {
	--gcda-green: #145b49;
	--gcda-green-dark: #0f4035;
	--gcda-mint: #e9f3ef;
	--gcda-cream: #f7f5ef;
	--gcda-ink: #172823;
	--gcda-muted: #5c6c67;
	--gcda-border: #d6e2dd;
	max-width: 1240px;
	margin: 36px auto;
	color: var(--gcda-ink);
}

.gcda-portal *,
.gcda-access-message * {
	box-sizing: border-box;
}

.gcda-portal__welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(24px, 4vw, 44px);
	border-radius: 22px;
	background: linear-gradient(135deg, var(--gcda-green-dark), var(--gcda-green));
	color: #fff;
}

.gcda-portal__welcome--photo {
	min-height: 390px;
	align-items: flex-end;
	background-position: center;
	background-size: cover;
	box-shadow: 0 16px 42px rgba(18,64,52,.16);
}

.gcda-portal__welcome--photo > div { max-width: 780px; }
.gcda-portal__welcome--photo h2 { margin-bottom: 12px; font-size: clamp(36px,5vw,62px); line-height: 1.02; }
.gcda-portal__welcome-lead { max-width: 680px; font-size: 19px; }

.gcda-portal__welcome h2,
.gcda-portal__welcome p {
	margin-top: 0;
	color: inherit;
}

.gcda-eyebrow {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .82;
}

.gcda-member-badge {
	display: inline-flex;
	margin-left: 8px;
	padding: 4px 9px;
	border: 1px solid rgba(255,255,255,.45);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.gcda-portal__logout {
	flex: 0 0 auto;
	padding: 10px 16px;
	border: 1px solid rgba(255,255,255,.5);
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.gcda-portal__overview {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 16px;
	margin: -34px 24px 28px;
}

.gcda-portal__overview-card {
	display: flex;
	min-height: 230px;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--gcda-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(18,64,52,.11);
	color: var(--gcda-ink);
	text-decoration: none;
}

.gcda-portal__overview-card:hover,
.gcda-portal__overview-card:focus { border-color: var(--gcda-green); color: var(--gcda-ink); transform: translateY(-2px); }
.gcda-portal__overview-card--vote { border-top: 6px solid #c5dc73; }
.gcda-portal__overview-card span { color: var(--gcda-green); font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.gcda-portal__overview-card h3 { margin: 12px 0 8px; color: var(--gcda-green-dark); font-size: 23px; line-height: 1.12; }
.gcda-portal__overview-card p { margin: 0 0 14px; color: var(--gcda-muted); }
.gcda-portal__overview-card strong { margin-top: auto; color: var(--gcda-green); }

.gcda-portal__nav {
	display: flex;
	gap: 9px;
	margin: 18px 0 34px;
	padding: 12px;
	overflow-x: auto;
	border: 1px solid var(--gcda-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(18,64,52,.06);
}

.gcda-portal__nav a {
	flex: 0 0 auto;
	padding: 9px 13px;
	border-radius: 8px;
	color: var(--gcda-green-dark);
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.gcda-portal__nav a:hover,
.gcda-portal__nav a:focus {
	background: var(--gcda-mint);
}

.gcda-portal__section {
	margin: 0 0 46px;
	scroll-margin-top: 30px;
}

.gcda-portal__section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--gcda-green);
}

.gcda-portal__section-heading h3 {
	margin: 0;
	color: var(--gcda-green-dark);
	font-size: clamp(22px, 3vw, 30px);
}

.gcda-portal__section-heading a,
.gcda-text-link {
	color: var(--gcda-green);
	font-weight: 750;
}

.gcda-content-grid,
.gcda-vote-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.gcda-content-card,
.gcda-vote-card,
.gcda-empty-state,
.gcda-access-message,
.gcda-portal__help {
	padding: 24px;
	border: 1px solid var(--gcda-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(18,64,52,.06);
}

.gcda-content-card { padding: 0; overflow: hidden; }
.gcda-content-card__image { height: 220px; overflow: hidden; background: var(--gcda-mint); }
.gcda-content-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gcda-content-card__body { padding: 24px; }

.gcda-portal__help {
	margin-top: 14px;
}

.gcda-portal__help h3 {
	margin-top: 0;
	color: var(--gcda-green-dark);
}

.gcda-content-card h4,
.gcda-vote-card h4 {
	margin: 8px 0 12px;
	color: var(--gcda-green-dark);
	font-size: 21px;
}

.gcda-content-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--gcda-muted);
	font-size: 13px;
}

.gcda-status {
	display: inline-flex;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--gcda-mint);
	color: var(--gcda-green-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
}

.gcda-content-card__summary {
	font-weight: 650;
}

.gcda-decision-ledger {
	margin: 20px 0;
	border-top: 1px solid var(--gcda-border);
}

.gcda-decision-ledger div {
	padding: 12px 0;
	border-bottom: 1px solid var(--gcda-border);
}

.gcda-decision-ledger dt {
	margin-bottom: 4px;
	color: var(--gcda-green-dark);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.gcda-decision-ledger dd {
	margin: 0;
}

.gcda-vote-card {
	grid-column: 1 / -1;
	padding: clamp(24px,4vw,40px);
	border-top: 6px solid #c5dc73;
}

.gcda-vote-card h4 { max-width: 900px; font-size: clamp(24px,3.4vw,38px); line-height: 1.1; }

.gcda-vote-brief-links {
	margin: 20px 0 24px;
	padding: 16px 18px;
	border-left: 5px solid #c5dc73;
	border-radius: 0 12px 12px 0;
	background: var(--gcda-mint);
}

.gcda-vote-brief-links p { margin: 0 0 8px; }
.gcda-vote-brief-links p:last-child { margin-bottom: 0; }
.gcda-vote-brief-links a { color: var(--gcda-green-dark); font-weight: 800; }

.gcda-test-warning {
	margin: 20px 0 24px;
	padding: 16px 18px;
	border-left: 5px solid #b17b12;
	border-radius: 0 12px 12px 0;
	background: #fff7df;
	color: var(--gcda-ink);
}

.gcda-portal__records { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.gcda-portal__records .gcda-portal__section { margin-bottom: 24px; }
.gcda-portal__records .gcda-content-grid { grid-template-columns: 1fr; }

.gcda-vote-form {
	margin-top: 22px;
	padding: 18px;
	border-radius: 12px;
	background: var(--gcda-cream);
}

.gcda-vote-form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.gcda-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 9px;
	padding: 12px 14px;
	border: 1px solid var(--gcda-border);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.gcda-choice input {
	width: 20px;
	height: 20px;
}

.gcda-comment-label {
	display: block;
	margin-top: 18px;
	font-weight: 750;
}

.gcda-comment-label textarea {
	display: block;
	width: 100%;
	margin-top: 7px;
	padding: 11px;
	border: 1px solid var(--gcda-border);
	border-radius: 9px;
	background: #fff;
}

.gcda-comment-label small {
	display: block;
	margin-top: 7px;
	color: var(--gcda-muted);
	font-weight: 400;
}

.gcda-vote-form button {
	margin-top: 16px;
	padding: 12px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--gcda-green);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.gcda-vote-privacy,
.gcda-vote-note {
	color: var(--gcda-muted);
	font-size: 13px;
}

.gcda-vote-confirmation,
.gcda-vote-note {
	margin-top: 18px;
	padding: 12px 14px;
	border-left: 4px solid var(--gcda-green);
	background: var(--gcda-mint);
}

.gcda-vote-alert {
	display: grid;
	gap: 3px;
	margin: 0 0 20px;
	padding: 15px 17px;
	border-left: 5px solid #b17b12;
	border-radius: 0 10px 10px 0;
	background: #fff7df;
	color: var(--gcda-ink);
}

.gcda-vote-alert--success {
	border-left-color: var(--gcda-green);
	background: var(--gcda-mint);
}

.gcda-vote-alert--error {
	border-left-color: #b42318;
	background: #fff0ee;
}

.gcda-vote-alert span { font-size: 14px; }

.gcda-results {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--gcda-border);
}

.gcda-results h5 {
	margin: 0 0 14px;
	font-size: 18px;
}

.gcda-result {
	margin: 0 0 12px;
}

.gcda-result > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 5px;
}

.gcda-result__bar {
	display: block;
	height: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: #dce8e3;
}

.gcda-result__bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--gcda-green);
}

@media (max-width: 720px) {
	.gcda-portal__welcome {
		align-items: flex-start;
		flex-direction: column;
	}

	.gcda-portal__welcome--photo { min-height: 410px; }
	.gcda-portal__overview { grid-template-columns: 1fr; margin: -24px 12px 26px; }
	.gcda-portal__overview-card { min-height: 190px; }

	.gcda-content-grid,
	.gcda-vote-list {
		grid-template-columns: 1fr;
	}

	.gcda-portal__records { grid-template-columns: 1fr; }

	.gcda-vote-card,
	.gcda-empty-state {
		padding: 19px;
	}

	.gcda-content-card__body { padding: 19px; }
}


/* Accessible Member Centre vote button */
.gcda-connect .gcda-vote-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	padding: 14px 22px;
	border: 2px solid #145b49;
	background: #145b49;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	box-shadow: 0 2px 5px rgba(0,0,0,.18);
	cursor: pointer;
}
.gcda-connect .gcda-vote-form button:hover {
	border-color: #0f4035;
	background: #0f4035;
}
.gcda-connect .gcda-vote-form button:focus-visible {
	outline: 3px solid #f4c542;
	outline-offset: 3px;
}
