body {
    min-height: 100vh;
}

main {
    background:
        radial-gradient(circle at top left, rgba(201, 162, 39, 0.14), transparent 28rem),
        linear-gradient(180deg, #fbf5e8 0%, #fff9ee 56%, #fbf5e8 100%);
}

.container-fluid,
.archive-container {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
}

/*
 * Polyfill các tiện ích Tailwind mà bản build sẵn theme.css (Tailwind v4) KHÔNG kèm theo
 * — vì theme.css được build từ dự án thiết kế riêng nên không quét các view .cshtml/.liquid
 * trong repo này. Thiếu các class dưới đây khiến trang /chu-nhac bị giãn full-width và mất
 * padding dọc. Giá trị giữ đúng thang đo mặc định của Tailwind.
 */
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-none { max-width: none; }

.py-10 { padding-block: 2.5rem; }
.py-12 { padding-block: 3rem; }

@media (min-width: 768px) {
    .md\:py-20 { padding-block: 5rem; }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.py-4 {
    padding-block: 2.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    color: var(--muted-foreground, #7a5c3a);
    font-size: 0.875rem;
    line-height: 1.4;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-inline: 0.5rem;
    color: color-mix(in srgb, var(--muted-foreground, #7a5c3a) 72%, transparent);
}

.breadcrumb-item a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--accent, #c9a227);
}

.breadcrumb-item.active {
    color: var(--foreground, #1a0800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row {
    display: grid;
    gap: 1.5rem;
}

.col,
.col-md-3,
.col-md-4,
.col-md-8,
.col-md-9,
.col-lg-4,
.col-lg-8 {
    min-width: 0;
}

.row-cols-1,
.row-cols-2,
.row-cols-md-2,
.row-cols-md-3,
.row-cols-lg-4 {
    grid-template-columns: 1fr;
}

.g-3,
.g-4 {
    gap: 1rem;
}

@media (min-width: 768px) {
    .row:has(> .col-md-3 + .col-md-9) {
        grid-template-columns: minmax(14rem, 0.32fr) minmax(0, 1fr);
        align-items: start;
    }

    .detail-media-grid,
    .row:has(> .col-md-4 + .col-md-8) {
        grid-template-columns: minmax(17rem, 0.36fr) minmax(0, 1fr);
        align-items: start;
    }

    .row-cols-md-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .row-cols-md-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .detail-article-grid,
    .row:has(> .col-lg-8 + .col-lg-4) {
        grid-template-columns: minmax(0, 44rem) minmax(16rem, 1fr);
        align-items: start;
    }

    .row-cols-lg-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.detail-two-col,
.detail-article-grid {
    width: 100%;
}

.detail-main-image,
.img-fluid {
    max-width: 100%;
    height: auto;
}

.article-content,
.article-content * {
    max-width: 100%;
}

.article-content img,
.article-content iframe,
.article-content video,
.article-content table {
    max-width: 100%;
}

.article-content img,
.article-content video {
    height: auto;
}

.article-content table {
    display: block;
    overflow-x: auto;
}

.card,
.archive-card,
.archive-person-card,
.archive-article-item,
.archive-result-item,
.archive-empty {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(122, 21, 21, 0.16);
    border-radius: 1rem;
    background: rgba(255, 249, 238, 0.84);
    box-shadow: 0 18px 44px rgba(74, 55, 40, 0.08);
}

.card::before,
.archive-card::before,
.archive-person-card::before,
.archive-article-item::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.72), transparent);
}

.card-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(122, 21, 21, 0.12);
    color: #7a1515;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body,
.archive-card-body {
    padding: 1rem;
}

.card-footer {
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(122, 21, 21, 0.1);
}

.h-100 {
    height: 100%;
}

.shadow-sm {
    box-shadow: 0 18px 44px rgba(74, 55, 40, 0.08);
}

.card-title,
.archive-card h3,
.archive-person-card h3,
.archive-article-item h3,
.archive-result-item h3 {
    color: #1a0800;
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

.card-title a,
.archive-card a,
.archive-person-card a,
.archive-article-item a,
.archive-result-item a {
    color: inherit;
}

.card-title a:hover,
.archive-card a:hover,
.archive-person-card a:hover,
.archive-article-item a:hover,
.archive-result-item a:hover {
    color: #7a1515;
}

.h3,
h1.h3,
.archive-page-heading h1,
.archive-section-heading h2 {
    color: #7a1515;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.h5,
h5.card-title,
h6.card-title {
    font-size: 1.05rem;
    line-height: 1.25;
}

.small,
small {
    font-size: 0.9rem;
}

.text-muted,
.card-text {
    color: rgba(26, 8, 0, 0.64);
}

.text-primary {
    color: #7a1515;
}

.text-secondary {
    color: #c9a227;
}

.text-dark {
    color: #1a0800;
}

.fw-bold {
    font-weight: 700;
}

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

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

.text-decoration-none {
    text-decoration: none;
}

.d-block {
    display: block;
}

.py-1 {
    padding-block: 0.35rem;
}

.p-2 {
    padding: 0.75rem;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }

.fa-3x {
    font-size: 3rem;
}

.badge,
.archive-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(201, 162, 39, 0.34);
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.14);
    color: #7a1515;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.bg-danger,
.archive-chip-red {
    background: rgba(122, 21, 21, 0.12);
    color: #7a1515;
}

.bg-warning {
    background: rgba(201, 162, 39, 0.18);
}

.btn,
.archive-btn,
.archive-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(122, 21, 21, 0.18);
    padding: 0.62rem 0.95rem;
    color: #7a1515;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover,
.archive-btn:hover,
.archive-link:hover {
    border-color: rgba(122, 21, 21, 0.34);
    background: rgba(122, 21, 21, 0.08);
}

.btn-sm {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
}

.btn-outline-primary,
.archive-btn-secondary {
    background: rgba(255, 249, 238, 0.65);
}

.archive-btn-primary {
    background: #7a1515;
    color: #fbf5e8;
}

.archive-btn-primary:hover {
    background: #641010;
    color: #fbf5e8;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.justify-content-center {
    justify-content: center;
}

.page-link {
    display: inline-flex;
    min-width: 2.25rem;
    justify-content: center;
    border: 1px solid rgba(122, 21, 21, 0.16);
    border-radius: 0.7rem;
    padding: 0.45rem 0.75rem;
    color: #7a1515;
    text-decoration: none;
}

.page-item.active .page-link {
    border-color: #7a1515;
    background: #7a1515;
    color: #fbf5e8;
}

.archive-hero {
    position: relative;
    min-height: 58vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(26, 8, 0, 0.78), rgba(122, 21, 21, 0.44)),
        url("https://cdn3.ivivu.com/2022/09/nha-nhac-cung-dinh-hue-ivivu-1.jpg") center/cover;
    color: #fbf5e8;
}

.archive-hero__content {
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
    padding-block: 5rem;
}

.archive-hero h1 {
    max-width: 780px;
    color: #fbf5e8;
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 8vw, 6.4rem);
    font-weight: 800;
    line-height: 0.98;
}

.archive-hero__lead {
    max-width: 680px;
    margin-top: 1rem;
    color: rgba(251, 245, 232, 0.84);
    font-size: 1.1rem;
    line-height: 1.75;
}

.archive-actions,
.archive-section-action {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.archive-section,
.archive-page {
    padding-block: 3.5rem;
}

.archive-section-muted {
    background: rgba(122, 21, 21, 0.05);
}

.archive-section-heading {
    margin-bottom: 1.6rem;
}

.archive-kicker {
    color: #7a1515;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.archive-card-grid,
.archive-person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.archive-article-list,
.archive-result-list {
    display: grid;
    gap: 0.9rem;
}

.archive-person-card,
.archive-article-item,
.archive-result-item,
.archive-empty {
    padding: 1rem;
}

.archive-result-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.lotus-divider {
    display: flex;
    justify-content: center;
    padding-block: 1rem;
    color: rgba(122, 21, 21, 0.28);
}

.archive-page-search {
    display: flex;
    gap: 0.75rem;
    margin: 1.2rem 0 2rem;
}

.archive-page-search input,
.archive-nav-search input {
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(122, 21, 21, 0.18);
    border-radius: 0.8rem;
    background: rgba(255, 249, 238, 0.86);
    padding: 0.7rem 0.9rem;
}
