/* ==========================================================================
   Halaman dalam (detail berita, resensi, buku katalog, halaman statis, daftar)
   - Full width (mengikuti .ipt-container di home-redesign.css)
   - Ringan: tanpa blur/filter berat, tanpa JS besar, gambar lazy-load
   - Warna: navy #143377 / biru #0e45a1 / aksen oranye #f7931e (sama dengan beranda)
   ========================================================================== */

/* ---------- Hero halaman ---------- */
.ipt-pagehero {
    position: relative;
    color: #fff;
    background: linear-gradient(105deg, #0a2b66 0%, #0e45a1 55%, #2477de 100%);
    padding: clamp(1.6rem, 3.4vw, 3rem) 0 clamp(1.8rem, 3.6vw, 3.2rem);
    overflow: hidden;
}
.ipt-pagehero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 90% at 88% 0%, rgba(125, 190, 255, .35) 0%, rgba(125, 190, 255, 0) 65%),
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: auto, 52px 52px, 52px 52px;
    pointer-events: none;
}
.ipt-pagehero > .ipt-container { position: relative; z-index: 1; }

.ipt-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    font-weight: 600;
}
.ipt-crumbs a { color: #cfe0ff; text-decoration: none; }
.ipt-crumbs a:hover { color: #fff; text-decoration: underline; }
.ipt-crumbs li { display: inline-flex; align-items: center; gap: .5rem; color: #fff; max-width: 100%; }
.ipt-crumbs li + li::before { content: '\203A'; color: #8fb2ee; font-size: 15px; }
.ipt-crumbs li:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28rem; }

.ipt-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .28rem .8rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: #f7931e;
    color: #fff;
    text-decoration: none;
}
.ipt-pagehero h1 {
    margin: .8rem 0 0;
    font-size: clamp(1.6rem, 3.2vw, 2.7rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.015em;
    color: #fff;
    max-width: 60rem;
}
.ipt-pagehero .ipt-sub {
    margin: .7rem 0 0;
    max-width: 44rem;
    font-size: clamp(.92rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    color: #dbe8ff;
}
.ipt-meta {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.4rem;
    font-size: 13px;
    color: #dbe8ff;
}
.ipt-meta > span { display: inline-flex; align-items: center; gap: .5rem; }
.ipt-meta i { color: #f7a21b; }
.ipt-meta b { color: #fff; font-weight: 700; }
.ipt-avatar {
    width: 2rem; height: 2rem;
    border-radius: 9999px;
    display: inline-grid; place-items: center;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 13px;
}

/* Kolom cari di dalam hero (daftar berita, resensi, dokumen) */
.ipt-herosearch {
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    max-width: 34rem;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 14px 30px -16px rgba(3, 10, 30, .55);
}
.ipt-herosearch i { margin-left: 1.1rem; color: #94a3b8; font-size: 14px; }
.ipt-herosearch input {
    flex: 1;
    min-width: 0;
    height: 3rem;
    padding: 0 .8rem;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: #1e293b !important;
    font-size: 14.5px;
    box-shadow: none !important;
}
.ipt-herosearch button {
    margin: .3rem;
    padding: 0 1.4rem;
    height: 2.4rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f9a43a, #f7931e);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}

/* ---------- Badan halaman ---------- */
.ipt-body { padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.ipt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22.5rem;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
}
@media (min-width: 1100px) { .ipt-layout.is-book { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); } }
@media (max-width: 1099px) { .ipt-layout { grid-template-columns: minmax(0, 1fr); } }
.ipt-aside { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1100px) { .ipt-aside.is-sticky { position: sticky; top: 1.25rem; } }

.ipt-card {
    background: #fff;
    border: 1px solid #e6ecf6;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 6px 20px -16px rgba(15, 42, 96, .35);
}
.ipt-card > h3, .ipt-sectiontitle {
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #0f2860;
}
.ipt-card > h3::before, .ipt-sectiontitle::before {
    content: '';
    width: 4px; height: 1.1em;
    border-radius: 3px;
    background: #f7931e;
}
.ipt-sectiontitle { font-size: 1.2rem; margin-bottom: 1.2rem; }

/* ---------- Artikel ---------- */
.ipt-article { min-width: 0; width: 100%; max-width: 58rem; justify-self: center; }
.ipt-cover { margin: 0 0 1.6rem; }
/* Foto utama berita tampil UTUH (object-fit: contain), tidak dipotong berapa pun rasio fotonya.
   Foto lebar memenuhi lebar kolom; foto tinggi dibatasi tingginya dan sisi kosongnya diisi salinan buram foto itu. */
.ipt-cover-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #e9eef8;
    isolation: isolate;
}
.ipt-cover-frame::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    background: var(--cover) center / cover no-repeat;
    filter: blur(28px) saturate(1.15);
    opacity: .6;
}
.ipt-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(38rem, 80vh);
    object-fit: contain;
    margin: 0 auto;
}
.ipt-cover figcaption { margin-top: .55rem; font-size: 12.5px; font-style: italic; color: #64748b; }

.ipt-prose { max-width: none; font-size: 1.06rem; line-height: 1.85; color: #1f2937; overflow-wrap: anywhere; }
.ipt-prose > :first-child { margin-top: 0; }
/* Paragraf kosong / hanya <br> dari editor jangan jadi celah besar */
.ipt-prose p:empty, .ipt-prose div:empty, .ipt-prose p:has(> br:only-child) { display: none; }
.ipt-prose p[style*="text-align:justify"] { text-align: justify; hyphens: auto; }
.ipt-prose p[style*="text-align:center"] { text-align: center; }
.ipt-prose p[style*="text-align:right"] { text-align: right; }
.ipt-prose p { margin: 0 0 1.15em; }
.ipt-prose h1, .ipt-prose h2, .ipt-prose h3, .ipt-prose h4 { color: #0f2860; line-height: 1.3; font-weight: 800; margin: 1.9em 0 .6em; }
.ipt-prose h2 { font-size: 1.55rem; padding-bottom: .4rem; border-bottom: 2px solid #e3eaf6 !important; }
.ipt-prose h3 { font-size: 1.25rem; }
.ipt-prose a { color: #0e45a1; text-decoration: underline; text-underline-offset: 3px; }
.ipt-prose a:hover { color: #f7931e; }
.ipt-prose ul, .ipt-prose ol { margin: 0 0 1.2em; padding-left: 1.5rem; }
.ipt-prose ul { list-style: disc; }
.ipt-prose ol { list-style: decimal; }
.ipt-prose li { margin: .3em 0; }
.ipt-prose li::marker { color: #f7931e; font-weight: 700; }
.ipt-prose blockquote {
    margin: 1.6em 0;
    padding: 1rem 1.3rem;
    border-left: 4px solid #f7931e;
    background: #f3f7ff;
    border-radius: 0 12px 12px 0;
    color: #1e3a6b;
    font-style: italic;
}
.ipt-prose img { max-width: 100% !important; height: auto !important; border-radius: 12px; margin: 1.2em auto; display: block; }
.ipt-prose figure { max-width: 100% !important; margin: 1.5em auto; }
.ipt-prose figure img { width: 100% !important; margin: 0 auto; }
.ipt-prose figcaption { font-size: 13px; color: #64748b; text-align: center; margin-top: .4rem; }
.ipt-prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.ipt-prose th, .ipt-prose td { border: 1px solid #dbe3f1; padding: .55rem .8rem; text-align: left; }
.ipt-prose th { background: #eef3fb; color: #0f2860; }
.ipt-prose pre { overflow-x: auto; padding: 1rem; border-radius: 12px; background: #0f172a; color: #e2e8f0; font-size: .9rem; }
.ipt-prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2em 0; }
.ipt-prose iframe { max-width: 100%; border-radius: 12px; }
.ipt-prose img[style*="width:25%"], .ipt-prose figure[style*="width:25%"] { width: 25% !important; }
.ipt-prose img[style*="width:50%"], .ipt-prose figure[style*="width:50%"] { width: 50% !important; }
.ipt-prose img[style*="width:75%"], .ipt-prose figure[style*="width:75%"] { width: 75% !important; }
@media (max-width: 640px) {
    .ipt-prose { font-size: 1rem; line-height: 1.75; }
    .ipt-prose img[style*="width:25%"], .ipt-prose img[style*="width:50%"], .ipt-prose img[style*="width:75%"],
    .ipt-prose figure[style*="width:25%"], .ipt-prose figure[style*="width:50%"], .ipt-prose figure[style*="width:75%"] { width: 100% !important; }
}

/* Kredit (editor, fotografer) & tag */
.ipt-credits { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2rem 0 0; }
.ipt-credit {
    display: inline-flex; align-items: center; gap: .65rem;
    padding: .55rem .95rem;
    background: #f3f7ff; border: 1px solid #e0e9f9; border-radius: 12px;
}
.ipt-credit i { color: #0e45a1; }
.ipt-credit small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.ipt-credit b { display: block; font-size: 13.5px; color: #1e293b; }

.ipt-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.ipt-tag {
    padding: .3rem .8rem;
    border-radius: 9999px;
    font-size: 12px; font-weight: 600;
    color: #0e45a1; background: #eef3fb; border: 1px solid #dbe6f8;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.ipt-tag:hover { background: #0e45a1; color: #fff; }

/* Bagikan */
.ipt-share { margin: 2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1rem 1.2rem; background: #f3f7ff; border: 1px solid #e0e9f9; border-radius: 14px; }
.ipt-share > b { font-size: 13px; color: #0f2860; margin-right: .3rem; }
.ipt-share a, .ipt-share button {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 9999px;
    font-size: 12.5px; font-weight: 700;
    color: #fff; text-decoration: none; cursor: pointer;
    transition: filter .15s, transform .15s;
}
.ipt-share a:hover, .ipt-share button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ipt-share .is-wa { background: #25d366; }
.ipt-share .is-fb { background: #1877f2; }
.ipt-share .is-x { background: #0f172a; }
.ipt-share .is-copy { background: #0e45a1; }

/* Daftar berita samping */
.ipt-minilist { display: flex; flex-direction: column; gap: .95rem; }
.ipt-mini { display: flex; gap: .85rem; text-decoration: none; }
.ipt-mini-thumb { flex: none; width: 5.2rem; height: 4rem; border-radius: 10px; overflow: hidden; background: #e9eef8; }
.ipt-mini-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.ipt-mini b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.35; color: #1e293b; font-weight: 700; }
.ipt-mini:hover b { color: #0e45a1; }
.ipt-mini small { display: block; margin-top: .25rem; font-size: 11.5px; color: #64748b; }

/* ---------- Kartu berita (terkait & daftar) ---------- */
.ipt-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.4rem; }
.ipt-newscard {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e6ecf6; border-radius: 16px; overflow: hidden;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ipt-newscard:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(14, 69, 161, .55); border-color: #b9cdf2; }
.ipt-newscard-img { position: relative; aspect-ratio: 16 / 10; background: #e9eef8; overflow: hidden; }
.ipt-newscard-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.ipt-newscard-img .ipt-badge { position: absolute; left: .8rem; top: .8rem; font-size: 10px; padding: .22rem .65rem; }
.ipt-newscard-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ipt-newscard time { font-size: 11.5px; font-weight: 600; color: #64748b; }
.ipt-newscard h3 { margin: 0; font-size: 1.02rem; line-height: 1.38; font-weight: 800; color: #0f2860; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ipt-newscard:hover h3 { color: #0e45a1; }
.ipt-newscard p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #475569; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.ipt-more { margin-top: .3rem; font-size: 12.5px; font-weight: 800; color: #0e45a1; display: inline-flex; align-items: center; gap: .4rem; }
.ipt-newscard:hover .ipt-more { gap: .65rem; color: #f7931e; }

/* Berita unggulan (halaman daftar) */
.ipt-feature {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    background: #fff; border: 1px solid #e6ecf6; border-radius: 18px; overflow: hidden;
    text-decoration: none; margin-bottom: 1.6rem;
    transition: box-shadow .2s, border-color .2s;
}
.ipt-feature:hover { box-shadow: 0 18px 36px -22px rgba(14, 69, 161, .6); border-color: #b9cdf2; }
.ipt-feature-img { min-height: 18rem; background: #e9eef8; }
.ipt-feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.ipt-feature-body { padding: clamp(1.2rem, 2.6vw, 2.2rem); display: flex; flex-direction: column; gap: .8rem; justify-content: center; }
.ipt-feature h2 { margin: 0; font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.28; font-weight: 800; color: #0f2860; }
.ipt-feature p { margin: 0; color: #475569; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 800px) { .ipt-feature { grid-template-columns: minmax(0, 1fr); } .ipt-feature-img { min-height: 12rem; aspect-ratio: 16 / 9; } }

/* Filter kategori (chip) */
.ipt-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.ipt-filters a {
    padding: .4rem 1rem; border-radius: 9999px; font-size: 12.5px; font-weight: 700;
    color: #334155; background: #fff; border: 1px solid #dbe3f1; text-decoration: none;
    transition: all .15s;
}
.ipt-filters a:hover { border-color: #0e45a1; color: #0e45a1; }
.ipt-filters a.is-active { background: #0e45a1; border-color: #0e45a1; color: #fff; }

/* Paginasi (Laravel default → disesuaikan) */
.ipt-pager nav > div:first-child { display: none; }
.ipt-pager nav svg { width: 1.1rem; height: 1.1rem; }
.ipt-pager nav a, .ipt-pager nav span[aria-current] > span, .ipt-pager nav span[aria-disabled] > span {
    border-radius: 10px !important;
}
.ipt-empty { text-align: center; padding: 4rem 1rem; background: #fff; border: 1px dashed #cfd9ec; border-radius: 18px; color: #64748b; }
.ipt-empty i { font-size: 3rem; color: #b9c7e2; display: block; margin-bottom: 1rem; }
.ipt-empty h3 { margin: 0 0 .4rem; color: #0f2860; font-size: 1.2rem; font-weight: 800; }

/* ---------- Resensi ---------- */
.ipt-bookhero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center; }
@media (max-width: 700px) { .ipt-bookhero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .ipt-bookhero .ipt-meta { justify-content: center; } }
.ipt-bookcover {
    width: clamp(8.5rem, 14vw, 12.5rem);
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 18px 36px -14px rgba(3, 10, 30, .65);
    display: grid; place-items: center;
    color: #cfe0ff; font-size: 2.6rem;
}
.ipt-bookcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ipt-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .9rem 1.6rem; margin: 0; }
.ipt-specs > div { min-width: 0; }
.ipt-specs dt { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #64748b; margin: 0; }
.ipt-specs dd { margin: .2rem 0 0; font-size: 14.5px; font-weight: 700; color: #1e293b; overflow-wrap: anywhere; }
.ipt-specs dd.is-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }

/* Buku katalog: panel kiri */
.ipt-bookside { text-align: center; }
.ipt-bookside .ipt-bookcover { width: 100%; max-width: 15rem; margin: 0 auto 1.1rem; background: #eef3fb; color: #9db3d9; box-shadow: 0 16px 30px -18px rgba(15, 42, 96, .7); }
.ipt-status {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .8rem 1rem; border-radius: 12px; font-weight: 800; font-size: 14px;
}
.ipt-status.is-ok { background: #e7f6ec; color: #17653a; }
.ipt-status.is-no { background: #fdeceb; color: #a61b1b; }
.ipt-status.is-none { background: #eef3fb; color: #475569; }
.ipt-btn-block {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; padding: .75rem 1rem; margin-top: .7rem;
    border-radius: 12px; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer;
    border: 1.5px solid #0e45a1; color: #0e45a1; background: #fff;
    transition: background-color .15s, color .15s;
}
.ipt-btn-block:hover { background: #0e45a1; color: #fff; }
.ipt-btn-block.is-solid { background: linear-gradient(135deg, #0e45a1, #2477de); color: #fff; border-color: transparent; }
.ipt-btn-block.is-solid:hover { filter: brightness(1.08); }
.ipt-btn-block.is-orange { background: linear-gradient(135deg, #f9a43a, #f7931e); color: #fff; border-color: transparent; }

.ipt-tablewrap { overflow-x: auto; border: 1px solid #e6ecf6; border-radius: 14px; }
.ipt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ipt-table th { text-align: left; padding: .75rem 1rem; background: #eef3fb; color: #0f2860; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ipt-table td { padding: .8rem 1rem; border-top: 1px solid #edf1f8; color: #334155; }
.ipt-table td.is-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.ipt-pill { display: inline-block; padding: .18rem .65rem; border-radius: 9999px; font-size: 11.5px; font-weight: 800; }
.ipt-pill.is-ok { background: #e7f6ec; color: #17653a; }
.ipt-pill.is-no { background: #fdeceb; color: #a61b1b; }

.ipt-lampiran {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.2rem; border-radius: 14px; background: #f3f7ff; border: 1px solid #e0e9f9;
}
.ipt-lampiran + .ipt-lampiran { margin-top: .8rem; }
.ipt-lampiran .ipt-ico { width: 2.8rem; height: 2.8rem; border-radius: 12px; display: grid; place-items: center; background: #dbe6f8; color: #0e45a1; font-size: 1.2rem; flex: none; }
.ipt-lock { border-style: dashed; background: #fff7ea; border-color: #f6d9a6; }
.ipt-lock .ipt-ico { background: #fdebc8; color: #b45f06; }

/* ---------- Halaman statis ---------- */
.ipt-info-line { display: flex; align-items: center; gap: .7rem; font-size: 13.5px; color: #334155; text-decoration: none; padding: .35rem 0; }
.ipt-info-line i { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 8px; background: #eef3fb; color: #0e45a1; font-size: 12px; flex: none; }
a.ipt-info-line:hover { color: #0e45a1; }

/* ---------- Mode gelap ---------- */
html.dark .ipt-card, html.dark .ipt-newscard, html.dark .ipt-feature, html.dark .ipt-empty {
    background: #1e293b !important; border-color: #334155 !important;
}
html.dark .ipt-card > h3, html.dark .ipt-sectiontitle, html.dark .ipt-newscard h3, html.dark .ipt-feature h2, html.dark .ipt-empty h3 { color: #f1f5f9 !important; }
html.dark .ipt-prose { color: #cbd5e1; }
html.dark .ipt-prose h1, html.dark .ipt-prose h2, html.dark .ipt-prose h3, html.dark .ipt-prose h4 { color: #f1f5f9 !important; }
html.dark .ipt-prose a { color: #7ea9e6; }
html.dark .ipt-prose blockquote { background: #0f172a; color: #cbd5e1; }
html.dark .ipt-prose th { background: #0f172a; color: #e2e8f0; }
html.dark .ipt-prose th, html.dark .ipt-prose td { border-color: #334155; }
html.dark .ipt-credit, html.dark .ipt-share, html.dark .ipt-lampiran { background: #0f172a; border-color: #334155; }
html.dark .ipt-credit b, html.dark .ipt-mini b, html.dark .ipt-specs dd { color: #e2e8f0; }
html.dark .ipt-share > b { color: #e2e8f0; }
html.dark .ipt-tag { background: #0f172a; border-color: #334155; color: #7ea9e6; }
html.dark .ipt-newscard p, html.dark .ipt-feature p { color: #94a3b8; }
html.dark .ipt-filters a { background: #1e293b; border-color: #334155; color: #cbd5e1; }
html.dark .ipt-filters a.is-active { background: #0e45a1; color: #fff; }
html.dark .ipt-table th { background: #0f172a; color: #e2e8f0; }
html.dark .ipt-table td { border-color: #334155; color: #cbd5e1; }
html.dark .ipt-tablewrap { border-color: #334155; }
html.dark .ipt-btn-block { background: transparent; color: #7ea9e6; border-color: #3b6fc2; }
html.dark .ipt-btn-block.is-solid, html.dark .ipt-btn-block.is-orange { color: #fff; }
html.dark .ipt-bookside .ipt-bookcover { background: #0f172a; }
html.dark .ipt-status.is-none { background: #0f172a; color: #cbd5e1; }
html.dark .ipt-info-line { color: #cbd5e1; }
html.dark .ipt-info-line i { background: #0f172a; color: #7ea9e6; }
html.dark .ipt-herosearch { background: #fff; }

/* Mode gelap: kontras teks untuk elemen <span> berwarna (aturan global `main span` memaksa abu-abu) */
html.dark.dark main .ipt-badge.ipt-badge { color: #fff !important; }
html.dark.dark main .ipt-pill.is-ok.is-ok { color: #86efac !important; background: rgba(34, 197, 94, .16) !important; }
html.dark.dark main .ipt-pill.is-no.is-no { color: #fca5a5 !important; background: rgba(239, 68, 68, .16) !important; }
html.dark.dark main .ipt-status.is-ok.is-ok, html.dark.dark main .ipt-status.is-ok.is-ok span { color: #86efac !important; background: rgba(34, 197, 94, .16) !important; }
html.dark.dark main .ipt-status.is-no.is-no, html.dark.dark main .ipt-status.is-no.is-no span { color: #fca5a5 !important; background: rgba(239, 68, 68, .16) !important; }
html.dark.dark main .ipt-share.ipt-share a, html.dark.dark main .ipt-share.ipt-share button,
html.dark.dark main .ipt-share.ipt-share a span, html.dark.dark main .ipt-share.ipt-share button span { color: #fff !important; }
html.dark.dark main .ipt-herosearch.ipt-herosearch button, html.dark.dark main .ipt-herosearch.ipt-herosearch input { color: #1e293b !important; }
html.dark.dark main .ipt-herosearch.ipt-herosearch button { color: #fff !important; }
html.dark.dark main .ipt-more.ipt-more { color: #7ea9e6 !important; }

/* ---------- Halaman layanan (daftar sub layanan) ---------- */
.ipt-body .ipt-svc-intro {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); flex-wrap: wrap;
    border-radius: 26px; padding: clamp(1.4rem, 3.4vw, 2.6rem); margin-bottom: 1.6rem; color: #fff;
    background: linear-gradient(120deg, #0a2b66 0%, #124191 60%, #1b57b8 100%);
    box-shadow: 0 18px 40px -20px rgba(10, 43, 102, .75);
}
.ipt-svc-intro::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(circle at 92% 20%, rgba(247, 147, 30, .35), transparent 45%), radial-gradient(circle at 70% 110%, rgba(96, 165, 250, .35), transparent 50%);
}
.ipt-svc-intro-art {
    flex: 0 0 auto; width: clamp(5.5rem, 10vw, 7.5rem); height: clamp(5.5rem, 10vw, 7.5rem); border-radius: 26px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem; color: #fff;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px);
}
.ipt-svc-intro-art img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }
.ipt-svc-intro-text { flex: 1 1 18rem; min-width: 0; }
.ipt-svc-eyebrow { display: inline-block; margin-bottom: .55rem; padding: .22rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(247, 147, 30, .95); color: #fff; }
.ipt-svc-intro-text h2 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: #fff; line-height: 1.2; }
.ipt-svc-intro-text p { margin: 0; color: rgba(255, 255, 255, .88); line-height: 1.7; max-width: 46rem; white-space: pre-line; }
.ipt-svc-btn {
    display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; flex: 0 0 auto;
    background: #f7931e; color: #fff; border-radius: 999px; padding: .7rem 1.4rem; font-weight: 800; font-size: .9rem;
    box-shadow: 0 8px 18px -8px rgba(247, 147, 30, .9); transition: transform .2s, background .2s;
}
.ipt-svc-btn:hover { background: #e8820c; transform: translateY(-2px); }
.ipt-svc-btn.is-ghost { background: #0e45a1; box-shadow: 0 8px 18px -10px rgba(14, 69, 161, .9); }
.ipt-svc-btn.is-ghost:hover { background: #0b3a89; }

.ipt-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ipt-svc-card {
    --tone: #0e45a1; --tone-soft: #e6efff; --tone-grad: linear-gradient(135deg, #3b82f6, #0e45a1);
    position: relative; display: flex; flex-direction: column; gap: .7rem; min-width: 0; min-height: 15.5rem;
    background: #fff; border: 1px solid #e3eaf6; border-radius: 22px; padding: 1.5rem 1.5rem 1.4rem;
    box-shadow: 0 10px 28px -16px rgba(15, 42, 96, .35); transition: transform .25s, box-shadow .25s, border-color .25s;
    overflow: hidden;
}
.ipt-svc-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone-grad); }
.ipt-svc-card:hover { transform: translateY(-5px); border-color: var(--tone-soft); box-shadow: 0 22px 40px -20px var(--tone); }
.ipt-svc-card.tone-rose   { --tone: #e11d48; --tone-soft: #ffe4ea; --tone-grad: linear-gradient(135deg, #fb7185, #e11d48); }
.ipt-svc-card.tone-violet { --tone: #7c3aed; --tone-soft: #ede4ff; --tone-grad: linear-gradient(135deg, #a78bfa, #7c3aed); }
.ipt-svc-card.tone-amber  { --tone: #d97706; --tone-soft: #fff0d6; --tone-grad: linear-gradient(135deg, #fbbf24, #d97706); }
.ipt-svc-card.tone-sky    { --tone: #0284c7; --tone-soft: #dff2ff; --tone-grad: linear-gradient(135deg, #38bdf8, #0284c7); }
.ipt-svc-card.tone-teal   { --tone: #0f766e; --tone-soft: #d9f5f1; --tone-grad: linear-gradient(135deg, #2dd4bf, #0f766e); }
.ipt-svc-card.tone-green  { --tone: #15803d; --tone-soft: #dcf7e5; --tone-grad: linear-gradient(135deg, #4ade80, #15803d); }
.ipt-svc-card.tone-indigo { --tone: #4338ca; --tone-soft: #e5e7ff; --tone-grad: linear-gradient(135deg, #818cf8, #4338ca); }
.ipt-svc-ico {
    width: 3.8rem; height: 3.8rem; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--tone-grad); color: #fff; font-size: 1.55rem; box-shadow: 0 12px 22px -10px var(--tone);
}
.ipt-svc-ico img { max-width: 72%; max-height: 72%; object-fit: contain; }
.ipt-svc-card h3 { margin: .35rem 0 0; font-size: 1.12rem; font-weight: 800; color: #10234f; line-height: 1.3; }
.ipt-svc-card p { margin: 0; font-size: .88rem; color: #64748b; line-height: 1.65; flex: 1 1 auto; }
.ipt-svc-open {
    margin-top: .4rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
    font-size: .84rem; font-weight: 800; color: var(--tone); background: var(--tone-soft); border-radius: 999px; padding: .5rem 1rem;
    transition: background .2s, color .2s, gap .2s;
}
.ipt-svc-open i { font-size: .7rem; transition: transform .2s; }
.ipt-svc-card:hover .ipt-svc-open { background: var(--tone); color: #fff; }
.ipt-svc-card:hover .ipt-svc-open i { transform: translateX(3px); }

.ipt-svc-help {
    display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.5rem;
    background: #fff; border: 1px dashed #b8cdf5; border-radius: 22px; padding: 1.2rem 1.5rem;
}
.ipt-svc-help > div { flex: 1 1 16rem; min-width: 0; }
.ipt-svc-help strong { color: #10234f; font-size: 1rem; }
.ipt-svc-help p { margin: .2rem 0 0; color: #64748b; font-size: .88rem; line-height: 1.55; }
.ipt-svc-help-ico { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #e6efff; color: #0e45a1; font-size: 1.2rem; }
.ipt-body.ipt-body-svc { padding-bottom: clamp(1rem, 2vw, 1.75rem); }
@media (max-width: 1023px) { .ipt-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
    .ipt-svc-grid { grid-template-columns: minmax(0, 1fr); }
    .ipt-body .ipt-svc-intro { flex-direction: column; align-items: flex-start; gap: .9rem; }
    .ipt-svc-intro-text { flex: 0 0 auto; }
    .ipt-svc-card { min-height: 0; }
}
html.dark .ipt-svc-card, html.dark .ipt-svc-help { background: #1e293b; border-color: #334155; box-shadow: none; }
html.dark .ipt-svc-card h3, html.dark .ipt-svc-help strong { color: #f1f5f9; }
html.dark .ipt-svc-card p, html.dark .ipt-svc-help p { color: #94a3b8; }
html.dark .ipt-svc-open { background: #243247; }
html.dark .ipt-svc-card:hover .ipt-svc-open { background: var(--tone); }
html.dark .ipt-svc-help-ico { background: #243247; color: #7ea9e6; }

/* Kata kunci pencarian yang ditebalkan di hasil katalog */
mark.ipt-hl {
    background: linear-gradient(180deg, transparent 38%, #fde68a 38%);
    color: #0b2a6f;
    font-weight: 800;
    padding: 0 .12em;
    border-radius: 2px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
html.dark mark.ipt-hl { background: linear-gradient(180deg, transparent 38%, rgba(245, 158, 11, .45) 38%); color: #fff; }

/* ===== Skeleton saat pindah halaman (partials/skeleton-nav.blade.php) ===== */
:root { --skel-a: #dde6f3; --skel-b: #f3f7fd; }
html.dark { --skel-a: #243247; --skel-b: #2f4160; }
.ipt-skel { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 70; background: #f7f9ff; overflow: hidden; }
.ipt-skel[hidden] { display: none; }
html.dark .ipt-skel { background: #0f172a; }
.ipt-skel-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ipt-skel-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(20, 51, 119, .12); overflow: hidden; }
.ipt-skel-bar span { display: block; height: 100%; width: 35%; background: linear-gradient(90deg, #143377, #f59e0b); animation: skel-bar 1.1s ease-in-out infinite; }
@keyframes skel-bar { from { transform: translateX(-110%); } to { transform: translateX(320%); } }
.ipt-skel-body { padding: 1.5rem 0 3rem; height: 100%; overflow: hidden; }
.sk-wrap { width: min(1280px, 100% - 2rem); margin: 0 auto; display: grid; gap: 1.25rem; }
.sk-wrap.is-narrow { width: min(820px, 100% - 2rem); }
.sk-wrap.is-form { width: min(460px, 100% - 2rem); padding-top: 2rem; }
.skel { display: block; position: relative; overflow: hidden; background: var(--skel-a); border-radius: 12px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--skel-b), transparent); animation: skel-sweep 1.4s ease-in-out infinite; }
@keyframes skel-sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel::after, .ipt-skel-bar span { animation: none; } }
.sk-hero { height: clamp(220px, 34vw, 380px); border-radius: 24px; }
.sk-banner { height: clamp(110px, 14vw, 170px); border-radius: 20px; }
.sk-banner.is-slim { height: 90px; }
.sk-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.sk-tiles .skel { height: 92px; border-radius: 16px; }
.sk-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sk-card { height: 220px; border-radius: 20px; }
.sk-item { display: grid; gap: .6rem; }
.sk-img { height: 170px; border-radius: 16px; }
.sk-line { height: 14px; border-radius: 8px; width: 100%; }
.sk-line.is-mid { width: 80%; }
.sk-line.is-short { width: 55%; }
.sk-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.sk-search { height: 56px; border-radius: 999px; margin-bottom: 1rem; }
.sk-row { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; margin-bottom: 1rem; }
.sk-row > div { display: grid; gap: .55rem; align-content: center; }
.sk-thumb { height: 120px; border-radius: 12px; }
.sk-side { height: 420px; border-radius: 20px; }
.sk-title { height: 34px; width: 80%; border-radius: 10px; }
.sk-title.is-center { margin: 0 auto; width: 70%; }
.sk-cover { height: clamp(180px, 30vw, 340px); border-radius: 18px; }
.sk-formcard { background: #fff; border-radius: 22px; padding: 2rem; display: grid; gap: 1rem; justify-items: center; box-shadow: 0 10px 30px -14px rgba(15, 42, 96, .2); }
html.dark .sk-formcard { background: #1e293b; }
.sk-logo { width: 72px; height: 72px; border-radius: 50%; }
.sk-input { height: 48px; width: 100%; border-radius: 12px; }
.sk-button { height: 50px; width: 100%; border-radius: 12px; }
@media (max-width: 767px) {
    .sk-tiles { grid-template-columns: repeat(3, 1fr); }
    .sk-cols3 { grid-template-columns: 1fr; }
    .sk-split { grid-template-columns: 1fr; }
    .sk-side { display: none; }
}

/* Gambar yang belum selesai dimuat: warna dasar lembut (hilang begitu gambar masuk). Hanya aktif bila JavaScript jalan. */
.ipt-js img[loading="lazy"]:not(.is-loaded) { background: var(--skel-a); }

/* Peralihan halus: skeleton masuk memudar (respons "tanggung" 200-400 ms tidak terlihat sebagai kedipan keras),
   lalu halaman baru memudar masuk, hanya bila skeleton sempat tampil (kelas dipasang di <head> oleh skrip kecil).
   Navigasi yang cepat tidak mendapat animasi apa pun, jadi tetap instan. */
.ipt-skel { animation: skel-in .3s ease-out; }
@keyframes skel-in { from { opacity: 0; } to { opacity: 1; } }
.ipt-page-in main { animation: ipt-page-in .28s ease-out; }
@keyframes ipt-page-in { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ipt-skel, .ipt-page-in main { animation: none; } }
