/* fitfilerunner custom styles — layered on top of Pico CSS */

/* Tighten up the page layout */
main.container {
  max-width: 640px;
  padding-top: 2rem;
}

/* Monospace for workout input */
#workout {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  resize: vertical;
  min-height: 6rem;
}


/* Feedback banners */
.feedback {
  padding: 0.5rem 0.75rem;
  border-radius: var(--pico-border-radius);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}

.feedback[data-type="error"] {
  background: color-mix(in srgb, var(--pico-del-color) 12%, transparent);
  border: 1px solid var(--pico-del-color);
  color: var(--pico-del-color);
}

.feedback[data-type="success"] {
  background: color-mix(in srgb, var(--pico-ins-color) 12%, transparent);
  border: 1px solid var(--pico-ins-color);
  color: var(--pico-ins-color);
}

/* Cheatsheet card */
.cheatsheet h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--pico-muted-color);
}

.cheatsheet table {
  margin-bottom: 0;
}

.cheatsheet td {
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
}

.cheatsheet td:first-child {
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  white-space: nowrap;
  color: var(--pico-primary);
  font-weight: 500;
}

/* Clickable example snippets */
.examples {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.examples li {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.examples li::before {
  content: "\203A";
  color: var(--pico-muted-color);
  font-weight: 600;
  flex-shrink: 0;
}

.examples code {
  cursor: pointer;
  transition: background 0.15s;
  word-break: break-all;
  white-space: normal;
}

.examples code:hover {
  background: var(--pico-primary-focus);
}

.examples .desc {
  color: var(--pico-muted-color);
  margin-left: 0.25rem;
}

/* About footer */
footer .about {
  font-size: 0.9rem;
  color: var(--pico-muted-color);
}

footer .about h2 {
  font-size: 1rem;
}

footer .about a {
  color: var(--pico-primary);
}

footer .about small {
  display: block;
  margin-top: 0.75rem;
}
