/* Slider beranda: slide nilai IKM & IIPP (resources/views/sites/partials/hero-indeks-slide.blade.php) */
/* ========== HERO SLIDE: NILAI IKM & IIPP (slide standar memakai style.css) ========== */
.hero-indeks { --hi-ikm: #0066cc; --hi-iipp: #E5A100; --hi-ikm-soft: #5aa9ff; --hi-gold: var(--accent-gold, #FFD700); }
.hero-indeks .hero-text-wrapper p { margin-bottom: 22px; }

/* Panel nilai (posisi gambar) */
.hero-indeks .hi-panel {
    min-height: 380px; display: flex; flex-direction: column; gap: 14px;
    padding: 24px 24px 18px; color: var(--text-dark, #1a1a2e); text-align: left;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(0, 102, 204, .07) 0%, transparent 60%),
        var(--white, #fff);
    border-radius: var(--radius-lg, 20px); box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    position: relative; overflow: hidden;
}
.hero-indeks .hi-panel::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
    /* background: linear-gradient(90deg, var(--hi-ikm), var(--hi-gold)); */
}
.hi-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hi-eyebrow { display: flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-gray, #6c757d); }
.hi-live { width: 7px; height: 7px; border-radius: 50%; background: #198754; box-shadow: 0 0 0 0 rgba(25, 135, 84, .45); animation: hi-pulse 2s ease-out infinite; }
@keyframes hi-pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(25, 135, 84, 0); } }
.hi-period { display: block; margin-top: 2px; font-size: 1.15rem; font-weight: 800; color: var(--primary-color, #003366); }
.hi-period span { color: var(--hi-gold); margin: 0 2px; }
.hi-resp {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600;
    background: var(--accent-color, #e8f4fc); color: var(--primary-color, #003366);
}

.hi-gauges { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; align-content: center; }
.hi-gauges.is-single { grid-template-columns: minmax(0, 1fr); }
.hi-gauge { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hi-gauge + .hi-gauge { border-left: 1px solid #edf1f6; }

/* Dial setengah lingkaran dengan zona mutu D/C/B/A */
.hi-dial { position: relative; width: min(230px, 100%); }
.hi-dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.hi-dial-track, .hi-dial-bar { fill: none; stroke-width: 14; }
.hi-dial-track { stroke: #e9eff6; }
.hi-dial-bar {
    stroke-dasharray: 100; stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1) .25s;
}
.hi-gauge--ikm .hi-dial-bar { stroke: var(--hi-ikm); }
.hi-gauge--iipp .hi-dial-bar { stroke: var(--hi-iipp); }
.hi-dial-notch { stroke: #fff; stroke-width: 3; }
.hi-dial-zone { font-size: 12px; font-weight: 700; fill: #b4bfcc; font-family: inherit; }
.hi-dial-zone.is-current { fill: var(--primary-color, #003366); font-size: 14px; }
.hi-dial-needle {
    transform-box: view-box; transform-origin: 100px 100px; transform: rotate(0deg);
    transition: transform 1.4s cubic-bezier(.2, .8, .2, 1) .25s;
}
.hi-dial-needle circle { fill: #fff; stroke-width: 4; filter: drop-shadow(0 2px 3px rgba(0, 34, 68, .25)); }
.hi-gauge--ikm .hi-dial-needle circle { stroke: var(--hi-ikm); }
.hi-gauge--iipp .hi-dial-needle circle { stroke: var(--hi-iipp); }
.carousel-item.active .hi-dial-bar { stroke-dashoffset: var(--off); }
.carousel-item.active .hi-dial-needle { transform: rotate(var(--rot)); }

.hi-dial-center { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.hi-dial-center .hi-abbr { font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--text-gray, #6c757d); }
.hi-dial-center strong { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 800; color: var(--primary-color, #003366); font-variant-numeric: tabular-nums; margin-top: 2px; }
.hi-dial-center .hi-scale { font-size: .66rem; color: var(--text-light, #94a3b8); margin-top: 1px; }

.hi-gauge-meta { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 4px; }
.hi-name { font-size: .78rem; font-weight: 600; color: var(--text-dark, #1a1a2e); line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; }
.hi-mutu { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 3px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.hi-mutu b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: .7rem; }
.hi-mutu--a { background: #e7f6ee; color: #146c43; } .hi-mutu--a b { background: #198754; }
.hi-mutu--b { background: #e7f0fb; color: #0a4fa3; } .hi-mutu--b b { background: #0d6efd; }
.hi-mutu--c { background: #fff5e0; color: #7a5000; } .hi-mutu--c b { background: #c98f00; }
.hi-mutu--d { background: #fdecec; color: #a3222d; } .hi-mutu--d b { background: #dc3545; }
.hi-next { font-size: .72rem; color: var(--text-gray, #6c757d); }
.hi-next b { color: var(--primary-color, #003366); }
.hi-next.is-top { display: inline-flex; align-items: center; gap: 4px; color: #146c43; font-weight: 600; }
.hi-delta { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 600; color: var(--text-gray, #6c757d); }
.hi-delta i { font-size: .7rem; }
.hi-delta.is-up { color: #146c43; }
.hi-delta.is-down { color: #b02a37; }

.hi-panel-foot {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
    padding-top: 12px; border-top: 1px dashed #e3e8ef; font-size: .68rem; color: var(--text-light, #94a3b8);
}
.hi-panel-foot span { font-weight: 600; color: var(--text-gray, #6c757d); }

/* Linimasa triwulan (sisi teks) */
.hi-year { margin-bottom: 30px; max-width: 520px; }
.hi-year:last-child { margin-bottom: 0; }
.hi-year-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: rgba(255, 255, 255, .75); }
.hi-year-legend { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.hi-year-legend .hi-dot--iipp { margin-left: 8px; }
.hi-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hi-dot--ikm { background: var(--hi-ikm-soft); }
.hi-dot--iipp { background: var(--hi-gold); }

.hi-tl { --node: 16px; list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hi-tl::before, .hi-tl::after {
    content: ""; position: absolute; top: calc(var(--node) / 2 - 1.5px); height: 3px; border-radius: 3px;
    left: 12.5%;
}
.hi-tl::before { right: 12.5%; background: rgba(255, 255, 255, .15); }
.hi-tl::after { width: calc(75% * var(--progress)); background: linear-gradient(90deg, rgba(255, 215, 0, .45), var(--hi-gold)); }
.hi-tl-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.hi-tl-node {
    width: var(--node); height: var(--node); border-radius: 50%; margin-bottom: 6px;
    background: #fff; border: 3px solid var(--primary-dark, #002244); box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
}
.hi-tl-item.is-current .hi-tl-node { background: var(--hi-gold); box-shadow: 0 0 0 2px var(--hi-gold), 0 0 0 7px rgba(255, 215, 0, .22); }
.hi-tl-item.is-future .hi-tl-node, .hi-tl-item.is-missing .hi-tl-node { background: var(--primary-dark, #002244); box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
.hi-tl-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.hi-tl-item.is-current .hi-tl-label { color: var(--hi-gold); }
.hi-tl-val { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hi-tl-item:not(.is-current) .hi-tl-val { color: rgba(255, 255, 255, .85); font-weight: 600; }
.hi-tl-soon { font-size: .76rem; color: rgba(255, 255, 255, .45); font-style: italic; }

@media (max-width: 991.98px) {
    .hero-indeks .hi-panel { min-height: 0; padding: 22px 16px 16px; }
    .hi-year { margin-left: auto; margin-right: auto; }
}
@media (max-width: 575.98px) {
    .hi-panel-head { flex-direction: column; }
    .hi-gauge + .hi-gauge { border-left: 0; }
    .hi-name { font-size: .7rem; }
    .hi-dial-center strong { font-size: 1.4rem; }
    .hi-tl-val { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hi-dial-bar, .hi-dial-needle { transition: none; }
    .hi-live { animation: none; }
}
