.md-article {
    color: #2f2413;
}

.md-article__hero {
    isolation: isolate;
}

.md-article__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(8, 6, 2, 0.18), rgba(8, 6, 2, 0.84)),
        linear-gradient(90deg, rgba(8, 6, 2, 0.82), rgba(8, 6, 2, 0.18));
}

.md-article__hero .md-shell {
    z-index: 1;
}

.md-article__hero .md-kicker,
.md-article__hero h1,
.md-article__hero p {
    color: #fff8df;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52);
}

.md-article__hero h1 {
    max-width: 880px;
}

.md-article__hero p {
    max-width: 720px;
    color: rgba(255, 248, 223, 0.86);
}

.md-article__content.gh-content {
    width: min(860px, calc(100% - 2rem));
    margin: 3rem auto 4rem;
    padding: clamp(1.35rem, 4vw, 3rem);
    color: #2f2413;
    background:
        linear-gradient(180deg, rgba(255, 252, 240, 0.98), rgba(255, 246, 219, 0.96));
    border: 1px solid rgba(127, 90, 40, 0.22);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(23, 16, 3, 0.28);
    font-size: 1.075rem;
    line-height: 1.78;
}

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

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

.gh-content p,
.gh-content ul,
.gh-content ol,
.gh-content blockquote,
.gh-content pre,
.gh-content table,
.gh-content figure,
.gh-content .kg-card {
    margin: 0 0 1.45rem;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
    margin: 2.2rem 0 0.85rem;
    color: #2b1b00;
    font-family: Sora, Outfit, system-ui, sans-serif;
    font-weight: 800;
    line-height: 1.16;
}

.gh-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.gh-content h2 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.gh-content h3 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.gh-content h4,
.gh-content h5,
.gh-content h6 {
    font-size: 1.1rem;
}

.gh-content p,
.gh-content li {
    color: rgba(47, 36, 19, 0.86);
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.45rem;
}

.gh-content li + li {
    margin-top: 0.45rem;
}

.gh-content a {
    color: #8a5a00;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(255, 184, 0, 0.55);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.16em;
}

.gh-content a:hover,
.gh-content a:focus-visible {
    color: #5c3b00;
}

.gh-content strong {
    color: #201604;
    font-weight: 900;
}

.gh-content blockquote {
    padding: 1rem 1.25rem;
    color: #3a2800;
    background: rgba(255, 217, 90, 0.2);
    border-left: 4px solid #ffb800;
    border-radius: 8px;
}

.gh-content blockquote p:last-child {
    margin-bottom: 0;
}

.gh-content hr {
    width: 100%;
    height: 1px;
    margin: 2.2rem 0;
    border: 0;
    background: rgba(127, 90, 40, 0.24);
}

.gh-content img,
.gh-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gh-content figcaption {
    margin-top: 0.65rem;
    color: rgba(47, 36, 19, 0.62);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
}

.gh-content pre {
    overflow-x: auto;
    padding: 1rem;
    color: #fff8df;
    background: #1a1200;
    border-radius: 8px;
}

.gh-content code {
    padding: 0.12rem 0.32rem;
    color: #5c3b00;
    background: rgba(255, 217, 90, 0.24);
    border-radius: 4px;
}

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

.gh-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.gh-content th,
.gh-content td {
    padding: 0.75rem;
    border: 1px solid rgba(127, 90, 40, 0.22);
    text-align: left;
}

.gh-content th {
    color: #2b1b00;
    background: rgba(255, 217, 90, 0.28);
}

.gh-content .kg-bookmark-card,
.gh-content .kg-toggle-card,
.gh-content .kg-callout-card,
.gh-content .kg-product-card,
.gh-content .kg-header-card {
    color: #2f2413;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(127, 90, 40, 0.2);
    border-radius: 8px;
}

.gh-content .kg-bookmark-container {
    color: inherit;
    border-color: rgba(127, 90, 40, 0.24);
    border-radius: 8px;
}

.gh-content iframe {
    max-width: 100%;
}

.kg-width-wide {
    width: min(1100px, calc(100vw - 32px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
    height: auto;
}

@media (max-width: 720px) {
    .md-article__content.gh-content {
        width: min(100% - 1rem, 860px);
        margin-top: 1.5rem;
        padding: 1.1rem;
        font-size: 1rem;
    }

    .gh-content ul,
    .gh-content ol {
        padding-left: 1.15rem;
    }

    .kg-width-wide,
    .kg-width-full {
        width: calc(100vw - 1rem);
    }
}
