:root {
    --accent: #ff6b35;
    --accent-dark: #e54b1b;
    --accent-soft: #fff2ec;
    --gradient: linear-gradient(135deg, #ff6b35 0%, #ff8f3c 100%);
    --text: #111827;
    --body: #374151;
    --muted: #6b7280;
    --border: #e8eaef;
    --soft: #f8f9fb;
    --top-h: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 18px); }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--body);
    background: #fff;
    line-height: 1.7;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
    font-family: Consolas, 'SF Mono', Menlo, monospace;
    font-size: .86em;
    background: #f3f4f6;
    border: 1px solid #eceef2;
    border-radius: 6px;
    padding: 1px 6px;
    color: #be3c12;
}

/* ---------- top bar ---------- */
.dc-top {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--top-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    z-index: 50;
}
.dc-burger { display: none; background: none; border: 0; font-size: 18px; color: var(--text); cursor: pointer; }
.dc-brand { display: flex; align-items: center; gap: 10px; }
.dc-brand img { height: 30px; }
.dc-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border: 1px solid #ffd9c7;
    border-radius: 999px;
    padding: 3px 10px;
}
.dc-search {
    flex: 1;
    max-width: 420px;
    margin-left: 26px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    height: 38px;
    color: var(--muted);
}
.dc-search input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: var(--text); }
.dc-search kbd {
    font-family: inherit;
    font-size: 11px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0 6px;
    background: #fff;
}
.dc-top-links { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.dc-top-links a { color: var(--body); }
.dc-btn {
    color: #fff !important;
    background: var(--gradient);
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(255, 107, 53, .3);
    text-decoration: none !important;
}

/* ---------- layout ---------- */
.dc-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    max-width: 1280px;
    margin: 0 auto;
    padding-top: var(--top-h);
}
.dc-side {
    position: sticky;
    top: var(--top-h);
    height: calc(100vh - var(--top-h));
    overflow-y: auto;
    padding: 26px 18px 40px 24px;
    border-right: 1px solid var(--border);
}
.dc-group { margin-bottom: 22px; }
.dc-group p {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 6px;
}
.dc-group a {
    display: block;
    font-size: 14px;
    color: var(--muted);
    padding: 6px 12px;
    border-left: 2px solid var(--border);
    transition: color .15s, border-color .15s, background .15s;
}
.dc-group a:hover { color: var(--text); text-decoration: none; background: var(--soft); }
.dc-group a.active {
    color: var(--accent-dark);
    font-weight: 700;
    border-left-color: var(--accent);
    background: var(--accent-soft);
}
.dc-noresult { display: none; font-size: 13px; color: var(--muted); }
.dc-overlay { display: none; }

.dc-main { padding: 40px 56px 60px; max-width: 900px; }
.dc-sec { padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--border); }
.dc-crumb {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-dark);
    letter-spacing: .4px;
    margin-bottom: 6px;
}
h1 { font-size: 38px; line-height: 1.2; color: var(--text); letter-spacing: -0.8px; margin-bottom: 14px; }
h2 { font-size: 27px; line-height: 1.3; color: var(--text); letter-spacing: -0.4px; margin-bottom: 12px; }
h3 { font-size: 18px; color: var(--text); margin: 28px 0 10px; }
.dc-main p { margin-bottom: 14px; }
.dc-lead { font-size: 18px; color: var(--muted); }

/* ---------- content components ---------- */
.dc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin: 22px 0 8px; }
.dc-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    color: var(--body);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.dc-card:hover { text-decoration: none; border-color: #ffc7ab; box-shadow: 0 10px 24px rgba(255, 107, 53, .12); transform: translateY(-2px); }
.dc-card i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 8px;
}
.dc-card strong { color: var(--text); font-size: 15px; }
.dc-card span { font-size: 13px; color: var(--muted); }

.dc-steps { counter-reset: step; list-style: none; margin: 10px 0 18px; }
.dc-steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 16px 46px;
}
.dc-steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 13px;
    display: grid;
    place-items: center;
}
.dc-steps > li::after {
    content: "";
    position: absolute;
    left: 13.5px;
    top: 32px;
    bottom: 4px;
    width: 1px;
    background: #f1dfd5;
}
.dc-steps > li:last-child::after { display: none; }

.dc-list { margin: 8px 0 16px 20px; }
.dc-list li { margin-bottom: 6px; }
.dc-list li::marker { color: var(--accent); }

