/* Stage 1 (2 Dec 2026): plain and readable on the kit's layout. The site's own look comes from the design board James
   picks (design/home-v2-*.md); until then nothing here is meant as a design. */
:root {
  --bg: #fcfcf8;
  --text: #1f2419;
  --muted: #4f5846;
  --line: #d8dccd;
  --card: #ffffff;
  --link: #3f6a17;
  --good: #2f6b1f;
  --warn: #8a4b00;
  --bad: #9b1c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161a12;
    --text: #e9eee2;
    --muted: #b7c1ab;
    --line: #36402c;
    --card: #1d2318;
    --link: #a9d77a;
    --good: #8fd67f;
    --warn: #f3b76a;
    --bad: #f39a9a;
  }
}
body { background: var(--bg); color: var(--text); }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
thead th { font-size: 0.85rem; color: var(--muted); }
.note { color: var(--muted); font-size: 0.85rem; }

.tool { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 980px) { .tool { grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr); align-items: start; } .tool .share-row, .tool script { grid-column: 1 / -1; } }
.cost { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.cost fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.cost legend { font-weight: 700; margin-bottom: 0.4rem; }
.cost label { display: block; margin: 0.3rem 0; }
.cost .row label { display: inline-block; margin-right: 0.75rem; }
.cost input[type="number"] { width: 6.5rem; }
.cost input[type="checkbox"], .cost input[type="radio"] { width: auto; margin: 0 0.4rem 0 0; vertical-align: middle; }
.cost input, .cost select, .cost button { font: inherit; }
.cost select, .cost input[type="number"] { padding: 0.35rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--text); }
.cost button, .share-button { background: #3d5a1e; color: #ffffff; border: 0; border-radius: 6px; padding: 0.55rem 1rem; cursor: pointer; font: inherit; }

.cost-result { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; min-width: 0; }
.result .total { font-size: 1.1rem; margin-top: 0; }
.result .figure { font-size: 1.6rem; display: block; }
.result .small, .small { color: var(--muted); font-size: 0.9rem; }
.result .amount { white-space: nowrap; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 400; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 0.3rem; margin: 0.1rem 0; }
.tag.no { color: var(--bad); border-color: currentColor; }
.tag.warn { color: var(--warn); border-color: currentColor; }
.setups tr.rank-0 th a { font-weight: 700; }
.setup-detail { border-top: 1px solid var(--line); padding: 0.5rem 0; }
.setup-detail summary { cursor: pointer; font-weight: 600; }
.not-sold { color: var(--muted); font-size: 0.9rem; }

.share-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.share-note { color: var(--good); }
.share-link { width: 100%; max-width: 32rem; padding: 0.35rem; }
.facts li { margin-bottom: 0.5rem; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--text); }
