/* Quarry Ballistics — page styles. Field-guide voice; sized for gloved
   thumbs and bright sun: large touch targets, high-contrast tabular output. */

.qb-cardhead { margin-top: 0; }

.qb-installhint {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--forest);
  border-radius: 3px;
  background: rgba(28, 98, 74, 0.05);
  padding: 10px 14px;
  margin: 18px 0;
  font-size: 0.92rem;
}

.qb-profilebar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.qb-grow { flex: 1 1 200px; margin: 0; }
.qb-profilebar .btn { padding: 9px 14px; }

.qb-truedline {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--forest);
  font-weight: 600;
  margin: 10px 0 0;
}

/* Wind clock: 12 large buttons in a 4x3 grid (order 12,1,2,... reading order
   chosen so 12/3/6/9 land on grid corners of each row group). */
.qb-clockwrap { margin-top: 14px; }
.qb-clocklabel {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.qb-clock {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 440px;
}
.qb-clock button {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 0;
  min-height: 46px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.qb-clock button[aria-checked="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}
@media (max-width: 480px) { .qb-clock { grid-template-columns: repeat(4, 1fr); } }

.qb-da {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 12px 0 0;
}
.qb-da b { color: var(--ink); }

.qb-chartopts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.qb-chartopts .field { flex: 1 1 120px; }

.qb-summary {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--forest);
  border-radius: 3px;
  background: var(--paper-deep);
  padding: 10px 14px;
  margin: 18px 0 14px;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.qb-tablewrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.qb-dope {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
table.qb-dope th, table.qb-dope td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--rule-soft);
  white-space: nowrap;
}
table.qb-dope thead th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}
table.qb-dope td:first-child, table.qb-dope th:first-child {
  text-align: left;
  font-weight: 700;
}
table.qb-dope td.qb-hold { font-weight: 700; font-size: 1.05rem; }
table.qb-dope tr.qb-transonic td { background: rgba(154, 123, 63, 0.10); }
table.qb-dope tr.qb-subsonic td { background: rgba(156, 51, 40, 0.08); }

.qb-transnote {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--brass);
  padding-left: 12px;
}

.qb-truehelp { font-size: 0.95rem; }
/* Base sheet forces inputs/selects to width:100%; inside this flex row that
   makes the select swallow the line — override both explicitly. */
.qb-obsrow { display: flex; gap: 8px; align-items: stretch; }
.qb-obsrow input[type="number"] { flex: 1 1 120px; width: auto; min-width: 0; }
.qb-obsrow select { flex: 0 0 auto; width: auto; min-width: 96px; }

.qb-trueresult {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--forest);
  border-radius: 3px;
  background: rgba(28, 98, 74, 0.05);
  padding: 12px 14px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.qb-trueresult.qb-err { border-left-color: var(--fail); background: rgba(156, 51, 40, 0.05); }
.qb-trueresult .btn { margin-top: 10px; }

/* Inputs: comfortable on phones. Base sheet skips text inputs — match them
   to the number-input styling. */
input[type="text"] {
  width: 100%;
  padding: 9px 10px;
  margin-top: 5px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
}
input[type="text"]:focus { border-color: var(--forest); outline: none; }
input[type="number"], input[type="text"], select { min-height: 44px; }

/* Standalone (installed) mode: hide the site chrome that makes no sense offline */
@media (display-mode: standalone) {
  .qb-installhint { display: none; }
}
