/* Civic Torch — layout and community styles */

.section-inner,
.header-inner,
.content-width {
	width: min(1120px, calc(100% - 2.5rem));
	margin-inline: auto;
}

/* ---------- Header (gold bar, source-inspired) ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--ct-gold);
	color: var(--ct-black);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header-actions-bar {
	background: var(--ct-gold);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-actions-inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	min-height: 48px;
}

.header-social {
	display: flex;
	gap: 0.4rem;
	margin-right: auto;
}

.social-link {
	width: 32px;
	height: 32px;
	border: 2px solid var(--ct-black);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: transparent;
}

.social-link::before {
	content: "";
	width: 12px;
	height: 12px;
	background: var(--ct-black);
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
}

.social-x::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18 2h3l-7.5 8.6L22 22h-6.8l-5.3-7-6 7H1l8.1-9.3L2 2h7l4.8 6.4L18 2z'/%3E%3C/svg%3E");
}

.social-facebook::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M14 9h3V6h-3c-2.2 0-4 1.8-4 4v2H8v3h2v7h3v-7h3l1-3h-4V10c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
}

.social-instagram::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4zm5 5.2A3.8 3.8 0 1 0 15.8 12 3.8 3.8 0 0 0 12 8.2zM18.2 6.1a1 1 0 1 0 1 1 1 1 0 0 0-1-1z'/%3E%3C/svg%3E");
}

.header-cta-group {
	display: flex;
	gap: 0.45rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.05rem;
	border-radius: 2px;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	line-height: 1;
	cursor: pointer;
}

.btn-header {
	background: var(--ct-black);
	color: var(--ct-white);
	border-color: var(--ct-black);
}

.btn-header:hover {
	background: transparent;
	color: var(--ct-black);
}

.btn-gold {
	background: var(--ct-gold);
	color: var(--ct-black);
	border-color: var(--ct-gold);
}

.btn-gold:hover {
	background: var(--ct-gold-bright);
	color: var(--ct-black);
}

.btn-outline-light {
	background: transparent;
	color: var(--ct-white);
	border-color: var(--ct-white);
}

.btn-outline-light:hover {
	background: var(--ct-white);
	color: var(--ct-black);
}

.btn-outline-dark {
	background: transparent;
	color: var(--ct-black);
	border-color: var(--ct-black);
}

.btn-outline-dark:hover {
	background: var(--ct-black);
	color: var(--ct-white);
}

.header-main {
	background: var(--ct-gold);
}

.header-main .header-inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: var(--ct-header-h);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.site-logo-link,
.custom-logo-link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.site-logo-link svg,
.custom-logo {
	height: 52px;
	width: auto;
	display: block;
}

.brand-text {
	min-width: 0;
}

.site-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1.1;
	margin: 0;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.site-title a {
	color: var(--ct-black);
	text-decoration: none;
}

.site-description {
	margin: 0.15rem 0 0;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.menu-toggle {
	display: none;
	margin-left: auto;
	background: transparent;
	border: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ct-black);
	position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle-bars::before {
	top: -7px;
}

.menu-toggle-bars::after {
	top: 7px;
}

.primary-nav {
	margin-left: auto;
}

.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 1.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav a {
	text-decoration: none;
	font-weight: 700;
	font-size: 0.86rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ct-black);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

.primary-nav .sub-menu {
	position: absolute;
	background: var(--ct-black);
	color: var(--ct-white);
	padding: 0.6rem 0;
	min-width: 200px;
	display: none;
	z-index: 20;
}

.primary-nav li {
	position: relative;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	display: block;
}

.primary-nav .sub-menu a {
	display: block;
	padding: 0.45rem 1rem;
	color: var(--ct-white);
}

.primary-nav .sub-menu a:hover {
	color: var(--ct-gold);
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	min-height: 68vh;
	display: grid;
	align-items: end;
	background-color: var(--ct-dark);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: var(--ct-white);
}

.hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-inner {
	position: relative;
	z-index: 1;
	width: min(1120px, calc(100% - 2.5rem));
	margin-inline: auto;
	padding: 5.5rem 0 4.25rem;
}

.kicker {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ct-gold);
	margin: 0 0 0.7rem;
}

.hero h1,
.section h2,
.entry-header h1,
.archive-header h1 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 0.85rem;
}

.hero h1 {
	font-size: clamp(2.3rem, 5vw, 4.3rem);
	max-width: 16ch;
}

.section h2,
.entry-header h1,
.archive-header h1 {
	font-size: clamp(1.85rem, 3vw, 2.7rem);
}

.section h2::after,
.entry-header h1::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	background: var(--ct-gold);
	margin-top: 0.7rem;
}

.hero-sub {
	max-width: 42ch;
	font-size: 1.15rem;
	margin: 0;
}

.hero-actions {
	display: flex;
	gap: 0.7rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

/* ---------- Sections ---------- */

.section {
	padding: 4.6rem 0;
}

.mayor,
.support {
	background: var(--ct-white);
}

.priorities,
.news {
	background: var(--ct-paper);
}

.mayor-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
	gap: 3rem;
	align-items: center;
}

.mayor-photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.role {
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.85rem;
	margin: 0 0 1rem;
}

.mayor-bio {
	margin-bottom: 1.4rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-top: 2rem;
}

