/* ============================================================================
   walktime.css - Tool 13: Walk Time Calculator. Own stylesheet per the tool
   conventions; classes prefixed .bdt-wt-, shared panels/buttons come from
   bd-terrain.css. Breakpoints are container queries against .bdt.
   ========================================================================= */

.bdt-wt-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.bdt-wt-chip {
  font-family: Barlow, system-ui, sans-serif;
  font-weight: 700;
  font-size: .86rem;
  color: var(--bdt-navy);
  background: #fff;
  border: 1.5px solid var(--bdt-line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.bdt-wt-chip:hover { border-color: var(--bdt-forest); color: var(--bdt-forest); }
.bdt-wt-chip[aria-pressed="true"] { background: var(--bdt-forest); border-color: var(--bdt-forest); color: #fff; }

.bdt-wt-route {
  font: inherit;
  font-family: Barlow, system-ui, sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--bdt-navy);
  background: #fff;
  border: 1.5px solid var(--bdt-line);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 0 10px;
  max-width: 100%;
}
.bdt-wt-preset-note {
  font-size: .86rem;
  color: var(--bdt-slate);
  line-height: 1.5;
  margin: 0 0 14px;
  padding: 8px 12px;
  background: var(--bdt-mint);
  border-radius: 10px;
}
.bdt-wt-preset-note b { color: var(--bdt-navy); }

.bdt-wt-stage {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 6fr;
  gap: 16px;
  align-items: start;
}

.bdt-wt-form { display: grid; gap: 12px; }
/* align-content: start matters in the two-column row: the descent field is
   taller (it has a note), and without it the ascent input floats to the
   middle of its stretched cell, below its label. Seen live on 2026-10-10. */
.bdt-wt-field { display: grid; gap: 4px; align-content: start; }
.bdt-wt-field label, .bdt-wt-field > .bdt-wt-lab {
  font-family: Barlow, system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93A0AB;
}
.bdt-wt-row { display: flex; gap: 8px; align-items: center; }
.bdt-wt-input {
  font: inherit;
  font-family: Barlow, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bdt-navy);
  background: #fff;
  border: 1.5px solid var(--bdt-line);
  border-radius: 10px;
  padding: 9px 12px;
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.bdt-wt-input:focus { outline: none; border-color: var(--bdt-forest); box-shadow: 0 0 0 3px var(--bdt-mint); }
.bdt-wt-input.bdt-wt-time { max-width: 120px; }
.bdt-wt-units { display: inline-flex; border: 1.5px solid var(--bdt-line); border-radius: 8px; overflow: hidden; flex: none; }
.bdt-wt-units button {
  font: inherit;
  font-family: Barlow, system-ui, sans-serif;
  font-weight: 700;
  font-size: .78rem;
  color: var(--bdt-slate);
  background: #fff;
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
}
.bdt-wt-units button[aria-pressed="true"] { background: var(--bdt-mint); color: #1E5E3F; }
.bdt-wt-select {
  font: inherit;
  font-family: Barlow, system-ui, sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--bdt-navy);
  background: #fff;
  border: 1.5px solid var(--bdt-line);
  border-radius: 10px;
  padding: 9px 10px;
  width: 100%;
}
.bdt-wt-check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--bdt-navy); line-height: 1.4; }
.bdt-wt-check input { margin-top: 3px; accent-color: var(--bdt-forest); flex: none; }
.bdt-wt-check small { display: block; color: var(--bdt-slate); font-size: .78rem; }
.bdt-wt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.bdt-wt-sub { font-size: .78rem; color: #9AA5AF; margin: 0; }
.bdt-wt-dark-wrap { margin-left: 26px; }

.bdt-wt-panel-out { position: sticky; top: 12px; }
.bdt-wt-empty { color: var(--bdt-slate); font-size: .95rem; line-height: 1.55; margin: 6px 0 0; }
.bdt-wt-big {
  font-family: Barlow, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 9cqw, 4rem);
  line-height: 1.05;
  color: var(--bdt-navy);
  margin: 2px 0 10px;
  font-variant-numeric: tabular-nums;
}
.bdt-wt-when {
  font-size: .95rem;
  color: var(--bdt-navy);
  line-height: 1.55;
  padding: 10px 12px;
  background: var(--bdt-mint);
  border-left: 4px solid var(--bdt-forest);
  border-radius: 10px;
  margin: 0 0 10px;
}
.bdt-wt-warn { display: block; margin-top: 6px; color: #C2410C; font-weight: 700; }

.bdt-wt-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: .88rem; }
.bdt-wt-table th, .bdt-wt-table td { text-align: left; padding: 7px 6px; border-top: 1px solid var(--bdt-line); vertical-align: top; }
.bdt-wt-table th { font-family: Barlow, system-ui, sans-serif; font-weight: 700; color: var(--bdt-navy); white-space: nowrap; }
.bdt-wt-table td:nth-child(2) { font-family: Barlow, system-ui, sans-serif; font-weight: 800; color: var(--bdt-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bdt-wt-table td:nth-child(3) { color: var(--bdt-slate); font-size: .8rem; }
.bdt-wt-total th, .bdt-wt-total td { border-top: 2px solid var(--bdt-navy); }
.bdt-wt-note { font-size: .84rem; color: var(--bdt-slate); line-height: 1.5; margin: 0 0 12px; }
.bdt-wt-note b { color: var(--bdt-navy); }
.bdt-wt-copy { margin-top: 2px; }

@container bdt (max-width: 760px) {
  .bdt-wt-stage { grid-template-columns: 1fr; }
  /* On a phone the answer comes first: a tapped preset shows its time
     without scrolling past the whole form. */
  .bdt-wt-panel-out { position: static; order: -1; }
}
@container bdt (max-width: 460px) {
  .bdt-wt-two { grid-template-columns: 1fr; }
  .bdt-wt-input.bdt-wt-time { max-width: 100%; }
}
