/*
 * PANDUAN PENGGUNA — BUDIDAYA SIGINJAI (ADDENDUM 24 Sep 2026)
 *
 * CSS biasa, BUKAN utility Tailwind lewat Vite — mengikuti pola
 * public/css/ui.css: kelas Tailwind baru menuntut `npm run build`,
 * aset statis tidak. Halaman ini publik dan berdiri sendiri (tidak
 * memakai layouts.app), jadi seluruh gayanya ada di berkas ini.
 */

:root {
    --pd-brand: #0e7490;
    --pd-brand-dark: #155e75;
    --pd-brand-soft: #ecfeff;
    --pd-navy: #071a2b;
    --pd-ink: #0f172a;
    --pd-text: #334155;
    --pd-muted: #64748b;
    --pd-line: #e2e8f0;
    --pd-bg: #f1f5f9;
    --pd-card: #ffffff;
    --pd-tip-bg: #f0fdf4;
    --pd-tip-line: #bbf7d0;
    --pd-tip-ink: #166534;
    --pd-warn-bg: #fffbeb;
    --pd-warn-line: #fde68a;
    --pd-warn-ink: #92400e;
    --pd-hl: #f97316;
}

/*
 * REVISI 25 Sep 2026 — panduan kini juga dirender DI DALAM layouts.app
 * (pengguna dengan tenant aktif), jadi seluruh aturan yang dulu global
 * (body, a, img, *) dibatasi di bawah .pd-root / body.pd-body supaya tidak
 * mengubah tampilan aplikasi di sekelilingnya.
 */
