body {
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #20242b;
    font-family: "Inter", "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.admin-bar .csedh-main-wrap {
    padding-top: 56px;
}

.csedh-public {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: clip;
    min-height: 100vh;
    background: #f4f6f8;
}

.csedh-main-wrap {
    max-width: 1680px;
    margin: 0 auto;
    padding: 28px clamp(16px, 3.2vw, 56px) 56px;
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.csedh-left-nav {
    position: sticky;
    top: 22px;
    align-self: start;
    max-height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
    border: 1px solid #dfe5ee;
    border-radius: 20px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 24px 50px -34px rgba(15, 23, 42, 0.38);
    padding: 16px 14px 14px;
}

.csedh-left-nav-title {
    margin: 0 0 12px;
    color: #8590a1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 8px;
}

.csedh-left-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 4px 0 0;
}

.csedh-left-links::-webkit-scrollbar {
    width: 7px;
}

.csedh-left-links::-webkit-scrollbar-track {
    background: transparent;
}

.csedh-left-links::-webkit-scrollbar-thumb {
    background: #cfd8e6;
    border-radius: 999px;
}

.csedh-left-group {
    border: 1px solid #e6ebf3;
    border-radius: 14px;
    background: #fbfdff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.csedh-left-group.is-open,
.csedh-left-group[open],
.csedh-left-group.is-current {
    border-color: #d4ddee;
    background: #ffffff;
    box-shadow: 0 12px 24px -24px rgba(15, 23, 42, 0.6);
}

.csedh-public .csedh-left-group-toggle {
    all: unset;
    box-sizing: border-box;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font: inherit !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    min-height: 42px;
    padding: 8px 10px 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    color: #4b5a70;
    list-style: none;
}

.csedh-public .csedh-left-group-toggle::-webkit-details-marker,
.csedh-public .csedh-left-group-toggle::marker {
    display: none;
}

.csedh-public .csedh-left-group-toggle:hover {
    background: rgba(77, 100, 255, 0.05);
}

.csedh-public .csedh-left-group-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(66, 56, 202, 0.22);
}

.csedh-left-group-title {
    margin: 0;
    color: #4a576d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.25;
}

.csedh-left-group-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #edf2fb;
    color: #6a7690;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.csedh-left-group-icon.dashicons::before {
    font-size: 14px;
    line-height: 22px;
    width: 22px;
    height: 22px;
}

.csedh-left-group.is-open .csedh-left-group-icon,
.csedh-left-group[open] .csedh-left-group-icon {
    background: #e4ebff;
    color: #3f48b5;
}

.csedh-left-group:not(.is-open):not([open]) .csedh-left-group-icon {
    transform: rotate(-90deg);
}

.csedh-left-group-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 8px 10px;
}

.csedh-left-group:not(.is-open):not([open]) .csedh-left-group-links {
    display: none;
}

.csedh-left-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border-radius: 11px;
    border: 1px solid transparent;
    text-decoration: none;
    color: #3f4a5c;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    padding: 8px 12px;
    transition: all 0.18s ease;
}

.csedh-left-link:hover,
.csedh-left-link:focus {
    background: #f2f6ff;
    border-color: #e1e8f8;
    color: #26334b;
}

