:root {
    --manual-brand: #5e6ad2;
    --manual-brand-hover: #4f5bc4;
    --manual-brand-subtle: #f4f5fb;
    --manual-page: #ffffff;
    --manual-subtle: #fafbfc;
    --manual-card: #ffffff;
    --manual-text: #0e0e10;
    --manual-secondary: #3c3e44;
    --manual-tertiary: #6b6f76;
    --manual-border: #ebeef2;
    --manual-border-strong: #d8dbe0;
    --manual-footer: #101114;
    --manual-width: 1200px;
    --manual-header-height: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ktheme-manual-site {
    margin: 0;
    overflow-x: hidden;
    background: var(--manual-page);
    color: var(--manual-text);
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-feature-settings: "ss01", "ss02", "cv01", "cv03";
    -webkit-font-smoothing: antialiased;
}

body.ktheme-manual-site a {
    color: inherit;
    text-decoration: none;
}

.manual-home {
    width: min(100% - 48px, var(--manual-width));
    margin: 0 auto;
    padding: 88px 0 104px;
}

.manual-home__intro {
    max-width: 720px;
    margin-bottom: 52px;
}

.manual-home__eyebrow {
    margin: 0 0 14px;
    color: var(--manual-brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.manual-home__intro h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.manual-home__intro > p:last-child {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--manual-tertiary);
    font-size: 17px;
    line-height: 1.75;
}

.manual-home__documents .eazydocs_shortcode {
    margin: 0;
}

.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 120;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--manual-text);
    color: #fff;
}

.manual-header {
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: var(--manual-header-height);
    border-bottom: 1px solid var(--manual-border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.admin-bar .manual-header {
    top: 32px;
}

.manual-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: min(100% - 48px, var(--manual-width));
    min-height: var(--manual-header-height);
    margin: 0 auto;
    gap: 28px;
}

.manual-brand,
.manual-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.manual-brand .custom-logo {
    width: auto;
    max-width: 172px;
    max-height: 36px;
}

.manual-brand__text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.manual-brand__text span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 7px;
    background: var(--manual-brand);
    color: #fff;
    font-weight: 700;
}

.manual-header__navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto auto;
    align-items: center;
    gap: 12px;
}

.manual-primary-nav__list {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.manual-primary-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--manual-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.16s ease;
}

.manual-primary-nav__list a:hover,
.manual-primary-nav__list .current-menu-item > a,
.manual-primary-nav__list .current-menu-ancestor > a {
    color: var(--manual-brand);
}

.manual-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: 36px;
    overflow: hidden;
    border: 1px solid var(--manual-border);
    border-radius: 7px;
    background: var(--manual-subtle);
}

.manual-search input[type="search"] {
    min-width: 0;
    padding: 0 11px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--manual-text);
    font: inherit;
    font-size: 13px;
}

