/* HARVEST page pieces, built from the template's materials (harvest.css) */

/* ---------- home hero: the template's one-screen hero (backdrop, motes, logo, line, button) ---------- */
.hero { position: relative; min-height: 100svh; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(110px, 16vh, 150px) 24px clamp(64px, 11vh, 100px); overflow: hidden; }
.hero-main { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 4.6vh, 42px); text-align: center; animation: .7s cubic-bezier(.22,.8,.3,1.08) both yf-in; }
@keyframes yf-in { from { opacity: 0; transform: translateY(10px); } }
.logo-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 24px; }
.wordmark { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(54px, 11.5vw, 168px); line-height: .9; letter-spacing: -.02em; color: var(--wheat); -webkit-text-stroke: clamp(8px, 1.3vw, 18px) var(--forest); paint-order: stroke fill; text-shadow: 0 clamp(5px, .8vw, 11px) 0 var(--forest), 0 clamp(8px, 1.2vw, 16px) 0 var(--tomato); }
.tag { margin: 0; font-family: var(--display); font-size: clamp(15px, 1.9vw, 24px); line-height: 1.35; color: var(--forest); background: var(--paper); padding: 10px 16px 12px; border-radius: 14px; box-shadow: 0 4px rgba(31,81,48,.28); max-width: 760px; }
.hero-cta { width: auto; min-width: 280px; font-size: clamp(20px, 2.2vw, 26px); }
.ca-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-down { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--display); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--forest); background: var(--paper); padding: 7px 12px 9px; border-radius: 10px; box-shadow: 0 3px var(--line); white-space: nowrap; }
.hero-down:after { content: ' ↓'; }
.hero-down:hover { color: var(--tomato); }
.page.after { padding-top: 20px; min-height: 0; }
.home-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row .cta { flex: 1 1 220px; width: auto; }
.tbl.vs td:first-child { font-family: var(--display); font-size: 12px; color: var(--muted); white-space: nowrap; }
.tbl.vs td:last-child { color: var(--ink); }
.tbl.vs td:nth-child(2) { color: var(--soft); }
@media (max-width: 900px) { .home-2 { grid-template-columns: minmax(0, 1fr); } .hero-cta { min-width: 0; width: 100%; } }

