/* Sharefair - built on the Overnight Free Builds shared look for a free, ad-funded tool page. */
:root {
  --ink: #16191d;
  --paper: #ffffff;
  --rule: #d8dce2;
  --soft: #f4f6f8;
  --accent: #1f4e79;
  --good: #1d6f42;
  --bad: #9a1b1b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}
header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 22px 20px;
}
header h1 { margin: 0 0 6px; font-size: 24px; }
header p { margin: 0; color: #55606b; }
main { max-width: 1040px; margin: 0 auto; padding: 20px; }
.cols { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px;
  flex: 1 1 420px;
}
.card h2 { margin: 0 0 12px; font-size: 18px; }
fieldset { border: 0; border-top: 1px solid var(--rule); margin: 16px 0 0; padding: 12px 0 0; }
fieldset:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
legend { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #55606b; }
.row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.row label { flex: 1 1 auto; }
.row input { width: 120px; text-align: right; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; font: inherit; }
.row .unit { width: 130px; color: #55606b; font-size: 13px; }
table.out { width: 100%; border-collapse: collapse; }
table.out td { padding: 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.out td.v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
table.out tr.text td { text-align: left; font-weight: 400; }
.verdict { margin-top: 14px; padding: 12px; border-radius: 5px; background: var(--soft); border-left: 4px solid var(--accent); }
.adslot {
  border: 1px dashed #b9c0c8;
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 10px, #f1f3f5 10px, #f1f3f5 20px);
  color: #7a838d;
  text-align: center;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 26px 10px;
  margin: 18px 0;
  border-radius: 5px;
}
.notes { margin-top: 20px; }
.notes li { margin-bottom: 8px; }
.market { background: #fffdf5; border-color: #e6d9a8; }
footer { max-width: 1040px; margin: 0 auto; padding: 10px 20px 40px; color: #6b747d; font-size: 13px; }
@media print { .adslot { display: none; } }

/* ---- Sharefair additions ---------------------------------------------- */
nav.pages { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
nav.pages a { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--accent); background: var(--paper); font-size: 14px; }
nav.pages a[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.switch { display: flex; gap: 0; margin: 0 0 14px; border: 1px solid var(--accent); border-radius: 5px; overflow: hidden; }
.switch button { flex: 1 1 50%; padding: 9px 8px; border: 0; background: var(--paper); color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.row.check label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.row.check input { width: auto; }
.row select { padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; font: inherit; max-width: 220px; }
.row input.err { border-color: var(--bad); background: #fff4f4; }
.hint { font-size: 13px; color: #55606b; margin: 2px 0 8px; }
.hidden { display: none !important; }
.big { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.sub { color: #55606b; font-size: 14px; }
table.out td.how { color: #55606b; font-size: 13px; padding-right: 10px; }
table.out tr.result td { font-weight: 700; border-bottom: 2px solid var(--ink); }
table.out .id { color: #7a838d; font-size: 12px; width: 26px; }
.verdict.bad { border-left-color: var(--bad); background: #fff4f4; }
.verdict.good { border-left-color: var(--good); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }
.tablewrap { overflow-x: auto; }
table.sched { border-collapse: collapse; font-size: 13px; width: 100%; }
table.sched th, table.sched td { padding: 4px 6px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.sched th:first-child, table.sched td:first-child { text-align: left; }
table.sched tr.on td { background: #eaf1f8; font-weight: 600; }
@media (max-width: 520px) {
  main { padding: 16px; }
  .row { flex-wrap: wrap; }
  .row label { flex: 1 1 100%; }
  .row input { width: 140px; }
  .card { flex-basis: 100%; }
}
table.out .how { color: #55606b; font-size: 13px; font-weight: 400; }

/* ---- Sharefair additions ----------------------------------------------- */
table.sched td.hit { outline: 2px solid var(--accent); outline-offset: -2px; background: #d6e4f2; }
.notes ol li { margin-bottom: 8px; }

/* ---- Sharefair additions ------------------------------------------------ */
table.out tr.sub td { font-weight: 400; color: #55606b; font-size: 13px; padding-left: 12px; }
.notes ol li { margin-bottom: 8px; }

/* ---- Sharefair: receptor tabs and the equipment grid ------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.tabs button { padding: 6px 12px; border: 1px solid var(--accent); border-radius: 4px; background: var(--paper); color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.row input.wide { width: 220px; text-align: left; }
.row input.small, .unit input.small { width: 64px; text-align: right; padding: 6px 6px; border: 1px solid var(--rule); border-radius: 4px; font: inherit; }
.row .unit { width: auto; }
table.grid { border-collapse: collapse; width: 100%; font-size: 14px; }
table.grid th { text-align: left; font-size: 12px; color: #55606b; font-weight: 600; padding: 4px; }
table.grid td { padding: 3px 4px; }
table.grid input.num { width: 72px; text-align: right; padding: 5px 6px; border: 1px solid var(--rule); border-radius: 4px; font: inherit; }
table.grid input.name { width: 210px; padding: 5px 6px; border: 1px solid var(--rule); border-radius: 4px; font: inherit; }
table.grid input.err { border-color: var(--bad); background: #fff4f4; }
.x { border: 0; background: none; color: var(--bad); font-size: 20px; cursor: pointer; line-height: 1; }
table.sched td.how { text-align: left; white-space: normal; color: #55606b; }
#allHead { margin-top: 20px; }
.chart { margin: 14px 0 4px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .tick { font-size: 13px; fill: #55606b; }
.chart .axis { font-size: 13px; fill: #55606b; }
.chart .fit { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart .open { fill: #eaf1f8; }
#wasteGrid { max-width: 320px; }
#wasteGrid td:first-child { color: #55606b; width: 70px; }

/* ---- Sharefair ------------------------------------------------------------ */
.cols > .card { min-width: 0; }
table.grid input.num.wide { width: 120px; }
table.sched th { text-align: right; font-size: 12px; color: #55606b; padding: 4px 6px; }
table.sched th:first-child { text-align: left; }
.row select { max-width: 260px; }
label.block { display: block; font-size: 14px; margin: 10px 0 4px; }
textarea { width: 100%; padding: 8px; border: 1px solid var(--rule); border-radius: 4px; font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; }
textarea.err { border-color: var(--bad); background: #fff4f4; }
table.sched tr.grp td { text-align: left; font-weight: 600; color: #55606b; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 12px; white-space: normal; }
table.grid select { padding: 4px 5px; border: 1px solid var(--rule); border-radius: 4px; font: inherit; font-size: 13px; max-width: 220px; }
table.grid th { text-align: left; font-size: 12px; color: #55606b; padding: 4px; }
table.grid.err { outline: 2px solid var(--bad); outline-offset: 2px; }
.x { border: 0; background: none; color: var(--bad); font-size: 20px; cursor: pointer; line-height: 1; }
fieldset { min-width: 0; }

/* long rule wording in the pickers must not push the page sideways */
.row select { max-width: 100%; min-width: 0; }

.copybox { width: 100%; box-sizing: border-box; font: inherit; }

/* ---- Sharefair: the two-crop input grid ------------------------------- */
table.grid td.grp { font-weight: 600; color: #55606b; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 12px; }
table.grid td .unit { display: block; color: #55606b; font-size: 12px; }
table.grid input.num, table.grid input.name { width: 100%; min-width: 72px; }
table.out tr.grp td { font-weight: 600; color: #55606b; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 12px; }

/* ---- Sharefair: the contributions table wraps its first column -------- */
#o_steps td:first-child { white-space: normal; min-width: 120px; }

/* PUBLISH-READY (2026-10-24). A card in a row of cards, and a fieldset, will not
   shrink below the widest thing inside them, so a wide table pushed the whole page
   sideways on a phone instead of scrolling in its own box. */
.card, fieldset { min-width: 0; }