.dc-path {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 1px 8px;
    white-space: nowrap;
}
.dc-badge { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 1px 9px; }
.dc-badge.green { background: #dcfce7; color: #15803d; }
.dc-badge.orange { background: var(--accent-soft); color: var(--accent-dark); }
.dc-badge.blue { background: #e0f2fe; color: #0369a1; }
.dc-badge.purple { background: #f3e8ff; color: #7e22ce; }

.dc-callout {
    display: flex;
    gap: 12px;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 18px 0;
    font-size: 14.5px;
    border: 1px solid;
}
.dc-callout > i { margin-top: 4px; }
.dc-callout strong { display: block; color: var(--text); margin-bottom: 2px; }
.dc-callout.tip { background: #f0fdf4; border-color: #bbf7d0; }
.dc-callout.tip > i { color: #16a34a; }
.dc-callout.warn { background: #fffbeb; border-color: #fde68a; }
.dc-callout.warn > i { color: #d97706; }
.dc-callout.info { background: #eff6ff; border-color: #bfdbfe; }
.dc-callout.info > i { color: #2563eb; }

.dc-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.dc-table th {
    text-align: left;
    background: var(--soft);
    color: var(--text);
    font-weight: 700;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.dc-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.dc-table tr:hover td { background: #fffaf7; }

.dc-code {
    position: relative;
    background: #0f172a;
    border-radius: 12px;
    margin: 10px 0 16px;
    overflow: hidden;
}
.dc-code pre { overflow-x: auto; padding: 16px 18px; }
.dc-code code {
    background: none;
    border: 0;
    padding: 0;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre;
}
.dc-copy {
    position: absolute;
    top: 9px;
    right: 9px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #e2e8f0;
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 7px;
    padding: 3px 10px;
    cursor: pointer;
}
.dc-copy:hover { background: rgba(255, 255, 255, .2); }

.dc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.dc-box { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.dc-box strong { color: var(--text); display: flex; gap: 8px; align-items: center; }
.dc-box strong i { color: #8b5cf6; }
.dc-box p { margin: 4px 0 0 !important; font-size: 14px; color: var(--muted); }

.dc-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 6px; }
.dc-timeline div {
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 12px 13px;
}
.dc-timeline span { font-size: 12px; font-weight: 800; color: var(--accent-dark); }
.dc-timeline p { font-size: 13.5px; margin: 4px 0 0 !important; }

.dc-checks { list-style: none; margin: 10px 0; }
.dc-checks li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px dashed var(--border); }
.dc-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
}

.dc-faq { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.dc-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    padding: 13px 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
}
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary::after { content: "+"; color: var(--accent); font-size: 18px; line-height: 1; }
.dc-faq[open] summary::after { content: "\2212"; }
.dc-faq[open] summary { background: var(--soft); }
.dc-faq p { padding: 12px 16px 2px; }

.dc-foot { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .dc-top-links a:not(.dc-btn) { display: none; }
    .dc-main { padding: 34px 32px 50px; }
}
@media (max-width: 860px) {
    .dc-burger { display: block; }
    .dc-shell { grid-template-columns: minmax(0, 1fr); }
    .dc-side {
        position: fixed;
        top: var(--top-h);
        left: 0;
        width: 280px;
        background: #fff;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 12px 0 30px rgba(0, 0, 0, .08);
    }
    .dc-side.open { transform: none; }
    .dc-overlay.show { display: block; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(15, 23, 42, .3); z-index: 30; }
    .dc-search { margin-left: 0; }
    .dc-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .dc-top { gap: 10px; padding: 0 14px; }
    .dc-brand img { height: 24px; }
    .dc-tag { display: none; }
    .dc-btn { display: none; }
    .dc-main { padding: 26px 16px 40px; }
    h1 { font-size: 29px; }
    h2 { font-size: 23px; }
    .dc-grid2, .dc-timeline { grid-template-columns: 1fr; }
    .dc-table { display: block; overflow-x: auto; white-space: nowrap; }
}

.dc-main { min-width: 0; }
@media (max-width: 860px) { .dc-search { min-width: 0; } }

/* ---------- copy-topic button ---------- */
.dc-sec { position: relative; }
.dc-copy-sec {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--body);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 6px 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: border-color .2s, color .2s, background .2s;
}
.dc-copy-sec:hover { border-color: #ffc7ab; color: var(--accent-dark); }
.dc-copy-sec i { font-size: 12px; color: var(--accent); }
.dc-copy-sec.done { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.dc-copy-sec.done i { color: #16a34a; }
@media (max-width: 560px) {
    .dc-copy-sec { padding: 5px 9px; font-size: 11.5px; }
    .dc-copy-sec span { display: none; }
}
