/* Grain for sale's three pages: the board, a buyer's bid page, a buyer's alerts page */
:root {
  color-scheme: light dark;
  --paper: #f7f5ee; --surface: #ffffff; --surface-2: #eee9dc;
  --ink: #17231e; --muted: #5a665f; --forest: #173f32; --forest-2: #245b49;
  --wheat: #d8ae4d; --wheat-soft: #f3e4bb; --line: #d8d8cd;
  --good: #2f765b; --alert: #9b6229; --on-forest: #f8f4e7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111814; --surface: #18221d; --surface-2: #222e27;
    --ink: #f3f1e8; --muted: #b4c0b7; --forest: #acd2be; --forest-2: #84b39d;
    --wheat: #e0b858; --wheat-soft: #4a3d1e; --line: #34433a;
    --good: #7dc3a0; --alert: #e2ab6d; --on-forest: #0e1613;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Outfit", system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
a { color: var(--forest-2); }
.wrap { width: min(860px, calc(100% - 32px)); margin: 0 auto; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(30px, 4.6vw, 42px); margin: 44px 0 0; }
h2 { font-size: 25px; margin: 40px 0 12px; }
h3 { margin: 0; font-size: 19px; font-family: "Outfit", system-ui, sans-serif; font-weight: 700; }
.lede { font-size: 20px; color: var(--muted); margin: 16px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.note { background: var(--wheat-soft); border-radius: 12px; padding: 14px 18px; font-size: 15px; margin: 18px 0; }
.err { color: var(--alert); font-size: 15px; min-height: 1em; margin: 8px 0 0; }
.ok { color: var(--good); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 12px 0; }
.card header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.card ul.facts { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }
.tag { font-size: 13px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 9px; border: 0; background: var(--forest); color: var(--on-forest); font: 700 16px "Outfit", system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--forest-2); border: 1px solid var(--line); }
.btn:disabled { opacity: .6; cursor: default; }
form .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 10px 0; }
form .fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { form .fields, form .fields.three { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 10px; margin: 14px 0; }
legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
label.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; color: var(--ink); margin-right: 14px; }
input, select, textarea { width: 100%; font: 16px "Outfit", system-ui, sans-serif; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }
input[type=checkbox], input[type=radio] { width: auto; }
.pick { position: relative; }
.pick ul { position: absolute; z-index: 5; left: 0; right: 0; list-style: none; margin: 2px 0 0; padding: 4px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; max-height: 240px; overflow-y: auto; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.pick li { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.pick li small { color: var(--muted); }
.pick li:hover { background: var(--surface-2); }
.crops { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 6px 0 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 14px 0 4px; }
.filters > div { min-width: 160px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: var(--on-forest); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.cta { background: var(--forest); color: var(--on-forest); border-radius: 16px; padding: 24px 26px; margin: 36px 0; }
.cta h2 { margin-top: 0; color: inherit; }
.cta p { opacity: .92; }
.cta .btn { background: var(--wheat); color: #2f2716; }
.lic-ok { color: var(--good); font-weight: 600; }
.lic-warn { color: var(--alert); font-weight: 600; }
