@charset "UTF-8";

/* ==========================================================================
   Naknes Documentation Design System
   Layout: Full-width top navigation with sidebar, content and table of contents
   Theme: Classic Clean White Canvas with Sleek Dark Code Blocks
   - Font: Pretendard Variable (Korean) / Inter (English)
   - Code Font: ui-monospace, SFMono-Regular, Consolas, monospace
   ========================================================================== */

/* --------------------------------------------------------------------------
   [1] Design Tokens & Variables (기존 아이덴티티 기반 세련된 토큰)
   -------------------------------------------------------------------------- */
:root {
    /* Brand Accent Colors */
    --docs-accent: #3182f6;           /* Naknes Blue */
    --docs-accent-hover: #2272eb;
    --docs-accent-subtle: #eff6ff;    /* Soft Light Blue Tint */

    /* Text & Neutral Colors */
    --docs-ink: #0f172a;              /* Slate-900: Primary headings */
    --docs-text: #334155;             /* Slate-700: High-readability body text */
    --docs-muted: #94a3b8;            /* Slate-400: Muted labels & breadcrumbs */

    /* Surface & Borders */
    --docs-bg: #ffffff;
    --docs-nav-bg: #ffffff;
    --docs-nav-border: #e5e5e7;
    --docs-border: #e2e8f0;           /* Slate-200: Crisp structural borders */

    /* Code Block Colors (Classic Dark Theme) */
    --docs-code-bg: #171922;          /* Sleek Dark Editor Background */
    --docs-code-header-bg: #111319;   /* Subtle Dark Header */
    --docs-code-border: #262934;      /* Dark Border */
    --docs-code-text: #c9d1d9;        /* High-Legibility Code Text */

    /* Layout Dimensions */
    --docs-topbar-height: 64px;
    --docs-sidebar-width: 224px;
    --docs-toc-width: 230px;
    --docs-content-max: 980px;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.docs-shell {
    margin: 0;
    color: var(--docs-text);
    background: var(--docs-bg);
    font-family: var(--font-family);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   [2] Top Navigation Bar (기존 전폭 고정 상단 바 + 세련된 디테일)
   -------------------------------------------------------------------------- */
.docs-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    height: var(--docs-topbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--docs-nav-border);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-topbar-start {
    border-bottom: 0;
}

.docs-icon-button {
    padding: 8px;
    display: inline-grid;
    place-items: center;
    color: #64748b;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.docs-icon-button:hover {
    color: var(--docs-ink);
    background: #f1f5f9;
}

.docs-icon-button svg {
    width: 20px;
    height: 20px;
}

#mobile_menu_close {
    width: 48px;
    height: 48px;
}

#mobile_menu_close svg {
    width: 28px;
    height: 28px;
}

#mobile_menu_close .ph {
    font-size: 28px;
}

.docs-sidebar-mobile-head {
    display: none;
}

/* --------------------------------------------------------------------------
   [3] Main 3-Column Integrated Layout (기존 일체형 3단 레이아웃)
   -------------------------------------------------------------------------- */
.docs-layout {
    width: 100%;
    max-width: 1700px;
    padding: 0 48px;
    box-sizing: border-box;
    min-height: calc(100vh - var(--docs-topbar-height));
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr) var(--docs-toc-width);
}

/* --------------------------------------------------------------------------
   [4] Left Navigation Sidebar (좌측 일체형 사이드바 + 정돈된 디테일)
   -------------------------------------------------------------------------- */
.docs-sidebar {
    position: sticky;
    top: var(--docs-topbar-height);
    height: calc(100vh - var(--docs-topbar-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    border-right: 1px solid var(--docs-nav-border);
    background: var(--docs-nav-bg);
}

.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}
.docs-sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 99px;
}
.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

