
/* =========================================================
   SECTIONS
========================================================= */

.content-section {
    padding: 100px 0;
}

.section-alt {
	background-color: var(--bs-tertiary-bg);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 55px;
}

.section-heading h2 {
    margin-bottom: 16px;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;

    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 0;

    color: var(--bs-secondary-color);
    line-height: 1.8;
}


/* =========================================================
   METHOD FLOW
========================================================= */

.method-flow {
    display: flex;
    align-items: stretch;

    gap: 15px;
    width: 100%;
}

.method-step {
    position: relative;

    flex: 1 1 0;
    min-width: 0;

    padding: 25px;

    border: 1px solid var(--bs-border-color);
    border-radius: 18px;

    background: var(--bs-tertiary-bg);
}

.method-step > span {
    display: block;

    color: var(--bs-secondary-color);

    font-size: 3rem;
    font-weight: 600;
}

.method-step i {
    display: block;

    margin-bottom: 15px;

    font-size: 3rem;
    color: var(--brand);
}

.method-step h3 {
    margin-bottom: 8px;

    font-size: 1rem;
    font-weight: 700;
}

.method-step p {
    margin: 0;

    color: var(--bs-secondary-color);

    font-size: 0.85rem;
    line-height: 1.6;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    color: var(--bs-secondary-color);
}

@keyframes slideRight {
  0% {
    transform: translateX(-8px);
    opacity: 0.4;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
  100% {
    transform: translateX(-8px);
    opacity: 0.4;
  }
}

.arrow-right-slide {
  display: inline-block;
  animation: slideRight 1.4s ease-in-out infinite;
}

/* =========================================================
   DIMENSION CARD
========================================================= */

.dimension-card {
    position: relative;

    display: flex;
    flex-direction: column;

    height: 100%;

    min-width: 0;

    padding: 32px;

    border: 1px solid var(--bs-border-color);
    border-radius: 22px;

    background-color: var(--bs-body-bg);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.dimension-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background-color: var(--brand);

    opacity: 0;

    transition: opacity 0.25s ease;
}


.dimension-card:hover {
    transform: translateY(-4px);

    border-color: var(--bs-border-color-translucent);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.07);
}


.dimension-card:hover::before {
    opacity: 1;
}

.dimension-number {
    position: absolute;

    top: 25px;
    right: 25px;

    color: var(--bs-secondary-color);

    font-size: 0.75rem;
    font-weight: 700;
}

.dimension-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 14px;

    /*background: var(--bs-tertiary-bg);*/
    color: var(--brand);
	opacity: 0.15;

    font-size: 10rem;
	position: absolute;
	bottom: 40px;
    right: 70px;
}

.dimension-card h3 {
    margin-bottom: 12px;

    font-size: 1.15rem;
    font-weight: 700;
}

.dimension-card p {
    margin-bottom: 25px;

    color: var(--bs-secondary-color);

    font-size: 0.9rem;
    line-height: 1.7;
}

/* =========================================================
   DIMENSION LINK
   ========================================================= */

.dimension-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    width: fit-content;

    margin-top: auto;

    color: var(--brand);

    font-size: 0.82rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        gap 0.2s ease,
        color 0.2s ease;
}


.dimension-link:hover {
    gap: 13px;

    color: var(--bs-body-color);
}


.dimension-link i {
    font-size: 0.95rem;

    transition:
        transform 0.2s ease;
}


.dimension-link:hover i {
    transform: translateX(2px);
}


/* =========================================================
   ACCORDION
========================================================= */

.methodology-accordion {
    border-top: 1px solid var(--bs-border-color);
}

.methodology-accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid var(--bs-border-color);

    background: transparent;
}

.methodology-accordion .accordion-button {
    padding: 25px 0;

    background: transparent;

    color: var(--bs-body-color);

    box-shadow: none;

    font-size: 1.1rem;
    font-weight: 600;
}

.methodology-accordion .accordion-button::after {
    filter: none;
}

.accordion-number {
    width: 45px;

    color: var(--bs-secondary-color);

    font-size: 0.8rem;
}

.methodology-accordion .accordion-body {
    padding: 0 0 30px 45px;
}

