/* ==========================================================================
   1. MODIFIKASI BAWAAN MKDOCS MATERIAL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Kawi:wght@400..700&display=swap');

:root {
    --md-text-font: "Gentium Plus", "Noto Sans Kawi", sans-serif;
}

/* Kustomisasi ukuran font untuk legibilitas aksara Kawi */

.md-content p {
    font-size: 20px;
    letter-spacing: -0.003em;
    line-height: 32px;
    margin-block-end: 1em;
    margin-block-start: 1em;
    margin-bottom: 1.5em;
}

.md-content li {
    font-size: 20px;
    letter-spacing: -0.003em;
    line-height: 32px;
}

.md-content h1 {
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 52px !important;
    margin-bottom: 1em;
}

.md-content h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    margin-bottom: .5em;
}

.md-content h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: .5em;
}

.grid.grid-custom>p {
    border: solid 1px rgba(128, 128, 128, 0.2);
    border-radius: 4px;
    padding: 1rem;
}

/* Perbaikan perataan chevron pada breadcrumb (navigation.path) */

.md-path__item {
    align-items: center !important;
    display: inline-flex !important;
}

.md-path__item:not(:last-child)::after {
    display: inline-block !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1 !important;
    margin: 0 8px !important;
    opacity: 0.7;
    vertical-align: middle !important;
}

/* Gallery Styles */

.gallery-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--md-accent-fg-color) !important;
    display: block;
    overflow: hidden;
    text-decoration: none;
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-item:hover {
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: var(--md-accent-fg-color--light) !important;
    transform: scale(1.02) translate3d(0, 0, 0);
}

.gallery-item img {
    border-radius: 0;
    display: block;
    object-fit: cover;
    width: 100%;
}

.gallery-item p {
    color: inherit !important;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
    padding: 0.8rem 0.5rem;
    text-align: center;
    text-decoration: none;
}

/* Mobile: pastikan lebar penuh */

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}

/* Gallery List Styles */

.gallery-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-list-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 1.2rem;
    padding: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-list-item:hover {
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transform: scale(1.01);
}

.gallery-list-img {
    border-radius: 8px;
    flex-shrink: 0;
    height: 95px;
    object-fit: cover;
    width: 140px;
}

.gallery-list-content {
    color: var(--md-typeset-color);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gallery-list-content h3 {
    color: inherit;
    font-size: 1.1rem !important;
    font-weight: 700;
    margin: 0 !important;
}

.gallery-list-content p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    opacity: 0.8;
}

/* Mobile: ubah layout menjadi kolom */

@media (max-width: 600px) {
    .gallery-list-item {
        align-items: stretch;
        flex-direction: column;
        gap: 0.8rem;
    }

    .gallery-list-img {
        height: 160px;
        width: 100%;
    }
}

/* Meta Bullet List Styles */

.meta-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    list-style-type: disc;
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 0.5rem;
}

.meta-bullet-item {
    color: var(--md-typeset-color);
    line-height: 1.6;
}

