/* Conjugador: índice de verbos (verbos/index.html) y página de cada verbo (verbos/{verbo}.html).
   Las tablas reutilizan .conj de lesson.css */

/* ---------- Índice ---------- */
.verbos-buscar {
    position: sticky;
    top: calc(var(--nav-h) + 8px);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 22px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.verbos-buscar svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.verbos-buscar input {
    flex: 1;
    min-width: 0;
    padding: 13px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1.05rem;
    outline: none;
}

.verbos-buscar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.verbos-vacio {
    color: var(--text-muted);
    text-align: center;
}

.verbos-letra {
    margin-bottom: 18px;
}

.verbos-letra h2 {
    margin: 0 0 8px;
    color: var(--primary-text);
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.verbos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.verbos-lista a {
    display: grid;
    gap: 2px;
    height: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}

.verbos-lista a:hover,
.verbos-lista a:focus-visible {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.verbos-lista strong {
    font-size: 1.05rem;
}

.verbos-lista span {
    color: var(--text-muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

/* ---------- Página de un verbo ---------- */
.verbo-cabecera h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.verbo-cabecera h1 span[lang] {
    color: var(--primary-text);
}

.verbo-traduccion {
    font-size: 1.1rem;
    font-weight: 700;
}

.verbo-pista {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.verbo-tablas {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    align-items: start;   /* el gerundio (una fila) no se estira hasta la altura de las demás tablas */
}

/* Botón principal: practicar el verbo en todos sus tiempos (arriba y al final) */
.verbo-cta {
    align-self: flex-start;
    margin-top: 6px;
}

.verbo-final {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.verbo-tiempo figcaption {
    color: var(--text);
    font-size: 0.95rem;
}

.verbo-tiempo th {
    width: auto;
    white-space: nowrap;
}

.verbo-tiempo td[lang] {
    width: 100%;
}

.verbo-tiempo td.verbo-oir {
    width: 1%;
    padding: 4px 8px 4px 0;
}

.verbo-tiempo .speak-btn {
    width: 30px;
    height: 30px;
}

.verbo-pager {
    margin-top: 28px;
}

.verbo-pager strong {
    display: block;
    font-size: 1.1rem;
}
