/* IrrigationForge - single stylesheet */
:root {
  --accent: #157a4f;
  --accent-dark: #0d5637;
  --accent-soft: #e7f4ec;
  --bg: #f6f8f6;
  --text: #1d2b22;
  --muted: #5c6b60;
  --border: #d9e2da;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }

.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; font-size: 19px; color: var(--accent-dark); text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 5px; top: 3px; width: 3px; height: 13px; background: #fff; border-radius: 2px; box-shadow: 5px 2px 0 #fff, -2px -1px 0 #fff; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 15px; margin-left: 22px; color: var(--muted); }
.site-nav a:hover { color: var(--accent-dark); }

.hero { background: linear-gradient(0deg, #eef5ef, #eef5ef); border-bottom: 1px solid var(--border); padding: 52px 0 44px; }
.home-hero { background: linear-gradient(0deg, #e2f0e6, #eef5ef); }
.hero h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.2; color: var(--accent-dark); max-width: 760px; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 720px; margin-top: 14px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.cta { display: inline-block; margin-top: 22px; background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 16px; }
.cta:hover { background: var(--accent-dark); }

.prose { padding: 34px 20px 10px; }
.prose h2 { font-size: 22px; color: var(--accent-dark); margin: 30px 0 14px; }
.prose p { margin-bottom: 12px; }
.prose ul { margin: 0 0 12px 22px; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 22px; }
.panel h2 { font-size: 18px; color: var(--accent-dark); margin-bottom: 14px; }

.calc-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; padding: 26px 20px 6px; }
@media (max-width: 800px) { .calc-layout { grid-template-columns: 1fr; } }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; background: #fbfcfb; color: var(--text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }

.result-panel { background: var(--accent-soft); border-color: #c8e3d3; }
.result-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #c8e3d3; flex-wrap: wrap; }
.result-row:last-of-type { border-bottom: none; }
.result-row span:first-child { flex: 1; min-width: 140px; font-size: 14.5px; color: var(--muted); }
.result-row strong { font-size: 22px; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.result-row .unit { font-size: 13px; color: var(--muted); }
.unit-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.unit-btn { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--accent-dark); cursor: pointer; }
.unit-btn:hover { border-color: var(--accent); }
.unit-note { font-size: 12px; color: var(--muted); }
.steps-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pstep-chip { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: #fbfcfb; border: 1px solid var(--border); color: var(--muted); }
.pstep-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pstep-chip.done { background: var(--accent-soft); color: var(--accent-dark); border-color: #c8e3d3; }
.pstep-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.pstep-nav .p-next { background: var(--accent); color: #fff; border-color: var(--accent); padding: 8px 22px; border-radius: 8px; font-size: 15px; }
.pstep-nav .p-next:hover { background: var(--accent-dark); }
.bucket-helper { background: #fbfcfb; border: 1px dashed var(--border); border-radius: 8px; padding: 14px; margin-top: 6px; }
.plan-card { background: var(--accent-soft); border: 1px solid #c8e3d3; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.cta-secondary { background: #fff; color: var(--accent-dark); border: 1px solid var(--accent); margin-left: 10px; }
.cta-secondary:hover { background: var(--accent-soft); }
.source-list li { margin-bottom: 14px; }
.source-list .hint { margin-top: 2px; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 14px; font-style: italic; }
.quick-answer { background: #fff; border: 1px solid #c8e3d3; border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.quick-answer strong { color: var(--accent-dark); font-size: 16px; }
.quick-answer.warn { border-left-color: #c0392b; }
.quick-answer.warn strong { color: #a32d2d; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.tool-card:hover { border-color: var(--accent); }
.tool-card strong { color: var(--accent-dark); font-size: 16px; }
.tool-card span { font-size: 13.5px; color: var(--muted); }

.sources li { margin-bottom: 6px; font-size: 14.5px; }

.data-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14.5px; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.data-table thead th { background: var(--accent-soft); color: var(--accent-dark); }
.data-table tbody th { background: #fbfcfb; font-weight: 600; }
.data-table tbody tr:nth-child(even) td { background: #fbfcfb; }
.article-body h2 { font-size: 19px; margin: 24px 0 10px; }
.article-body p { margin-bottom: 12px; }
.article-body ul { margin: 0 0 12px 22px; }
.article-body li { margin-bottom: 5px; }
details { border-bottom: 1px solid var(--border); padding: 12px 0; }
details:last-of-type { border-bottom: none; }
details summary { cursor: pointer; font-weight: 600; font-size: 15.5px; }
details p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.site-footer { border-top: 1px solid var(--border); background: #fff; margin-top: 46px; padding: 30px 0 34px; color: var(--muted); font-size: 14.5px; }
.site-footer p { margin-bottom: 8px; }
.fineprint { font-size: 12.5px; }
