/* Try a guess, on the home page and "How the ranking works". A separate file
   so site.css, which browsers keep for up to 7 days, didn't have to change. */

button.button { border: 0; font: inherit; font-weight: 650; cursor: pointer; }

.try { max-width: 46rem; }

.try-words { margin: 0.4rem 0 1.75rem; }
.try-words summary { cursor: pointer; color: var(--accent); font-weight: 600; width: fit-content; }
.try-words .groups { margin: 0.75rem 0 0; }

.try-form label { display: block; font-weight: 650; margin-bottom: 0.45rem; }
.try-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.try-row input {
  width: 9rem; padding: 0.6rem 0.8rem;
  font: 700 1.35rem/1.2 "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text); background: var(--surface-raised);
  border: 2px solid var(--rule); border-radius: 12px;
}
.try-row input::placeholder { color: var(--muted); opacity: 0.6; }
.try-row input:focus-visible { border-color: var(--accent); outline-offset: 2px; }

.try-examples { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--muted); }
.try-examples button, .try-toggle button {
  font: 600 0.92rem/1.2 "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color: var(--text); background: var(--surface-raised);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.45rem 0.8rem; margin: 0.15rem 0.1rem; cursor: pointer;
}
.try-examples button:hover, .try-toggle button:hover { border-color: var(--accent); }
.try-toggle { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.2rem; }
.try-toggle button { margin: 0; }
.try-toggle button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.try-error { min-height: 1.6em; margin: 0.5rem 0 0; font-weight: 600; }

.try-result {
  margin-top: 0.75rem; padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
}
.try-result h3 { margin-bottom: 0.4rem; }
.try-result .splits { margin: 1.25rem 0 1.5rem; }
.try-head { font-weight: 650; margin: 0 0 0.25rem; }

.try-groups { list-style: none; padding: 0; margin: 0.9rem 0; display: grid; gap: 0.65rem; }
.try-groups li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.try-groups .chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tiles.small { gap: 4px; margin: 0; }
.tiles.small .tile { --size: 1.9rem; font-size: 0.95rem; border-radius: 5px; }
.tiles.small .tile::after { top: 0; right: 2px; font-size: 0.5rem; }

.try-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem;
  margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
}
.try-cta p { margin: 0; }

.try-result .table-wrap { margin: 0 0 0.25rem; }
.try-table { margin: 0 0 0.5rem; background: var(--bg); border-radius: 10px; }
@media (max-width: 640px) {
  .try-table th, .try-table td { padding: 0.5rem 0.35rem; }
}

.nw { white-space: nowrap; }
