.nywv2_wiki_hero .nywv2_lead {
    margin-bottom: 40px;
}

.nywv2_wiki_search_wrap {
    display: flex;
    align-items: center;
    height: 54px;
    max-width: 720px;
    margin-bottom: 24px;
    background: var(--nywv2_bg);
    border: 1px solid var(--nywv2_border_strong);
    border-radius: var(--nywv2_radius);
    transition: border-color var(--nywv2_ease), box-shadow var(--nywv2_ease);
}

.nywv2_wiki_search_wrap:focus-within {
    border-color: var(--nywv2_primary);
    box-shadow: 0 0 0 1px var(--nywv2_primary);
}

.nywv2_wiki_search_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 100%;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--nywv2_txt_sub);
    border-right: 1px solid var(--nywv2_border);
    transition: color var(--nywv2_ease);
}

.nywv2_wiki_search_wrap:focus-within .nywv2_wiki_search_icon {
    color: var(--nywv2_primary);
}

.nywv2_wiki_search_input {
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 0 18px;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--nywv2_txt);
}

.nywv2_wiki_search_input:focus {
    outline: none;
}

.nywv2_wiki_search_actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 14px;
    flex-shrink: 0;
}

.nywv2_wiki_clear_btn {
    display: none;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--nywv2_txt_sub);
    font-size: 1.3rem;
    cursor: pointer;
}

.nywv2_wiki_clear_btn:hover {
    color: var(--nywv2_txt);
}

.nywv2_wiki_kbd {
    padding: 2px 8px;
    border: 1px solid var(--nywv2_border_strong);
    border-radius: var(--nywv2_radius);
    font-size: 0.72rem;
    color: var(--nywv2_txt_sub);
}

.nywv2_wiki_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.nywv2_filter_pill {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--nywv2_border_strong);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--nywv2_txt);
    cursor: pointer;
    transition: background var(--nywv2_ease), color var(--nywv2_ease);
}

.nywv2_filter_pill:hover {
    background: var(--nywv2_card_hover);
}

.nywv2_filter_pill.active {
    background: var(--nywv2_txt);
    border-color: var(--nywv2_txt);
    color: var(--nywv2_bg);
}

.nywv2_search_stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    max-width: 720px;
    font-size: 0.85rem;
    color: var(--nywv2_txt_sub);
}

.nywv2_wiki_body {
    padding-top: 56px;
    padding-bottom: 112px;
}

.nywv2_mobile_toc_toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 24px;
    background: var(--nywv2_card);
    border: 1px solid var(--nywv2_border);
    border-radius: var(--nywv2_radius);
    font-weight: 500;
    cursor: pointer;
}

.nywv2_docs_layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.nywv2_docs_sidebar {
    position: sticky;
    top: calc(var(--nywv2_header_h) + 24px);
    max-height: calc(100vh - var(--nywv2_header_h) - 48px);
    overflow-y: auto;
    border: 1px solid var(--nywv2_border);
    background: var(--nywv2_card);
}

.nywv2_sidebar_head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border-bottom: 1px solid var(--nywv2_border);
}

.nywv2_sidebar_title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nywv2_sidebar_head > span:last-child {
    font-size: 0.8rem;
    color: var(--nywv2_txt_sub);
}

.nywv2_sidebar_group {
    padding: 12px 0;
    border-bottom: 1px solid var(--nywv2_border);
}

.nywv2_sidebar_group:last-child {
    border-bottom: none;
}

.nywv2_group_label {
    padding: 8px 20px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nywv2_txt_sub);
}

.nywv2_sidebar_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 20px;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    color: var(--nywv2_txt);
    text-decoration: none;
    transition: background var(--nywv2_ease);
}

.nywv2_sidebar_link:hover {
    background: var(--nywv2_card_hover);
}

.nywv2_sidebar_link.active {
    background: var(--nywv2_card_alt);
    border-left-color: var(--nywv2_primary);
    font-weight: 600;
}

.nywv2_sidebar_tag {
    flex-shrink: 0;
    font-family: var(--nywv2_mono);
    font-size: 0.7rem;
    color: var(--nywv2_txt_sub);
}

[data-severity="high"] {
    color: var(--nywv2_danger);
}

.nywv2_chapter {
    margin-bottom: 72px;
}

.nywv2_chapter_header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--nywv2_txt);
}

.nywv2_chapter_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--nywv2_card_alt);
    color: var(--nywv2_link);
    font-size: 1.6rem;
}

.nywv2_chapter_icon[data-severity="high"] {
    color: var(--nywv2_danger);
}

.nywv2_chapter_title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.nywv2_chapter_header p {
    color: var(--nywv2_txt_sub);
    line-height: 1.7;
    max-width: 640px;
}

.nywv2_articles_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nywv2_article_card {
    padding: 28px 32px;
    background: var(--nywv2_card);
    border: 1px solid var(--nywv2_border);
    scroll-margin-top: calc(var(--nywv2_header_h) + 24px);
}

.nywv2_article_card.nywv2_sev_high {
    border-left: 3px solid var(--nywv2_danger);
}

.nywv2_article_card.nywv2_is_target {
    outline: 2px solid var(--nywv2_primary);
    outline-offset: 2px;
}

.nywv2_article_top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.nywv2_article_badge_group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nywv2_article_num {
    padding: 3px 10px;
    background: var(--nywv2_card_alt);
    border-radius: var(--nywv2_radius);
    font-family: var(--nywv2_mono);
    font-size: 0.78rem;
    font-weight: 500;
}

.nywv2_article_num[data-severity="high"] {
    background: rgba(239, 68, 68, 0.14);
}