.csedh-left-link.is-active {
    background: linear-gradient(145deg, #eef2ff 0%, #f4f7ff 100%);
    border-color: #d9e0f5;
    color: #3f45af;
}

.csedh-left-link.is-scroll-active {
    background: linear-gradient(145deg, #edf2ff 0%, #f3f6ff 100%);
    border-color: #d3dcf8;
    color: #3c42ae;
    box-shadow: inset 2px 0 0 #4a4fd0, 0 8px 16px -14px rgba(61, 80, 205, 0.6);
}

.csedh-left-link .dashicons {
    font-size: 17px;
    width: 18px;
    height: 18px;
}

.csedh-left-help {
    margin-top: 14px;
    background: linear-gradient(140deg, #54595f 0%, #6a7078 46%, #c2a97a 100%);
    border-radius: 14px;
    color: #ffffff;
    padding: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 24px -18px rgba(33, 39, 53, 0.75);
}

.csedh-left-help h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

.csedh-left-help p {
    margin: 8px 0 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.58;
}

.csedh-left-help a {
    display: inline-flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
    background: #ffffff;
    color: #2f3642;
    font-size: 12px;
    font-weight: 700;
}

.csedh-left-help a:hover,
.csedh-left-help a:focus {
    background: #f8fafc;
}

.csedh-content {
    min-width: 0;
    width: 100%;
}

.csedh-hero {
    border: 1px solid #e5e9ef;
    border-radius: 18px;
    background: linear-gradient(150deg, #ffffff 0%, #fbfcfd 68%, #f6f8fa 100%);
    box-shadow: 0 20px 34px -28px rgba(24, 39, 75, 0.24);
    padding: clamp(16px, 2.1vw, 26px);
}

.csedh-hero h1 {
    margin: 0;
    font-size: clamp(32px, 3.8vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #111827;
}

.csedh-hero p {
    margin: 12px 0 0;
    color: #59657a;
    font-size: clamp(16px, 1.55vw, 24px);
    line-height: 1.55;
    max-width: 95ch;
}

.csedh-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.csedh-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #d3d9e4;
    border-radius: 999px;
    background: #ffffff;
    color: #425166;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    min-height: 34px;
    padding: 6px 13px;
    transition: all 0.18s ease;
}

.csedh-tag:hover,
.csedh-tag:focus {
    background: #f5f7fb;
    border-color: #bbc5d4;
}

.csedh-tag.is-active {
    background: #2f3640;
    border-color: #2f3640;
    color: #ffffff;
}

.csedh-divider {
    border: 0;
    border-top: 1px solid #dde3ec;
    margin: 24px 0;
}

.csedh-doc-sections {
    margin: 0;
}

.csedh-doc-group {
    margin-bottom: 22px;
}

.csedh-doc-group:last-child {
    margin-bottom: 0;
}

.csedh-doc-group-title {
    margin: 0 0 14px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.csedh-doc-section {
    scroll-margin-top: 24px;
    margin-bottom: 24px;
}

.csedh-doc-section:last-child {
    margin-bottom: 0;
}

.csedh-doc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.csedh-doc-head-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eceff4;
    color: #444f62;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.csedh-doc-head-icon.dashicons::before {
    margin-top: 10px;
    font-size: 22px;
}

.csedh-doc-head h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.csedh-doc-card {
    border: 1px solid #e5e9ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 34px -28px rgba(24, 39, 75, 0.22);
    padding: clamp(16px, 2vw, 28px);
}

.csedh-doc-card .csedh-card {
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.csedh-doc-content {
    color: #303b4e;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.csedh-doc-content > *:first-child {
    margin-top: 0;
}

.csedh-doc-content > *:last-child {
    margin-bottom: 0;
}

.csedh-doc-content h1,
.csedh-doc-content h2,
.csedh-doc-content h3,
.csedh-doc-content h4 {
    color: #111827;
    margin-top: 1.5em;
    margin-bottom: 0.55em;
    line-height: 1.28;
}

.csedh-doc-content h1 {
    font-size: clamp(28px, 2.8vw, 40px);
}

.csedh-doc-content h2 {
    font-size: clamp(23px, 2.2vw, 32px);
}

.csedh-doc-content h3 {
    font-size: clamp(19px, 1.8vw, 26px);
}

.csedh-doc-content p,
.csedh-doc-content li {
    color: #3e495e;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.82;
}

.csedh-doc-content ul,
.csedh-doc-content ol {
    margin: 0.6em 0 1.2em;
    padding-left: 1.45em;
}

.csedh-doc-content a {
    color: #3245b5;
    text-underline-offset: 2px;
}

.csedh-doc-content hr {
    border: 0;
    border-top: 1px solid #e3e8f0;
    margin: 24px 0;
}

.csedh-doc-content code {
    background: #eff3f8;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.9em;
}

.csedh-doc-content pre.csedh-code {
    background: #111827;
    color: #e6ecf5;
    border-radius: 12px;
    padding: 14px;
    overflow: auto;
}

.csedh-doc-content pre.csedh-code code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.csedh-doc-content blockquote {
    margin: 0;
    padding: 8px 14px;
    border-left: 4px solid #c2a97a;
    border-radius: 0 10px 10px 0;
    background: #f9f7f2;
}

.csedh-value-list {
    margin-top: 0;
}

.csedh-table-wrap {
    overflow-x: auto;
}

.csedh-public-table {
    width: 100%;
    border-collapse: collapse;
}

.csedh-public-table th,
.csedh-public-table td {
    border: 1px solid #e3e8f0;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.csedh-public-table th {
    background: #f8fafc;
    color: #374151;
}

.csedh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

.csedh-badge-on {
    background: #16a34a;
    color: #ffffff;
}

.csedh-badge-off {
    background: #e2e8f0;
    color: #4b5563;
}

.csedh-doc-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.csedh-doc-pagination-item {
    flex: 1 1 0;
}

.csedh-doc-pagination-item.is-right {
    text-align: right;
}

.csedh-doc-page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid #d8dee8;
    background: #ffffff;
    text-decoration: none;
    color: #374151;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.csedh-doc-page-link:hover,
.csedh-doc-page-link:focus {
    border-color: #bfc9d7;
    background: #f8fafc;
}

@media (max-width: 1080px) {
    .csedh-main-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .csedh-left-nav {
        position: static;
        max-height: none;
    }

    .csedh-left-links {
        overflow: visible;
        padding-right: 0;
    }

    .csedh-left-group-title {
        width: auto;
    }

    .csedh-left-link {
        width: 100%;
        border: 1px solid #e4e9f0;
        background: #ffffff;
    }
}

@media (max-width: 760px) {
    .csedh-main-wrap {
        padding: 16px 12px 34px;
    }

    .csedh-doc-head h2 {
        font-size: 26px;
    }

    .csedh-doc-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .csedh-doc-pagination-item,
    .csedh-doc-pagination-item.is-right {
        text-align: left;
    }
}
