:root {
    --md-primary-fg-color: #111111;
    --md-primary-fg-color--dark: #000000;
    --md-accent-fg-color: #8b5f11;
    --ccs-orange: #f2b14f;
    --ccs-orange-ink: #7a510d;
    --ccs-ink: #111111;
    --ccs-muted: rgba(17, 17, 17, 0.72);
    --ccs-line: rgba(17, 17, 17, 0.12);
    --ccs-soft: #f5f5f7;
}

.md-main {
    background: #ffffff;
}

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

.md-tabs {
    display: none;
}

.cc-guide-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 4vw, 48px);
    min-height: 0;
    padding: 10px clamp(16px, 4vw, 44px);
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(18px);
}

.cc-guide-brand-strip {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: clamp(10px, 3vw, 28px);
}

.cc-guide-brand-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    gap: 10px;
    color: rgba(17, 17, 17, 0.72);
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.cc-guide-brand-link:hover {
    color: #111111;
    text-decoration: none;
}

.cc-guide-brand-link img {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.cc-guide-brand-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-guide-brand-dloper {
    color: rgba(17, 17, 17, 0.58);
}

.cc-guide-brand-link.is-active {
    color: #111111;
    font-size: 17.6px;
    font-weight: 850;
}

.cc-guide-nav {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: clamp(16px, 3vw, 28px);
}

.cc-guide-nav a,
.cc-guide-search,
.cc-guide-menu {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    color: rgba(17, 17, 17, 0.62);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.cc-guide-nav a:hover,
.cc-guide-search:hover,
.cc-guide-menu:hover {
    color: #111111;
    text-decoration: none;
}

.cc-guide-nav .is-active {
    border-bottom-color: var(--ccs-orange);
    color: #111111;
}

.md-header__topic + .md-header__topic {
    display: none;
}

.md-content {
    font-size: 1rem;
}

.md-content__inner {
    margin-bottom: 4rem;
}

.md-typeset {
    color: var(--ccs-ink);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
    color: var(--ccs-ink);
    letter-spacing: -0.03em;
    text-wrap: balance;
    font-weight: 800;
}

.md-typeset h1 {
    max-width: 12ch;
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    line-height: 1.02;
}

.md-typeset h2 {
    margin-top: 2.7rem;
}

.md-typeset p,
.md-typeset li,
.md-typeset td {
    color: var(--ccs-muted);
}

.md-typeset p {
    text-wrap: pretty;
}

.md-typeset a {
    color: #8b5f11;
    text-underline-offset: 0.16em;
}

.md-typeset strong {
    color: var(--ccs-ink);
}

.md-typeset table:not([class]) {
    border: 1px solid var(--ccs-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.md-typeset table:not([class]) th {
    background: #111111;
    color: #ffffff;
}

.md-typeset table:not([class]) tr:nth-child(even) {
    background: #fafafa;
}

.md-typeset .admonition {
    border-color: rgba(242, 177, 79, 0.36);
    border-radius: 14px;
    box-shadow: none;
}

.md-typeset .admonition-title {
    background: rgba(242, 177, 79, 0.17);
    color: #5c3c0a;
}

.md-content .mermaid {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid var(--ccs-line);
    border-radius: 14px;
    background: var(--ccs-soft);
    overflow-x: auto;
}

.md-footer {
    border-top: 1px solid var(--ccs-line);
    background: #ffffff;
    background-color: #ffffff;
    color: rgba(17, 17, 17, 0.72);
}

.md-footer__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 6rem;
    padding: 1.25rem 1.5rem;
}

.md-footer__link {
    width: min(100%, 22rem);
    margin: 0;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 12px;
    background: #ffffff;
    background-color: #ffffff;
    color: var(--ccs-ink);
    padding: 0.95rem 1rem;
    text-decoration: none;
    transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.md-footer__link:hover {
    border-color: rgba(17, 17, 17, 0.2);
    background: #fbfbfc;
    background-color: #fbfbfc;
    color: var(--ccs-ink);
    transform: translateY(-2px);
}

.md-footer__title {
    color: var(--ccs-ink);
    font-size: 1rem;
}

.md-footer__direction {
    color: rgba(17, 17, 17, 0.58);
    font-size: 0.78rem;
}

.md-footer__button {
    color: var(--ccs-ink);
}

.md-footer-meta {
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    background: #ffffff;
    background-color: #ffffff;
}

.md-footer-meta__inner {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(0, auto) minmax(120px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 34px 18px;
}

.md-copyright,
.md-copyright p {
    grid-column: 2;
    width: 100%;
    margin: 0;
    color: rgba(17, 17, 17, 0.62);
    font-size: 0.92rem;
    text-align: center;
}

.md-footer-meta .md-copyright a,
.md-footer-meta.md-typeset .md-copyright a {
    color: var(--ccs-ink);
    text-underline-offset: 0.16em;
}

.md-footer-meta .md-copyright a:hover,
.md-footer-meta .md-copyright a:focus-visible,
.md-footer-meta.md-typeset .md-copyright a:hover,
.md-footer-meta.md-typeset .md-copyright a:focus-visible {
    color: var(--ccs-ink);
    text-decoration-color: rgba(17, 17, 17, 0.55);
}

.guide-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    margin: 2rem 0 2.4rem;
}

.guide-hero-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--ccs-line);
    border-radius: 18px;
    background: #ffffff;
    padding: clamp(1.15rem, 3vw, 1.8rem);
}

.guide-hero-card-primary {
    background: var(--ccs-orange);
    border-color: rgba(17, 17, 17, 0.16);
}

.guide-kicker,
.docs-card span,
.role-grid span {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: rgba(242, 177, 79, 0.2);
    color: var(--ccs-orange-ink);
    padding: 0.28rem 0.58rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.guide-hero-card-primary .guide-kicker {
    background: rgba(255, 255, 255, 0.54);
    color: #4d3307;
}

.guide-hero-card h2 {
    max-width: 12ch;
    margin: 1rem 0 0;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.02;
    font-weight: 800;
}

.guide-hero-card p {
    max-width: 54ch;
    margin: 1rem 0;
}

.guide-hero-card a {
    width: fit-content;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    padding: 0.62rem 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.docs-card-grid,
.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 1.25rem 0 2rem;
    border: 1px solid var(--ccs-line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--ccs-line);
}

.docs-card,
.role-grid section {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    gap: 0.85rem;
    background: #ffffff;
    color: var(--ccs-ink);
    padding: 1.25rem;
    text-decoration: none;
}

.docs-card:hover {
    background: #fafafa;
    text-decoration: none;
}

.docs-card strong,
.role-grid h3 {
    color: var(--ccs-ink);
    font-size: 1.25rem;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.docs-card p,
.role-grid p {
    margin: 0;
    color: var(--ccs-muted);
}

.step-list {
    display: grid;
    gap: 0;
    margin: 1.5rem 0;
    padding: 0;
    counter-reset: step;
    list-style: none;
    border: 1px solid var(--ccs-line);
    border-radius: 14px;
    overflow: hidden;
}

.step-list li {
    display: grid;
    grid-template-columns: 3.3rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin: 0;
    padding: 1rem 1.1rem;
    border-top: 1px solid var(--ccs-line);
    counter-increment: step;
}

.step-list li:first-child {
    border-top: 0;
}

.step-list li::before {
    content: counter(step);
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: 999px;
    background: var(--ccs-orange);
    color: #111111;
    font-weight: 900;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.step-list strong,
.step-list span {
    display: block;
    grid-column: 2;
}

.step-list span {
    margin-top: 0.22rem;
    color: var(--ccs-muted);
}

.guide-figure {
    margin: 1.5rem 0;
    border: 1px solid var(--ccs-line);
    border-radius: 18px;
    background: var(--ccs-soft);
    padding: clamp(0.9rem, 3vw, 1.4rem);
}

.guide-figure img {
    display: block;
    max-width: 100%;
    max-height: 620px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
}

.guide-figure figcaption {
    margin-top: 0.9rem;
    color: var(--ccs-muted);
    font-size: 0.92rem;
    text-align: center;
}

.guide-figure-split img {
    max-height: 520px;
}

/* Support center spacing and interaction polish */
.md-content__inner {
    padding-top: clamp(1rem, 3vw, 2rem);
}

.md-typeset h2 {
    margin-top: clamp(3.4rem, 7vw, 5.2rem);
    margin-bottom: 1rem;
}

.md-typeset h3 {
    margin-top: 2.2rem;
}

.md-typeset p,
.md-typeset ul,
.md-typeset ol {
    max-width: 72ch;
}

.guide-hero-grid {
    gap: clamp(1rem, 3vw, 1.6rem);
    margin: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(3rem, 6vw, 4.6rem);
}

.docs-card-grid,
.role-grid {
    margin: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(3rem, 6vw, 4.6rem);
}

.step-list,
.guide-figure,
.md-content .mermaid {
    margin-top: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.guide-hero-card,
.docs-card,
.role-grid section,
.step-list li,
.guide-figure,
.md-typeset .admonition {
    transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.docs-card:focus-visible,
.guide-hero-card a:focus-visible,
.md-typeset a:focus-visible {
    outline: 3px solid rgba(242, 177, 79, 0.72);
    outline-offset: 3px;
    border-radius: 8px;
}

@media (hover: hover) {
    .docs-card:hover,
    .guide-hero-card:hover {
        position: relative;
        z-index: 1;
        transform: translateY(-3px);
        background: #fbfbfc;
        box-shadow: 0 6px 8px rgba(17, 17, 17, 0.07);
    }

    .role-grid section:hover,
    .step-list li:hover {
        background: #fbfbfc;
    }

    .guide-hero-card-primary:hover {
        background: #f2b14f;
    }

    .guide-figure:hover img {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    .guide-figure img {
        transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@media (max-width: 900px) {
    .cc-guide-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 8px 16px 9px;
    }

    .cc-guide-brand-strip {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cc-guide-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .cc-guide-brand-strip {
        gap: 8px;
    }

    .cc-guide-brand-link {
        gap: 7px;
        font-size: 14.08px;
        letter-spacing: -0.02em;
    }

    .cc-guide-brand-link.is-active {
        font-size: 15.36px;
    }

    .cc-guide-brand-link img {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .cc-guide-brand-dloper span {
        display: none;
    }

    .cc-guide-nav {
        gap: 7px 18px;
    }

    .guide-hero-grid,
    .docs-card-grid,
    .role-grid {
        grid-template-columns: 1fr;
    }

    .docs-card,
    .role-grid section {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .cc-guide-brand-link {
        gap: 6px;
        font-size: 13.12px;
    }

    .cc-guide-brand-link.is-active {
        font-size: 14.4px;
    }

    .cc-guide-brand-link img {
        width: 28px;
        height: 28px;
    }

    .md-typeset h1 {
        max-width: 13ch;
    }

    .step-list li {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .guide-hero-card,
    .docs-card,
    .role-grid section,
    .step-list li,
    .guide-figure,
    .guide-figure img,
    .md-typeset .admonition {
        transition-duration: 0.01ms !important;
    }
}
