* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f3ed;
  color: #18212b;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 56px) 64px;
  background:
    linear-gradient(rgba(18, 33, 43, 0.68), rgba(18, 33, 43, 0.34)),
    url("/assets/field.jpg") center/cover;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.hero-content {
  width: min(920px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: #7d8b58;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e9d48f;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

h2 {
  font-size: 34px;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 22px;
}

.section {
  padding: 48px clamp(18px, 4vw, 56px) 64px;
}

.section-heading {
  margin-bottom: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.controls label,
.scenario-controls label {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d8d2c7;
  border-radius: 8px;
  background: #fffaf2;
  color: #60707c;
  font-size: 13px;
  font-weight: 700;
}

.controls select,
.controls input,
.scenario-controls select,
.scenario-controls input {
  width: 100%;
}

.controls select,
.scenario-controls select,
.scenario-controls input[type="text"],
.scenario-controls input[type="number"] {
  min-height: 36px;
  border: 1px solid #c9d0d6;
  border-radius: 6px;
  background: #fff;
  color: #18212b;
}

.controls span,
.scenario-controls span {
  color: #18212b;
  font-size: 18px;
}

.scenario-controls {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 12px;
  margin-bottom: 18px;
}

.stats div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid #d8d2c7;
  background: #fffaf2;
  border-radius: 8px;
}

.stat-label {
  display: block;
  color: #60707c;
  font-size: 13px;
  font-weight: 700;
}

.stats strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.chart {
  width: 100%;
  height: 520px;
  border: 1px solid #d8d2c7;
  background: #fff;
  border-radius: 8px;
}

.g2-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.g2-summary h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 20px;
}

.g2-summary div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid #d8d2c7;
  border-radius: 8px;
  background: #fffaf2;
}

.g2-summary span {
  display: block;
  color: #60707c;
  font-size: 13px;
  font-weight: 700;
}

.g2-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.g2-details {
  margin-top: 16px;
  padding: 0 18px 16px;
  overflow-x: auto;
  border: 1px solid #d8d2c7;
  border-radius: 8px;
  background: #fffaf2;
}

.g2-details > summary {
  padding: 14px 0;
  color: #4d5a33;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.g2-detail-block {
  margin-bottom: 12px;
}

.g2-detail-block strong {
  display: block;
  margin-bottom: 4px;
  color: #60707c;
  font-size: 13px;
}

.g2-detail-block p,
.g2-table-note {
  margin: 0 0 10px;
  color: #26333d;
}

.g2-details table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 14px;
}

.g2-details th,
.g2-details td {
  padding: 8px;
  border-bottom: 1px solid #d8d2c7;
  text-align: left;
}

.g2-details th {
  color: #60707c;
  font-size: 12px;
  text-transform: uppercase;
}

.g2-winner-model td:last-child,
.g2-winner-model td:nth-last-child(2) {
  color: #245a8d;
  font-weight: 700;
}

.g2-winner-baseline td:last-child,
.g2-winner-baseline td:nth-last-child(2) {
  color: #657241;
  font-weight: 700;
}

.g2-winner-draw td:last-child,
.g2-winner-draw td:nth-last-child(2) {
  color: #6b7480;
  font-weight: 700;
}

.note {
  max-width: 840px;
  margin: 16px 0 0;
  color: #53626d;
}

.insight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d8d2c7;
  background: #fffaf2;
  border-radius: 8px;
}

.insight h3 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 24px;
}

.insight strong {
  display: block;
  margin-bottom: 6px;
  color: #60707c;
  font-size: 13px;
}

.insight p {
  margin: 0;
  color: #26333d;
}

.g3-explanation {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d8d2c7;
  border-radius: 8px;
  background: #fffaf2;
}

.g3-explanation h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.g3-explanation-block {
  margin-bottom: 14px;
}

.g3-explanation-block strong {
  display: block;
  margin-bottom: 4px;
  color: #60707c;
  font-size: 13px;
}

.g3-explanation-block p {
  margin: 0;
  color: #26333d;
}

.g3-explanation-block ul {
  margin: 0;
  padding-left: 18px;
  color: #26333d;
}

.g3-explanation-block li {
  margin-bottom: 6px;
}

.g3-improve-list .g3-improve-swap {
  display: block;
  font-weight: 700;
  color: #4d5a33;
}

.g3-improve-list .g3-improve-why {
  display: block;
  color: #53626d;
  font-size: 14px;
}

.provenance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid #c7d0c0;
  border-left: 6px solid #7d8b58;
  border-radius: 8px;
  background: #f2f4ea;
}

.provenance-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: #4d5a33;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.provenance-caption {
  color: #26333d;
  font-size: 14px;
}

.provenance-date {
  margin-left: auto;
  color: #60707c;
  font-size: 12px;
  font-weight: 700;
}

.evidence-panel {
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid #d8d2c7;
  border-radius: 8px;
  background: #fffaf2;
}

.evidence-panel > summary {
  padding: 14px 0;
  color: #4d5a33;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.evidence-block {
  margin: 0 0 16px;
}

.evidence-block > strong {
  display: block;
  margin-bottom: 6px;
  color: #60707c;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.evidence-block p {
  margin: 0 0 6px;
  color: #26333d;
}

.evidence-block ul {
  margin: 0;
  padding-left: 20px;
  color: #26333d;
}

.evidence-block li {
  margin-bottom: 4px;
}

.scenario-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.scenario-summary div,
.scenario-why {
  padding: 16px;
  border: 1px solid #d8d2c7;
  border-radius: 8px;
  background: #fffaf2;
}

.scenario-summary span {
  display: block;
  color: #60707c;
  font-size: 13px;
  font-weight: 700;
}

.scenario-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.scenario-why h3 {
  margin: 0 0 8px;
}

.scenario-why p {
  margin: 0 0 12px;
  color: #53626d;
}

.scenario-why table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.scenario-why th,
.scenario-why td {
  padding: 8px;
  border-bottom: 1px solid #d8d2c7;
  text-align: left;
}

.scenario-why th {
  color: #60707c;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.data-grid p {
  min-height: 88px;
  margin: 0;
  padding: 16px;
  border: 1px solid #d8d2c7;
  border-radius: 8px;
  background: #fffaf2;
  color: #26333d;
}

@media (max-width: 760px) {
  .hero {
    min-height: 78vh;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .scenario-controls,
  .scenario-summary {
    grid-template-columns: 1fr;
  }

  .chart {
    height: 420px;
  }

  .g2-summary {
    grid-template-columns: 1fr;
  }

  .insight {
    grid-template-columns: 1fr;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }
}

/* V1 F1 Irrigation Layer — additív, a Scenario szekción belül. */
.irrigation-layer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(120, 144, 156, 0.5);
}

.irrigation-layer .irrigation-toggle {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

#irrigation-status {
  font-weight: 600;
}
