/* Runnel - 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; } }

/* ---- shared with Corbel and Commonweal ---------------------------------------------------------- */
.hint { font-size: 13px; color: #55606b; margin: 2px 0 8px; }
.hidden { display: none !important; }
.big { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.sub { color: #55606b; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }
.smallbtn { padding: 6px 12px; border: 1px solid var(--accent); border-radius: 4px; background: var(--paper); color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; margin: 4px 6px 4px 0; }
.smallbtn:disabled { opacity: .4; cursor: default; }
.progs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.progs .lbl { font-size: 13px; color: #55606b; }
.prog { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 4px; background: var(--soft); }
.prog input { border: 0; background: transparent; padding: 5px 6px; font: inherit; font-size: 14px; width: 150px; }
.x { border: 0; background: none; color: #8a939c; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.x:hover { color: var(--bad); }
.tablewrap { overflow-x: auto; }
table.grid { border-collapse: collapse; font-size: 14px; }
table.grid th { font-size: 12px; font-weight: 600; color: #55606b; text-align: right; padding: 4px; white-space: nowrap; border-bottom: 1px solid var(--rule); }
table.grid th:first-child, table.grid th:nth-child(2) { text-align: left; }
table.grid td { padding: 2px; border-bottom: 1px solid #eef0f3; }
table.grid input, table.grid select { font: inherit; font-size: 14px; padding: 5px 6px; border: 1px solid var(--rule); border-radius: 3px; background: #fff; }
table.grid input.name { width: 210px; }
table.grid input.num { width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
table.grid select { width: 150px; }
table.grid td.dsum { text-align: right; padding: 0 8px; font-variant-numeric: tabular-nums; color: #55606b; white-space: nowrap; }
table.grid tr.off td { background: #fff4f4; }
table.grid input.err { border-color: var(--bad); }
fieldset.bases { margin-top: 16px; }
fieldset.bases label { display: block; margin: 6px 0; cursor: pointer; }
.verdict.bad { border-left-color: var(--bad); background: #fff4f4; }
.verdict.good { border-left-color: var(--good); }
.verdict ul { margin: 6px 0 0; padding-left: 18px; }
ul.warn { margin: 10px 0 0; padding-left: 18px; color: #7a4b00; font-size: 14px; }
ul.warn li { margin-bottom: 6px; }
table.out .how { color: #55606b; font-size: 13px; font-weight: 400; }
table.out tr.result td { font-weight: 700; border-bottom: 2px solid var(--ink); }
table.out td.bad { color: var(--bad); }
textarea { width: 100%; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; }
.row select { padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; font: inherit; max-width: 260px; }
table.sched { border-collapse: collapse; font-size: 13px; width: 100%; margin-bottom: 18px; }
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 print { header p, .hint, .notes, .smallbtn, .progs .x, table.grid .x { display: none; } }
@media (max-width: 520px) {
  main { padding: 16px; }
  .row { flex-wrap: wrap; }
  .row label { flex: 1 1 100%; }
  .card { flex-basis: 100%; padding: 14px; }
  .big { font-size: 30px; }
}

/* ---- this page ---------------------------------------------------------- */
.mt { margin-top: 20px; }
.divbox { margin: 10px 0; padding: 10px 12px; background: var(--soft); border-radius: 5px; font-size: 14px; }
.row input[type="date"] { width: 160px; text-align: left; }
table.grid input[type="date"] { width: 140px; }
table.grid select { width: 220px; }
table.sched td { white-space: normal; text-align: left; }
table.sched td:nth-child(3) { white-space: nowrap; }

/* Surcharge */
table.grid input.sid { width: 70px; }
table.grid input.snum { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
svg.profile { width: 100%; max-width: 780px; background: #f7f9fb; border-radius: 6px; margin: 12px 0; }
strong.bad { color: #b42318; }
details { margin: 6px 0; }
details summary { cursor: pointer; font-weight: 600; }
details ol { font-size: 14px; color: #3d4650; }
/* Pondage */
fieldset.outlet { border: 1px solid var(--rule); border-radius: 5px; padding: 8px 12px; margin: 10px 0; }
fieldset.outlet legend { text-transform: none; letter-spacing: 0; font-size: 14px; color: inherit; }
.row input.wide { width: 220px; text-align: left; }
input.mini { width: 80px; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 4px; font: inherit; }
table.grid caption { caption-side: bottom; text-align: left; padding-top: 6px; }

/* 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; }