.pd-root, .pd-root *, .pd-root *::before, .pd-root *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body.pd-body {
    margin: 0;
    background: var(--pd-bg);
    color: var(--pd-text);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.pd-root { color: var(--pd-text); line-height: 1.65; }
.pd-in-app { font-size: 15px; }
.pd-root a { color: var(--pd-brand); }
.pd-root a:hover { color: var(--pd-brand-dark); }
.pd-root a:focus-visible, .pd-root button:focus-visible, .pd-root summary:focus-visible, .pd-root input:focus-visible,
.pn-nav a:focus-visible, .pn-nav button:focus-visible {
    outline: 2px solid var(--pd-brand); outline-offset: 2px;
}
.pd-root img { max-width: 100%; height: auto; }

/* ---------------------------------------- navigasi publik (= landing) -- */
/* Meniru .nav milik landing.blade.php (warna, susunan, perilaku lipat di
   ≤860px) supaya membuka Panduan dari landing page tidak menghilangkan
   menu Peluang/Geospasial/Data/Ekosistem/Jaringan. */

.pn-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(7, 26, 43, 0.94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.pn-row {
    max-width: 72rem; margin: 0 auto; padding: 0.75rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pn-brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.pn-mark {
    display: grid; place-items: center; height: 2.25rem; width: 2.25rem; border-radius: 0.75rem; flex-shrink: 0;
    background: linear-gradient(135deg, #20c4c8, #087f8c);
}
.pn-mark svg { height: 1.25rem; width: 1.25rem; stroke: #04222b; }
.pn-word { color: #fff; font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.01em; }
.pn-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.pn-links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.pn-links a:hover, .pn-links a.is-active { color: #fff; }
.pn-links a.is-active { box-shadow: inset 0 -2px 0 #20c4c8; padding-bottom: 4px; }
.pn-actions { display: flex; align-items: center; gap: 0.625rem; }
.pn-btn {
    display: inline-flex; align-items: center; justify-content: center; border-radius: 0.625rem;
    padding: 0.6875rem 1.25rem; font-size: 0.875rem; font-weight: 700; text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
}
.pn-btn-aqua { background: #20c4c8; color: #071a2b; }
.pn-btn-aqua:hover { background: #38d2d5; color: #071a2b; }
.pn-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.pn-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.pn-btn-light { background: #fff; color: #071a2b; border-color: #e1e9e8; }
.pn-toggle {
    display: none; align-items: center; justify-content: center; height: 2.25rem; width: 2.25rem; border-radius: 0.5rem;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; cursor: pointer;
}
.pn-toggle svg { height: 1.25rem; width: 1.25rem; }
.pn-mobile {
    display: none; flex-direction: column; gap: 0.125rem; padding: 0.25rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pn-mobile.is-open { display: flex; }
.pn-mobile > a {
    color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.9375rem; font-weight: 600;
    padding: 0.75rem 0.125rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pn-mobile > a.is-active { color: #67e8f9; }
.pn-mobile-actions { display: flex; gap: 0.625rem; margin-top: 0.875rem; }
.pn-mobile-actions .pn-btn { flex: 1; }
@media (max-width: 860px) {
    .pn-links { display: none; }
    .pn-toggle { display: inline-flex; }
}
@media (max-width: 420px) {
    .pn-actions .pn-btn-ghost { display: none; }   /* "Masuk" tetap ada di panel ☰ */
    .pn-actions .pn-btn { padding: 0.55rem 0.9rem; }
}

/* -------------------------------------------------------------- hero -- */

.pd-hero {
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(34, 211, 238, 0.22), transparent 60%),
        linear-gradient(180deg, var(--pd-navy) 0%, #0b2a3f 100%);
    color: #e2e8f0;
}
.pd-hero-inner { max-width: 1240px; margin: 0 auto; padding: 40px 16px 44px; }
.pd-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: #67e8f9; border: 1px solid rgba(103, 232, 249, 0.35); border-radius: 999px; padding: 3px 10px;
}
.pd-hero h1 { margin: 0 0 4px; color: #fff; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
.pd-hero p { margin: 0; max-width: 760px; color: #cbd5e1; font-size: 15.5px; }

.pd-quick { display: grid; gap: 12px; margin-top: 26px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pd-quick a {
    display: block; text-decoration: none; padding: 14px 16px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff;
    transition: background-color 0.15s ease, transform 0.12s ease;
}
.pd-quick a:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.pd-quick b { display: block; font-size: 14px; }
.pd-quick span { display: block; font-size: 12.5px; color: #a5b4c6; margin-top: 2px; line-height: 1.45; }
.pd-quick i { font-style: normal; font-size: 11px; font-weight: 800; color: #67e8f9; }

/* ------------------------------------------------------------ layout -- */

.pd-layout { max-width: 1240px; margin: 0 auto; padding: 24px 16px 64px; display: block; }
@media (min-width: 1024px) {
    .pd-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
}

/* ----------------------------------------------------------------- TOC -- */

.pd-toc { margin-bottom: 20px; }
@media (min-width: 1024px) {
    .pd-toc { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; margin-bottom: 0; }
}
.pd-toc details { background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: 14px; }
.pd-toc summary {
    list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 800; font-size: 13px; color: var(--pd-ink);
    display: flex; align-items: center; justify-content: space-between;
}
.pd-toc summary::-webkit-details-marker { display: none; }
.pd-toc summary::after { content: "▾"; color: var(--pd-muted); transition: transform 0.15s ease; }
.pd-toc details[open] summary::after { transform: rotate(180deg); }
.pd-toc-body { padding: 0 10px 12px; }
.pd-search {
    width: 100%; margin: 0 0 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--pd-line);
    font: inherit; font-size: 13px; background: #f8fafc;
}
.pd-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.pd-toc li { counter-increment: toc; }
.pd-toc li a {
    display: flex; gap: 8px; padding: 7px 8px; border-radius: 8px; text-decoration: none;
    color: var(--pd-text); font-size: 13px; line-height: 1.35;
}
.pd-toc li a::before { content: counter(toc) "."; color: var(--pd-muted); font-weight: 700; min-width: 20px; }
.pd-toc li a:hover { background: #f1f5f9; color: var(--pd-ink); }
.pd-toc li a.is-active { background: var(--pd-brand-soft); color: var(--pd-brand-dark); font-weight: 700; }
.pd-toc li[hidden] { display: none; }
.pd-toc-empty { font-size: 12px; color: var(--pd-muted); padding: 6px 8px; }

/* ----------------------------------------------------------- content -- */

.pd-section {
    background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: 18px;
    padding: 22px 18px; margin-bottom: 20px;
}
@media (min-width: 768px) { .pd-section { padding: 28px 30px; } }
.pd-section[hidden] { display: none; }

.pd-section h2 {
    margin: 0 0 6px; color: var(--pd-ink); font-size: 21px; line-height: 1.3; letter-spacing: -0.01em;
    display: flex; align-items: baseline; gap: 10px;
}
.pd-num {
    display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px;
    background: var(--pd-brand-soft); color: var(--pd-brand-dark); font-size: 14px; font-weight: 800; flex-shrink: 0;
    transform: translateY(-2px);
}
.pd-lead { margin: 0 0 16px; color: var(--pd-muted); }
.pd-section h3 { margin: 26px 0 8px; color: var(--pd-ink); font-size: 16px; }
.pd-section h3:first-of-type { margin-top: 18px; }
.pd-section p { margin: 0 0 12px; }
.pd-section ul, .pd-section ol { margin: 0 0 14px; padding-left: 22px; }
.pd-section li { margin: 4px 0; }
.pd-section code, .pd-kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
    background: #f1f5f9; border: 1px solid var(--pd-line); border-radius: 6px; padding: 1px 6px; color: var(--pd-ink);
}
.pd-ui { font-weight: 700; color: var(--pd-ink); background: #f8fafc; border: 1px solid var(--pd-line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }

/* langkah bernomor */
.pd-steps { list-style: none; padding-left: 0 !important; counter-reset: step; }
.pd-steps > li { counter-increment: step; position: relative; padding-left: 40px; margin: 10px 0 !important; }
.pd-steps > li::before {
    content: counter(step); position: absolute; left: 0; top: 1px;
    width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
    background: var(--pd-brand); color: #fff; font-size: 12.5px; font-weight: 800;
}

/* kotak catatan */
.pd-note { border: 1px solid var(--pd-line); background: #f8fafc; border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 14px; }
.pd-note strong:first-child { display: block; margin-bottom: 2px; color: var(--pd-ink); }
.pd-note.tip { background: var(--pd-tip-bg); border-color: var(--pd-tip-line); color: var(--pd-tip-ink); }
.pd-note.tip strong:first-child { color: var(--pd-tip-ink); }
.pd-note.warn { background: var(--pd-warn-bg); border-color: var(--pd-warn-line); color: var(--pd-warn-ink); }
.pd-note.warn strong:first-child { color: var(--pd-warn-ink); }
.pd-note p:last-child, .pd-note ul:last-child { margin-bottom: 0; }

/* tabel */
.pd-table-wrap { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--pd-line); border-radius: 12px; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.pd-table th, .pd-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--pd-line); vertical-align: top; }
.pd-table th { background: #f8fafc; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pd-muted); }
.pd-table tr:last-child td { border-bottom: 0; }
.pd-tag { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 7px; letter-spacing: 0.02em; }
.pd-tag.m { background: #dcfce7; color: #166534; }
.pd-tag.c { background: #e0f2fe; color: #075985; }
.pd-tag.e { background: #f3e8ff; color: #6b21a8; }
.pd-tag.f { background: #fef3c7; color: #92400e; }

/* gambar */
.pd-fig { margin: 14px 0 20px; }
.pd-fig button {
    display: block; width: 100%; padding: 0; border: 1px solid var(--pd-line); border-radius: 12px; overflow: hidden;
    background: #f8fafc; cursor: zoom-in; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.18);
}
.pd-fig button img { display: block; width: 100%; }
.pd-fig figcaption { margin-top: 8px; font-size: 12.5px; color: var(--pd-muted); line-height: 1.5; }
.pd-fig figcaption b { color: var(--pd-text); }
.pd-fig.form { max-width: 620px; }
.pd-fig.phone { max-width: 300px; }
.pd-fig.phone button { border-radius: 22px; border-width: 6px; border-color: #1e293b; }

.pd-figs { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .pd-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pd-figs .pd-fig { margin: 0; max-width: none; }
.pd-figs .pd-fig.phone { max-width: 300px; }

/* FAQ */
.pd-faq details { border: 1px solid var(--pd-line); border-radius: 12px; margin: 8px 0; background: #fff; }
.pd-faq summary { cursor: pointer; padding: 11px 14px; font-weight: 700; color: var(--pd-ink); font-size: 14px; }
.pd-faq details > div { padding: 0 14px 12px; font-size: 14px; }

.pd-back-top {
    position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 44px; height: 44px; border-radius: 999px;
    border: 0; background: var(--pd-brand); color: #fff; font-size: 18px; cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(14, 116, 144, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.pd-back-top.is-visible { opacity: 1; pointer-events: auto; }

.pd-footer { text-align: center; font-size: 12px; color: var(--pd-muted); padding: 0 16px 32px; }

/* ---------------------------------------------------------- lightbox -- */

.pd-lightbox {
    position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(2, 6, 23, 0.88); padding: 56px 12px 16px;
}
.pd-lightbox.is-open { display: flex; }
.pd-lightbox img { max-width: min(1366px, 100%); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; background: #fff; }
.pd-lightbox p { color: #cbd5e1; font-size: 13px; margin: 10px 0 0; text-align: center; max-width: 900px; }
.pd-lightbox button {
    position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 20px; cursor: pointer;
}

@media print {
    .pd-top, .pd-toc, .pd-back-top, .pd-quick { display: none !important; }
    .pd-layout { display: block; padding: 0; }
    .pd-section { break-inside: avoid-page; border: 0; padding: 12px 0; }
    .pd-hero { background: none; color: #000; }
    .pd-hero h1 { color: #000; }
}

/* ------------------------------------------------ mode dalam aplikasi -- */
/* Preflight Tailwind menghapus penanda daftar & ukuran judul — dipulihkan
   khusus di dalam isi panduan. */
.pd-root .pd-section ul { list-style: disc; }
.pd-root .pd-section ol { list-style: decimal; }
.pd-root .pd-section ol.pd-steps, .pd-root .pd-toc ol { list-style: none; }

.pd-in-app .pd-hero { border-radius: 18px; overflow: hidden; }
.pd-in-app .pd-hero-inner { padding: 26px 22px 28px; }
.pd-in-app .pd-layout { padding: 20px 0 32px; max-width: none; }
.pd-in-app .pd-toc { top: 80px; }
/* Di ponsel tombol "kembali ke atas" diangkat di atas navigasi bawah (fixed). */
.pd-in-app .pd-back-top { bottom: 92px; }
@media (min-width: 1024px) { .pd-in-app .pd-back-top { bottom: 20px; } }
/* Preflight juga menyetel font-weight judul menjadi "inherit". */
.pd-root .pd-hero h1 { font-weight: 800; }
.pd-root .pd-section h2 { font-weight: 800; }
.pd-root .pd-section h3, .pd-root .pd-quick b, .pd-root .pd-table b, .pd-root .pd-section b { font-weight: 700; }
/* Judul "Panduan Pengguna" sudah tampil di header aplikasi — tidak diulang. */
.pd-in-app .pd-hero h1 { display: none; }
