:root {
  color-scheme: light;
  font-family: 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif;
  background: #edf1ed;
  color: #18251f;
  --ink: #18251f;
  --muted: #68756d;
  --paper: #fbfcf8;
  --line: #dce4dc;
  --forest: #173f35;
  --lime: #d9ef63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 88% 4%, rgba(217, 239, 99, 0.35), transparent 25rem), #edf1ed;
}

.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 64px) 56px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3vw, 38px) clamp(28px, 5vw, 68px);
  background: var(--forest);
  color: #f4f7e9;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: -230px;
  border: 1px solid rgba(217, 239, 99, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(217, 239, 99, 0.08), 0 0 0 68px rgba(217, 239, 99, 0.05);
}

.hero-copy,
.hero-actions {
  position: relative;
  z-index: 1;
}

.eyebrow,
.lane-kicker {
  margin: 0 0 14px;
  color: #b9cf65;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 800px;
  margin: 0 0 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 3.8vw, 4.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 580px;
  margin: 0;
  color: #c5d2c6;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

button {
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--forest);
  padding: 13px 18px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
}

button span {
  display: inline-block;
  margin-left: 10px;
  font-size: 1.1rem;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 220px;
  gap: 10px;
  margin: 32px 0 18px;
}

.search-field,
.controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.controls select {
  padding: 0 14px;
}

.summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.summary p {
  margin: 0;
}

.summary strong {
  color: var(--ink);
}

.summary span {
  padding: 0 8px;
  color: #a1afa4;
}

.policy-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.policy-lane {
  min-width: 0;
  padding: 22px;
  background: rgba(251, 252, 248, 0.78);
  border: 1px solid var(--line);
  border-top: 4px solid #a7c65b;
}

.lane-bess {
  border-top-color: #e19a58;
}

.lane-renewables {
  border-top-color: #5f9f86;
}

.lane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.lane-header h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.05;
}

.lane-count {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.lane-description {
  min-height: 44px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.policy-card {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: var(--muted);
}

.policy-category {
  background: #e8efcf;
  color: #3d542d;
  padding: 4px 8px;
  border-radius: 2px;
  font-weight: 700;
}

.policy-card h2 {
  margin: 0 0 9px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.policy-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.policy-card h2 a:hover {
  color: #63872f;
}

.policy-card p {
  margin: 0 0 13px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.policy-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #829087;
  font-size: 0.72rem;
}

.empty-state {
  margin: 0;
  padding: 18px 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 24px 4px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.footer-brand span {
  margin-top: 4px;
}

.footer-mark {
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime) !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-links {
  justify-content: center;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--forest);
}

.footer-legal {
  margin: 0;
  text-align: right;
}

.footer-legal p {
  margin: 0;
}

.footer-founder {
  max-width: 360px;
  margin-bottom: 8px !important;
  line-height: 1.5;
}

.footer-founder strong {
  color: var(--ink);
}

@media (max-width: 860px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .policy-board {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .lane-description {
    min-height: 0;
  }

  .policy-lane {
    scroll-snap-align: start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 14px 14px 36px;
  }

  .hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .policy-lane {
    padding: 18px;
  }
}
