/*
 * Дополнительные стили порта: то, чего не было в css2014/style.css,
 * но что нужно новым элементам (меню, пагинация, таблицы, галерея).
 * Подключается после style.css и не меняет внешний вид старых блоков.
 */

@charset "UTF-8";

/* Левое меню: ссылка внутри пункта + подсветка активного раздела */
ul.left_menu li {
    line-height: 1.8em;
    padding: 0 20px;
}
ul.left_menu li a {
    display: block;
    color: #000;
}
ul.left_menu li a:hover,
ul.left_menu li.active a {
    background: linear-gradient(to top, silver, transparent, silver);
}
ul.left_menu li.active a {
    font-weight: bold;
}

/* Хлебные крошки */
#content .crumbs {
    padding: 5px 20px;
    font-size: 14px;
    color: #666;
}
#content .crumbs a {
    color: #280569;
}

/* Пагинация */
nav.pagination {
    padding: 10px 20px 0;
    text-align: center;
    font-size: 16px;
}
nav.pagination .page {
    display: inline-block;
    min-width: 28px;
    padding: 3px 8px;
    margin: 0 2px;
    border-radius: 5px;
    color: #280569;
}
nav.pagination a.page:hover {
    background: #EBF0F5;
}
nav.pagination .page.current {
    background: linear-gradient(to top, #5D8AB4, #EBF0F5);
    color: #fff;
    font-weight: bold;
}
nav.pagination .page.disabled,
nav.pagination .page.dots {
    color: #999;
}

/* «Другие новости» под статьёй */
ul.related-news {
    list-style: none;
    padding: 0 15px;
}
ul.related-news li {
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
}
ul.related-news li a {
    color: #000;
}
ul.related-news li a:hover {
    color: #280569;
}
ul.related-news .date {
    color: #888;
    font-size: 12px;
    font-style: italic;
    margin-left: 8px;
}

/* Источник новости */
.content_news.source {
    font-size: 14px;
    color: #555;
}

/* О клубе, календарь */
ul.club-facts,
ul.calendar-list {
    list-style: none;
    padding: 0;
    line-height: 1.6;
}
ul.club-facts li,
ul.calendar-list li {
    padding: 6px 0;
    border-bottom: 1px dotted #ddd;
}

/* Таблицы (статистика, история, турнирная таблица) */
table.legacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
table.legacy-table th,
table.legacy-table td {
    padding: 4px 8px;
    border: 1px solid #d5d5d5;
    text-align: center;
}
table.legacy-table thead th {
    background: #C5C5C5;
    color: #280569;
}
table.legacy-table tbody tr:nth-child(even) {
    background: #f6f6f6;
}
table.legacy-table td.name {
    text-align: left;
}
table.history-table td:first-child {
    font-weight: bold;
}

/* Контент, перенесённый из .htm «как есть» */
.legacy-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.legacy-content td,
.legacy-content th {
    padding: 3px 6px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.legacy-content a {
    color: #280569;
}
.legacy-content h1 {
    font-size: 22px;
    text-align: center;
    margin: 10px 0;
}

/* Алфавитный указатель футболистов */
.players-alphabet td a {
    font-size: 18px;
    padding: 2px 6px;
    display: inline-block;
}
.players-list table a,
.players-alphabet table a {
    color: #280569;
}
.players-list h1,
.players-alphabet h1 {
    font-size: 20px;
}
.back-link {
    margin-top: 15px;
}

/* Фотогалерея */
.gallery img {
    border: 1px solid silver;
    padding: 3px;
    background: #f6f6f6;
    margin: 4px;
    vertical-align: top;
}
.gallery img:hover {
    border-color: #280569;
}
.gallery h2 {
    margin-top: 20px;
}

/* Правая колонка не должна ломать вёрстку длинными названиями */
#tablica .name {
    word-wrap: break-word;
}

/* Поиск: блок в правой колонке и страница результатов */
#search {
    background: url('../img2014/bg_dot_wight.png');
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #CDCDCD;
    margin-bottom: 30px;
}
#search .content_inside_block {
    padding: 12px 20px;
}
#search .read_more {
    margin-top: 8px;
}
form.search-form,
form.search-form-page {
    display: flex;
    gap: 6px;
    align-items: stretch;
}
form.search-form-page {
    margin-bottom: 18px;
}
form.search-form input[type="search"],
form.search-form-page input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}
form.search-form button,
form.search-form-page button {
    flex: 0 0 auto;
    padding: 5px 12px;
    border: 1px solid #5D8AB4;
    border-radius: 4px;
    background: linear-gradient(to top, #5D8AB4, #EBF0F5);
    color: #280569;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
form.search-form button:hover,
form.search-form-page button:hover {
    background: linear-gradient(to top, #EBF0F5, #5D8AB4);
}
.search-summary,
.search-hint {
    margin-bottom: 12px;
    color: #444;
}
ul.search-results {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.search-results li {
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
}
ul.search-results .search-result-title {
    color: #280569;
    font-size: 17px;
}
ul.search-results .meta {
    color: #888;
    font-size: 12px;
    font-style: italic;
    margin: 3px 0;
}
ul.search-results .snippet {
    text-align: justify;
}
ul.search-results mark {
    background: #fff2a8;
    padding: 0 2px;
    color: inherit;
}
.crumbs .separator {
    color: #999;
}
.crumbs .current {
    color: #333;
}