.indicator-row {
    display: grid;
    grid-template-columns: 40px 1fr;

    gap: 15px;

    padding: 20px 0;

    border-bottom: 1px dashed var(--bs-border-color);
}

.indicator-row > span {
    color: var(--brand);

    font-size: 0.8rem;
    font-weight: 700;
}

.indicator-row strong {
    font-size: 0.95rem;
}

.indicator-row p {
    margin: 7px 0 0;

    color: var(--bs-secondary-color);

    font-size: 0.85rem;
}


/* =========================================================
   CALCULATION TIMELINE
========================================================= */

.calculation-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.timeline-item {
    position: relative;

    padding: 25px;

    border-top: 2px solid var(--bs-border-color);
}

.timeline-item::before {
    content: "";

    position: absolute;

    top: -7px;
    left: 25px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: var(--brand);
}

.timeline-item > span {
    display: block;

    margin-bottom: 30px;

    color: var(--bs-secondary-color);

    font-size: 0.75rem;
    font-weight: 700;
}

.timeline-item h3 {
    font-size: 1rem;
    font-weight: 700;
}

.timeline-item p {
    margin: 0;

    color: var(--bs-secondary-color);

    font-size: 0.85rem;
    line-height: 1.7;
}


/* =========================================================
   SOURCE CARD
========================================================= */

.source-card {
    height: 100%;

    padding: 30px;

    border: 1px solid var(--bs-border-color);
    border-radius: 18px;

    background: var(--bs-body-bg);
}

.source-card > i {
    display: block;

    margin-bottom: 25px;

    color: var(--brand);

    font-size: 2rem;
}

.source-card h3 {
    margin-bottom: 12px;

    font-size: 1.1rem;
}

.source-card p {
    margin: 0;

    color: var(--bs-secondary-color);

    font-size: 0.9rem;
    line-height: 1.7;
}



