.kg-card {
    margin: 32px 0;
}
.kg-card img {
    height: auto;
}
.kg-card figcaption {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    padding-top: 10px;
}
.kg-width-wide {
    max-width: none;
}
.kg-width-full {
    width: 100%;
}
.kg-gallery-container,
.kg-gallery-row {
    display: flex;
    gap: 12px;
}
.kg-gallery-container {
    flex-direction: column;
}
.kg-gallery-image {
    flex: 1;
    min-width: 0;
}
.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.kg-bookmark-container {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}
.kg-bookmark-content {
    flex: 1;
    padding: 24px;
    min-width: 0;
}
.kg-bookmark-title {
    font: 400 23px/1.25 var(--font-heading);
}
.kg-bookmark-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
}
.kg-bookmark-metadata {
    display: flex;
    gap: 10px;
    font-size: 12px;
    margin-top: 18px;
}
.kg-bookmark-thumbnail {
    width: 30%;
}
.kg-bookmark-thumbnail img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.kg-bookmark-icon {
    width: 20px;
    height: 20px;
}
.kg-button-card {
    display: flex;
    justify-content: center;
}
.kg-button-card.kg-align-left {
    justify-content: flex-start;
}
.kg-btn,
.kg-product-card-button,
.kg-file-card-container {
    background: var(--green);
    color: var(--paper);
    border-radius: 24px;
    padding: 12px 24px;
    font: 600 14px/1.5 var(--font-body);
    display: inline-flex;
    gap: 14px;
    align-items: center;
}
.kg-callout-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--sage);
    border-radius: 12px;
}
.kg-callout-text {
    min-width: 0;
}
.kg-toggle-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
}
.kg-toggle-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.kg-toggle-heading-text {
    font: 400 25px/1.2 var(--font-heading);
    margin: 0;
}
.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content {
    display: none;
}
.kg-toggle-content {
    padding-top: 18px;
}
.kg-product-card-container {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
}
.kg-product-card-title {
    font: 400 32px/1.2 var(--font-heading);
}
.kg-product-card-description {
    font-size: 16px;
}
.kg-product-card-price {
    font-variant-numeric: tabular-nums;
}
.kg-audio-card,
.kg-file-card {
    padding: 24px;
    background: var(--soft);
    border-radius: 12px;
}
.kg-audio-title,
.kg-file-card-title {
    font: 400 24px/1.2 var(--font-heading);
}
.kg-audio-card audio,
.kg-video-card video {
    width: 100%;
}
.kg-video-card video {
    border-radius: 12px;
    background: var(--ink);
}
.kg-file-card-container {
    width: 100%;
    justify-content: space-between;
    border-radius: 10px;
}
.kg-file-card-caption,
.kg-file-card-metadata {
    font-size: 12px;
}
.kg-header-card {
    background: var(--sage);
    border-radius: 14px;
    padding: 50px 30px;
    text-align: center;
}
.kg-header-card-heading {
    font: 400 clamp(32px, 4vw, 54px) / 1.1 var(--font-heading);
    margin: 0 0 18px;
}
.kg-header-card-subheading {
    font-size: 18px;
}
.kg-header-card-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--green);
    color: var(--paper);
    border-radius: 25px;
}
.kg-embed-card {
    overflow: hidden;
}
.kg-embed-card iframe {
    width: 100%;
    border: 0;
    max-width: 100%;
}
.prose pre {
    background: var(--soft);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.65;
}
.prose code {
    overflow-wrap: anywhere;
}
.prose :not(pre) > code {
    background: var(--soft);
    padding: 3px 6px;
    border-radius: 4px;
}
.table-scroll {
    overflow-x: auto;
    margin: 28px 0;
}
.prose table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}
.prose th,
.prose td {
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    text-align: start;
}
.prose th {
    background: var(--sage);
    font-weight: 650;
}
@media (max-width: 700px) {
    .kg-bookmark-container {
        flex-direction: column-reverse;
    }
    .kg-bookmark-thumbnail {
        width: 100%;
        height: 150px;
    }
    .kg-gallery-row {
        gap: 6px;
    }
    .kg-header-card {
        padding: 30px 20px;
    }
}