.nywv2_article_tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 500;
    background: var(--nywv2_card_alt);
    color: var(--nywv2_txt_sub);
}

.nywv2_tag_warn_red,
.nywv2_tag_critical {
    background: rgba(239, 68, 68, 0.14);
    color: var(--nywv2_danger);
}

.nywv2_tag_warn_pink,
.nywv2_tag_inv {
    background: var(--nywv2_badge_bg);
    color: var(--nywv2_link);
}

.nywv2_tag_warn_black {
    background: var(--nywv2_txt);
    color: var(--nywv2_bg);
}

.nywv2_tag_peace {
    background: rgba(16, 185, 129, 0.14);
    color: var(--nywv2_success);
}

.nywv2_copy_link_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--nywv2_border_strong);
    border-radius: var(--nywv2_radius);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--nywv2_ease);
}

.nywv2_copy_link_btn:hover {
    background: var(--nywv2_card_hover);
}

.nywv2_article_title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 14px;
}

.nywv2_article_body {
    color: var(--nywv2_txt_sub);
    line-height: 1.8;
}

.nywv2_article_body strong {
    color: var(--nywv2_txt);
    font-weight: 600;
}

.nywv2_article_body p {
    margin: 12px 0;
}

.nywv2_article_body ul,
.nywv2_article_body ol {
    margin: 12px 0 12px 20px;
    list-style: disc;
}

.nywv2_article_body ol {
    list-style: decimal;
}

.nywv2_article_body li + li {
    margin-top: 6px;
}

.nywv2_callout {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--nywv2_card_alt);
    border-left: 3px solid var(--nywv2_info);
    color: var(--nywv2_txt);
    line-height: 1.7;
}

.nywv2_callout_icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--nywv2_info);
}

.nywv2_callout_good {
    border-left-color: var(--nywv2_success);
}

.nywv2_callout_good .nywv2_callout_icon {
    color: var(--nywv2_success);
}

.nywv2_callout_forbidden {
    border-left-color: var(--nywv2_danger);
}

.nywv2_callout_forbidden .nywv2_callout_icon {
    color: var(--nywv2_danger);
}

.nywv2_inse_warn_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.nywv2_inse_card {
    padding: 24px;
    background: var(--nywv2_card);
    border: 1px solid var(--nywv2_border);
    border-top: 3px solid var(--nywv2_border_strong);
}

.nywv2_card_green {
    border-top-color: var(--nywv2_success);
}

.nywv2_card_pink {
    border-top-color: var(--nywv2_primary);
}

.nywv2_card_red {
    border-top-color: var(--nywv2_danger);
}

.nywv2_card_black {
    border-top-color: var(--nywv2_txt);
}

.nywv2_inse_header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.nywv2_inse_title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}

.nywv2_inse_points {
    font-family: var(--nywv2_mono);
    font-size: 0.74rem;
    color: var(--nywv2_txt_sub);
}

.nywv2_inse_desc {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--nywv2_txt_sub);
}

.nywv2_inse_desc strong,
.nywv2_inse_desc b {
    color: var(--nywv2_txt);
    font-weight: 600;
}

.nywv2_inse_inv_box {
    padding: 24px;
    background: var(--nywv2_card_alt);
    border-left: 3px solid var(--nywv2_info);
    color: var(--nywv2_txt_sub);
    line-height: 1.75;
}

.nywv2_inse_inv_box > div:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.nywv2_inse_inv_box > div:first-child span {
    padding: 2px 10px;
    background: var(--nywv2_info);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.nywv2_inse_inv_box h3,
.nywv2_inse_inv_box h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--nywv2_txt);
}

.nywv2_inse_inv_box strong {
    color: var(--nywv2_txt);
}

.nywv2_inse_inv_inner {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--nywv2_border);
    font-size: 0.92rem;
}

.nywv2_key_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.nywv2_key_box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--nywv2_card_alt);
}

.nywv2_key_lbl {
    flex-shrink: 0;
    min-width: 76px;
    padding: 8px 10px;
    background: var(--nywv2_bg);
    border: 1px solid var(--nywv2_border_strong);
    border-radius: var(--nywv2_radius);
    font-family: var(--nywv2_mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    color: var(--nywv2_txt);
}

.nywv2_key_desc h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--nywv2_txt);
}

.nywv2_key_desc p {
    margin: 2px 0 0;
    font-size: 0.85rem;
}

.nywv2_empty_search {
    display: none;
    padding: 64px 24px;
    text-align: center;
    border: 1px dashed var(--nywv2_border_strong);
}

.nywv2_empty_icon {
    font-size: 2.4rem;
    color: var(--nywv2_txt_sub);
}

.nywv2_empty_title {
    margin: 12px 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.nywv2_empty_desc {
    max-width: 480px;
    margin: 0 auto 24px;
    color: var(--nywv2_txt_sub);
}

@media (max-width: 1040px) {
    .nywv2_mobile_toc_toggle {
        display: flex;
    }

    .nywv2_docs_layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nywv2_docs_sidebar {
        display: none;
        position: static;
        max-height: 60vh;
        margin-bottom: 32px;
    }

    .nywv2_docs_sidebar.nywv2_open {
        display: block;
    }

    .nywv2_wiki_kbd {
        display: none;
    }
}

@media (max-width: 720px) {
    .nywv2_inse_warn_grid,
    .nywv2_key_grid {
        grid-template-columns: 1fr;
    }

    .nywv2_article_card {
        padding: 22px 20px;
    }

    .nywv2_chapter_header {
        flex-direction: column;
        gap: 14px;
    }
}