.card {
	background: var(--ct-white);
	border: 1px solid #eadfbe;
	border-radius: var(--ct-radius);
	padding: 1.45rem;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.card:hover {
	border-top: 3px solid var(--ct-gold);
	padding-top: calc(1.45rem - 2px);
}

.card-index {
	display: block;
	font-family: var(--font-display);
	font-size: 1.4rem;
	color: var(--ct-gold-deep);
	margin-bottom: 0.4rem;
}

.card h3,
.card h2 {
	font-family: var(--font-display);
	margin: 0 0 0.55rem;
	font-size: 1.35rem;
}

.card h3 a,
.card h2 a {
	text-decoration: none;
}

.card-link {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
}

.card-news {
	padding: 0;
	overflow: hidden;
}

.card-news .card-body {
	padding: 1.2rem 1.3rem 1.4rem;
}

.card-news:hover {
	padding-top: 0;
}

.card-thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.meta {
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ct-mid);
	margin: 0 0 0.4rem;
}

.section-more {
	margin: 2rem 0 0;
}

.stats {
	background: var(--ct-black);
	color: var(--ct-white);
	padding: 3.2rem 0;
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	text-align: center;
}

.stat-number {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 4vw, 3.4rem);
	color: var(--ct-gold);
	line-height: 1;
}

.stat-label {
	display: block;
	margin-top: 0.45rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

/* ---------- Content pages ---------- */

.site-main {
	min-height: 50vh;
}

.content-width {
	padding: 3.5rem 0 4.5rem;
}

.entry-hero {
	margin: 0 0 1.6rem;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--font-display);
}

.archive-header {
	padding: 3rem 0 0.5rem;
}

.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ct-line);
}

.comment-list {
	list-style: none;
	padding: 0;
}

.nav-links,
.page-links,
.navigation {
	margin-top: 2rem;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 0 2rem;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 0.6rem 0.8rem;
	border: 1px solid #ccc;
	font: inherit;
}

.search-form input[type="submit"] {
	background: var(--ct-black);
	color: var(--ct-white);
	border: 0;
	padding: 0.6rem 1rem;
	font-weight: 700;
	cursor: pointer;
}

.widget {
	margin-bottom: 1.5rem;
}

.widget-title {
	font-family: var(--font-display);
	font-size: 1.15rem;
	margin: 0 0 0.6rem;
}

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

.site-footer {
	background: var(--ct-black);
	color: #ddd;
	padding: 3.2rem 0 1.4rem;
	border-top: 4px solid var(--ct-gold);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.1fr 1.6fr;
	gap: 2.4rem;
	align-items: start;
}

.footer-title {
	font-family: var(--font-display);
	font-size: 1.35rem;
	color: var(--ct-white);
	margin: 0 0 0.25rem;
}

.footer-tagline {
	margin: 0 0 0.9rem;
	color: var(--ct-gold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.78rem;
}

.footer-menus {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.8rem;
}

.footer-brand .site-logo-link svg,
.footer-brand .custom-logo {
	height: 42px;
	filter: invert(1) sepia(1) saturate(6) hue-rotate(6deg);
}

.footer-brand strong {
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: var(--ct-white);
}

.footer-heading {
	font-family: var(--font-display);
	font-size: 1.1rem;
	color: var(--ct-white);
	margin: 0 0 0.8rem;
}

.footer-nav-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav-col a,
.site-footer a {
	color: #ddd;
}

.footer-legal {
	width: min(1120px, calc(100% - 2.5rem));
	margin: 2.2rem auto 0;
	padding-top: 1.2rem;
	border-top: 1px solid #333;
}

.authorised-by {
	font-size: 0.78rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	opacity: 0.8;
	margin: 0 0 0.4rem;
}

.copyright {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.7;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
	.menu-toggle {
		display: block;
	}

	.primary-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--ct-gold);
		padding: 0.8rem 1.25rem 1.2rem;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.85rem;
	}

	.primary-nav .sub-menu {
		position: static;
		display: block;
		background: transparent;
		padding: 0.3rem 0 0.3rem 0.8rem;
	}

	.primary-nav .sub-menu a {
		color: var(--ct-black);
		padding: 0.25rem 0;
	}

	.header-social {
		display: none;
	}

	.mayor-grid,
	.card-grid,
	.stat-grid,
	.footer-grid,
	.footer-menus {
		grid-template-columns: 1fr;
	}

	.hero {
		min-height: 58vh;
	}
}

@media (max-width: 640px) {
	.site-description {
		display: block;
		font-size: 0.62rem;
	}

	.site-title {
		font-size: 1.05rem;
	}
}


.calendar-embed {
	margin-top: 2rem;
	border: 1px solid #eadfbe;
	border-radius: var(--ct-radius);
	overflow: hidden;
	background: #fff;
}
.calendar-embed iframe {
	display: block;
	width: 100%;
	min-height: 620px;
	border: 0;
}

.section.support .card-grid {
	grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
	.section.support .card-grid {
		grid-template-columns: 1fr;
	}
}

.mayor-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin: 1.1rem 0 0;
}

.home-editor .entry-content > *:first-child {
	margin-top: 0;
}
.home-editor .entry-content h2 {
	font-family: var(--font-display);
	margin: 0 0 0.8rem;
}
