/* Jutsu News — только страницы новостей */
.news-full {
    max-width: 720px;
    margin: 0 0 28px;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    animation: news-full-in 0.3s ease both;
}

@keyframes news-full-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.news-full__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
}

.news-full__backlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 12px 7px 10px;
    border-radius: 10px;
    border: 1px solid var(--j-info-tabs-border);
    background: var(--j-info-tabs-bg);
    color: var(--j-info-tab-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.news-full__backlink::before {
    content: "";
    width: 6px;
    height: 6px;
    border-left: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg);
}

.news-full__backlink:hover {
    background: var(--j-info-tab-active-bg);
    color: var(--j-info-tab-active-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.news-full__backlink:active {
    transform: scale(0.97);
}

.news-full__header {
    margin: 0 0 14px;
    padding: 0 2px;
}

.news-full__topic {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--j-info-tabs-border);
    background: var(--j-info-tab-active-bg);
    color: var(--j-info-accent-text, var(--j-accent, #98bc1f));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.news-full__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 3.6vw, 28px);
    line-height: 1.22;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--j-text-strong, #f5f5f7);
}

.news-full__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--j-info-text-muted, #8e8e93);
    letter-spacing: -0.01em;
}

.news-full__date::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--j-accent, #98bc1f);
    opacity: 0.75;
    flex: 0 0 auto;
}

.news-full__content {
    background: var(--j-info-surface);
    border: 1px solid var(--j-info-surface-border);
    border-radius: 16px;
    box-shadow: var(--j-info-surface-shadow);
    overflow: hidden;
    color: var(--j-info-text);
}

.news-full__lead {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--j-info-divider);
    background: var(--j-info-accent-soft);
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--j-info-text);
}

.news-full__text {
    padding: 16px 16px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--j-info-alt-text);
}

.news-full__text p {
    margin: 0 0 12px;
}

.news-full__text p:last-child {
    margin-bottom: 0;
}

.news-full__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0 0;
}

.news-full__nav-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--j-info-surface-border);
    background: var(--j-info-surface);
    box-shadow: var(--j-info-surface-shadow);
    color: var(--j-info-text);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.news-full__nav-btn--next {
    align-items: flex-end;
    text-align: right;
}

.news-full__nav-btn:hover {
    border-color: var(--j-info-tabs-border);
    background: var(--j-info-tab-active-bg);
    text-decoration: none;
}

.news-full__nav-btn:active {
    transform: scale(0.985);
}

.news-full__nav-btn--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.news-full__nav-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--j-info-accent-text, var(--j-accent, #98bc1f));
    letter-spacing: 0.01em;
}

.news-full__nav-btn--prev .news-full__nav-label::before {
    content: "‹ ";
}

.news-full__nav-btn--next .news-full__nav-label::after {
    content: " ›";
}

.news-full__nav-title {
    max-width: 100%;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--j-info-alt-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-full__text .news-full__source,
.news-full__source,
.news-full__tabs,
.news-full__meta,
.news-full__card,
.news-full__views,
.news-full__dot {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .news-full {
        animation: none;
    }

    .news-full__backlink,
    .news-full__nav-btn {
        transition: none;
    }
}

@media screen and (max-width: 720px) {
    .news-home__title {
        font-size: 18px;
    }

    .news-home__list,
    .news-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .news-card__link {
        padding: 12px 13px;
    }

    .news-card__title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .news-full {
        margin-bottom: 18px;
    }

    .news-full__title {
        font-size: 22px;
    }

    .news-full__lead {
        padding: 12px 14px;
        font-size: 14.5px;
    }

    .news-full__text {
        padding: 14px;
        font-size: 14.5px;
    }

    .news-full__nav {
        gap: 6px;
    }

    .news-full__nav-btn {
        padding: 10px 12px;
    }
}

.news-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.news-page-head__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--j-text-strong, #1c1c1e);
}

body:not(.light) .news-page-head__title {
    color: #f5f5f7;
}

.news-list-ajax {
    position: relative;
    min-height: 80px;
    transition: opacity 0.18s ease;
}

.news-list-ajax.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* Sort dropdown */
.news-sort-dd {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
}

