/*
Theme Name: Verdant Civic Review
Author: Marlow Finch Studio
Description: Classic PHP WordPress theme with dynamic categories, editable Customizer content, generated visual assets, mobile-first navigation, and environmental publishing layouts.
Version: 1.0.10
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: etr-theme
*/

:root {
  --etr-accent: #e5f937;
  --etr-green: #035925;
  --etr-mint: #f2f8f3;
  --etr-text: #3b3b33;
  --etr-surface: #ffffff;
  --etr-black: #050505;
  --etr-muted: #777973;
  --etr-line: rgba(3, 89, 37, 0.12);
  --etr-soft-line: rgba(255, 255, 255, 0.18);
  --etr-font-family: Georgia, "Times New Roman", serif;
  --etr-container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--etr-text);
  background: var(--etr-surface);
  font-family: var(--etr-font-family);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--etr-accent);
  outline-offset: 4px;
}

.etr-screen-reader-text,
.etr-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.etr-skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: var(--etr-black);
  background: var(--etr-accent);
}

.etr-container {
  width: min(100% - 40px, var(--etr-container));
  margin-inline: auto;
}

.etr-site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  color: var(--etr-green);
}

body.admin-bar .etr-site-header {
  top: 32px;
}

.etr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--etr-container));
  min-height: 76px;
  margin-inline: auto;
  gap: 14px;
}

.etr-brand {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(28vw, 250px);
  gap: 8px;
  color: var(--etr-green);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 400;
  line-height: 1;
}

.home .etr-site-header,
.front-page .etr-site-header,
.blog .etr-site-header,
.home .etr-brand,
.front-page .etr-brand,
.blog .etr-brand {
  color: #ffffff;
}

.etr-brand-logo img {
  width: auto;
  max-height: 46px;
}

.etr-brand-mark {
  width: 34px;
  height: 34px;
}

.etr-brand-name {
  overflow: hidden;
  max-width: 240px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.etr-desktop-nav {
  display: none;
  min-width: 0;
  flex: 1 1 auto;
}

.etr-primary-menu,
.etr-mobile-menu,
.etr-footer-menu,
.etr-category-list,
.etr-mobile-category-list,
.etr-footer-category-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.etr-primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 20px);
}

.etr-menu-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}

.etr-menu-link:hover,
.etr-category-link:hover {
  color: var(--etr-accent);
}

.etr-header-cta,
.etr-mobile-cta,
.etr-button {
  display: inline-flex;
  align-items: stretch;
  min-height: 44px;
  color: var(--etr-black);
  background: var(--etr-accent);
  font-size: 15px;
  font-weight: 400;
}

.etr-header-cta {
  display: none;
  flex: 0 0 auto;
  min-height: 42px;
}

.etr-header-cta span:first-child,
.etr-mobile-cta span:first-child,
.etr-button span:first-child {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  white-space: nowrap;
}

.etr-arrow-box {
  display: inline-grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--etr-black);
  border: 2px solid var(--etr-accent);
  font-size: 19px;
  line-height: 1;
}

.etr-mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0 13px;
  gap: 6px;
  color: var(--etr-black);
  background: var(--etr-accent);
  border: 0;
}

.etr-mobile-toggle span:not(.etr-screen-reader-text) {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.etr-mobile-panel {
  width: min(100% - 30px, 420px);
  margin-left: 0;
  padding: 10px 20px 24px;
  color: #ffffff;
  background: #000000;
}

.etr-mobile-menu {
  display: grid;
  gap: 18px;
  padding-block: 4px 20px;
}

.etr-mobile-title {
  margin: 0 0 12px;
  color: var(--etr-accent);
  font-size: 13px;
  text-transform: uppercase;
}

.etr-mobile-category-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.etr-mobile-cta {
  width: max-content;
}

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

.etr-hero {
  min-height: 720px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.etr-hero-inner {
  display: flex;
  align-items: flex-end;
  width: min(100% - 40px, var(--etr-container));
  min-height: 720px;
  margin-inline: auto;
  padding-block: 150px 72px;
}

.etr-hero-copy {
  width: min(100%, 800px);
}

.etr-hero-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.etr-hero-text {
  width: min(100%, 760px);
  margin: 28px 0 38px;
  color: #ffffff;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
}

.etr-scroll-band {
  padding: 18px 20px;
  color: var(--etr-black);
  background: var(--etr-surface);
  border-bottom: 1px solid var(--etr-line);
}

.etr-scroll-band a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: max(0px, calc((100% - var(--etr-container)) / 2));
  font-size: 18px;
}

.etr-archive-section,
.etr-single {
  padding: 96px 0;
  background: var(--etr-surface);
}

.etr-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--etr-black);
  font-size: 17px;
  line-height: 1.2;
}

