/* Корневой блок страницы новости в стиле NYT */
.nyt-page {
    background-color: #f9fafb; /* bg-gray-50 */
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
    padding: 0 0 40px;
    /* УВЕЛИЧИЛ базовый кегль для всей новости */
    font-size: 18px;
    line-height: 1.7;
}

/* ---------------------- ШАПКА (NYT Header) ---------------------- */

.nyt-header {
    background-color: #111827;         /* bg-gray-900 */
    color: #f9fafb;
    border-bottom: 1px solid #374151;  /* border-gray-700 */
    margin-bottom: 0;
}

.nyt-header__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 16px;
}

@media (min-width: 768px) {
    .nyt-header__inner {
        flex-direction: row;
        align-items: center;
    }
}

.nyt-header__left {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .nyt-header__left {
        margin-bottom: 0;
    }
}

.nyt-header__logo {
    font-size: 1.5em; /* относительно 18px ≈ 27px */
    font-weight: 700;
    letter-spacing: -0.02em; 
    margin-right: 8px;
}

.nyt-header__tagline {
    font-size: 0.75em;  /* ≈ 13.5px */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9ca3af;     
}

.nyt-header__right {
    font-size: 0.9em;   /* ≈ 16px */
    color: #d1d5db;     
}

/* ---------------------- MAIN ---------------------- */

.nyt-main {
    padding: 32px 16px 48px; 
}

.nyt-main__inner {
    width: 100%;
    margin: 0 auto;
}

/* Заголовок статьи */

.nyt-article-header {
    border-bottom: 1px solid #d1d5db; 
    padding-bottom: 24px;             
    margin-bottom: 32px;              
}

.nyt-article-header__section {
    font-size: 0.85em; 
    color: #6b7280;    
    margin-bottom: 8px;
}

.nyt-article-header__title {
    font-size: 2em;       /* ≈ 36px на десктопе */
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

@media (min-width: 768px) {
    .nyt-article-header__title {
        font-size: 2.4em; /* ≈ 43px */
    }
}

.nyt-article-header__meta {
    font-size: 0.95em; /* ≈ 17px */
    color: #374151;    
}

/* ---------------------- СЕТКА: статья + сайдбар ---------------------- */

.nyt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px; 
}

@media (min-width: 1024px) {
    .nyt-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.nyt-grid__article,
.nyt-grid__sidebar {
    min-width: 0;
}

/* ---------------------- СТАТЬЯ ---------------------- */

/* Картинка */
.nyt-article-image-block {
    margin-bottom: 40px; 
}

.nyt-article-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;  
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.nyt-article-image-caption {
    margin-top: 8px;     
    font-size: 0.8em;    /* ≈ 14–15px */
    color: #4b5563;      
    font-style: italic;
}

/* Текст статьи */
.nyt-article-content {
    font-size: 1em;      /* ≈ 18px (основной текст, стал крупнее) */
    line-height: 1.8;
    color: #1f2937;      
}

.nyt-article-content p {
    margin-bottom: 1.5rem; 
}

/* Цитаты */
.nyt-article-content blockquote {
    border-left: 4px solid #9ca3af; 
    padding-left: 24px;             
    font-style: italic;
    font-size: 1.15em;              /* чуть крупнее текста статьи */
    margin: 32px 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Списки внутри контента */
.nyt-article-content ul {
    padding-left: 20px;
    margin: 16px 0;
}

.nyt-article-content li {
    margin-bottom: 8px;
}

/* ---------------------- SHARE THIS ARTICLE ---------------------- */

.nyt-share {
    margin-top: 48px;     
    padding-top: 32px;    
    border-top: 1px solid #d1d5db; 
}

.nyt-share__header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;  
}

.nyt-share__icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    color: #4b5563;       
}

.nyt-share__title {
    font-size: 1em; 
    font-weight: 700;
    margin: 0;
}

.nyt-share__buttons {
    display: flex;
    gap: 16px; 
}

.nyt-share__btn {
    width: 40px;      
    height: 40px;     
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-size: 0.9em;
}

.nyt-share__btn:hover {
    opacity: 0.8;
}