@media (hover: hover) and (pointer: fine) {
    .docs-sidebar {
        scrollbar-color: transparent transparent;
    }

    .docs-sidebar::-webkit-scrollbar-thumb {
        background: transparent;
    }

    .docs-sidebar:hover,
    .docs-sidebar:focus-within {
        scrollbar-color: #e2e8f0 transparent;
    }

    .docs-sidebar:hover::-webkit-scrollbar-thumb,
    .docs-sidebar:focus-within::-webkit-scrollbar-thumb {
        background: #e2e8f0;
    }

    .docs-sidebar::-webkit-scrollbar-thumb:hover {
        background: #cbd5e1;
    }
}

.docs-sidebar-nav {
    padding: 48px 20px 60px 0;
}

.docs-sidebar-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 28px;
    padding-bottom: 0;
    border-bottom: 0;
}

.docs-sidebar-title {
    color: #737970;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.docs-sidebar-ver-tag {
    padding: 0;
    border-radius: 6px;
    background: transparent;
    color: #80857f;
    font-size: 10.5px;
    font-weight: 600;
}

.docs-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu-category-group {
    margin: 0;
}

.menu-category-toggle {
    width: 100%;
    padding: 7px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #252b29;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.menu-category-toggle:hover {
    color: #252b29;
    background: transparent;
}

.menu-category-group.has-active .menu-category-toggle {
    color: #252b29;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-category-arrow {
    width: 13px;
    height: 13px;
    color: #94a3b8;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
}

.menu-category-toggle:hover .menu-category-arrow {
    color: #64748b;
}

.menu-category-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-link-list {
    position: relative;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    border-left: 0;
}

.category-link-list li {
    margin: 2px 0;
}

.sidebar-link {
    position: relative;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #737970;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-link-dot {
    display: none;
}

.sidebar-link:hover {
    color: #252b29;
    background: transparent;
}

.sidebar-link:hover .sidebar-link-dot {
    background: #cbd5e1;
    transform: translateY(-50%) scale(1);
}

.sidebar-link.is-active {
    color: var(--docs-accent) !important;
    font-weight: 500 !important;
    background: #f0f5fc !important;
}

.sidebar-link.is-active .sidebar-link-dot {
    background: var(--docs-accent) !important;
    transform: translateY(-50%) scale(1.35) !important;
    box-shadow: 0 0 0 2px rgba(49, 130, 246, 0.2);
}

/* --------------------------------------------------------------------------
   [5] Right Table of Contents (우측 목차 + 활성화 가이드라인)
   -------------------------------------------------------------------------- */
.docs-toc {
    position: sticky;
    top: var(--docs-topbar-height);
    height: calc(100vh - var(--docs-topbar-height));
    align-self: start;
    overflow-y: auto;
}

.docs-toc-inner {
    margin-top: 48px;
    padding: 0 0 0 24px;
    border-left: 1px solid var(--docs-border);
}

.docs-toc-inner > p {
    margin: 0 0 14px;
    color: #475569;
    font-size: 11.5px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#docs_toc_links {
    display: flex;
    flex-direction: column;
    border-left: 1.5px solid #edf2f7;
    margin-left: -1px;
}

#docs_toc_links a {
    padding: 4px 0 4px 14px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -1.5px;
    transition: all 0.15s ease;
}

#docs_toc_links a:hover {
    color: var(--docs-ink);
}

#docs_toc_links a.is-active {
    color: var(--docs-accent) !important;
    font-weight: 650 !important;
    border-left-color: var(--docs-accent) !important;
}