/* ---------- stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat-row > div { background: var(--paper); border-radius: 12px; padding: 9px 11px 11px; box-shadow: 0 3px var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-row b, .stat-row a { font-family: var(--display); font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the field ---------- */
.field-ctl { max-width: 1180px; }
.ctl-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.f-search { flex: 1 1 200px; min-height: 40px; }
.f-search input { padding: 7px 0; }
.map { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-flow: dense; gap: 18px 16px; padding: 18px 4px 6px; }
.map-load { grid-column: 1 / -1; text-align: center; background: var(--paper); border-radius: 12px; padding: 10px; box-shadow: 0 3px var(--line); }
.plot { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 6px; background: #A86F3E; min-height: 228px; box-shadow: 0 0 0 4px #9C6B3C, 0 0 0 7px #6B4226, 0 7px 0 4px rgba(31,40,10,.35); transition: transform .12s cubic-bezier(.22,.8,.3,1.08); isolation: isolate; color: var(--ink); }
.plot:hover { transform: translateY(-3px); }
.plot:focus-visible { outline: 3px solid var(--tomato); outline-offset: 8px; }
.plot.s2 { grid-column: span 2; }
.plot.s3 { grid-column: span 2; grid-row: span 2; }
.plot .soil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; border-radius: 6px; }
.plot .sign { display: flex; align-items: center; gap: 9px; background: var(--paper); border-radius: 8px; padding: 7px 9px 9px; box-shadow: 0 3px #6B4226; align-self: flex-start; max-width: 100%; }
.plot .sign b { font-family: var(--display); font-size: 16px; display: block; }
.plot .sign small { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.plot.s3 .sign b { font-size: 22px; }
.plot .crops { display: flex; flex-wrap: wrap; gap: 5px; }
.plot .pstats { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--paper); border-radius: 8px; padding: 7px 8px 8px; box-shadow: 0 3px #6B4226; }
.plot .pstats span { display: flex; flex-direction: column; min-width: 0; }
.plot .pstats em { font-style: normal; font-family: var(--display); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.plot .pstats b { font-family: var(--display); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plot .grow { display: flex; flex-direction: column; gap: 4px; background: rgba(255,251,239,.92); border-radius: 8px; padding: 6px 8px 7px; }
.plot .grow .trough { height: 14px; padding: 2px; border-radius: 7px; }
.plot .grow .trough i { height: 10px; border-radius: 5px; }
.plot .grow small { font-size: 12px; color: var(--muted); }
.devsold { position: absolute; top: -12px; right: 10px; font-family: var(--display); font-size: 12px; background: var(--tomato); color: var(--paper); padding: 5px 8px 7px; border-radius: 6px; box-shadow: 0 3px var(--tomato-d); transform: rotate(3deg); }
.plot.free { justify-content: center; align-items: flex-start; background: #B98551; }
.plot.free .sign { flex-direction: column; align-items: flex-start; max-width: 460px; }
.plot.free .sign small { white-space: normal; max-width: none; font-size: 14px; line-height: 1.4; }
.plot.free .cta { width: auto; align-self: flex-start; }
.plot-note { grid-column: span 2; align-self: center; background: var(--paper); border-radius: 14px; padding: 14px; box-shadow: 0 4px rgba(31,40,10,.3); }
.plot-note b { font-family: var(--display); display: block; margin-bottom: 6px; }
.plot-note p { margin: 0; color: var(--muted); }
.link-btn { border: 0; background: none; padding: 0; color: var(--forest); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font-size: 13px; color: var(--forest); background: var(--paper); border-radius: 12px; padding: 8px 12px; box-shadow: 0 3px var(--line); align-self: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; display: inline-block; background: #A86F3E; box-shadow: inset 0 -4px #2F6B34; }
.lg.s0 { box-shadow: inset 0 -2px #3F8A42; } .lg.s3 { box-shadow: inset 0 -8px #2F6B34, inset 0 -10px #E3B94F; } .lg.s4 { box-shadow: inset 0 -12px #E3B94F; }
@media (max-width: 560px) {
  .map { grid-template-columns: minmax(0, 1fr); }
  .plot.s2, .plot.s3, .plot-note { grid-column: span 1; grid-row: span 1; }
}

/* ---------- plot page aside (MintView art card + feed) ---------- */
.art-card, .feed-card { background: var(--shell); border-radius: 18px; padding: 9px; box-shadow: 0 5px rgba(31,40,10,.32), 0 2px rgba(31,40,10,.24); min-width: 0; }
.feed-card { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.art { position: relative; aspect-ratio: 1; width: 100%; border-radius: 14px; overflow: hidden; background: #A86F3E; box-shadow: inset 0 0 0 4px #9C6B3C; }
.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.art-ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46%; aspect-ratio: 1; border-radius: 14px; background: var(--forest); color: var(--wheat); display: grid; place-items: center; font-family: var(--display); font-size: 36px; overflow: hidden; box-shadow: 0 0 0 5px var(--paper), 0 8px 0 5px rgba(31,40,10,.3); }
.art-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-copy { padding: 11px 6px 4px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.art-copy h2 { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.art-copy p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips button.chip { border: 0; cursor: pointer; }
.about { color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.about-links { font-size: 14px; }
.live-dot { width: 8px; height: 8px; background: var(--tomato); display: inline-block; animation: blink 1.6s steps(2) infinite; }
.growline { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.growfoot { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.yield3 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.yield3 > div:not(.plus) { background: var(--paper); border-radius: 12px; padding: 10px 11px 11px; box-shadow: 0 3px var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.yield3 b { font-family: var(--display); font-size: 24px; }
.yield3 small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.yield3 .plus { align-self: center; font-family: var(--display); font-size: 22px; color: var(--forest); }
@media (max-width: 560px) { .yield3 { grid-template-columns: minmax(0, 1fr); } .yield3 .plus { display: none; } }
.chart-box { position: relative; height: 260px; background: var(--paper); border-radius: 14px; box-shadow: 0 3px var(--line); overflow: hidden; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.legend2 { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.legend2 span { display: inline-flex; align-items: center; gap: 6px; }
.legend2 i { width: 14px; height: 4px; display: inline-block; }
.legend2 .lc i { background: var(--tomato); } .legend2 .la i { background: var(--forest); }
.legend2 em { font-style: normal; font-family: var(--display); font-size: 13px; }
.lookup { display: flex; gap: 8px; flex-wrap: wrap; }
.lookup .inp { flex: 1 1 240px; }
.lookup .cta { width: auto; flex: 0 0 auto; }
.wsm { min-height: 36px; padding: 0 8px; width: 92px; display: inline-flex; }
.wsm input { padding: 5px 0; font-size: 15px; width: 40px; }
.btn.px { min-height: 32px; padding: 2px 10px 6px; font-size: 16px; }
.split { display: flex; flex-direction: column; gap: 8px; }
.split-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px auto; gap: 6px; align-items: center; }
.split-row .wsm { width: 100%; }
.split-d { margin-top: 4px; }
.split-d summary { cursor: pointer; font-family: var(--display); font-size: 13px; color: var(--muted); padding: 6px 0; }
.split-d[open] summary { color: var(--ink); }
#split-box { display: flex; flex-direction: column; gap: 8px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--well); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }

/* ---------- plant ---------- */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 11px 12px 13px; border-radius: 12px; background: var(--well); box-shadow: inset 0 3px #E2CC92; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt b { font-family: var(--display); font-size: 15px; }
.opt span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.opt.on { background: var(--forest); box-shadow: 0 3px var(--forest-d); }
.opt.on b, .opt.on span { color: var(--wheat); }
.opt.off { opacity: .5; cursor: default; }
.opt:focus-within { outline: 3px solid var(--tomato); outline-offset: 2px; }
.croplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.crop-opt { display: flex; flex-direction: column; gap: 6px; background: var(--well); border-radius: 12px; padding: 4px; box-shadow: inset 0 3px #E2CC92; }
.crop-opt.on { background: #E9D49B; box-shadow: inset 0 0 0 3px var(--forest); }
.crop-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; border: 0; background: none; padding: 7px 8px; cursor: pointer; border-radius: 9px; }
.crop-pick i { grid-row: 1 / 3; width: 14px; height: 14px; background: var(--c); }
.crop-pick b { font-family: var(--display); font-size: 14px; }
.crop-pick small { grid-column: 2; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crop-pick em { grid-row: 1 / 3; grid-column: 3; font-style: normal; font-family: var(--display); font-size: 13px; }
.crop-opt .wsm { margin: 0 6px 6px; width: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .opts, .two, .three { grid-template-columns: minmax(0, 1fr); } }
.drop { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; border: 2px dashed transparent; }
.drop.over { border-color: var(--tomato); }
.drop small { display: block; color: var(--muted); font-size: 13px; }
.drop b { font-family: var(--display); font-size: 14px; display: block; overflow-wrap: anywhere; }
.drop-pv { width: 54px; height: 54px; flex: none; border-radius: 10px; background: var(--well); overflow: hidden; display: block; }
.drop-pv img { width: 100%; height: 100%; object-fit: cover; }
.steps { margin: 4px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.steps li:before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--well); font-family: var(--display); font-size: 12px; flex: none; }
.steps li.on { color: var(--ink); } .steps li.on:before { background: var(--tomato); color: var(--paper); }
.steps li.done:before { background: var(--forest); color: var(--wheat); content: '✓'; }

/* ---------- barn (the template's whitelist checker) ---------- */
.ringblock { flex-direction: row; align-items: center; gap: 18px; }
.ring { position: relative; width: 168px; height: 168px; flex: none; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-c b { font-family: var(--display); font-size: 22px; }
.ring-c small { font-family: var(--display); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.ring-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ring-legend { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--line2); padding-top: 8px; }
.ring-legend li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ring-legend i { width: 10px; height: 10px; background: var(--c); }
.ring-legend b { margin-left: auto; font-family: var(--display); font-size: 13px; }
@media (max-width: 520px) { .ringblock { flex-direction: column; align-items: stretch; } .ring { margin: 0 auto; } }

/* ---------- almanac heatmap ---------- */
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: dense; gap: 6px; }
.hcell { --k: 0; min-height: 92px; border-radius: 10px; padding: 10px 11px 11px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; background: color-mix(in srgb, var(--tomato) calc(var(--k) * 100%), var(--well)); color: var(--ink); box-shadow: inset 0 -4px rgba(0,0,0,.08); }
.hcell.wide { grid-column: span 2; grid-row: span 2; }
.hcell b { font-family: var(--display); font-size: 16px; }
.hcell span { font-family: var(--display); font-size: 18px; }
.hcell small { font-size: 12px; opacity: .85; }
@media (max-width: 420px) { .heat { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hcell.wide { grid-column: span 2; grid-row: span 1; } }

/* ---------- reversed / docs ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.tbl.rev td { vertical-align: top; font-size: 14px; line-height: 1.45; }
.tbl.rev td.wrap { white-space: normal; min-width: 200px; }
.prose p { margin: 0; color: var(--ink); line-height: 1.55; font-size: 15px; }
.prose p + p { margin-top: 4px; }
.narrow.wider { max-width: 820px; }
section[id], .block[id] { scroll-margin-top: 110px; }
@media (max-width: 640px) {
  .tbl.vs thead { display: none; }
  .tbl.vs tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px; padding: 9px 0; border-bottom: 2px solid var(--line2); }
  .tbl.vs tr:last-child { border-bottom: 0; }
  .tbl.vs td { border: 0; padding: 2px 4px; white-space: normal; min-width: 0 !important; font-size: 13px; }
  .tbl.vs td:first-child { grid-column: 1 / 3; }
  .tbl.vs td:nth-child(2):before { content: 'Float'; display: block; font-family: var(--display); font-size: 11px; color: var(--soft); }
  .tbl.vs td:nth-child(3):before { content: var(--brand, 'HARVEST'); display: block; font-family: var(--display); font-size: 11px; color: var(--tomato); }
  #shed th:nth-child(4), #shed td:nth-child(4) { display: none; }
  .btn { white-space: normal; text-align: center; }
}
@media (max-width: 900px) {
  .art-card { display: flex; gap: 13px; padding: 13px; align-items: flex-start; }
  .art { width: 96px; height: 96px; flex: none; }
  .art-ic { font-size: 18px; border-radius: 8px; box-shadow: 0 0 0 3px var(--paper); }
  .art-copy { padding: 0; flex: 1; }
}
