/**
 * Custom CSS for Tasikmalaya Theme
 *
 * @package Tasikmalaya
 * @since 1.0.0
 */

/* ==========================================================================
   Additional Custom Styles
   ========================================================================== */

/* Custom logo sizing (safety net, independent of Tailwind) */
.site-branding .custom-logo-link img,
.custom-logo {
    max-height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ILM image lightbox fade-in keyframes */
@keyframes ilmFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Sticky header */
.sticky {
    position: sticky;
}

/* Backdrop blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Transition */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Group hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:text-hijau-600 {
    color: var(--hijau-600);
}

.group:hover .group-hover\:text-hijau-700 {
    color: var(--hijau-700);
}

.group:hover .group-hover\:bg-hijau-200 {
    background-color: var(--hijau-200);
}

.group:hover .group-hover\:block {
    display: block;
}

/* Hover states */
.hover\:bg-hijau-50:hover {
    background-color: var(--hijau-50);
}

.hover\:bg-hijau-800:hover {
    background-color: var(--hijau-800);
}

.hover\:bg-emas-400:hover {
    background-color: var(--emas-400);
}

.hover\:text-hijau-600:hover {
    color: var(--hijau-600);
}

.hover\:text-hijau-700:hover {
    color: var(--hijau-700);
}

.hover\:text-hijau-900:hover {
    color: var(--hijau-900);
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:border-hijau-300:hover {
    border-color: var(--hijau-300);
}

/* Focus states */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--hijau-500);
}

.focus\:ring-inset:focus {
    box-shadow: inset 0 0 0 2px var(--hijau-500);
}

