/* Основные параметры */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 800px;
    background: #fff;
}



/* Блок новостей */
.articles {
    margin: 0;
    padding: 12px 0;
    list-style: none;
}

.articles article {
    padding: 12px 0;
    cursor: pointer;
}

.articles article h2 {
    font-size: 15px;
	padding: 6px 0;
    font-weight: 600;
    margin: 0;
    color: #0050b3;
}

article.visited h2 {
    color: #000 !important;
    opacity: 0.7;
    position: relative;
}

article.visited h2:after {
    content: "✓";
    margin-left: 8px;
    color: green;
}

/* Контейнер вкладок */
.tabs {
    display: flex;
    position: relative;
    white-space: nowrap;
    gap: 8px;
    margin-top: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Отдельная вкладка */
.tab {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500; /* Medium weight */
    font-size: 15px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em; /* Более аккуратный кернинг */
}

/* Активная вкладка */
.tab.active {
    color: #0077FF;
    background-color: rgba(0, 119, 255, 0.1);
    font-weight: 500;
}

/* Наведение */
.tab:hover {
    color: #0077FF;
}

/* Адаптация для десктопов */
@media (min-width: 1069px) {
    .tab {
        font-size: 15px;
        padding: 6px 16px;
    }
}

/* Специальные шрифты для разных ОС */
@supports (font: -apple-system-body) {
    .tab {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
}

@supports not (font: -apple-system-body) {
    .tab {
        font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    }
}
/* Кнопка */
#loadMore {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin: 15px 0 0 0;
    background: #f2f2f2;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
	font-size: 15px;
}

@media (max-width: 600px) {
    .articles article {
        padding: 6px 0;
    }
}

.edit-title {
    width: 100%;
    padding: 2px;
    font-style: italic;
    font-size: 0.9em;
    border: 1px solid #0066cc;
    background-color: #fff;
}

/* Стили для кнопки "Вернуться" */
.back-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 0 0 20px 0;
    background: #f2f2f2;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

/* Стили для контента статьи */
.content {
    white-space: pre-wrap;
    line-height: 1.6;
    margin-top: 20px;
    text-align: justify;
}




.content p {
    margin-bottom: 1em;
}

time {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin: 5px 0 15px 0;
}

.content pre {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
    padding: 0;
}