.docs-release-link {
    margin-top: 24px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #475569;
    border: 1px solid var(--docs-border);
    border-radius: 9px;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.docs-release-link:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: var(--docs-accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.docs-release-link span {
    transition: transform 0.15s ease;
}

.docs-release-link:hover span {
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   [6] Main Content & Typography (본문 및 타이포그래피)
   -------------------------------------------------------------------------- */
.docs-main {
    min-width: 0;
}

.docs-content {
    width: min(100%, var(--docs-content-max));
    margin: 0 auto;
    padding: 60px 44px 100px;
    box-sizing: border-box;
}

/* Breadcrumb Navigation */
nav[aria-label="Breadcrumb"],
.docs-content > nav[aria-label="Breadcrumb"] {
    display: flex !important;
    align-items: center;
    margin-bottom: 24px !important;
    color: var(--docs-muted) !important;
    font-size: 12.5px !important;
    font-weight: 500;
}

nav[aria-label="Breadcrumb"] ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav[aria-label="Breadcrumb"] li:last-child {
    color: var(--docs-accent) !important;
    font-weight: 600;
}

/* Article Prose */

article.prose ul,
article.prose ol {
    margin: 0 0 20px !important;
    padding-left: 22px !important;
    color: var(--docs-text);
}

article.prose ul {
    list-style: disc outside !important;
}

article.prose ol {
    list-style: decimal outside !important;
}

article.prose li {
    margin: 6px 0;
    padding-left: 2px;
    line-height: 1.75;
}

article.prose a {
    color: var(--docs-accent);
    font-weight: 500;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

article.prose a:hover {
    color: var(--docs-accent-hover);
}

/* Modernized Inline Code (인라인 코드: 부드러운 슬레이트 뱃지) */
article.prose :not(pre) > code,
.docs-shell :not(pre) > code {
    padding: 2px 6px !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #f1f5f9 !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
    font-size: 0.875em !important;
    font-weight: 550 !important;
}

/* --------------------------------------------------------------------------
   [7] Dark Code Blocks & Prism Syntax Highlighting (기존 다크 테마 코드창)
   -------------------------------------------------------------------------- */
.docs-code-box {
    background-color: var(--docs-code-bg);
    border: 1px solid var(--docs-code-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    margin: 24px 0 28px;
    overflow: hidden;
}

.docs-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background-color: var(--docs-code-header-bg);
}

.docs-code-path {
    font-size: 12.5px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 500;
    color: #8b949e;
    letter-spacing: 0.3px;
    user-select: text;
}

.docs-code-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.15s ease;
}

.docs-code-copy-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}

.docs-code-copy-btn svg {
    width: 20px;
    height: 20px;
}

.docs-code-body {
    padding: 0;
    margin: 0;
}

.docs-code-box pre,
article.prose pre:not(.docs-code-box pre) {
    margin: 0;
    padding: 18px 22px 20px;
    background: var(--docs-code-bg) !important;
    overflow-x: auto;
}

article.prose pre:not(.docs-code-box pre) {
    border: 1px solid var(--docs-code-border);
    border-radius: 12px;
    margin: 24px 0 28px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.docs-code-box code[class*="language-"],
article.prose pre code {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--docs-code-text) !important;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.docs-code-box pre .docs-terminal-command {
    color: #93c5fd !important;
    font-weight: 650;
}

.docs-code-box pre code .token.comment.docs-modern-comment {
    color: #93c5fd;
}

/* Prism Tomorrow Night Keyword Bold Weights */
.docs-code-box pre code .token.keyword,
.docs-code-box pre code .token.atrule,
.docs-code-box pre code .token.selector,
.docs-code-box pre code .token.function,
.docs-code-box pre code .token.class-name,
.docs-code-box pre code .token.important {
    font-weight: 650;
}

/* --------------------------------------------------------------------------
   [10] Footer Navigation (하단 이전/다음 내비게이션 카드)
   -------------------------------------------------------------------------- */
.docs-content > footer,
footer {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--docs-border);
}

.docs-content > footer > a,
.docs-content > footer > div,
footer > a,
footer > div {
    display: flex;
    flex: 1 1 50%;
    flex-direction: column;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
}

.docs-content > footer > a,
footer > a {
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--docs-border);
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-content > footer > a:hover,
footer > a:hover {
    border-color: #93c5fd;
    background: var(--docs-accent-subtle);
    box-shadow: 0 4px 14px rgba(49, 130, 246, 0.07);
    transform: translateY(-1px);
}

.docs-content > footer > a:last-child,
footer > a:last-child {
    align-items: flex-end;
    text-align: right;
}

.docs-content > footer > a span:first-child,
footer > a span:first-child {
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.docs-content > footer > a span:last-child,
footer > a span:last-child {
    color: #1e293b;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.15s ease;
}

.docs-content > footer > a:hover span:last-child,
footer > a:hover span:last-child {
    color: var(--docs-accent) !important;
}

/* --------------------------------------------------------------------------
   [11] Search Modal Dialog (검색 모달)
   -------------------------------------------------------------------------- */
#search_modal {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#search_modal > div {
    border-radius: 16px;
    border: 1px solid var(--docs-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#search_input {
    font-size: 15px;
}

#search_close_btn {
    border-radius: 6px;
    font-weight: 600;
}

#search_results .group {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    transition: all 0.15s ease;
}

#search_results .group:hover {
    border-color: #bfdbfe;
    background: #f0f7ff;
}