/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 991.98px) {

    /* -----------------------------------------------------
       NAVBAR
    ----------------------------------------------------- */

    .navbar-collapse {
        padding: 20px 0;
    }


    /* -----------------------------------------------------
       METHOD FLOW
    ----------------------------------------------------- */

    .method-flow {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .method-step {
        width: 100%;
    }

    .flow-arrow {
        display: none;
    }


    /* -----------------------------------------------------
       CALCULATION TIMELINE
    ----------------------------------------------------- */

    .calculation-timeline {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        border-top: 0;
        border-left: 2px solid var(--bs-border-color);

        padding-left: 30px;
    }

    .timeline-item::before {
        top: 25px;
        left: -7px;
    }

    .timeline-item > span {
        margin-bottom: 10px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 575.98px) {

    /* -----------------------------------------------------
       GENERAL SECTION
    ----------------------------------------------------- */

    .content-section {
        padding: 65px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
        line-height: 1.15;

        letter-spacing: -0.025em;
    }

    .section-heading p {
        font-size: 0.95rem;
        line-height: 1.7;
    }


    /* -----------------------------------------------------
       METHOD FLOW
       Mobile menjadi vertical timeline
    ----------------------------------------------------- */

    .method-flow {
        position: relative;

        display: flex;
        flex-direction: column;

        gap: 0;

        padding-left: 18px;
    }


    /* Vertical connector */

    .method-flow::before {
        content: "";

        position: absolute;

        top: 20px;
        bottom: 20px;
        left: 5px;

        width: 2px;

        background: var(--bs-border-color);
    }


    /* Method card */

    .method-step {
        position: relative;

        width: 100%;
        min-width: 0;

        padding: 22px 20px;
        margin-bottom: 16px;

        border-radius: 16px;

        background: var(--bs-body-bg);
    }


    /* Number marker */

    .method-step > span {
        position: absolute;

        top: 20px;
        left: -28px;

        width: 26px;
        height: 26px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0;

        border: 2px solid var(--bs-body-bg);
        border-radius: 50%;

        background: var(--brand);
        color: #fff;

        font-size: 0.65rem;
        font-weight: 700;

        z-index: 2;
    }


    .method-step i {
        margin-bottom: 12px;

        font-size: 1.4rem;
    }

    .method-step h3 {
        margin-bottom: 7px;

        font-size: 1rem;
    }

    .method-step p {
        font-size: 0.84rem;
        line-height: 1.6;
    }


    /* No arrows on mobile */

    .flow-arrow {
        display: none;
    }


    /* Final method item */

    .method-step:last-child {
        margin-bottom: 0;
    }





    /* -----------------------------------------------------
       DIMENSION CARD
    ----------------------------------------------------- */

    .dimension-card {
        padding: 25px;
    }

    .dimension-number {
        top: 20px;
        right: 20px;
    }

    .dimension-icon {
        width: 48px;
        height: 48px;

        margin-bottom: 20px;
    }


    /* -----------------------------------------------------
       CALCULATION TIMELINE
    ----------------------------------------------------- */

    .timeline-item {
        padding: 20px 20px 20px 30px;
    }


    /* -----------------------------------------------------
       SOURCE CARD
    ----------------------------------------------------- */

    .source-card {
        padding: 25px;
    }


}



/* =========================================================
   DIMENSION CARD — static (tanpa link)
========================================================= */

.dimension-card--static {
    /* tinggi natural, tidak dipaksa stretch demi tombol */
    justify-content: flex-start;
}

.dimension-card--static p {
    margin-bottom: 0;
}


/* =========================================================
   METODOLOGI TABS
========================================================= */

.metodologi-tabs .nav-link {
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.metodologi-tabs .nav-link:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.metodologi-tabs .nav-link.active {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="dark"] .metodologi-tabs .nav-link {
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .metodologi-tabs .nav-link.active {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.metodologi-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}


/* =========================================================
   ACCORDION — badge & title
========================================================= */

.accordion-dim-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.6rem;
    margin-right: 0.75rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.accordion-dim-title {
    font-weight: 700;
}

.methodology-accordion .accordion-button {
    gap: 0.25rem;
}

.methodology-accordion .accordion-button:not(.collapsed) {
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    box-shadow: none;
}

.methodology-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

[data-bs-theme="dark"] .methodology-accordion .accordion-item {
    background: transparent;
}

[data-bs-theme="dark"] .methodology-accordion .accordion-button {
    background: transparent;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .methodology-accordion .accordion-button:not(.collapsed) {
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}


/* =========================================================
   INDICATOR ROW — sumber data
========================================================= */

.indicator-row {
    grid-template-columns: 72px 1fr;
    align-items: start;
}

.indicator-sumber {
    margin: 6px 0 0;
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    line-height: 1.5;
}

.indicator-sumber i {
    margin-right: 4px;
    color: var(--brand);
    opacity: 0.85;
}

.indicator-row:last-child {
    border-bottom: 0;
}


/* =========================================================
   CTA (jika belum ada di global)
========================================================= */

.cta-section {
    padding: 4rem 0;
}

.cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-tertiary-bg);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


/* =========================================================
   INDIKATOR PANEL (container kartu)
========================================================= */

.indikator-panel {
    border: 1px solid var(--bs-border-color);
    border-radius: 1.25rem;
    background: var(--bs-body-bg);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

[data-bs-theme="dark"] .indikator-panel {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.indikator-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.indikator-panel-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

@media (min-width: 768px) {
    .indikator-panel-body {
        padding: 1.75rem 2rem 2rem;
    }
}

/* Accordion di dalam panel: lebih rapat & rapi */
.indikator-panel .methodology-accordion {
    border-top: 0;
}

.indikator-panel .methodology-accordion .accordion-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--bs-body-bg);
}

.indikator-panel .methodology-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.indikator-panel .methodology-accordion .accordion-button {
    padding: 1rem 1.15rem;
    font-size: 1rem;
    background: var(--bs-body-bg);
}

.indikator-panel .methodology-accordion .accordion-button:not(.collapsed) {
    background: var(--bs-tertiary-bg);
}

.indikator-panel .methodology-accordion .accordion-body {
    padding: 0 1.15rem 1.15rem;
    background: var(--bs-body-bg);
}

.indikator-panel .indicator-row {
    grid-template-columns: minmax(64px, 80px) 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bs-border-color);
}

/* last-of-type: tetap berlaku meski ada .dimensi-calculation setelahnya */
.indikator-panel .indicator-row:last-of-type {
    border-bottom: 0;
}

.indikator-panel .indicator-row > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.6rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.4rem;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.indikator-panel .indicator-row strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.indikator-panel .indicator-sumber {
    margin-top: 4px;
}

/* Tabs di header panel */
.indikator-panel-header .metodologi-tabs {
    justify-content: center;
    width: 100%;
}

@media (max-width: 575.98px) {
    .indikator-panel-header {
        padding: 1rem;
    }

    .indikator-panel-body {
        padding: 1rem 1rem 1.25rem;
    }

    .indikator-panel .methodology-accordion .accordion-button {
        padding: 0.9rem 0.85rem;
        font-size: 0.92rem;
    }

    .indikator-panel .indicator-row {
        grid-template-columns: 56px 1fr;
        gap: 10px;
    }
}


/* =========================================================
   ACCORDION — judul + deskripsi dimensi
========================================================= */

.accordion-dim-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
    padding-right: 0.5rem;
}

.accordion-dim-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bs-body-color);
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.accordion-dim-desc {
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--bs-secondary-color);
}