.etr-section-label::before {
  content: "";
  width: 12px;
  height: 12px;
  background:
    radial-gradient(circle at 50% 50%, var(--etr-accent) 0 2px, transparent 3px),
    radial-gradient(circle at 2px 2px, var(--etr-green) 0 2px, transparent 3px),
    radial-gradient(circle at 10px 10px, var(--etr-green) 0 2px, transparent 3px);
}

.etr-section-title,
.etr-archive-title,
.etr-single-title {
  margin: 0;
  color: var(--etr-text);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
}

.etr-topic-section,
.etr-latest-section,
.etr-widget-section {
  padding: 96px 0;
  background: var(--etr-mint);
}

.etr-centered-heading {
  width: min(100%, 780px);
  margin: 0 auto 58px;
  text-align: center;
}

.etr-centered-heading .etr-section-label {
  justify-content: center;
}

.etr-topic-rows {
  border-top: 1px solid var(--etr-line);
}

.etr-topic-row {
  display: grid;
  padding: 28px 0;
  gap: 18px;
  color: var(--etr-black);
  border-bottom: 1px solid var(--etr-line);
}

.etr-topic-number {
  color: var(--etr-green);
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
}

.etr-topic-name {
  display: block;
  margin-bottom: 16px;
  color: var(--etr-black);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
}

.etr-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.etr-topic-tags span,
.etr-post-meta a,
.etr-single-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  color: #ffffff;
  background: var(--etr-green);
  font-size: 15px;
  line-height: 1.2;
}

.etr-post-grid {
  display: grid;
  gap: 34px;
}

.etr-post-card {
  background: var(--etr-surface);
}

.etr-post-media {
  display: block;
  overflow: hidden;
}

.etr-post-media img {
  width: 100%;
  aspect-ratio: 1.2 / 0.9;
  object-fit: cover;
  transition: transform 280ms ease, opacity 280ms ease;
}

.etr-post-card:hover .etr-post-media img {
  transform: scale(1.025);
  opacity: 0.9;
}

.etr-post-body {
  padding: 24px 22px 22px;
}

.etr-post-title {
  margin: 0;
  color: var(--etr-text);
  font-size: clamp(23px, 2.1vw, 28px);
  font-weight: 400;
  line-height: 1.22;
}

.etr-post-excerpt {
  margin: 16px 0 24px;
  color: var(--etr-muted);
  font-size: 17px;
}

.etr-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  color: var(--etr-muted);
  font-size: 15px;
}

.etr-post-meta a {
  color: var(--etr-text);
  background: var(--etr-mint);
}

.etr-empty-inline,
.etr-empty-state {
  color: var(--etr-muted);
  font-size: 17px;
}

.etr-empty-state {
  padding: 34px;
  background: var(--etr-surface);
  border: 1px solid var(--etr-line);
}

.etr-empty-state h2 {
  margin: 0 0 8px;
  color: var(--etr-text);
  font-weight: 400;
}

.etr-empty-state p {
  margin: 0;
}

.etr-site-footer {
  padding: 64px 0 26px;
  color: #ffffff;
  background: var(--etr-green);
}

.etr-footer-top {
  display: grid;
  gap: 34px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--etr-soft-line);
}

.etr-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 26px;
}

.etr-footer-column h2,
.etr-footer-newsletter h2,
.etr-footer-widget-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.etr-footer-menu,
.etr-footer-category-list {
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.35;
}

.etr-footer-menu > li:nth-child(n+5) {
  display: none;
}

.etr-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.etr-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.54);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.etr-social-link:hover,
.etr-social-link:focus-visible {
  color: var(--etr-black);
  background: var(--etr-accent);
  border-color: var(--etr-accent);
}

.etr-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.etr-footer-newsletter p {
  max-width: 560px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.55;
}

.etr-newsletter-form {
  display: flex;
  align-items: stretch;
  width: min(100%, 560px);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.etr-newsletter-form input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  color: #ffffff;
  background: transparent;
  border: 0;
}

.etr-newsletter-form input::placeholder {
  color: #ffffff;
}

.etr-newsletter-form button {
  width: 48px;
  color: var(--etr-black);
  background: var(--etr-accent);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.72);
}

.etr-footer-brand {
  padding: 28px 0 16px;
}

.etr-footer-brand-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 10px;
  color: #ffffff;
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.etr-footer-brand-mark {
  flex: 0 0 auto;
  width: clamp(24px, 3vw, 40px);
  height: clamp(24px, 3vw, 40px);
}

