:root {
    --max-width: 960px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    padding: 0.5rem;
}

footer {
    font-size: 0.8rem;
    margin: 1.5rem 0 0;
}

form {
    align-items: center;
    display: flex;
    margin: 0 0 1.5rem;
}

.sort {
    max-width: var(--max-width);
    text-align: right;
}

.route {
    color: black;
    text-decoration: none;
}

.route:hover {
    text-decoration: underline;
}

.autosuggest {
    width: 100%;
    max-width: 420px;
}

.as-input-wrapper {
    position: relative;
}

.as-input-wrapper input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.as-input-wrapper input:focus {
    outline: none;
    border-color: #999;
}

.as-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 8px 24px rgba(0,0,0,.08);

    display: none;

    z-index: 1000;
}

.as-suggestion-item {
    padding: 12px 14px;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.as-suggestion-item:hover,
.as-suggestion-item.active {
    background: #f5f5f5;
}

.as-suggestion-item small {
    color: #888;
}

.t-grp {
    margin: 1rem 0 0;
    max-width: var(--max-width);
    width: 100%;
}

.t-grp h2 {
    font-size: 1rem;
    margin: 0;
    padding: 0.2rem 0.5rem;
}

.t-grp .tournament {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
    padding: 0.5rem 0.5rem;
}

.t-grp .tournament:nth-child(even) {
    background-color: #ebeff5;
}

.t-grp .tournament div:first-child {
    flex: 0 0 140px;
}

.t-grp .tournament div:nth-child(2) {
    flex: 1 1 450px;
    min-width: 0;
}
