:root {
    /* Font families */
    --res-font-primary: 'Nunito', sans-serif;
    --res-font-secondary: 'Inter', sans-serif;

    /* Typography tokens - Resource Detail Page */
    --res-detail-title-size: 20px;
    --res-detail-title-mobile-size: 18px;
    --res-detail-excerpt-size: 17px;
    --res-detail-content-size: 17px;
}

/* ==========================================================================
   Resource detail page styles
   Match heritage: font, color, spacing from resource_page.css / landing-page-v2.css
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: revert !important;
}
   
   
.dev-warning-banner {
    display: none;
}

.resource-detail-outbound {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
@media only screen and (min-width: 768px) {
	.resource-detail-outbound  {
		min-height: calc(100dvh - 83px - 300px - 108px);
	}
}

@media only screen and (max-width: 767px) {
	.resource-detail-outbound  {
		min-height: calc(100dvh - 83px - 200px - 84px);
	}
}   

.resource-detail-article {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.resource-detail-title {
    font-size: var(--res-detail-title-size);
    font-family: var(--res-font-secondary);
    font-weight: 600;
    color: #FAF9F6;
    line-height: 1.3;
    margin: 0 0 24px;
}

.resource-detail-thumbnail {
    width: 100%;
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
}

.resource-detail-thumbnail-image {
    width: 100%;
    height: auto;
    max-height: 50dvh;
    display: block;
    object-fit: cover;
}

.resource-detail-excerpt {
    font-size: var(--res-detail-excerpt-size);
    font-family: var(--res-font-secondary);
    color: #C0C0C0;
    line-height: 1.6;
    margin: 0 0 24px;
}

.resource-detail-content {
    font-family: var(--res-font-secondary);
    font-size: var(--res-detail-content-size);
}

.resource-detail-block-heading {
    font-size: 24px;
    font-weight: 600;
    color: #FAF9F6;
    margin: 32px 0 12px;
}

.resource-detail-block-paragraph {
    font-size: 16px;
    color: #C0C0C0;
    line-height: 1.7;
    margin: 0 0 16px;
}

.resource-detail-block-figure {
    margin: 24px 0;
}

.resource-detail-block-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.resource-detail-block-list {
    margin: 0 0 16px;
    padding-left: 24px;
}

.resource-detail-block-list-item {
    font-size: 16px;
    color: #C0C0C0;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Whitelist text formatting: strong / em / br — xem doc 11-resource-detail-json-guide-for-ba.md */
.resource-detail-block-heading strong {
    font-weight: 700;
}

.resource-detail-block-paragraph strong {
    color: #FAF9F6;
    font-weight: 600;
}

.resource-detail-block-list-item strong {
    color: #FAF9F6;
    font-weight: 600;
}

.resource-detail-block-paragraph em,
.resource-detail-block-list-item em {
    font-style: italic;
}

.resource-detail-block-empty {
    font-size: 16px;
    color: #999999;
    text-align: center;
    padding: 24px 0;
}

/* Block types mới: title, thumbnail, excerpt, divider, image caption */
.resource-detail-block-title {
    font-size: var(--res-detail-title-size);
    font-family: var(--res-font-secondary);
    font-weight: 600;
    color: #FAF9F6;
    line-height: 1.3;
    margin: 0 0 24px;
}

.resource-detail-block-thumbnail {
    width: 100%;
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
}

.resource-detail-block-thumbnail-image {
    width: 100%;
    height: auto;
    max-height: 50dvh;
    display: block;
    object-fit: cover;
}

.resource-detail-block-excerpt {
    font-size: var(--res-detail-excerpt-size);
    font-family: var(--res-font-secondary);
    color: #C0C0C0;
    line-height: 1.6;
    margin: 0 0 24px;
}

.resource-detail-block-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 24px 0;
}

.resource-detail-block-image-caption {
    font-size: 14px;
    color: #999999;
    line-height: 1.5;
    margin-top: 8px;
}

.resource-detail-block-list-unstyled {
    margin: 0 20px 16px;
    padding-left: 0;
    list-style: none;
}

.resource-detail-block-thumbnail-caption {
    font-size: 14px;
    color: #999999;
    line-height: 1.5;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .resource-detail-outbound {
        padding: 24px 24px 40px;
    }

    .resource-detail-title {
        font-size: var(--res-detail-title-mobile-size);
    }

    .resource-detail-block-title {
        font-size: var(--res-detail-title-mobile-size);
    }
}

/* ==========================================================
   Block alignment — text-align cho tất cả block types
   ========================================================== */
.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

/* ==========================================================
   Caption alignment — text-align cho <figcaption>
   ========================================================== */
.caption-align-left {
    text-align: left;
}

.caption-align-center {
    text-align: center;
}

.caption-align-right {
    text-align: right;
}