/* --------------------------------------------------------------------------
   [12] Release Notes Entries (릴리스 노트)
   -------------------------------------------------------------------------- */

.docs-content article.prose .docs-release-entry {
    margin: 0 0 44px;
    padding: 4px 0 4px 20px;
    border-left: 3px solid #e2e8f0;
    scroll-margin-top: calc(var(--docs-topbar-height) + 24px);
}

.docs-content article.prose .docs-release-entry.is-current {
    border-left-color: var(--docs-accent);
}

.docs-content article.prose .docs-release-entry-date {
    margin-bottom: 14px;
    color: var(--docs-accent);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   [14] Responsive Media Queries (반응형 모바일 & 태블릿)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {

    .docs-code-box code[class*="language-"] {
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .docs-layout {
        grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr);
    }

    .docs-toc {
        display: none;
    }
}

@media (min-width: 1024px) {
    .docs-header-brand {
        width: var(--docs-sidebar-width);
    }

    :root {
        --docs-topbar-height: 64px;
    }

    .docs-layout > .docs-sidebar.hidden {
        display: block !important;
    }

    .docs-sidebar .sidebar-link {
        font-size: 15px;
    }

    .docs-sidebar .menu-category-toggle {
        font-size: 14px;
    }

    .docs-sidebar-title {
        font-size: 12px;
    }

    .docs-sidebar-ver-tag {
        font-size: 12px;
    }
}

@media (max-width: 1023px) {

    .docs-layout {
        display: block;
        padding: 0;
    }

    .docs-sidebar {
        position: fixed;
        z-index: 60;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100%;
        background: var(--docs-nav-bg);
        box-shadow: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateX(0);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    }

    .docs-sidebar.hidden {
        display: block !important;
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .docs-sidebar-mobile-head {
        position: sticky;
        top: 0;
        z-index: 10;
        height: var(--docs-topbar-height);
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--docs-nav-bg);
        border-bottom: 1px solid var(--docs-nav-border);
    }

    .docs-sidebar-nav {
        padding: 24px 20px calc(48px + env(safe-area-inset-bottom, 0px));
    }

    .docs-sidebar-nav > .docs-sidebar-top-bar,
    .docs-sidebar-nav > .docs-menu,
    .docs-sidebar-nav > .mobile-menu-section-title,
    .docs-sidebar-nav > .mobile-menu-list {
        margin-left: 16px;
    }

    .mobile-menu-back {
        position: sticky;
        top: var(--docs-topbar-height);
        z-index: 9;
        display: flex;
        align-items: center;
        gap: 8px;
        width: calc(100% + 40px);
        height: 56px;
        box-sizing: border-box;
        margin: -24px -20px 24px;
        padding: 0 20px;
        border: 0;
        border-bottom: 1px solid var(--docs-nav-border);
        background: var(--docs-nav-bg);
        color: #252b29;
        font: inherit;
        font-size: 17px;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
    }

    .mobile-menu-back .ph {
        font-size: 22px;
    }

    .docs-sidebar-title {
        color: #252b29;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .mobile-menu-primary {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-menu-primary.hidden {
        display: none;
    }

    .mobile-menu-primary > a {
        padding: 10px 0;
        color: #252b29;
        font-size: 26px;
        font-weight: 500;
        line-height: 1.3;
        text-decoration: none;
    }

    .mobile-menu-primary > a[aria-current="page"] {
        font-weight: 700;
    }

    .mobile-menu-section-title {
        margin: 0 0 28px;
    }

    .mobile-menu-list {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .mobile-menu-category-title {
        margin: 0;
        padding: 7px 0;
        color: #252b29;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;
    }

    .menu-category-toggle {
        font-size: 16px;
        font-weight: 700;
    }

    .category-link-list {
        padding-left: 0;
    }

    .docs-sidebar .sidebar-link {
        padding: 10px 0;
        font-size: 18px;
        line-height: 1.5;
    }

    .docs-sidebar-backdrop {
        position: fixed;
        z-index: 55;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
        opacity: 1;
        transition: opacity 0.25s ease;
    }

    .docs-sidebar-backdrop.hidden {
        display: block !important;
        opacity: 0;
        pointer-events: none;
    }

    .docs-content {
        padding: 48px 20px 80px;
    }
}

@media (max-width: 640px) {
    :root {
        --docs-topbar-height: 64px;
    }

    .docs-content {
        padding: 40px 16px 64px;
    }

    .docs-content > footer {
        flex-direction: column;
        gap: 12px;
        margin-top: 48px;
        padding-top: 20px;
    }

    .docs-content > footer > a,
    .docs-content > footer > div {
        min-width: 0;
        overflow-wrap: anywhere;
    }

}

.site-footer {
    max-width: 1604px;
    margin: 24px auto 0;
    padding: 24px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    border-top: 1px solid #e5e7e2;
    color: #80857f;
    font-size: 12px;
    line-height: 1.8;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .site-footer {
        width: calc(100% - 96px);
        padding: 24px 0;
    }
}

/* Documentation articles: spacing follows content relationships.
   See www/views/docs/WRITING_GUIDE.md and https://docs.tosspayments.com/guides/v2/webhook */
.docs-content header.docs-article-header {
    margin: 0 0 64px;
}

.docs-content header.docs-article-header h1 {
    margin: 0 0 20px;
    color: #333d4b;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: normal;
    line-height: 1.3;
}

article.prose.docs-article {
    width: 100%;
    max-width: none;
    display: block;
    color: #4e5968;
    font-size: 16px;
    line-height: 1.75;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.docs-content header.docs-article-header p {
    margin: 0;
    color: #252b29;
    font-size: 16px;
    letter-spacing: -0.02em;
    line-height: 1.85;
}

.docs-content header.docs-article-header p + p {
    margin-top: 4px;
    color: #59615b;
    font-size: 14px;
    letter-spacing: -0.015em;
}

.docs-content header.docs-article-header p.docs-framework-direction {
    margin-top: 16px;
}

@media (min-width: 640px) {
    .docs-content header.docs-article-header p {
        font-size: 18px;
    }

    .docs-content header.docs-article-header p + p {
        font-size: 16px;
    }
}

.docs-content article.prose.docs-article .docs-task-card h3,
.docs-content article.prose.docs-article .docs-task-card p {
    margin: 0 !important;
}

article.prose.docs-article section {
    width: 100%;
    scroll-margin-top: calc(var(--docs-topbar-height) + 24px);
    margin-bottom: 0 !important;
    display: flow-root;
}

article.prose.docs-article h2 {
    margin: 56px 0 20px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #333d4b !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}

article.prose.docs-article section:first-of-type h2 {
    margin-top: 0 !important;
}

article.prose.docs-article h3 {
    margin: 32px 0 12px !important;
    color: #4e5968 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: normal;
    line-height: 1.5;
}

.docs-content article.prose.docs-article h4 {
    margin: 24px 0 8px !important;
    color: #4e5968 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: normal;
    line-height: 1.5;
}

.docs-content article.prose.docs-article p {
    margin: 12px 0 !important;
    color: #4e5968 !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}

article.prose.docs-article h2 + p,
article.prose.docs-article h3 + p,
article.prose.docs-article h4 + p {
    margin-top: 0 !important;
}

article.prose.docs-article aside p {
    margin: 0 !important;
}

/* One margin per relationship: paragraph margins cannot collapse or add up. */
.docs-content article.prose.docs-article > :not(section) {
    margin: 0 !important;
}

.docs-content article.prose.docs-article > * + :not(section) {
    margin-top: 20px !important;
}

.docs-content article.prose.docs-article > :not(section) + section {
    margin-top: 64px;
}

.docs-content article.prose.docs-article > section + section {
    margin-top: 64px;
}

.docs-content article.prose.docs-article > section > * {
    margin: 0 !important;
}

.docs-content article.prose.docs-article > section > * + * {
    margin-top: 20px !important;
}

.docs-content article.prose.docs-article > section > h3 {
    margin-top: 40px !important;
}

.docs-content article.prose.docs-article > section > h4 {
    margin-top: 28px !important;
}

.docs-content article.prose.docs-article > section > :is(h2, h3, h4) + * {
    margin-top: 12px !important;
}

.docs-content article.prose.docs-article > section > h2 + * {
    margin-top: 20px !important;
}

.docs-content article.prose.docs-article aside p {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.docs-content article.prose.docs-article .docs-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    border: 0;
    border-radius: 12px;
    background: #f2f4f6;
    color: #4e5968;
}

.docs-notice-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: #8b95a1;
}

.docs-notice-content {
    min-width: 0;
}

.docs-content article.prose.docs-article .docs-notice .docs-callout-title {
    margin: 0 0 8px !important;
    color: #333d4b !important;
    font-size: 15px !important;
    font-weight: 600;
}

@media (max-width: 639px) {
    .docs-content article.prose.docs-article .docs-notice {
        padding: 20px 16px;
    }
}

article.prose.docs-article :not(pre) > code {
    padding: 1px 4px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #e9eef5 !important;
    color: #1e293b !important;
    font-size: 0.95em !important;
    font-weight: 500 !important;
}

article.prose.docs-article .docs-notice :not(pre) > code {
    background: #ffffff !important;
    font-size: 1em !important;
    white-space: nowrap;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.docs-table-scroll {
    margin: 0;
    overflow-x: auto;
}

.docs-table-scroll:focus-visible {
    outline: 2px solid var(--docs-accent);
    outline-offset: 4px;
}

article.prose.docs-article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
    margin: 0;
    border: 0;
    border-top: 1px solid #d1d6db;
    border-radius: 0;
    box-shadow: none;
}

article.prose.docs-article table.docs-config-table {
    min-width: 640px;
}

article.prose.docs-article th,
article.prose.docs-article td {
    height: 49px;
    padding: 12px;
    border-bottom: 1px solid #d1d6db;
    color: #4e5968;
    background: #ffffff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    vertical-align: top;
}

article.prose.docs-article th {
    color: #333d4b;
    background: #f2f4f6;
    font-weight: 500;
}

article.prose.docs-article tr:last-child td {
    border-bottom: 1px solid #d1d6db;
}

article.prose.docs-article td:first-child {
    white-space: nowrap;
}

article.prose.docs-article tr:hover td {
    background: #ffffff;
}

/* Style 1: reference tables with a soft header and light row separators. */
article.prose.docs-article table:not(.docs-comparison-table) {
    border: 1px solid #e2e8ef;
    border-radius: 10px;
}

article.prose.docs-article table:not(.docs-comparison-table) :is(th, td) {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom-color: #d1d6db;
    line-height: 1.7;
}

article.prose.docs-article table:not(.docs-comparison-table) th {
    background: #f5f7fa;
    color: #334155;
    font-weight: 600;
}

article.prose.docs-article table:not(.docs-comparison-table) :is(th, td) + :is(th, td) {
    border-left: 1px solid #d1d6db;
}

article.prose.docs-article table:not(.docs-comparison-table) tbody tr:last-child td {
    border-bottom: 1px solid #d1d6db;
}

@media (hover: hover) {
    article.prose.docs-article table:not(.docs-comparison-table) tbody tr:hover td {
        background: #f8fafc;
    }
}

@media (max-width: 639px) {
    article.prose.docs-article table:not(.docs-comparison-table) :is(th, td) {
        padding: 12px;
    }
}

/* Style 2: API comparisons with wrapping code and stacked mobile rows. */
article.prose.docs-article table.docs-comparison-table {
    table-layout: fixed;
    border: 1px solid #d1d6db;
    border-radius: 12px;
}

article.prose.docs-article .docs-comparison-table :is(th, td) {
    width: 34%;
    height: auto;
    padding: 16px;
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

article.prose.docs-article .docs-comparison-table :is(th, td):last-child {
    width: 32%;
}

article.prose.docs-article .docs-comparison-table :is(th, td) + :is(th, td) {
    border-left: 1px solid #d1d6db;
}

article.prose.docs-article .docs-comparison-table:not(.docs-comparison-modern) th:nth-child(2),
article.prose.docs-article .docs-comparison-table:not(.docs-comparison-modern) td:nth-child(2),
article.prose.docs-article .docs-comparison-modern :is(th, td):last-child {
    background: #f8fafc;
    color: #4e5968;
}

article.prose.docs-article .docs-comparison-table td:last-child {
    font-size: 14px;
}

article.prose.docs-article .docs-comparison-table tr:last-child td {
    border-bottom: 0;
}

article.prose.docs-article .docs-comparison-table td code {
    padding: 0 !important;
    background: transparent !important;
    color: inherit;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    article.prose.docs-article .docs-comparison-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    article.prose.docs-article .docs-comparison-table :is(tbody, tr, td) {
        display: block;
        width: 100%;
    }

    article.prose.docs-article .docs-comparison-table tr + tr {
        border-top: 2px solid #d1d6db;
    }

    article.prose.docs-article .docs-comparison-table td,
    article.prose.docs-article .docs-comparison-table td:last-child {
        width: 100%;
        padding: 12px 16px;
        border: 0;
        box-sizing: border-box;
    }

    article.prose.docs-article .docs-comparison-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #6b7684;
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
    }
}

@media (min-width: 1280px) {
    .docs-content header.docs-article-header h1 {
        font-size: 36px;
    }
}

@media (min-width: 640px) {
    .docs-content article.prose.docs-article > :not(section) + section,
    .docs-content article.prose.docs-article > section + section {
        margin-top: 80px;
    }

    article.prose.docs-article h2 {
        font-size: 26px !important;
    }

    article.prose.docs-article h3 {
        font-size: 21px !important;
    }
}

/* Changelog: version timeline and related documentation. */
.docs-content article.prose.docs-changelog .docs-changelog-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
}

.docs-changelog-eyebrow {
    color: #6b7684;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.docs-content article.prose.docs-changelog .docs-changelog-guide p {
    margin: 8px 0 0 !important;
    font-weight: 600;
}

.docs-changelog-guide > a,
.docs-release-related a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.docs-content article.prose.docs-article.docs-changelog > .docs-release-entry {
    position: relative;
    padding: 0 0 0 28px;
    border-left: 2px solid #e5e7eb;
}

.docs-changelog .docs-release-entry::before {
    position: absolute;
    top: 8px;
    left: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    box-shadow: 0 0 0 5px #fff;
    content: '';
}

.docs-changelog .docs-release-entry.is-current::before {
    background: var(--docs-accent);
}

.docs-release-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.docs-release-version {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.docs-changelog .is-current .docs-release-version {
    background: #e8f1ff;
    color: #2563eb;
}

.docs-release-meta time {
    color: #6b7684;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.docs-content article.prose.docs-article.docs-changelog > section > h2 {
    margin-top: 16px !important;
}

.docs-release-related {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

@media (max-width: 639px) {
    .docs-content article.prose.docs-changelog .docs-changelog-guide {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .docs-content article.prose.docs-article.docs-changelog > .docs-release-entry {
        padding-left: 20px;
    }
}
