:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; background: #fff; color: #111; }
.wrap { max-width: 900px; margin: 0 auto; padding: 18px; }
h1 { margin: 10px 0 6px; font-size: 28px; }
.sub { margin: 0 0 14px; color: #333; }
.card { border: 1px solid #e6e6e6; border-radius: 14px; padding: 16px; margin: 14px 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input, select { padding: 10px; border-radius: 10px; border: 1px solid #d9d9d9; font-size: 16px; }
.actions { margin-top: 12px; }
.btn { display: inline-block; background: #111; color: #fff; padding: 10px 14px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.btn.secondary { background: #f2f2f2; color: #111; border: 1px solid #d9d9d9; }
.results { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #e6e6e6; }
.muted { color: #444; }
.tiny { font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; }
th { font-weight: 700; }

/* Time inputs sizing */
/* Prevent flex from stretching inputs and make the finish-time boxes compact */
#calculator .row input[type="number"]{
  flex: 0 0 auto;
  width: 4.2rem;          /* minutes/seconds */
  text-align: center;
}

/* Hours can be narrower */
#calculator #h{
  width: 3.4rem;
}
#popular-goal-times .links,
#related-goal-times .links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

#popular-goal-times .links a,
#related-goal-times .links a{
  display:inline-block;
  padding:8px 12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  text-decoration:none;
}
