/* =========================================================
   ftar:documents — дополнение к style.css (новые блоки)
   ========================================================= */

/* ---- Тип документов: Основные / Текущие (как на rusfencing.ru) ---- */
.ftar-docs__type-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--ftar-border, #d5dce6);
    margin: 0 0 20px;
}
.ftar-docs__type-tabs a {
    display: inline-block;
    padding: 12px 2px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ftar-text, #1a1a2e);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.ftar-docs__type-tabs a:hover { color: var(--ftar-accent, #e63350); text-decoration: none; }
.ftar-docs__type-tabs a.is-active {
    color: var(--ftar-accent, #e63350);
    border-bottom-color: var(--ftar-accent, #e63350);
    font-weight: 700;
}

/* ---- Таймлайн по годам (сайдбар) ---- */
.ftar-docs__sidebar-subtitle {
    font-family: var(--ftar-font-heading, Arial, sans-serif);
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.ftar-docs__timeline {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.ftar-docs__timeline a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--ftar-nav-text, #fff);
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,.2);
    transition: color .2s;
}
.ftar-docs__timeline li:last-child a { border-bottom: none; }
.ftar-docs__timeline a:hover { color: var(--ftar-nav-active, #e63350); text-decoration: none; }
.ftar-docs__timeline a.is-active {
    color: var(--ftar-nav-active, #e63350);
    font-weight: 700;
}
.ftar-docs__timeline .count { opacity: .6; font-weight: 400; }

/* ---- Внешняя ссылка (иконка «переход») ---- */
.ftar-docs__item-icon--external { color: var(--ftar-accent, #e63350); }
.ftar-docs__item-icon svg { width: 32px; height: 32px; }

/* ---- Полезные ссылки ---- */
.ftar-docs__useful-link { display: inline-flex; align-items: center; gap: 8px; }
.ftar-docs__useful-icon { display: inline-flex; width: 14px; height: 14px; color: var(--ftar-accent, #e63350); }
.ftar-docs__useful-icon svg { width: 100%; height: 100%; }

/* ---- Кнопки режима правки внутри элементов ---- */
.ftar-docs__item { position: relative; }

/* ---- Категории без подразделов: контент на всю ширину, без пустой колонки ---- */
.ftar-docs--no-sidebar .ftar-docs__layout { grid-template-columns: 1fr; }
@media (min-width: 1200px) {
    .ftar-docs--no-sidebar .ftar-docs__layout { grid-template-columns: 1fr; }
}