/* Biar teks deskripsi tidak terlalu panjang di mobile */
@media (max-width: 575.98px) {
    .accordion-dim-title {
        font-size: 1.08rem;
    }

    .accordion-dim-desc {
        font-size: 0.75rem;
    }
}

/* Tombol accordion: align atas karena ada 2 baris teks */
.indikator-panel .methodology-accordion .accordion-button {
    align-items: flex-start;
}

.indikator-panel .methodology-accordion .accordion-button::after {
    margin-top: 0.35rem;
}


/* =========================================================
   BADGE METODOLOGI LAMA — light & dark mode
========================================================= */

.badge-metodologi-lama {
    font-weight: 600;
    font-size: 0.85rem;
    color: #92400e;
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
}

[data-bs-theme="dark"] .badge-metodologi-lama {
    color: #fde68a;
    background-color: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.4);
}


/* =========================================================
   INDICATOR META — min/max + sumber
========================================================= */

.indicator-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    margin-top: 0.35rem;
}

.indicator-minmax {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    line-height: 1.4;
}

.indicator-minmax i {
    color: var(--brand);
    opacity: 0.85;
    margin-right: 2px;
}

.indicator-minmax strong {
    font-weight: 600;
    color: var(--bs-body-color);
    font-size: 0.8rem;
}

.indicator-minmax-sep {
    opacity: 0.5;
    margin: 0 0.1rem;
}

.indikator-panel .indicator-sumber {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    line-height: 1.4;
}

.indikator-panel .indicator-sumber i {
    color: var(--brand);
    opacity: 0.85;
}


/* =========================================================
   INDICATOR LIST HEADING
========================================================= */

.indicator-list-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bs-body-color);
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem;
    padding-top: 0.15rem;
}


/* =========================================================
   DIMENSI CALCULATION — placeholder rumus
========================================================= */

.dimensi-calculation {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--bs-border-color);
}

.dimensi-calculation-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.dimensi-calculation-title i {
    color: var(--brand);
    font-size: 1.05rem;
}

.formula-placeholder {
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.75rem;
    background: var(--bs-tertiary-bg);
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
}

.formula-content {
    width: 100%;
    text-align: center;
    overflow-x: auto;
}

.formula-content .formula-note {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: var(--bs-secondary-color);
    text-align: left;
}

.formula-content .formula-note + .katex-display,
.formula-content .katex-display + .formula-note {
    margin-top: 0.85rem;
}

.formula-content .katex-display {
    margin: 0.6rem 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.formula-content .katex {
    font-size: 1.15em;
}

.formula-placeholder-inner {
    text-align: center;
    color: var(--bs-secondary-color);
    font-size: 0.88rem;
    line-height: 1.5;
}

.formula-placeholder-inner i {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0.45rem;
    opacity: 0.45;
}

.formula-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

[data-bs-theme="dark"] .formula-placeholder {
    background: var(--bs-tertiary-bg);
}

/* =========================================================
   INDICATOR DETAIL + META MODAL + DOWNLOAD OPTIONS
========================================================= */

.indicator-row-main { min-width: 0; }

.indicator-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.indicator-row-head strong {
    flex: 1 1 auto;
    min-width: 0;
}

.btn-indicator-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--brand, #0d6efd);
    transition: all 0.2s ease;
}