.etr-footer-bottom {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.etr-footer-bottom p {
  margin: 0;
}

.etr-archive-section {
  padding-top: 160px;
  background: var(--etr-mint);
}

.etr-archive-header {
  max-width: 820px;
  margin-bottom: 48px;
}

.etr-archive-description {
  margin-top: 18px;
  color: var(--etr-muted);
  font-size: 18px;
}

.etr-pagination,
.etr-post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
}

.etr-pagination a,
.etr-post-nav a {
  display: inline-flex;
  padding: 12px 18px;
  color: var(--etr-black);
  background: var(--etr-accent);
}

.etr-single {
  padding-top: 170px;
}

.etr-single-header,
.etr-single-content,
.etr-single-footer {
  width: min(100% - 40px, 850px);
  margin-inline: auto;
}

.etr-single-header {
  margin-bottom: 42px;
}

.etr-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 22px;
  color: var(--etr-muted);
}

.etr-single-content {
  color: var(--etr-text);
  font-size: 20px;
  line-height: 1.75;
}

.etr-single-content > * {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.etr-single-content a {
  color: var(--etr-green);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.etr-single-content img {
  height: auto;
}

.etr-single-footer {
  margin-top: 48px;
}

.etr-single-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.etr-page-links {
  display: flex;
  gap: 8px;
}

@media (min-width: 640px) {
  .etr-topic-row {
    grid-template-columns: 74px 1fr;
    align-items: start;
  }

  .etr-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .etr-header-inner {
    flex-wrap: wrap;
    align-content: center;
    width: min(100% - 32px, var(--etr-container));
    min-height: 92px;
    padding-block: 8px 10px;
    gap: 8px 12px;
  }

  .etr-brand {
    order: 1;
    max-width: calc(100% - 20px);
    font-size: clamp(20px, 2.2vw, 27px);
  }

  .etr-desktop-nav {
    display: block !important;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }

  .etr-primary-menu {
    justify-content: center;
    gap: clamp(10px, 2vw, 18px);
  }

  .etr-menu-link {
    max-width: 118px;
    justify-content: center;
    font-size: clamp(11px, 1.25vw, 13px);
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .etr-header-cta {
    display: none !important;
  }

  .etr-mobile-toggle,
  .etr-mobile-panel {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .etr-header-inner {
    flex-wrap: nowrap;
    width: min(100% - 40px, var(--etr-container));
    min-height: 76px;
    padding-block: 0;
    gap: 14px;
  }

  .etr-brand {
    order: initial;
    max-width: min(28vw, 250px);
    font-size: clamp(23px, 2vw, 30px);
  }

  .etr-desktop-nav {
    order: initial;
    display: inline-flex !important;
    flex: 1 1 auto;
    width: auto;
  }

  .etr-primary-menu {
    gap: clamp(12px, 1.4vw, 20px);
  }

  .etr-menu-link {
    max-width: none;
    font-size: 13px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .etr-header-cta {
    display: inline-flex !important;
  }

  .etr-footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    align-items: start;
  }

  .etr-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.admin-bar .etr-site-header {
    top: 46px;
  }

  .etr-desktop-nav,
  .etr-header-cta {
    display: none !important;
  }

  .etr-mobile-toggle {
    display: inline-flex !important;
  }

  .etr-site-header {
    position: absolute;
  }

  .etr-header-inner {
    width: 100%;
    min-height: 68px;
    padding-inline: 20px;
  }

  .etr-brand {
    max-width: calc(100% - 76px);
    font-size: 30px;
  }

  .etr-hero {
    min-height: 580px;
  }

  .etr-hero-inner {
    min-height: 580px;
    padding-block: 128px 40px;
  }

  .etr-hero-title {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1.14;
  }

  .etr-hero-text {
    margin: 26px 0 28px;
    font-size: 18px;
  }

  .etr-scroll-band a {
    margin-left: 0;
  }

  .etr-topic-section,
  .etr-latest-section {
    padding-block: 70px;
  }
}

@media (max-width: 520px) {
  .etr-container,
  .etr-hero-inner {
    width: calc(100% - 40px);
  }

  .etr-hero {
    min-height: 580px;
  }

  .etr-button {
    max-width: 100%;
  }

  .etr-button span:first-child {
    min-width: 0;
  }

  .etr-post-body {
    padding: 22px 18px;
  }

  .etr-newsletter-form {
    min-width: 0;
  }

  .etr-footer-brand-link {
    font-size: 30px;
  }
}
