body {
  background-color: #fffef9;
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
  margin: 0;
  padding: 2rem;
  color: #2f4536;
}

header,
main,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  font-family: "NPS 1935", serif;
  font-size: 3.2rem;
  color: #3e5b3a;
  margin-bottom: 0.2em;
}

h2 {
  font-size: 1.5rem;
  color: #4a4036;
  margin-top: 2rem;
}

footer {
  font-size: 0.9rem;
  color: #6b655f;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #ddd6ce;
  margin-top: 4rem;
}

p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #3a3532;
}

.page-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.results-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.results-header {
  margin-bottom: 2rem;
}

.site-intro {
  background-color: #e7e1d4;
  padding: 1.5rem;
  border-left: 5px solid #8b7c6e;
  margin-top: 1rem;
  border-radius: 4px;
}

.city-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 360px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid #ccc;
  background-color: #fdfcf9;
}

.number-display {
  font-family: "NPS 1935", serif;
  font-size: 5rem;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  color: #3e5b3a;
  text-align: center;
  margin: 1rem 0 0.5rem 0;
  line-height: 1;
}

.city-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: #3a3532;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
  font-size: 1.25rem;
  font-weight: 400;
  color: #456c50; /* warm civic green */
  text-align: center;
  margin-top: -0.25rem;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.square-miles {
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.city-form label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #2c241b;
}

.city-form input[type="text"] {
  font-size: 1.2rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #aaa;
  width: 100%;
  margin-bottom: 0;
  background-color: #fff;
}

.city-form button {
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  background-color: #2e5d43;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}

.city-form button:hover {
  background-color: #3c7a57;
}

.city-name {
  font-family: "NPS 1935", serif;
  font-size: 2.5rem;
  margin: 0;
  text-align: left;
}

.data-year {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.25rem;
}

.stat-focus {
  margin-bottom: 2rem;
}

.stat-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: "NPS 1935", serif;
  font-size: 3.5rem;
  margin: 0;
}

.stat-details ul {
  list-style-type: none;
  padding: 0;
}

.stat-details li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.map-link {
  text-decoration: none;
  color: #2f4536;
  font-weight: bold;
}

.map-link:hover {
  text-decoration: underline;
}

.results-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

#county-svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}

#county-svg path {
  fill: #2e5d43; /* rich dark green */
  opacity: 1;
}

.results-left,
.results-right {
  flex: 1;
}

.results-right {
  border-left: 4px solid #8a6e50;
  padding-left: 2rem;
}

@media (max-width: 600px) {
  body {
    padding: 1.2rem;
    font-size: 1rem;
  }

  header,
  main,
  footer {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .city-name {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .stat-focus,
  .site-intro {
    margin-bottom: 1.5rem;
  }

  .site-intro {
    padding: 1rem;
    border-left-width: 4px;
  }

  .page-box {
    padding: 1.2rem;
    border-radius: 8px;
  }

  .stat-details li {
    font-size: 0.95rem;
  }

  .data-year {
    font-size: 0.85rem;
  }

  .results-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}

/* Mobile stacking */
@media (max-width: 768px) {
  .results-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .results-right {
    border-left: none;
    border-top: 4px solid #8a6e50;
    padding-top: 1.5rem;
    padding-left: 0;
  }
}

/*Results Card Container*/

.results-card {
  display: flex;
  flex-direction: wrap;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  background-color: #fffef9;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  max-width: 960px;
  margin: 3rem auto;
}

/* Vertical Stat Block */
.stat-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 280px;
  background-color: #fdf7ef;
  border: 2px solid #2e5d43;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.number-display {
  font-family: "Abril Fatface", serif;
  font-size: 3.5rem;
  font-weight: normal;
  color: #2e5d43;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.per-capita {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: #4d604f;
  letter-spacing: 0.05rem;
}

/* County Shape Visualization */
#county-svg-container {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  text-align: center;
  margin: 2rem auto 0;
}

#county-svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

#county-svg path {
  fill: #2e5d43;
  opacity: 1;
}

/* Right-side Copy Block */
.copy-block {
  flex: 1;
  min-width: 280px;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  color: #3a3532;
  line-height: 1.65;
  margin-top: 1rem;
}

.copy-block ul {
  padding-left: 1.2rem;
  margin: 1rem 0;
}

.copy-block li {
  margin-bottom: 0.6rem;
}

/* Dynamic Info Summary */
.dynamic-info {
  text-align: center;
  margin-top: 2rem;
  font-family: "Quicksand", sans-serif;
  font-size: 1.05rem;
  color: #4a4036;
}

/* Return Link */
.nav-link {
  font-family: "Quicksand", sans-serif;
  color: #2e5d43;
  font-weight: bold;
  text-decoration: none;
}

.nav-link a:hover {
  text-decoration: underline;
}

/* Methodology Container */
.methodology-container {
  border: 2px solid #000;
  border-radius: 6px;
  background-color: #fefcf8;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 720px;
  font-family: "Quicksand", sans-serif;
  line-height: 1.6;
  color: #3a3532;
}

.methodology-container h2 {
  font-family: "EB Garamond", serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #2e2e2e;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .results-card {
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
  }

  .stat-vertical,
  .copy-block,
  #county-svg-container {
    margin: 0 auto;
  }

  .copy-block {
    margin-top: 2rem;
  }
}