.btn-indicator-detail:hover {
    background: color-mix(in srgb, var(--brand, #0d6efd) 10%, var(--bs-body-bg));
    border-color: var(--brand, #0d6efd);
    color: var(--brand, #0d6efd);
}

.btn-indicator-detail i { font-size: 0.9rem; }

.indicator-meta-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
}

.meta-modal-section { margin-bottom: 1.25rem; }
.meta-modal-section:last-child { margin-bottom: 0; }

.meta-modal-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bs-body-color);
}
.meta-modal-title i { color: var(--brand, #0d6efd); }

.meta-modal-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--bs-secondary-color);
    white-space: pre-line;
    word-break: break-word;
}

.meta-rumus-box {
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    border: 1px dashed var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    font-size: 0.85rem;
    color: var(--bs-body-color);
    word-break: break-word;
}

.meta-rumus-fraction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}
.meta-rumus-fraction .num {
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--bs-border-color);
    font-weight: 600;
    color: var(--brand, #0d6efd);
    font-size: 0.82rem;
}
.meta-rumus-fraction .den {
    padding-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--bs-secondary-color);
}
.meta-rumus-fraction .mul { font-weight: 700; font-size: 1.05rem; }

.meta-callout {
    margin-top: 0.65rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.65rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--bs-secondary-color);
}
.meta-callout strong {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: var(--bs-body-color);
}

.meta-attr-table td {
    padding: 0.4rem 0;
    border: 0;
    font-size: 0.85rem;
    vertical-align: top;
}
.meta-attr-table td:first-child {
    width: 38%;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    padding-right: 0.75rem;
}
.meta-attr-table td:last-child {
    font-weight: 600;
    color: var(--bs-body-color);
    word-break: break-word;
}

.download-option-card {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.download-option-card:has(input:checked) {
    border-color: var(--brand, #0d6efd) !important;
    background: color-mix(in srgb, var(--brand, #0d6efd) 6%, var(--bs-body-bg));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand, #0d6efd) 35%, transparent);
}
.download-option-card .form-check-input {
    margin-top: 0.2rem;
    margin-right: 0.65rem;
    float: left;
}
.download-option-card .form-check-input:checked {
    background-color: var(--brand, #0d6efd);
    border-color: var(--brand, #0d6efd);
}

@media (max-width: 575.98px) {
    .btn-indicator-detail span { display: none; }
    .btn-indicator-detail { padding: 0.3rem 0.5rem; }
}

/* =========================================================
   PRINT — Dimensi & Indikator (semua accordion terbuka)
========================================================= */

.print-only-block {
    display: none;
}

@media print {
    .print-only-block {
        display: block !important;
        margin-bottom: 1.5rem;
    }

    .print-header-inner .print-eyebrow {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #666;
        margin-bottom: 0.35rem;
    }

    .print-header-inner .print-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 0.5rem;
    }

    .print-header-inner .print-meta {
        font-size: 0.85rem;
        color: #555;
        margin-bottom: 0.2rem;
    }

    body.print-metodologi-mode .navbar,
    body.print-metodologi-mode .page-header,
    body.print-metodologi-mode .cta-section,
    body.print-metodologi-mode .back-to-top,
    body.print-metodologi-mode footer,
    body.print-metodologi-mode .metodologi-tabs,
    body.print-metodologi-mode .btn-indicator-detail,
    body.print-metodologi-mode .modal {
        display: none !important;
    }

    body.print-metodologi-mode .content-section:not(#dimensi-indikator),
    body.print-metodologi-mode .method-flow,
    body.print-metodologi-mode .calculation-timeline {
        display: none !important;
    }

    body.print-metodologi-mode #dimensi-indikator {
        display: block !important;
        padding-top: 0 !important;
    }

    body.print-metodologi-mode .tab-pane {
        display: none !important;
        opacity: 1 !important;
    }

    body.print-metodologi-mode .tab-pane.active,
    body.print-metodologi-mode .tab-pane.show {
        display: block !important;
    }

    body.print-metodologi-mode .accordion-collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }

    body.print-metodologi-mode .accordion-button::after {
        display: none !important;
    }

    body.print-metodologi-mode .indicator-row {
        break-inside: avoid;
    }

    body.print-metodologi-mode .dimensi-calculation {
        break-inside: avoid;
    }
}