.meta-bullet-title {
    color: var(--md-typeset-a-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-bullet-title:hover {
    color: var(--md-accent-fg-color);
    text-decoration: underline;
}

.meta-bullet-desc {
    color: var(--md-typeset-color);
    opacity: 0.85;
}

.meta-bullet-desc em {
    font-style: italic;
}

/* Book Grid Component */

.book-grid-container {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .book-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.book-card,
.md-typeset a.book-card {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    color: var(--md-typeset-color, #ffffff) !important;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.book-card:hover,
.md-typeset a.book-card:hover {
    border-color: var(--md-accent-fg-color, #ffc107) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
    text-decoration: none !important;
    transform: translateY(-4px);
}

.book-cover-wrapper {
    aspect-ratio: 4 / 5;
    background: #000;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.book-cover {
    display: block;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100% !important;
}

.book-card:hover .book-cover {
    transform: scale(1.03);
}

.book-title {
    align-items: center;
    color: var(--md-typeset-color, #ffffff) !important;
    display: flex;
    flex-grow: 1;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    justify-content: center;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0.8rem 0.6rem !important;
    text-align: center;
}

/* Konsistensi warna footnote links */

.md-typeset .footnote-ref,
.md-typeset .footnote-backref,
.md-typeset .footnote a {
    color: var(--md-accent-fg-color) !important;
}

.md-typeset .footnote-ref:hover,
.md-typeset .footnote-backref:hover,
.md-typeset .footnote a:hover {
    color: var(--md-accent-fg-color--light) !important;
}

/* Carousel Component */

.carousel-wrapper {
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    margin: 2rem 0;
    max-height: 480px;
    overflow: hidden;
    position: relative;
}

.carousel-track-container {
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.carousel-slide {
    cursor: pointer;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-image {
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    width: 100% !important;
}

.carousel-slide:hover .carousel-image {
    transform: scale(1.03);
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    bottom: 0;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    left: 0;
    letter-spacing: 0.02em;
    padding: 2.5rem 1.5rem 1rem 1.5rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Carousel Buttons */

.carousel-button {
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 1.1rem;
    height: 44px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s, transform 0.2s, border-color 0.2s;
    width: 44px;
    z-index: 2;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: var(--md-accent-fg-color, #ffc107);
    transform: translateY(-50%) scale(1.05);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button--left {
    left: 15px;
}

.carousel-button--right {
    right: 15px;
}

/* Carousel Indicators */

.carousel-nav {
    bottom: 15px;
    display: flex;
    gap: 8px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 2;
}

.carousel-indicator {
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    height: 8px;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
    width: 8px;
}

.carousel-indicator.current-slide {
    background: var(--md-accent-fg-color, #ffc107);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Lightbox Modal */

.lightbox-modal {
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.92);
    display: none;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 9999;
}

.lightbox-modal.active {
    animation: carouselFadeIn 0.25s ease forwards;
    display: flex;
}

.lightbox-content {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    max-height: 80%;
    max-width: 90%;
    object-fit: contain;
}

.lightbox-modal.active .lightbox-content {
    animation: carouselZoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lightbox-close {
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    font-size: 38px;
    font-weight: 300;
    height: 44px;
    justify-content: center;
    position: absolute;
    right: 25px;
    top: 20px;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    width: 44px;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    max-width: 80%;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes carouselFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes carouselZoomIn {
    from {
        transform: scale(0.92);
    }

    to {
        transform: scale(1);
    }
}

/* Responsive adjustment */

@media (max-width: 768px) {
    .carousel-wrapper {
        aspect-ratio: 4/3;
        max-height: 350px;
    }

    .carousel-button {
        font-size: 0.9rem;
        height: 38px;
        width: 38px;
    }

    .carousel-caption {
        font-size: 0.8rem;
        padding-top: 2rem;
    }

    .lightbox-close {
        right: 15px;
        top: 10px;
    }
}

/* Blog Post Left Metadata Sidebar Width Override */

@media screen and (min-width: 76.25em) {
    .md-sidebar--post {
        width: 10rem;
    }

    .md-sidebar--post .md-nav__link {
        align-items: center;
        display: flex;
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .md-sidebar--post .md-nav__link svg {
        height: 0.75rem;
        width: 0.75rem;
    }

    .md-sidebar--post .md-post__title {
        font-size: 0.8rem;
    }
}

/* Blog Excerpt Best-Practice Truncation */

.md-post--excerpt .md-post__content p:not(:first-of-type),
.md-post--excerpt .md-post__content .carousel-wrapper,
.md-post--excerpt .md-post__content .gallery-container,
.md-post--excerpt .md-post__content iframe {
    display: none;
}

.md-post--excerpt .md-post__content p:first-of-type {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    line-clamp: 3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Blog Excerpt Featured Cover Image */

.md-post__cover {
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    width: 100%;
}

.md-post__cover a {
    display: block;
    height: 100%;
    width: 100%;
}

.md-post__cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.md-post__cover:hover img {
    transform: scale(1.03);
}

/* Blog Post Drop Cap */

.md-content--post .md-content__inner>p:first-of-type::first-letter {
    float: left;
    font-size: 3rem;
    line-height: 0.85;
    margin-right: 0.55rem;
    margin-top: 0.05em;
}

/* Blog Excerpt Card Styling */

.md-post--excerpt {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 2.5rem !important;
    padding: 1.5rem !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.md-post--excerpt:hover {
    border-color: var(--md-accent-fg-color) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 45em) {
    .md-post--excerpt {
        margin-bottom: 1.5rem !important;
        padding: 1rem !important;
    }
}

/* Blog Excerpt Metadata Sizing */

.md-post__meta.md-meta .md-meta__list .md-meta__item {
    font-size: 0.75rem !important;
}

/* Hide Kategori from the primary navigation sidebar */

.md-sidebar--primary .md-nav__list .md-nav__list>.md-nav__item:has(a[href*="category/"]) {
    display: none !important;
}

/* External Link Indicator in Sidebar */

.md-sidebar--primary .md-nav__link[href^="http://"]::after,
.md-sidebar--primary .md-nav__link[href^="https://"]::after {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7Z"/></svg>');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    background-color: currentColor;
    content: "";
    display: inline-block;
    height: 0.7rem;
    margin-left: 0.35rem;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7Z"/></svg>');
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0.65;
    vertical-align: middle;
    width: 0.7rem;
}

/* Share Button Styling */

.share-actions {
    align-items: center;
    border-top: 1px solid var(--md-default-fg-color--lightest);
    display: flex;
    gap: 0.8rem;
    margin: 2.5rem 0 1.5rem 0;
    padding-top: 1.5rem;
}

.share-btn {
    align-items: center;
    background-color: transparent !important;
    border: 1px solid var(--md-typeset-color) !important;
    border-radius: 20px !important;
    color: var(--md-typeset-color) !important;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.8rem !important;
    font-weight: 500;
    gap: 0.4rem;
    opacity: 0.8;
    padding: 0.3rem 0.75rem !important;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background-color: var(--md-typeset-color) !important;
    border-color: var(--md-typeset-color) !important;
    color: var(--md-primary-bg-color) !important;
    opacity: 1;
}

.share-btn svg {
    fill: currentColor;
    height: 0.9rem;
    vertical-align: middle;
    width: 0.9rem;
}

/* Toast Message */

#share-toast {
    color: #4caf50;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#share-toast.show {
    opacity: 1;
}

/* 404 Error Page Styles */

.error-404-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70vh;
    padding: 2rem;
    text-align: center;
    width: 100%;
}

.error-404-img {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    max-height: 300px;
    max-width: 500px;
    object-fit: cover;
    width: 100%;
}

.error-404-title {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(45deg, var(--md-accent-fg-color), #ffffff);
    background-clip: text;
    font-size: 5rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 0 0.5rem 0 !important;
}

.error-404-subtitle {
    color: var(--md-typeset-color);
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 0 1rem 0 !important;
}

.error-404-text {
    color: var(--md-typeset-color);
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    opacity: 0.8;
}

.error-404-btn {
    background: var(--md-accent-fg-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
    display: inline-block;
    font-weight: 600;
    padding: 0.75rem 2rem;
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-404-btn:hover {
    background-color: var(--md-accent-fg-color--light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.error-404-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   2. KOMPONEN ARKEOLOGI
   ========================================================================== */

/* Fix-width untuk kolom tabel inkripsi berdampingan */

.inscription table {
    display: table !important;
    table-layout: fixed !important;
    width: 100% !important;
}

.inscription table th:nth-child(1),
.inscription table td:nth-child(1) {
    max-width: 40px !important;
    min-width: 40px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
    width: 40px !important;
}

.inscription table th:nth-child(2),
.inscription table td:nth-child(2) {
    width: 50% !important;
    word-break: break-all !important;
}

.inscription table th:nth-child(3),
.inscription table td:nth-child(3) {
    width: 50% !important;
    word-break: break-word !important;
}

/* ==========================================================================
   3. KOMPONEN MANUSKRIP
   ========================================================================== */

/* Grid Kategori Manuskrip*/

.explore-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 2rem 0;
}

.explore-card,
.md-typeset a.explore-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    color: var(--md-typeset-color, #ffffff) !important;
    display: flex !important;
    flex-direction: column;
    padding: 1.5rem 1.25rem !important;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.explore-card:hover,
.md-typeset a.explore-card:hover {
    border-color: var(--md-accent-fg-color, #ffc107) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
    transform: translateY(-4px);
}

.explore-card img {
    display: block;
    margin-bottom: 1rem !important;
    margin-left: auto;
    margin-right: auto;
}

.explore-card h3 {
    align-items: center;
    color: var(--md-typeset-color, #ffffff) !important;
    display: flex;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    gap: 10px;
    justify-content: center;
    margin: 0 0 0.5rem 0 !important;
}

.explore-card p {
    color: var(--md-default-fg-color--light, rgba(255, 255, 255, 0.7)) !important;
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

@media screen and (max-width: 600px) {
    .explore-grid {
        gap: 1.2rem;
        grid-template-columns: 1fr;
    }
}

/* Metadata Artefact & Manuskrip 2-Column Static Card Component */

.artefact-container {
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.artefact-section {
    margin-bottom: 2rem;
}

.artefact-card {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 1.5rem !important;
    padding: 1.25rem 1.5rem !important;
}

.artefact-col-left {
    align-items: center;
    display: flex;
    flex: 0 0 180px;
    flex-direction: column;
    gap: 0.75rem;
}

.artefact-cover {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    max-height: 220px;
    object-fit: cover !important;
    object-position: top !important;
    width: 100% !important;
}

.artefact-btn-buka {
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    margin-top: auto !important;
    padding: 0.45rem 0.8rem !important;
    text-align: center;
    width: 100% !important;
}

.artefact-col-right {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.55rem;
    justify-content: flex-start;
}

.artefact-meta-item {
    align-items: baseline;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.meta-label {
    color: var(--md-default-fg-color--muted, rgba(255, 255, 255, 0.6)) !important;
    flex: 0 0 140px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    min-width: 140px !important;
}

.meta-value {
    color: var(--md-default-fg-color, #ffffff) !important;
    flex: 1;
    font-size: 0.82rem !important;
    text-align: left !important;
}

.meta-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

@media screen and (max-width: 600px) {
    .artefact-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 1rem !important;
    }

    .artefact-col-left {
        max-width: 100%;
        width: 100%;
    }

    .artefact-cover {
        max-height: 260px;
    }

    .artefact-btn-buka {
        width: 100% !important;
    }

    .meta-label {
        flex: 0 0 120px !important;
        min-width: 120px !important;
    }
}

/* ==========================================================================
   Manuscript Catalog Components & Search
   ========================================================================== */

.mc-catalog-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.mc-control-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
}

[data-md-color-scheme="default"] .mc-control-bar {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.mc-search-box {
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

[data-md-color-scheme="default"] .mc-search-box {
    background: #ffffff;
    border-color: #cbd5e1;
}

.mc-search-box:focus-within {
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 0 0 3px rgba(100, 120, 255, 0.15);
}

.mc-search-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.mc-search-input {
    background: transparent;
    border: none;
    color: var(--md-typeset-color);
    flex: 1;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    width: 100%;
}

.mc-search-clear {
    background: transparent;
    border: none;
    color: var(--md-typeset-color);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.6;
    padding: 0 4px;
    transition: opacity 0.2s;
}

.mc-search-clear:hover {
    opacity: 1;
}

.mc-stats {
    color: var(--md-typeset-color);
    font-size: 0.82rem;
    opacity: 0.8;
}

.mc-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mc-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}

[data-md-color-scheme="default"] .mc-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.mc-card:hover {
    border-color: rgba(212, 163, 115, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.mc-card-series {
    border-left: 4px solid #8b5cf6;
}

.mc-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 0.8rem;
}

[data-md-color-scheme="default"] .mc-card-header {
    border-bottom-color: #f1f5f9;
}

.mc-header-top {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
}

.mc-badge-id {
    border-radius: 6px;
    font-family: var(--md-code-font-family, monospace);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
}

.mc-badge-ms {
    background: linear-gradient(135deg, #c2884a 0%, #a4682a 100%);
    box-shadow: 0 2px 6px rgba(164, 104, 42, 0.3);
    color: #ffffff;
}

.mc-badge-series {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.3);
    color: #ffffff;
}

.mc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mc-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--md-typeset-color);
    font-family: var(--md-code-font-family, monospace);
    font-size: 0.76rem;
    opacity: 0.9;
    padding: 2px 8px;
}

[data-md-color-scheme="default"] .mc-chip {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.mc-chip-inst {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

[data-md-color-scheme="default"] .mc-chip-inst {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.mc-title-main {
    color: var(--md-typeset-color);
    font-size: 1.2rem !important;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.2rem 0 0 0 !important;
}

.mc-title-sub {
    color: var(--md-typeset-color);
    font-size: 0.92rem;
    line-height: 1.4;
    opacity: 0.85;
}

.mc-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.mc-meta-item {
    align-items: baseline;
    display: flex;
    font-size: 0.84rem;
    gap: 0.6rem;
    line-height: 1.5;
    text-align: left;
}

.mc-meta-label {
    color: var(--md-typeset-color);
    flex: 0 0 135px;
    font-weight: 600;
    min-width: 135px;
    opacity: 0.8;
    text-align: left;
}

.mc-meta-val {
    color: var(--md-typeset-color);
    flex: 1;
    text-align: left;
}

.mc-subjects {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.mc-subjects-title {
    color: var(--md-typeset-color);
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.75;
}

.mc-subject-tag {
    background: rgba(100, 120, 255, 0.1);
    border: 1px solid rgba(100, 120, 255, 0.2);
    border-radius: 12px;
    color: var(--md-accent-fg-color, #7c3aed);
    font-size: 0.74rem;
    font-weight: 500;
    padding: 1px 8px;
}

[data-md-color-scheme="default"] .mc-subject-tag {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.mc-desc-details {
    background: rgba(0, 0, 0, 0.15);
    border-left: 3px solid #c2884a;
    border-radius: 0 8px 8px 0;
    margin-top: 0.6rem;
    overflow: hidden;
    transition: background 0.2s;
}

[data-md-color-scheme="default"] .mc-desc-details {
    background: #f8fafc;
    border-left-color: #c2884a;
}

.mc-desc-summary {
    color: var(--md-typeset-color);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    list-style: auto;
    opacity: 0.9;
    padding: 0.6rem 0.9rem;
    user-select: none;
}

.mc-desc-summary:hover {
    color: var(--md-accent-fg-color);
}

.mc-desc-content {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0.9rem 0.8rem 0.9rem;
}

[data-md-color-scheme="default"] .mc-desc-content {
    border-top-color: #e2e8f0;
}

.mc-desc-text {
    color: var(--md-typeset-color);
    font-size: 0.86rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    opacity: 0.95;
    text-align: justify;
}

.mc-card-footer {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--md-typeset-color);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    gap: 1rem;
    justify-content: space-between;
    opacity: 0.75;
    padding-top: 0.6rem;
}

[data-md-color-scheme="default"] .mc-card-footer {
    border-top-color: #f1f5f9;
}

.mc-no-results {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
}

[data-md-color-scheme="default"] .mc-no-results {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.mc-no-results-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.mc-no-results h4 {
    margin: 0 0 0.5rem 0 !important;
}

.mc-no-results p {
    font-size: 0.88rem;
    margin: 0 !important;
    opacity: 0.75;
}

/* Pagination Styles */

.mc-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.8rem 0;
}

.mc-page-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--md-typeset-color);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1;
    padding: 0.5rem 0.85rem;
    transition: all 0.2s ease;
}

[data-md-color-scheme="default"] .mc-page-btn {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.mc-page-btn:hover:not(:disabled) {
    background: rgba(100, 120, 255, 0.15);
    border-color: var(--md-accent-fg-color);
    color: var(--md-accent-fg-color);
}

.mc-page-btn.active {
    background: var(--md-accent-fg-color);
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 2px 8px rgba(100, 120, 255, 0.35);
    color: #ffffff !important;
    font-weight: 700;
}

.mc-page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.mc-page-dots {
    color: var(--md-typeset-color);
    font-size: 0.9rem;
    opacity: 0.6;
    padding: 0 0.3rem;
}

@media screen and (max-width: 600px) {
    .mc-card {
        padding: 1rem;
    }
    .mc-header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .mc-meta-label {
        flex: 0 0 115px;
        min-width: 115px;
    }
}

