.tariff-page { padding: 22px 0 36px; background: #f4f8f5; }
.tariff-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.tariff-source { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 44px; color: var(--green); font-size: 13px; font-weight: 600; }
.tariff-source:hover { text-decoration: underline; text-underline-offset: 4px; }
.document-page--clean { background: var(--white); }
.document-page--clean .tariff-heading {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 100px;
    gap: 12px;
    align-items: center;
    text-align: center;
}
.document-page--clean .tariff-heading > div { grid-column: 2; min-width: 0; }
.document-page--clean .tariff-source { grid-column: 3; justify-self: end; }
.document-page--clean .document-gallery { border-color: var(--line); }
.document-page--clean .document-gallery__slide { background: #f4f8f5; }
.document-page--clean .document-gallery__image img { border-radius: 12px; box-shadow: 0 4px 18px rgba(16, 61, 52, .08); }
.document-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 28px; align-items: start; }
.document-page-content { min-width: 0; }
.document-page-grid .sidebar-card:not(.sidebar-contact) { background: #fff; }
@media (max-width: 980px) {
    .document-page-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
.document-gallery { overflow: hidden; border: 1px solid #dce7e0; border-radius: 16px; background: #fff; }
.document-gallery__stage { position: relative; }
.document-gallery__rail { display: flex; height: var(--gallery-height, clamp(210px, calc(100vh - 190px), 900px)); height: var(--gallery-height, clamp(210px, calc(100svh - 190px), 900px)); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.document-gallery__rail::-webkit-scrollbar { display: none; }
.document-gallery__slide { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; margin: 0; padding: 8px; scroll-snap-align: start; scroll-snap-stop: always; background: #edf2ef; }
.document-gallery__image { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; }
.document-gallery__image img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; box-shadow: 0 2px 12px #163a2714; }
.document-gallery__image[aria-busy="true"]::before { content: "Memuat halaman…"; position: absolute; inset: 0; display: grid; place-items: center; color: #4d655a; font-size: 13px; }
.document-gallery__image[aria-busy="true"] img { opacity: 0; }
.document-gallery button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; border: 1px solid #dce7e0; border-radius: 9px; background: #fff; color: var(--green-deep); cursor: pointer; font: inherit; }
.document-gallery button:hover:not(:disabled) { background: #edf5ef; border-color: #b5cbbb; }
.document-gallery button:disabled { opacity: .35; cursor: default; }
.document-gallery button[hidden], .document-gallery__error[hidden] { display: none; }
.document-gallery .document-gallery__arrow { position: absolute; top: 50%; z-index: 1; width: 44px; height: 44px; padding: 0; border-radius: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.38); box-shadow: 0 4px 16px rgba(19,61,43,.07), inset 0 1px 0 rgba(255,255,255,.28); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
.document-gallery .document-gallery__arrow:hover:not(:disabled) { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.56); }
.document-gallery__arrow--previous { left: max(4px, calc((100% - var(--gallery-page-width, 100%)) / 2 - 56px)); }
.document-gallery__arrow--next { right: max(4px, calc((100% - var(--gallery-page-width, 100%)) / 2 - 56px)); }
.document-gallery [data-gallery-previous] .icon { transform: rotate(180deg); }
.document-gallery__error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; background: #edf2ef; color: #345b48; font-size: 14px; text-align: center; }
.document-gallery__error button { padding: 0 16px; }
.document-gallery__error a { color: var(--green); text-decoration: underline; }
.document-gallery :is(button,a,select,[tabindex]):focus-visible { outline: 3px solid #0b6652; outline-offset: -3px; }
@media (max-width: 720px) {
    .tariff-page { padding: 16px 0 24px; }
    .tariff-heading { align-items: flex-start; flex-wrap: wrap; gap: 2px; margin-bottom: 14px; }
    .tariff-source { font-size: 12px; min-height: 36px; }
    .document-page--clean .tariff-heading { display: flex; flex-direction: column; align-items: center; gap: 2px; }
    .document-gallery { border-radius: 12px; overflow: visible; }
    .document-gallery__rail { height: var(--gallery-height, clamp(180px, calc(100vh - 180px), 900px)); height: var(--gallery-height, clamp(180px, calc(100svh - 180px), 900px)); border-radius: 12px; }
    .document-gallery__slide { padding: 0; }
    .document-gallery__arrow--previous { left: -12px; }
    .document-gallery__arrow--next { right: -12px; }
    .document-gallery .document-gallery__arrow { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .document-gallery .document-gallery__arrow:hover:not(:disabled) { background: transparent; border-color: transparent; }
    .document-gallery__arrow .icon { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .document-gallery__rail { scroll-behavior: auto; } }