/* Shadow */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.drop-shadow-lg {
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

.drop-shadow-2xl {
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

/* Border radius */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

/* Z-index */
.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Opacity */
.opacity-30 {
    opacity: 0.3;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* User select */
.select-none {
    user-select: none;
}

/* Pointer events */
.pointer-events-none {
    pointer-events: none;
}

/* Visibility */
.invisible {
    visibility: hidden;
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Flexbox */
.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-1 {
    flex: 1 1 0%;
}

.shrink-0 {
    flex-shrink: 0;
}

/* Grid */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid-cols-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

/* Gap */
.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Spacing */
.space-y-1>*+* {
    margin-top: 0.25rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

/* Width */
.w-full {
    width: 100%;
}

.w-1 {
    width: 0.25rem;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.5rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.w-24 {
    width: 6rem;
}

.w-72 {
    width: 18rem;
}

.w-80 {
    width: 20rem;
}

.w-96 {
    width: 24rem;
}

/* Max width */
.max-w-4xl {
    max-width: 56rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-lg {
    max-width: 32rem;
}

/* Min width */
.min-w-0 {
    min-width: 0;
}

.min-w-\[200px\] {
    min-width: 200px;
}

/* Height */
.h-1 {
    height: 0.25rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-10 {
    height: 2.5rem;
}

.h-11 {
    height: 2.75rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-44 {
    height: 11rem;
}

.h-48 {
    height: 12rem;
}

.h-64 {
    height: 16rem;
}

.h-80 {
    height: 20rem;
}

.h-96 {
    height: 24rem;
}

.min-h-screen {
    min-height: 100vh;
}

.min-h-\[520px\] {
    min-height: 520px;
}

.min-h-\[580px\] {
    min-height: 580px;
}

/* Padding */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pb-12 {
    padding-bottom: 3rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

/* Margin */
.m-0 {
    margin: 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Colors */
.text-white {
    color: #ffffff;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-hijau-200 {
    color: var(--hijau-200);
}

.text-hijau-300 {
    color: var(--hijau-300);
}

.text-hijau-600 {
    color: var(--hijau-600);
}

.text-hijau-700 {
    color: var(--hijau-700);
}

.text-hijau-800 {
    color: var(--hijau-800);
}

.text-hijau-900 {
    color: var(--hijau-900);
}

.text-emas-300 {
    color: var(--emas-400);
}

.text-emas-400 {
    color: var(--emas-400);
}

.text-emas-500 {
    color: var(--emas-500);
}

.text-emas-600 {
    color: var(--emas-600);
}

/* Background colors */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-hijau-50 {
    background-color: var(--hijau-50);
}

.bg-hijau-100 {
    background-color: var(--hijau-100);
}

.bg-hijau-700 {
    background-color: var(--hijau-700);
}

.bg-hijau-800 {
    background-color: var(--hijau-800);
}

.bg-hijau-900 {
    background-color: var(--hijau-900);
}

.bg-emas-400 {
    background-color: var(--emas-400);
}

.bg-emas-500 {
    background-color: var(--emas-500);
}

/* Border colors */
.border {
    border-width: 1px;
    border-style: solid;
    border-color: #e5e7eb;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
    border-color: #e5e7eb;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-hijau-800 {
    border-color: var(--hijau-800);
}

.border-white\/40 {
    border-color: rgba(255, 255, 255, 0.4);
}

.border-white\/50 {
    border-color: rgba(255, 255, 255, 0.5);
}

.border-emas-400\/40 {
    border-color: rgba(245, 200, 66, 0.4);
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

.object-center {
    object-position: center;
}

.object-bottom {
    object-position: bottom;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:block {
        display: block;
    }

    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:w-72 {
        width: 18rem;
    }

    .md\:h-80 {
        height: 20rem;
    }

    .md\:h-96 {
        height: 24rem;
    }

    .md\:min-h-\[580px\] {
        min-height: 580px;
    }

    .md\:pb-12 {
        padding-bottom: 3rem;
    }

    .md\:p-8 {
        padding: 2rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:gap-12 {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }

    .lg\:flex {
        display: flex;
    }

    .lg\:hidden {
        display: none;
    }

    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:w-80 {
        width: 20rem;
    }

    .lg\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (min-width: 1280px) {
    .xl\:w-96 {
        width: 24rem;
    }
}

/* E-Magazine, enhanced tables, and Rasio PAD route parity. */
.next-tablepress-controls,
.next-tablepress-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.next-tablepress-controls input,
.next-tablepress-controls select {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.5rem 0.75rem;
}

.next-tablepress-wrapper {
    width: 100%;
}

.next-tablepress-pagination {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.next-tablepress-page-button {
    min-width: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.45rem;
    background: #fff;
    padding: 0.4rem 0.65rem;
    color: var(--hijau-700);
    cursor: pointer;
}

.next-tablepress-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.next-tablepress-page-button.is-active {
    border-color: var(--hijau-700);
    background: var(--hijau-700);
    color: #fff;
}

.wpdm-btn {
    display: inline-flex;
    align-items: center;
    border-radius: 0.5rem;
    background: var(--hijau-700);
    padding: 0.45rem 0.75rem;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
}

.rasio-pad-page {
    min-height: 100%;
    background: #f7f9fc;
    color: #16243b;
}

.rasio-pad-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.rasio-pad-header,
.rasio-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.rasio-pad-header h1 {
    margin: 0;
    color: #142a54;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.rasio-pad-header h1 em {
    color: #0abfa3;
    font-style: normal;
}

.rasio-pad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
    color: #718096;
    font-size: 0.85rem;
}

.rasio-dot {
    width: 0.35rem;
    height: 0.35rem;
    margin-top: 0.4rem;
    border-radius: 50%;
    background: #0abfa3;
}

.rasio-stamp {
    min-width: 9rem;
    border: 1px solid #dbe4f2;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
    text-align: center;
}

.rasio-stamp-label,
.rasio-card-label {
    color: #7c8ca5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rasio-stamp-value {
    color: #142a54;
    font-size: 2rem;
    font-weight: 800;
}

.rasio-stamp-sub,
.rasio-card-note,
.rasio-card-tag {
    color: #718096;
    font-size: 0.8rem;
}

.rasio-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.5rem 0;
}

.rasio-card {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(35, 60, 100, 0.06);
}

.rasio-card-icon {
    margin-bottom: 1.25rem;
    color: #3b6ee8;
    font-size: 1.3rem;
}

.rasio-card.teal .rasio-card-icon,
.rasio-legend .teal,
.rasio-axis-teal {
    color: #0abfa3;
}

.rasio-card.amber .rasio-card-icon {
    color: #d99a24;
}

.rasio-card.coral .rasio-card-icon {
    color: #e87979;
}

.rasio-card-value {
    margin: 0.35rem 0;
    color: #142a54;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
}

.rasio-card-value span {
    margin-left: 0.2rem;
    color: #718096;
    font-size: 1rem;
}

.rasio-card-tag {
    margin-top: 1rem;
    color: #0abfa3;
    font-weight: 700;
}

.rasio-section {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(35, 60, 100, 0.06);
}

.rasio-section h2 {
    margin: 0;
    color: #142a54;
    font-size: 1.25rem;
}

.rasio-section p,
.rasio-footer p {
    color: #718096;
    font-size: 0.85rem;
}

.rasio-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #3b6ee8;
    font-size: 0.8rem;
    font-weight: 700;
}

.rasio-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rasio-legend i {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #3b6ee8;
}

.rasio-legend i.teal {
    background: #0abfa3;
}

.rasio-chart-wrap {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.rasio-chart {
    display: block;
    width: 100%;
    min-width: 720px;
    height: auto;
}

.rasio-axis,
.rasio-xlabel {
    fill: #718096;
    font-size: 12px;
}

.rasio-axis-blue {
    fill: #3b6ee8;
}

.rasio-hover-group .rasio-tooltip-box,
.rasio-hover-group .rasio-tooltip-text,
.rasio-hover-group .rasio-tooltip-title {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rasio-hover-group:hover .rasio-tooltip-box,
.rasio-hover-group:hover .rasio-tooltip-text,
.rasio-hover-group:hover .rasio-tooltip-title {
    opacity: 1;
}

.rasio-tooltip-box {
    fill: #142a54;
}

.rasio-tooltip-title,
.rasio-tooltip-text {
    fill: #fff;
    font-size: 11px;
}

.rasio-tooltip-title {
    font-weight: 700;
}

.rasio-footer {
    padding-top: 1.25rem;
}

@media (max-width: 800px) {

    .rasio-pad-header,
    .rasio-section-head {
        flex-direction: column;
    }

    .rasio-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .rasio-metrics {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Frontend parity layer
   Keep this last so WordPress, plugins, and legacy theme rules cannot replace
   the visual tokens used by tasikmalaya-frontend.
   ========================================================================== */
html,
body {
    margin: 0;
    background: #ffffff;
    color: #1f2937;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: Georgia, "Times New Roman", serif;
}

/* Navbar: white top-level links, dark dropdown links, exactly like Navbar.tsx. */
.site-header .main-navigation {
    background-color: #155832 !important;
    color: #ffffff;
}

.site-header .main-navigation>.max-w-7xl .menu>.menu-item>a,
.site-header .main-navigation>.max-w-7xl #primary-menu>.menu-item>a,
.site-header .main-navigation>.max-w-7xl .menu>.menu-item>button,
.site-header .main-navigation>.max-w-7xl #primary-menu>.menu-item>button {
    display: block;
    padding: 1.25rem 0.75rem;
    background-color: transparent;
    color: #ffffff !important;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: background-color 200ms, color 200ms;
}

.site-header .main-navigation>.max-w-7xl .menu>.menu-item>a:hover,
.site-header .main-navigation>.max-w-7xl #primary-menu>.menu-item>a:hover,
.site-header .main-navigation>.max-w-7xl .menu>.menu-item>a:focus-visible,
.site-header .main-navigation>.max-w-7xl #primary-menu>.menu-item>a:focus-visible {
    background-color: #1f6b42 !important;
    color: #ffffff !important;
}

.site-header .main-navigation .sub-menu {
    border: 0;
    background-color: #ffffff !important;
    color: #374151;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.site-header .main-navigation .sub-menu a {
    display: block;
    padding: 0.625rem 1rem;
    background-color: #ffffff;
    color: #374151 !important;
    font-size: 0.875rem;
    line-height: 1.25rem;
    white-space: normal;
}

.site-header .main-navigation .sub-menu a:hover,
.site-header .main-navigation .sub-menu a:focus-visible {
    background-color: #eef8f1 !important;
    color: #0f3f24 !important;
}

.site-header .main-navigation .sub-menu .sub-menu {
    border-radius: 0.5rem;
}

.site-header #mobile-menu {
    background-color: #0f3f24 !important;
    color: #ffffff;
}

.site-header #mobile-menu .mobile-primary-menu,
.site-header #mobile-menu .menu {
    width: 100%;
}

.site-header #mobile-menu a,
.site-header #mobile-menu .menu>.menu-item>a,
.site-header #mobile-menu .sub-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #155832;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.site-header #mobile-menu a:hover,
.site-header #mobile-menu a:focus-visible {
    background-color: #155832 !important;
    color: #ffffff !important;
}

.site-header #mobile-menu .sub-menu {
    border: 0;
    background-color: #092d19 !important;
}

.site-header #mobile-menu-button,
.site-header #mobile-menu-button svg,
.site-header .text-white {
    color: #ffffff !important;
}

.site-header .text-hijau-100 {
    color: #d8efe0 !important;
}

.site-header .text-hijau-200 {
    color: #b3dfc2 !important;
}

/* Shared PageHeader appearance from the Next.js component. */
body:not(.front-page) .site-main>section:first-child.bg-hijau-800,
body:not(.front-page) .site-main>section:first-child[class*="bg-hijau-800"] {
    background-color: #0f3f24 !important;
    background-image: linear-gradient(to right, #0f3f24, #155832) !important;
    color: #ffffff !important;
    padding: 2.5rem 1rem;
}

body:not(.front-page) .site-main>section:first-child h1 {
    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

body:not(.front-page) .site-main>section:first-child nav,
body:not(.front-page) .site-main>section:first-child p {
    color: #b3dfc2 !important;
}

body:not(.front-page) .site-main>section:first-child nav a {
    color: #b3dfc2 !important;
}

body:not(.front-page) .site-main>section:first-child nav a:hover {
    color: #ffffff !important;
}

/* Frontend component primitives from globals.css. */
.section-title {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #0f3f24 !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

.section-divider {
    width: 3rem;
    height: 0.25rem;
    margin-bottom: 1.5rem;
    border: 0;
    border-radius: 0.25rem;
    background-color: #e6b020 !important;
}

.card {
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: box-shadow 200ms;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-primary,
a.btn-primary,
button.btn-primary,
input.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #155832;
    border-radius: 0.25rem;
    background-color: #155832 !important;
    padding: 0.625rem 1.25rem;
    color: #ffffff !important;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none !important;
    transition: background-color 200ms, border-color 200ms;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover,
input.btn-primary:hover {
    border-color: #0f3f24;
    background-color: #0f3f24 !important;
    color: #ffffff !important;
}

.btn-outline,
a.btn-outline,
button.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #155832;
    border-radius: 0.25rem;
    background: transparent;
    padding: 0.625rem 1.25rem;
    color: #155832 !important;
    font-weight: 500;
    text-decoration: none !important;
}

.btn-outline:hover,
a.btn-outline:hover,
button.btn-outline:hover {
    background-color: #eef8f1;
    color: #155832 !important;
}

/* WordPress/plugin content is normalized to the same frontend prose and tables. */
.wp-content {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.75;
}

.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4 {
    font-family: Georgia, "Times New Roman", serif;
}

.wp-content h2 {
    margin: 1.5rem 0 0.75rem;
    color: #0f3f24 !important;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
}

.wp-content h3 {
    margin: 1.25rem 0 0.5rem;
    color: #155832 !important;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
}

.wp-content p {
    margin: 0 0 1rem;
}

.wp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.wp-content a {
    color: #1f6b42 !important;
    text-decoration: underline;
}

.wp-content a:hover {
    color: #0f3f24 !important;
}

.wp-content ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.wp-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    list-style: decimal;
}

/* Modern table design website-wide (except transparency page) */
.wp-content table:not(.transparency-section-wrap table),
.wp-content .tablepress:not(.transparency-section-wrap table),
.entry-content table:not(.transparency-section-wrap table) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.wp-content table:not(.transparency-section-wrap table) thead th,
.wp-content .tablepress:not(.transparency-section-wrap table) thead th,
.entry-content table:not(.transparency-section-wrap table) thead th {
    border: 0;
    border-bottom: 2px solid #0f3f24;
    background-color: #155832 !important;
    color: #ffffff !important;
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wp-content table:not(.transparency-section-wrap table) tbody td,
.wp-content .tablepress:not(.transparency-section-wrap table) tbody td,
.entry-content table:not(.transparency-section-wrap table) tbody td {
    border: 0;
    border-bottom: 1px solid #f3f4f6;
    background-color: #ffffff;
    padding: 0.875rem 1rem;
    vertical-align: middle;
    transition: background-color 0.15s ease;
}

.wp-content table:not(.transparency-section-wrap table) tbody tr:last-child td,
.wp-content .tablepress:not(.transparency-section-wrap table) tbody tr:last-child td,
.entry-content table:not(.transparency-section-wrap table) tbody tr:last-child td {
    border-bottom: 0;
}

.wp-content table:not(.transparency-section-wrap table) tbody tr:nth-child(even) td,
.wp-content .tablepress:not(.transparency-section-wrap table) tbody tr:nth-child(even) td,
.entry-content table:not(.transparency-section-wrap table) tbody tr:nth-child(even) td {
    background-color: #f9fafb;
}

.wp-content table:not(.transparency-section-wrap table) tbody tr:hover td,
.wp-content .tablepress:not(.transparency-section-wrap table) tbody tr:hover td,
.entry-content table:not(.transparency-section-wrap table) tbody tr:hover td {
    background-color: #f0fdf4 !important;
}

/* Agenda keeps the exact five-column desktop split and square seven-day grid. */
.agenda-app [data-agenda-weekdays],
.agenda-app [data-agenda-days] {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    width: 100%;
}

.agenda-app [data-agenda-days]>div {
    min-width: 0;
    aspect-ratio: 1 / 1;
}

.agenda-app [data-agenda-days] button {
    width: 2rem;
    height: 2rem;
    min-width: 0;
    padding: 0;
}

@media (min-width: 768px) {
    body:not(.front-page) .site-main>section:first-child h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .agenda-app .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .agenda-app .lg\:col-span-2 {
        grid-column: span 2 / span 2 !important;
    }

    .agenda-app .lg\:col-span-3 {
        grid-column: span 3 / span 3 !important;
    }
}

/* Transparency layout: mirrors TransparansiLayout.tsx. */
.transparency-page {
    background: #ffffff;
}

.transparency-layout {
    align-items: flex-start;
}

.transparency-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #b3dfc2 transparent;
}

.transparency-sidebar input[type="search"] {
    min-height: 2.875rem;
    padding-left: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.8rem center;
}

.transparency-nav-link {
    border-right: 3px solid transparent;
    color: #4b5563 !important;
    text-decoration: none !important;
}

.transparency-nav-link:hover,
.transparency-nav-link:focus-visible {
    background: #f9fafb;
    color: #1f2937 !important;
}

.transparency-nav-link.is-active {
    border-right-color: #1f6b42;
    background: #eef8f1;
    color: #0f3f24 !important;
    font-weight: 600;
}

.transparency-nav-link>span:first-child {
    color: #d1d5db;
}

.transparency-nav-link.is-active>span:first-child {
    color: #1f6b42;
}

.transparency-main,
.transparency-main>section,
.transparency-section-wrap {
    min-width: 0;
}

.transparency-main>section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}

.transparency-section-wrap {
    display: flow-root;
    width: 100%;
    max-width: 100%;
    overflow: clip;
    clear: both;
    padding: 0.625rem 0.25rem 0.875rem;
    border-radius: 1.125rem;
    color: #374151;
}

.transparency-section-wrap table,
.transparency-section-wrap .next-tablepress-wrapper,
.transparency-section-wrap .dataTables_wrapper,
.transparency-section-wrap .dt-container,
.transparency-section-wrap .tablepress-datatables-wrapper {
    position: static !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
}

.transparency-section-wrap .dataTables_wrapper,
.transparency-section-wrap .dt-container,
.transparency-section-wrap .tablepress-datatables-wrapper {
    display: block !important;
    overflow-x: auto;
}

.transparency-section-wrap>p:first-child:not(:last-child) {
    margin-bottom: 1rem;
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.125rem;
}

.transparency-section-wrap>a.wpdm-btn,
.transparency-section-wrap>p>a.wpdm-btn:only-child,
.transparency-section-wrap .next-tablepress-wrapper+a.wpdm-btn,
.transparency-section-wrap>a[href*="wp-admin"],
.transparency-section-wrap>p>a[href*="wp-admin"]:only-child {
    display: none !important;
}

.transparency-section-wrap td a.wpdm-btn,
.transparency-section-wrap th a.wpdm-btn {
    display: inline-flex !important;
}

.transparency-section-wrap .next-tablepress-controls,
.transparency-section-wrap .next-tablepress-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 1.25rem !important;
    padding: 0.9rem 1rem;
    border: 1px solid #eef2f0;
    border-radius: 1rem;
    background: #ffffff;
    color: #4b5563;
    box-shadow: none;
}

.transparency-section-wrap .next-tablepress-bottom {
    margin: 0.75rem 0 0 !important;
}

.transparency-section-wrap .next-tablepress-length,
.transparency-section-wrap .next-tablepress-search {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.transparency-section-wrap .next-tablepress-length select,
.transparency-section-wrap .next-tablepress-search input {
    min-height: 2.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    color: #374151;
    outline: 0;
}

.transparency-section-wrap .next-tablepress-search input {
    width: min(27.5rem, 72vw);
}

.transparency-section-wrap .next-tablepress-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.08);
}

.transparency-section-wrap table.tp-styled,
.transparency-section-wrap table.tablepress {
    width: 100% !important;
    min-width: 680px;
    table-layout: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    font-size: 0.84375rem;
}

.transparency-section-wrap table.tp-styled thead th,
.transparency-section-wrap table.tablepress thead th {
    border: 0 !important;
    background: #155832 !important;
    padding: 0.95rem 1rem !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.transparency-section-wrap table.tp-styled thead th:first-child,
.transparency-section-wrap table.tablepress thead th:first-child {
    border-top-left-radius: 1rem;
}

.transparency-section-wrap table.tp-styled thead th:last-child,
.transparency-section-wrap table.tablepress thead th:last-child {
    border-top-right-radius: 1rem;
}

.transparency-section-wrap table.tp-styled tbody td,
.transparency-section-wrap table.tablepress tbody td {
    min-width: 0;
    border: 0 !important;
    border-bottom: 1px solid #edf0f2 !important;
    background: #ffffff;
    padding: 0.9rem 1rem !important;
    color: #374151;
    vertical-align: middle;
}

.transparency-section-wrap table.tp-styled tbody tr:nth-child(even) td,
.transparency-section-wrap table.tablepress tbody tr:nth-child(even) td {
    background: #f8faf9 !important;
}

.transparency-section-wrap table.tp-styled tbody tr:hover td,
.transparency-section-wrap table.tablepress tbody tr:hover td {
    background: #eef8f1 !important;
}

.transparency-section-wrap table.tp-styled a,
.transparency-section-wrap table.tablepress a,
.transparency-section-wrap a.wpdm-btn {
    display: inline-flex !important;
    min-height: 2.1rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.5rem;
    background: #155832 !important;
    padding: 0.45rem 0.9rem;
    color: #ffffff !important;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.transparency-section-wrap table a::before,
.transparency-section-wrap a.wpdm-btn::before {
    content: "";
    width: 0.8125rem;
    height: 0.8125rem;
    flex: 0 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.transparency-section-wrap table a:hover,
.transparency-section-wrap a.wpdm-btn:hover {
    background: #0f3f24 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.wpdm-native-download {
    display: grid;
}

.wpdm-native-download a,
.wpdm-native-download button,
.wpdm-native-download input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    border-radius: 0.75rem !important;
    background-color: #155832 !important;
    color: #ffffff !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
    transition: background-color 0.2s ease !important;
    cursor: pointer !important;
}

.wpdm-native-download a:hover,
.wpdm-native-download button:hover,
.wpdm-native-download input[type="submit"]:hover {
    background-color: #0f3f24 !important;
    color: #ffffff !important;
}

.wpdm-native-download a i,
.wpdm-native-download a svg,
.wpdm-native-download button i,
.wpdm-native-download button svg {
    color: inherit !important;
    fill: currentColor !important;
}

@media (max-width: 1023px) {
    .transparency-layout {
        display: block;
    }
}

@media (max-width: 640px) {

    .transparency-section-wrap .next-tablepress-controls,
    .transparency-section-wrap .next-tablepress-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .transparency-section-wrap .next-tablepress-search,
    .transparency-section-wrap .next-tablepress-search input,
    .transparency-section-wrap .next-tablepress-length {
        width: 100%;
    }
}

/* ==========================================================================
   Iklan Layanan Masyarakat (ILM) slider
   ========================================================================== */

.ilm-slider {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 48px;
}

.ilm-slider-viewport {
    overflow: hidden;
    border-radius: 1rem;
}

.ilm-slider-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ilm-slide {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
}

@media (min-width: 640px) {
    .ilm-slide {
        flex-basis: calc(50% - 0.625rem);
    }
}

@media (min-width: 1024px) {
    .ilm-slide {
        flex-basis: calc(25% - 0.9375rem);
    }
}

.ilm-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid #d8efe0;
    background: #ffffff;
    color: #155832;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 31, 18, 0.08);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    z-index: 2;
}

.ilm-slider-nav:hover:not(:disabled) {
    background: #155832;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(21, 88, 50, 0.28);
}

.ilm-slider-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ilm-slider-prev {
    left: 0;
}

.ilm-slider-next {
    right: 0;
}

.ilm-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.ilm-slider-dots button {
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    border: 0;
    padding: 0;
    background: #b3dfc2;
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.ilm-slider-dots button.active {
    width: 26px;
    background: #155832;
}

@media (max-width: 639px) {
    .ilm-slider {
        padding: 0 38px;
    }

    .ilm-slider-nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

/* ILM image-only detail modal — shows just the flyer, large and proportional */
.ilm-modal-card {
    position: relative;
    display: inline-block;
    max-width: min(92vw, 1100px);
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(6, 31, 18, 0.35);
    animation: ilmFadeIn 0.25s ease-out;
}

.ilm-modal-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    object-fit: contain;
}

/* Struktur Organisasi inline PDF iframe */
[data-struktur-pdf] iframe {
    display: block;
}

/* ==========================================================================
   Hari Besar Nasional — badge, confetti & greeting modal
   ========================================================================== */

/* Festive floating badge anchored to the bottom-right corner */
.holiday-badge {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 14px;
    border: 0;
    border-radius: 9999px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(6, 31, 18, 0.35);
    animation: holidayBadgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both, holidayBadgeFloat 3.2s ease-in-out 0.5s infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: min(88vw, 420px);
    text-align: left;
}

.holiday-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 40px rgba(6, 31, 18, 0.45);
}

.holiday-badge:focus-visible {
    outline: 3px solid rgba(245, 200, 66, 0.7);
    outline-offset: 3px;
}

.holiday-badge__emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.holiday-badge__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Colour themes */
.holiday-badge--merah {
    background: linear-gradient(135deg, #c62828, #e53935);
}

.holiday-badge--hijau {
    background: linear-gradient(135deg, #0f3f24, #1f6b42);
}

.holiday-badge--emas {
    background: linear-gradient(135deg, #c49200, #e6b020);
}

.holiday-badge--biru {
    background: linear-gradient(135deg, #1a3a8f, #2563eb);
}

.holiday-badge--ungu {
    background: linear-gradient(135deg, #4a148c, #7b1fa2);
}

/* Badge entrance + gentle float */
@keyframes holidayBadgePop {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes holidayBadgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* Confetti pieces spawned by the modal */
.holiday-confetti {
    position: absolute;
    top: -12px;
    width: 9px;
    height: 15px;
    border-radius: 2px;
    opacity: 0;
    animation: holidayConfettiFall 2.4s ease-in forwards;
    pointer-events: none;
}

@keyframes holidayConfettiFall {
    0% {
        opacity: 1;
        transform: translate3d(0, -10px, 0) rotate(0deg);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--holiday-drift, 60px), 76vh, 0) rotate(660deg);
    }
}

/* Greeting modal overlay */
.holiday-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.holiday-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.holiday-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 31, 18, 0.65);
    backdrop-filter: blur(3px);
}

.holiday-modal__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(6, 31, 18, 0.45);
    padding: 38px 30px 30px;
    text-align: center;
    transform: translateY(18px) scale(0.94);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.holiday-modal.is-open .holiday-modal__card {
    transform: translateY(0) scale(1);
}

.holiday-modal__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.holiday-modal__card--merah::before {
    background: linear-gradient(90deg, #c62828, #e53935, #c62828);
}

.holiday-modal__card--hijau::before {
    background: linear-gradient(90deg, #0f3f24, #2f8550, #0f3f24);
}

.holiday-modal__card--emas::before {
    background: linear-gradient(90deg, #c49200, #f5c842, #c49200);
}

.holiday-modal__card--biru::before {
    background: linear-gradient(90deg, #1a3a8f, #3b82f6, #1a3a8f);
}

.holiday-modal__card--ungu::before {
    background: linear-gradient(90deg, #4a148c, #8e24aa, #4a148c);
}

.holiday-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.holiday-modal__close:hover {
    background: #e5e7eb;
    color: #111827;
}

.holiday-modal__emoji {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 10px;
    animation: holidayEmojiBounce 1.4s ease-in-out infinite;
}

@keyframes holidayEmojiBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.holiday-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
}

.holiday-modal__title {
    margin: 0 0 10px;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.holiday-modal__greeting {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #155832;
}

.holiday-modal__message {
    margin: 0 0 18px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6b7280;
}

.holiday-modal__footer {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9ca3af;
}

/* Small screens: badge stays compact */
@media (max-width: 639px) {
    .holiday-badge {
        right: 14px;
        bottom: 16px;
        padding: 10px 16px 10px 12px;
        font-size: 0.8rem;
    }

    .holiday-modal__card {
        padding: 32px 22px 24px;
    }
}