.manual-search button {
    padding: 0 12px;
    border: 0;
    border-left: 1px solid var(--manual-border);
    background: transparent;
    color: var(--manual-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.manual-search:focus-within {
    border-color: var(--manual-brand);
    box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.12);
}

.manual-utility {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.manual-utility__link {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 6px;
    color: var(--manual-tertiary);
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.manual-utility__link:hover {
    background: var(--manual-subtle);
    color: var(--manual-text);
}

.manual-utility__link:active {
    transform: translateY(1px);
}

.manual-utility__icon {
    width: 18px;
    height: 18px;
}

.manual-utility__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.manual-market-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--manual-border);
    border-radius: 6px;
    color: var(--manual-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.manual-market-link:hover {
    border-color: var(--manual-border-strong);
    background: var(--manual-subtle);
    color: var(--manual-text);
}

.manual-nav-toggle {
    display: none;
}

.manual-content {
    min-height: calc(100dvh - var(--manual-header-height) - 220px);
}

/* EazyDocs document search and reading layout. */
.ezd_search_banner {
    padding: 54px 24px !important;
    background: var(--manual-brand-subtle) !important;
    background-image: none !important;
}

.ezd_search_form {
    max-width: 680px !important;
    margin-inline: auto !important;
}

.ezd_search_form input,
#ezd_searchInput {
    min-height: 52px !important;
    border: 1px solid var(--manual-border-strong) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--manual-text) !important;
    box-shadow: 0 8px 24px rgba(36, 41, 64, 0.06) !important;
}

.page_breadcrumb.ezd-breadcrumb {
    border-color: var(--manual-border) !important;
    background: var(--manual-subtle) !important;
}

.doc_documentation_area {
    background: var(--manual-page) !important;
}

.doc_documentation_area > .ezd-container,
.doc_documentation_area .ezd-custom-container {
    width: min(100% - 48px, var(--manual-width)) !important;
    max-width: var(--manual-width) !important;
}

.doc_left_sidebarlist {
    border-right: 1px solid var(--manual-border) !important;
    background: var(--manual-subtle) !important;
}

.doc_left_sidebarlist .nav-sidebar a {
    border-radius: 6px !important;
    color: var(--manual-secondary) !important;
    transition: background 0.16s ease, color 0.16s ease !important;
}

.doc_left_sidebarlist .nav-sidebar a:hover,
.doc_left_sidebarlist .nav-sidebar .active > a {
    background: var(--manual-brand-subtle) !important;
    color: var(--manual-brand) !important;
}

.doc-middle-content {
    padding-inline: clamp(28px, 4vw, 64px) !important;
}

.doc-middle-content .doc-post-content,
.doc-middle-content .editor-content {
    max-width: 68ch;
    color: var(--manual-secondary);
    font-size: 16px;
    line-height: 1.75;
}

.doc-middle-content h1,
.doc-middle-content h2,
.doc-middle-content h3,
.doc-middle-content h4 {
    color: var(--manual-text);
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.doc-middle-content h1 {
    font-size: clamp(32px, 4vw, 44px) !important;
    line-height: 1.15 !important;
}

.doc-middle-content h2 {
    margin-top: 2.5em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--manual-border);
}

.doc-middle-content img {
    height: auto;
    border: 1px solid var(--manual-border);
    border-radius: 8px;
}

.doc_rightsidebar {
    border-left: 1px solid var(--manual-border) !important;
}

.doc_rightsidebar .toc-heading,
.doc_rightsidebar a {
    color: var(--manual-secondary) !important;
}

.doc_rightsidebar a:hover,
.doc_rightsidebar a.active {
    color: var(--manual-brand) !important;
}

.doc_documentation_area a:focus-visible,
.manual-header a:focus-visible,
.manual-header button:focus-visible,
.manual-footer a:focus-visible {
    outline: 2px solid var(--manual-brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.manual-footer {
    border-top: 1px solid #25272c;
    background: var(--manual-footer);
    color: #f7f8f8;
}

.manual-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100% - 48px, var(--manual-width));
    margin: 0 auto;
    padding: 42px 0 28px;
    gap: 24px;
}

.manual-footer__brand strong {
    font-size: 15px;
    letter-spacing: 0.04em;
}

.manual-footer__brand p,
.manual-footer__copyright {
    margin: 8px 0 0;
    color: #a8abb2;
    font-size: 13px;
    line-height: 1.6;
}

.manual-footer__nav {
    display: flex;
    align-items: start;
    gap: 18px;
    color: #c7c9ce;
    font-size: 13px;
}

.manual-footer__nav a:hover {
    color: #fff;
}

.manual-footer__copyright {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid #25272c;
}

@media (max-width: 1023px) {
    .manual-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        width: min(100% - 32px, var(--manual-width));
    }

    .manual-nav-toggle {
        display: inline-grid;
        width: 40px;
        height: 40px;
        padding: 9px;
        place-content: center;
        gap: 5px;
        border: 1px solid var(--manual-border);
        border-radius: 6px;
        background: #fff;
        cursor: pointer;
    }

    .manual-nav-toggle span:not(.screen-reader-text) {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: var(--manual-text);
    }

    .manual-header__navigation {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        max-height: calc(100dvh - var(--manual-header-height));
        padding: 18px 16px 24px;
        overflow-y: auto;
        border-bottom: 1px solid var(--manual-border);
        background: #fff;
        box-shadow: 0 12px 30px rgba(36, 41, 64, 0.08);
    }

    .manual-nav-open .manual-header__navigation {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .manual-primary-nav__list {
        display: grid;
        gap: 2px;
    }

    .manual-primary-nav__list a {
        width: 100%;
        min-height: 42px;
        padding: 0 8px;
        border-bottom: 1px solid var(--manual-border);
    }

    .manual-utility {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .manual-utility__link {
        display: inline-flex;
        width: 100%;
        min-height: 42px;
        padding: 0 10px;
        justify-content: flex-start;
        gap: 9px;
        border: 1px solid var(--manual-border);
    }

    .manual-utility__label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        color: var(--manual-secondary);
        font-size: 13px;
        font-weight: 500;
        white-space: normal;
    }

    .manual-market-link {
        width: 100%;
    }

    .doc_documentation_area > .ezd-container,
    .doc_documentation_area .ezd-custom-container {
        width: min(100% - 32px, var(--manual-width)) !important;
    }

    .doc-middle-content {
        padding-inline: 28px !important;
    }
}

@media (max-width: 767px) {
    :root {
        --manual-header-height: 56px;
    }

    .admin-bar .manual-header {
        top: 46px;
    }

    .manual-header__inner,
    .manual-footer__inner {
        width: calc(100% - 32px);
    }

    .manual-home {
        width: calc(100% - 32px);
        padding: 56px 0 72px;
    }

    .manual-home__intro {
        margin-bottom: 36px;
    }

    .manual-home__intro h1 {
        font-size: 36px;
    }

    .manual-brand .custom-logo {
        max-width: 142px;
        max-height: 30px;
    }

    .ezd_search_banner {
        padding: 36px 16px !important;
    }

    .doc_documentation_area > .ezd-container,
    .doc_documentation_area .ezd-custom-container {
        width: 100% !important;
    }

    .doc-middle-content {
        padding: 28px 18px 44px !important;
    }

    .doc-middle-content .doc-post-content,
    .doc-middle-content .editor-content {
        font-size: 15px;
        line-height: 1.72;
    }

    .manual-footer__inner {
        grid-template-columns: 1fr;
        padding: 34px 0 24px;
    }

    .manual-footer__nav {
        display: grid;
        gap: 10px;
    }

    .manual-footer__copyright {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