.nyt-share__btn--fb   { background-color: #1877F2; }
.nyt-share__btn--tw   { background-color: #1DA1F2; }
.nyt-share__btn--ln   { background-color: #0A66C2; }
.nyt-share__btn--mail { background-color: #D44638; }

/* ---------------------- СОСЕДИ (пред/след) ---------------------- */

.nyt-neighbors {
    margin-top: 48px;       
    padding-top: 32px;      
    border-top: 1px solid #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .nyt-neighbors {
        flex-direction: row;
        justify-content: space-between;
    }
}

.nyt-neighbor {
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;  /* ≈ 17px */
    color: #1d4ed8;     
    text-decoration: none;
}

.nyt-neighbor:hover {
    text-decoration: underline;
}

.nyt-neighbor__icon {
    font-size: 0.9em;
}

.nyt-neighbor--prev .nyt-neighbor__icon {
    margin-right: 8px;
}

.nyt-neighbor--next .nyt-neighbor__icon {
    margin-left: 8px;
}

/* ---------------------- САЙДБАР ---------------------- */

.nyt-sidebar-box {
    background-color: #ffffff;  
    padding: 24px;              
    border-radius: 4px;         
    border: 1px solid #e5e7eb;  
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 32px;                  
}

.nyt-sidebar-title {
    font-size: 1.1em;  /* ≈ 20px */
    font-weight: 700;
    margin: 0 0 16px;
    padding-top: 4px;           
    border-top: 1px solid #111827; 
}

.nyt-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;                  
}

/* Элемент списка в сайдбаре */
.nyt-sidebar-item {
    border-bottom: 1px solid #f3f4f6; 
    padding-bottom: 12px;             
}

.nyt-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nyt-sidebar-item__link {
    display: block;
    font-size: 0.95em;  /* ≈ 17px */
    font-weight: 500;   
    color: #1e40af;     
    text-decoration: none;
    line-height: 1.4;   
}

.nyt-sidebar-item__link:hover {
    text-decoration: underline;
}

.nyt-sidebar-item__meta {
    display: block;
    font-size: 0.8em;   /* ≈ 14–15px */
    color: #6b7280;     
    margin-top: 4px;
}

/* ---------------------- BLOCK "BREAKING" В САЙДБАРЕ ---------------------- */

.nyt-sidebar-breaking {
    margin-top: 24px;      
    padding-top: 16px;     
    border-top: 1px solid #e5e7eb;
}

.nyt-sidebar-breaking__header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;   
}

.nyt-sidebar-breaking__dot {
    width: 12px;           
    height: 12px;          
    border-radius: 9999px;
    background-color: #dc2626;
    margin-right: 8px;         
}

.nyt-sidebar-breaking__label {
    font-weight: 700;
    color: #1f2937; 
    font-size: 0.85em;
}

.nyt-sidebar-breaking__text {
    font-size: 0.95em;   /* ≈ 17px */
    line-height: 1.4;    
}

/* ---------------------- БЛОК share внизу (если есть) ---------------------- */

.nyt-page .news-article-page__share {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

/* ---------------------- АДАПТИВ ---------------------- */

@media (max-width: 767px) {
    .nyt-main {
        padding: 24px 12px 32px;
    }

    .nyt-page {
        padding-bottom: 32px;
        font-size: 16px; /* на очень маленьких экранах слегка уменьшим */
    }

    .nyt-article-header__title {
        font-size: 1.7em; 
    }

    .nyt-sidebar-box {
        position: static;
    }
}

/* ---------------------- MINI Tailwind-слои для [[*content]] ---------------------- */

.nyt-page .text-lg { font-size: 1.05em; }          /* ≈ 19px */
.nyt-page .leading-relaxed { line-height: 1.8; }
.nyt-page .mb-6 { margin-bottom: 1.5rem; }
.nyt-page .italic { font-style: italic; }
.nyt-page .text-xl { font-size: 1.2em; }

.nyt-page .bg-gray-50 { background-color: #f9fafb; }
.nyt-page .border-l-4 { border-left-width: 4px; }
.nyt-page .border-gray-400 { border-color: #9ca3af; }
.nyt-page .p-6 { padding: 1.5rem; }
.nyt-page .my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.nyt-page .pl-5 { padding-left: 1.25rem; }
.nyt-page .pl-6 { padding-left: 1.5rem; }
.nyt-page .space-y-2 > * + * { margin-top: 0.5rem; }
.nyt-page .list-disc { list-style-type: disc; }

.nyt-page .text-gray-600 { color: #4b5563; }
.nyt-page .text-gray-500 { color: #6b7280; }
.nyt-page .text-gray-800 { color: #1f2937; }
