/* Acres Per Hour Calculator: design system
   Palette: field green + harvest gold on warm cream. System fonts only (no external requests). */

:root {
  --green-950: #0f2a17;
  --green-900: #163a21;
  --green-800: #1f4d2b;
  --green-700: #2a6b3a;
  --green-600: #37844a;
  --green-200: #cfe3cb;
  --green-100: #e6f1e3;
  --green-50:  #f1f7ef;
  --gold-600:  #b97c06;
  --gold-500:  #e0a21b;
  --gold-400:  #efbb47;
  --gold-100:  #fbf0d2;
  --soil-700:  #4a3a2b;
  --bg:        #faf8f1;
  --surface:   #ffffff;
  --surface-2: #f5f2e8;
  --ink:       #1a231b;
  --muted:     #566255;
  --line:      #e3dece;
  --line-strong: #cfc8b2;
  --danger:    #a3372b;
  --shadow-sm: 0 1px 2px rgba(22, 40, 26, .06), 0 1px 3px rgba(22, 40, 26, .05);
  --shadow-md: 0 8px 24px rgba(22, 40, 26, .10), 0 2px 6px rgba(22, 40, 26, .06);
  --radius:    14px;
  --radius-sm: 9px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wrap: 1120px;
  --focus: 0 0 0 3px rgba(224, 162, 27, .55);
  --link: var(--green-700);
  --link-hover: var(--green-800);
  --accent-ink: var(--green-800);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0f1611;
    --surface:   #162019;
    --surface-2: #1b271e;
    --ink:       #e8efe6;
    --muted:     #a5b3a3;
    --line:      #263528;
    --line-strong: #34473a;
    --green-100: #1d3324;
    --green-50:  #172a1d;
    --green-200: #2a4a33;
    --gold-100:  #33290f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,.45);
    --link: #8fd19c;
    --link-hover: #b6e6bf;
    --accent-ink: #b6e6bf;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-500); color: #1a231b; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 2.2em; font-weight: 700; }
h3 { font-size: 1.22rem; margin-top: 1.6em; font-weight: 700; }
p { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-head); font-size: 1.22rem; letter-spacing: -.01em; }
.brand-text span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button { font: inherit; font-size: .95rem; font-weight: 550; color: var(--ink); text-decoration: none; padding: 9px 13px; border-radius: 9px; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav-drop > button:hover, .nav a[aria-current="page"] { background: var(--green-100); color: var(--accent-ink); }
.header-inner { position: relative; }
.nav-drop { position: static; }
.nav-drop > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.menu { position: absolute; right: 20px; top: calc(100% + 1px); width: min(660px, calc(100vw - 40px)); max-height: calc(100vh - 100px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 18px; display: none; grid-template-columns: repeat(2, 1fr); gap: 4px 26px; }
.nav-drop.open .menu { display: grid; }
.menu h4 { grid-column: span 1; font-family: var(--font-body); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin: 8px 0 4px; }
.menu a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .93rem; line-height: 1.35; }
.menu a:hover { background: var(--green-100); }
.menu a small { display: block; color: var(--muted); font-size: .8rem; }
.menu-col { display: flex; flex-direction: column; }
.menu-all { font-weight: 650; color: var(--link) !important; font-size: .88rem !important; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { margin: auto; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none; max-height: calc(100vh - 68px); overflow: auto; }
  .nav.open { display: flex; }
  .nav-drop > button { width: 100%; text-align: left; }
  .menu { position: static; width: auto; max-height: none; box-shadow: none; border: 0; padding: 4px 0 4px 10px; grid-template-columns: 1fr; display: none; background: transparent; }
  .nav-drop.open .menu { display: grid; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #f2f7ef; background:
    radial-gradient(1200px 380px at 85% -10%, rgba(224,162,27,.22), transparent 60%),
    linear-gradient(180deg, var(--green-900), var(--green-800)); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(100deg, transparent 0 34px, rgba(255,255,255,.045) 34px 36px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.18)); }
.hero .wrap { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 92px; }
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: .35em; }
.hero-home h1 { max-width: 20ch; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #d6e5d3; max-width: 62ch; margin-bottom: 1.2em; }
.crumbs { font-size: .86rem; color: #b9cfb5; margin-bottom: 14px; }
.crumbs a { color: #d6e5d3; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 7px; opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { margin: 0; font-size: .82rem; font-weight: 600; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); display: inline-flex; align-items: center; gap: 7px; color: #eaf3e7; }
.chips svg { width: 15px; height: 15px; color: var(--gold-400); }

/* ---------- Calculator card ---------- */
.calc-shell { margin-top: -66px; position: relative; z-index: 5; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); overflow: hidden; }
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.calc-head h2 { margin: 0; font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.calc-head .tag { white-space: nowrap; flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); background: var(--green-100); padding: 4px 10px; border-radius: 999px; }
.calc-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.calc-inputs { padding: 24px; }
.calc-results { background: linear-gradient(170deg, var(--green-800), var(--green-950)); color: #eef6eb; padding: 26px 26px 22px; position: relative; }
.calc-results::before { content: ""; position: absolute; inset: 0; opacity: .5; background: repeating-linear-gradient(100deg, transparent 0 30px, rgba(255,255,255,.035) 30px 32px); pointer-events: none; }
.calc-results > * { position: relative; }
@media (max-width: 860px) { .calc-body { grid-template-columns: minmax(0, 1fr); } .calc-inputs, .calc-results { padding: 20px; } .hero .wrap { padding-bottom: 84px; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 520px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.span-2 { grid-column: 1 / -1; }
.field { margin-bottom: 16px; min-width: 0; }
.grid-2 > .field, .grid-3 > .field { margin-bottom: 0; }
.field > label, .field-label { display: block; font-size: .86rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 500; }
.input-wrap { display: flex; align-items: stretch; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(55,132,74,.2); }
.input-wrap input, .input-wrap select { flex: 1; min-width: 0; font: inherit; font-size: 1.02rem; color: var(--ink); background: transparent; border: 0; padding: 11px 12px; outline: none; }
.input-wrap select { cursor: pointer; }
.input-wrap .unit { display: flex; align-items: center; padding: 0 12px; font-size: .86rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-left: 1px solid var(--line); border-radius: 0 7px 7px 0; white-space: nowrap; }
.input-wrap input { min-width: 90px; }
.input-wrap .unit-select { flex: 0 1 auto; width: auto; max-width: 52%; text-overflow: ellipsis; font-size: .88rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-left: 1px solid var(--line); border-radius: 0 7px 7px 0; padding-right: 8px; }
.input-wrap .prefix { display: flex; align-items: center; padding: 0 0 0 12px; font-weight: 600; color: var(--muted); }
.input-wrap .prefix + input { padding-left: 4px; }
textarea { width: 100%; font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 130px; resize: vertical; }
textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(55,132,74,.2); }
.hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }
input[type="range"] { width: 100%; accent-color: var(--green-700); margin: 10px 0 0; }
.input-wrap.invalid { border-color: var(--danger); }
.form-msg { display: none; margin: 4px 0 14px; padding: 10px 12px; border-radius: 9px; background: #fbe9e6; color: #7a2419; font-size: .88rem; }
.form-msg.show { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-msg { background: #3b1c18; color: #f4b9af; } }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.section-title { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin: 6px 0 12px; }

/* segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; margin-bottom: 18px; max-width: 100%; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { cursor: pointer; padding: 8px 14px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); user-select: none; }
.seg input:checked + label { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { box-shadow: var(--focus); }
.panel[hidden] { display: none; }

/* results */
.results-label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 6px; }
.big { margin: 0 0 4px; font-family: var(--font-head); font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1; font-weight: 700; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; word-break: break-word; }
.big small { display: block; margin-top: 8px; font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: #c9dcc5; }
.results-note { font-size: .86rem; color: #b9cfb5; margin: 8px 0 18px; min-height: 1.3em; }
.big + .stats { margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; padding: 11px 13px; min-width: 0; }
.stat .stat-label { display: block; font-size: .73rem; color: #b9cfb5; font-weight: 600; letter-spacing: .02em; }
.stat strong { display: block; font-size: 1.18rem; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; word-break: break-word; }
.stat.wide { grid-column: 1 / -1; }
.stat.hl { background: rgba(224,162,27,.16); border-color: rgba(224,162,27,.4); }
.stat.hl strong { color: var(--gold-400); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: .9rem; font-weight: 650; padding: 10px 16px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-500); color: #1a1a10; }
.btn-primary:hover { background: var(--gold-400); color: #1a1a10; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #eef6eb; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-outline { background: transparent; color: var(--accent-ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--green-100); color: var(--accent-ink); }
.btn svg { width: 16px; height: 16px; }

/* bars (efficiency scenarios) */
.bars { margin: 6px 0 16px; display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 44px 1fr 74px; align-items: center; gap: 10px; font-size: .82rem; color: #d3e3cf; font-variant-numeric: tabular-nums; }
.bar-row .track { height: 9px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); border-radius: 99px; transition: width .35s ease; }
.bar-row.now .fill { background: linear-gradient(90deg, #7fd08f, #b6ecbf); }
.bar-row.now { color: #fff; font-weight: 700; }
.bar-row span:last-child { text-align: right; }

/* ---------- Article layout ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 44px 0 20px; align-items: start; }
@media (max-width: 1000px) { .page-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } .aside { order: -1; } }
.article > :first-child { margin-top: 0; }
.article h2 { padding-top: .2em; }
.article table { margin: 1.2em 0 1.6em; }
.aside { position: sticky; top: 90px; display: grid; gap: 16px; }
@media (max-width: 1000px) { .aside { position: static; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; }
.box h3, .box h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 10px; }
.box ul { list-style: none; padding: 0; margin: 0; }
.box li { margin: 0; }
.box li a { display: block; padding: 6px 0; font-size: .92rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.box li:last-child a { border-bottom: 0; }
.box li a:hover { color: var(--link); }
.box-cta { background: linear-gradient(160deg, var(--green-800), var(--green-900)); color: #eaf3e7; border: 0; }
.box-cta h3 { color: var(--gold-400); }
.box-cta p { font-size: .92rem; color: #cfe0cb; margin-bottom: .8em; }

.callout { border-left: 4px solid var(--gold-500); background: var(--gold-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 1.4em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.green { border-color: var(--green-600); background: var(--green-50); }
.callout .callout-title { font-weight: 700; display: block; margin-bottom: 3px; }
.formula { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 1.1em 0; font-size: 1rem; overflow-x: auto; }
.formula b { color: var(--link); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 1.2em 0 1.6em; background: var(--surface); }
.table-wrap table { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: var(--green-50); }
caption { caption-side: bottom; text-align: left; padding: 8px 14px; font-size: .8rem; color: var(--muted); }

/* FAQ */
.faq { margin: 1.2em 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 48px 15px 18px; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold-600); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 14px 18px 4px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 1em 0; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-200); color: var(--ink); }
.card .kicker { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.card b { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.25; }
.card p { font-size: .9rem; color: var(--muted); margin: 0; }
.card .go { margin-top: auto; padding-top: 8px; font-size: .88rem; font-weight: 650; color: var(--link); }
.card-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--green-100); color: var(--link); display: grid; place-items: center; margin-bottom: 4px; }
.card-icon svg { width: 22px; height: 22px; }

.section-band { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 0 40px; margin-top: 40px; }
.section-band h2 { margin-top: 0; }

.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--muted); margin-bottom: 1.6em; padding-bottom: 1.2em; border-bottom: 1px solid var(--line); }
.meta-line a { color: var(--muted); text-decoration-color: var(--line-strong); }
.meta-line a:hover { color: var(--link); }
.article dl.terms { margin: 1em 0 1.4em; }
.article dl.terms dt { font-weight: 700; margin-top: .9em; }
.article dl.terms dd { margin: .15em 0 0; color: var(--muted); }
.meta-line svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 5px; color: var(--green-700); }

/* ---------- Review pills (last reviewed / reviewed by) ---------- */
.review-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.review-pills .pill { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 650; padding: 6px 13px; border-radius: 999px; background: var(--green-100); color: var(--accent-ink); border: 1px solid var(--line); white-space: nowrap; }
.review-pills .pill svg { width: 13px; height: 13px; margin-right: 6px; color: var(--gold-600); }
a.pill.pill-link { text-decoration: none; cursor: pointer; }
a.pill.pill-link:hover { background: var(--green-200); color: var(--accent-ink); }

/* ---------- Team page ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 1.4em 0; }
.team-card { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.team-card p { margin: .3em 0 0; font-size: .92rem; color: var(--muted); }
.team-card strong { display: block; font-family: var(--font-head); font-size: 1.08rem; }
.team-role { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); margin-top: 2px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.team-links { display: block; margin-top: 4px; font-size: .84rem; }

/* quick-set chips + acreage sections */
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.quick button { font: inherit; font-size: .82rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.quick button:hover { background: var(--green-100); border-color: var(--green-600); }
.sec-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.sec-row .times { color: var(--muted); font-weight: 700; }
.sec-row .rm { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.sec-row .rm:hover { color: var(--danger); border-color: var(--danger); }
.hero.plain .wrap { padding-bottom: 44px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--green-950); color: #b9cfb5; padding: 52px 0 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 34px 28px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); color: #fff; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #cfe0cb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: .82rem; color: #93aa8f; display: grid; gap: 8px; }

/* content pages */
.prose { max-width: 780px; padding: 44px 0 10px; }
.prose h2 { margin-top: 1.8em; }

.error-hero { text-align: center; padding: 90px 0 40px; }
.error-hero .code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--green-700); margin: 0; }

@media print {
  .site-header, .site-footer, .aside, .actions, .hero, .seg, .btn { display: none !important; }
  .calc-shell { margin-top: 0; } .calc { box-shadow: none; }
  .calc-results { background: #fff !important; color: #000; } .calc-results * { color: #000 !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