.news-sort-dd__btn {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid var(--j-info-tabs-border);
    background: var(--j-info-tabs-bg);
    color: var(--j-info-tab-text);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.news-sort-dd__btn::-webkit-details-marker {
    display: none;
}

.news-sort-dd__chev {
    width: 5px;
    height: 5px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
    margin-top: -2px;
    opacity: 0.75;
}

.news-sort-dd[open] .news-sort-dd__chev {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.news-sort-dd__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 148px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--j-info-surface-border);
    background: var(--j-info-surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-sort-dd__item {
    appearance: none;
    border: 0;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    color: var(--j-info-text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.news-sort-dd__item:hover {
    background: var(--j-info-tabs-bg);
}

.news-sort-dd__item.is-active {
    background: var(--j-info-accent-soft);
    color: var(--j-info-accent-text);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--j-info-tabs-border);
}

body.light .news-sort-dd__item.is-active {
    background: #e2ebc8;
    color: #3f5a12;
}

/* Reactions */
.news-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--j-info-surface-border);
    background: var(--j-info-surface);
    box-shadow: var(--j-info-surface-shadow);
    width: fit-content;
    max-width: 100%;
}

.news-reactions__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--j-info-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.news-reactions__btn:hover {
    background: var(--j-info-tabs-bg);
}

.news-reactions__btn.is-active {
    background: var(--j-info-accent-soft);
    box-shadow: inset 0 0 0 1px var(--j-info-tabs-border);
}

.news-reactions__btn:active,
.news-reactions__btn.is-pending {
    transform: scale(0.96);
}

.news-reactions__emoji {
    font-size: 16px;
    line-height: 1;
}

.news-reactions__count:empty {
    display: none;
}

.news-reactions__count {
    min-width: 0.9em;
    color: var(--j-info-text-muted, #8e8e93);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* Comments — не использовать id=comments (конфликт с textarea #comments) */
.news-comments {
    margin: 20px 0 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    overflow: visible;
}

.news-comments__head {
    margin: 0 0 12px;
    padding: 0 2px;
}

.news-comments__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--j-text-strong, #1c1c1e);
}

body:not(.light) .news-comments__title {
    color: #f5f5f7;
}

.news-comments__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--j-info-tabs-bg);
    border: 1px solid var(--j-info-tabs-border);
    color: var(--j-info-tab-text);
    font-size: 12px;
    font-weight: 700;
}

.news-comments__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
}

.news-comment {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--j-info-surface-border);
    background: var(--j-info-surface);
    box-shadow: var(--j-info-surface-shadow);
}

.news-comment__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 6px;
}

.news-comment__author {
    font-size: 13px;
    font-weight: 700;
    color: var(--j-info-text);
}

.news-comment__date {
    font-size: 12px;
    color: var(--j-info-text-muted, #8e8e93);
    white-space: nowrap;
}

.news-comment__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--j-info-alt-text);
    overflow-wrap: anywhere;
}

.news-comments__empty,
.news-comments__denied {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed var(--j-info-surface-border);
    background: transparent;
    color: var(--j-info-text-muted, #8e8e93);
    font-size: 14px;
}

.news-comments__error {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(220, 60, 60, 0.12);
    border: 1px solid rgba(220, 60, 60, 0.28);
    color: #c44;
    font-size: 13px;
}

body:not(.light) .news-comments__error {
    color: #ffb4b4;
}

.news-comments__ok {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--j-info-accent-soft);
    border: 1px solid var(--j-info-tabs-border);
    color: var(--j-info-accent-text);
    font-size: 13px;
}

.news-comments__add {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.news-comments__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--j-info-surface-border);
    background: var(--j-info-surface);
    box-shadow: var(--j-info-surface-shadow);
}

.news-comments__as {
    font-size: 12.5px;
    color: var(--j-info-text-muted, #8e8e93);
}

.news-comments__name,
.news-comments__textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid var(--j-info-form-border, var(--j-info-surface-border));
    background: var(--j-info-form-bg, var(--j-surface-input, #2f332f));
    color: var(--j-info-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
}

.news-comments__textarea {
    min-height: 84px;
    resize: vertical;
}

.news-comments__name:focus,
.news-comments__textarea:focus {
    outline: 2px solid var(--j-info-focus, var(--j-accent));
    outline-offset: 1px;
}

.news-comments__actions {
    display: flex;
    justify-content: flex-end;
}

.news-comments__submit {
    margin: 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--j-info-btn-primary-bg, #7fa318);
    color: var(--j-info-btn-primary-text, #fff);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.news-comments__submit:hover {
    opacity: 0.92;
}

.news-comments__submit:active {
    transform: scale(0.97);
}

@media screen and (max-width: 720px) {
    .news-page-head__title {
        font-size: 20px;
    }

    .news-reactions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Scroll to top — слева */
.scroll-top {
    position: fixed;
    left: 16px;
    bottom: 22px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--j-info-tabs-border, rgba(152, 188, 31, 0.18));
    border-radius: 12px;
    background: var(--j-info-surface, #3f4640);
    color: var(--j-info-accent-text, #c8e06a);
    box-shadow: var(--j-info-surface-shadow, 0 2px 10px rgba(0, 0, 0, 0.28));
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

body.light .scroll-top {
    background: #fff;
    color: #5a7a10;
    border-color: #dfe8c8;
    box-shadow: 0 2px 10px rgba(47, 63, 31, 0.12);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.scroll-top:hover {
    background: var(--j-info-tab-active-bg, #4a524a);
}

body.light .scroll-top:hover {
    background: #edf5d4;
}

.scroll-top:active {
    transform: scale(0.96);
}

.scroll-top__icon {
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: 4px;
}

@media screen and (max-width: 720px) {
    .scroll-top {
        left: 12px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top {
        transition: none;
    }
}

/* ==========================================================================


.news-infinite {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 16px;
    color: var(--j-text-muted);
    font-size: 0.9rem;
}

.news-infinite[aria-hidden="true"] {
    display: none;
}

.news-infinite.is-loading .news-infinite__label {
    opacity: 1;
}

.news-infinite__label {
    opacity: 0.75;
}
