/* Pusat Bantuan HODAM — /bantuan */
:root {
  --bg: #F8FAFC; --card: #FFFFFF; --border: #E5E7EB; --border-2: #EEF2F7;
  --text: #111827; --text-2: #4B5563; --muted: #6B7280;
  --green: #25D366; --green-ink: #166534; --green-bg: #F0FDF4;
  --blue: #2563EB; --blue-bg: #EFF6FF; --amber-bg: #FFFBEB; --amber-ink: #92400E;
  --radius: 14px; --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.hp-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.hp-top { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.hp-top .hp-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.hp-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; white-space: nowrap; }
.hp-logo em { font-style: normal; font-weight: 500; color: var(--muted); border-left: 1px solid var(--border); padding-left: 8px; margin-left: 2px; }
.hp-nav { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.hp-nav a { text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.hp-nav a.hp-cta { background: var(--green); color: #052e16; font-weight: 700; }

/* Pencarian */
.hp-search { position: relative; }
.hp-search input { width: 100%; font: inherit; font-size: 15px; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 10px 16px; outline: none; color: var(--text); }
.hp-search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.hp-search-top { flex: 1; max-width: 420px; }
.hp-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.12); overflow: hidden; z-index: 30; max-height: 70vh; overflow-y: auto; }
.hp-results a { display: block; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border-2); }
.hp-results a:last-child { border-bottom: none; }
.hp-results a:hover, .hp-results a.active { background: var(--blue-bg); }
.hp-results b { display: block; font-size: 14px; }
.hp-results span { font-size: 12.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-results .hp-empty { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.hp-results mark { background: #FEF08A; color: inherit; border-radius: 2px; }

/* Beranda */
.hp-hero { background: linear-gradient(180deg, #ECFDF5 0%, var(--bg) 100%); padding: 56px 0 40px; text-align: center; }
.hp-hero h1 { font-size: 38px; letter-spacing: -0.02em; line-height: 1.2; }
.hp-hero p { color: var(--text-2); margin: 10px auto 24px; max-width: 560px; font-size: 17px; }
.hp-search-hero { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; }
.hp-search-hero input { padding: 15px 20px; font-size: 16px; background: #fff; box-shadow: 0 6px 20px rgba(15,23,42,.06); }
.hp-search-hero button { font: inherit; font-weight: 700; border: none; background: var(--blue); color: #fff; border-radius: 999px; padding: 0 22px; cursor: pointer; }
.hp-search-hero .hp-results { text-align: left; }
.hp-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 36px; }
.hp-cat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.hp-cat:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.hp-cat-ic { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.hp-cat b { font-size: 16px; }
.hp-cat span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.hp-cat small { font-size: 12px; color: var(--blue); font-weight: 600; margin-top: auto; padding-top: 8px; }
.hp-popular h2, .hp-related h2 { font-size: 19px; margin-bottom: 12px; }

/* Daftar artikel */
.hp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 3px; }
.hp-item:hover { border-color: var(--blue); }
.hp-item b { font-size: 15px; }
.hp-item span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* Tanya tim */
.hp-ask { margin: 36px 0 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hp-ask div { display: flex; flex-direction: column; }
.hp-ask span { color: var(--muted); font-size: 14px; }
.hp-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #052e16; font-weight: 700; text-decoration: none; border: none; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; }

/* Halaman artikel */
.hp-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 40px; align-items: start; }
.hp-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.hp-side-box > summary { display: none; }
.hp-side-cat { margin-bottom: 10px; }
.hp-side-head { display: block; font-weight: 700; font-size: 14px; color: var(--text); text-decoration: none; padding: 4px 8px; }
.hp-side ul { list-style: none; }
.hp-side li a { display: block; font-size: 13.5px; color: var(--text-2); text-decoration: none; padding: 5px 8px 5px 26px; border-radius: 8px; line-height: 1.4; }
.hp-side li a:hover { background: #fff; color: var(--text); }
.hp-side li a[aria-current="page"] { background: var(--blue-bg); color: var(--blue); font-weight: 600; }
.hp-side-cat:not(.open) ul { display: none; }
.hp-main { min-width: 0; }
.hp-crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hp-crumbs a { color: var(--muted); text-decoration: none; }
.hp-crumbs a:hover { color: var(--blue); }
.hp-main > h1, .hp-article h1 { font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 8px; }
.hp-lead { color: var(--text-2); font-size: 16.5px; margin-bottom: 20px; }
.hp-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.hp-tier { background: var(--green-bg); color: var(--green-ink); font-weight: 600; padding: 1px 10px; border-radius: 999px; }
.hp-article { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 36px; }
.hp-toc { background: var(--bg); border: 1px solid var(--border-2); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
.hp-toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.hp-body h2 { font-size: 21px; margin: 30px 0 10px; letter-spacing: -0.01em; scroll-margin-top: 84px; }
.hp-body h3 { font-size: 17px; margin: 20px 0 8px; scroll-margin-top: 84px; }
.hp-body p { margin: 10px 0; color: var(--text-2); }
.hp-body strong { color: var(--text); }
.hp-body ul, .hp-body ol { margin: 10px 0 10px 22px; color: var(--text-2); }
.hp-body li { margin: 6px 0; }
.hp-body li > ul { margin-top: 4px; }
.hp-body code { background: #F3F4F6; border-radius: 6px; padding: 1px 6px; font-size: .92em; }
/* Langkah bernomor */
.hp-steps { list-style: none; counter-reset: step; margin-left: 0 !important; }
.hp-steps > li { counter-increment: step; position: relative; padding-left: 42px; margin: 14px 0; }
.hp-steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.hp-fig { margin: 16px 0; }
.hp-fig img { border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 6px 20px rgba(15,23,42,.06); display: block; background: #fff; cursor: zoom-in; }
.hp-fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; text-align: center; }
.hp-pre { background: #0F172A; color: #E2E8F0; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; margin: 12px 0; white-space: pre-wrap; }
.hp-pre code { background: none; padding: 0; color: inherit; }
.hp-callout { display: flex; gap: 10px; border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 15px; line-height: 1.55; }
.hp-callout-label { white-space: nowrap; }
.hp-tip { background: var(--green-bg); color: #14532D; }
.hp-warn { background: var(--amber-bg); color: #78350F; border: 1px solid #FDE68A; }
.hp-info, .hp-note { background: var(--blue-bg); color: #1E3A8A; }
.hp-callout a { color: inherit; font-weight: 600; }
.hp-callout-label::before { margin-right: 4px; }
.hp-tip .hp-callout-label::before { content: "💡"; }
.hp-warn .hp-callout-label::before { content: "⚠️"; }
.hp-info .hp-callout-label::before { content: "ℹ️"; }
.hp-table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 12px; }
.hp-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.hp-table th, .hp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.hp-table th { background: var(--bg); font-weight: 600; }
.hp-table tr:last-child td { border-bottom: none; }

/* Masukan */
.hp-feedback { margin-top: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.hp-fb-ask { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hp-fb-ask b { margin-right: 6px; }
.hp-fb { font: inherit; font-size: 14px; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.hp-fb:hover { border-color: var(--blue); }
.hp-fb[aria-pressed="true"] { background: var(--blue-bg); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.hp-fb-more { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hp-fb-more label { font-size: 14px; color: var(--text-2); }
.hp-fb-more textarea { font: inherit; font-size: 14px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.hp-fb-more .hp-btn { align-self: flex-start; }
.hp-fb-thanks { margin-top: 8px; color: var(--green-ink); font-weight: 600; font-size: 14px; }
.hp-related { margin-top: 28px; }

/* Perbesar gambar */
.hp-zoom { position: fixed; inset: 0; background: rgba(15,23,42,.85); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; cursor: zoom-out; }
.hp-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* Footer */
.hp-foot { border-top: 1px solid var(--border); background: var(--card); padding: 22px 0; font-size: 13px; color: var(--muted); }
.hp-foot .hp-in { display: flex; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.hp-foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.hp-foot a { color: var(--text-2); text-decoration: none; }

/* Layar kecil */
@media (max-width: 980px) {
  .hp-cats { grid-template-columns: repeat(2, 1fr); }
  .hp-wrap { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .hp-side { position: static; max-height: none; overflow: visible; }
  .hp-side-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
  .hp-side-box > summary { display: block; cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14px; list-style: none; }
  .hp-side-box > summary::-webkit-details-marker { display: none; }
  .hp-side-box > summary::after { content: "▾"; float: right; color: var(--muted); }
  .hp-side-box nav { padding: 0 8px 10px; }
  .hp-side-cat ul { display: block !important; }
}
@media (max-width: 640px) {
  .hp-top .hp-in { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .hp-logo em { display: none; }
  .hp-search-top { order: 3; flex-basis: 100%; max-width: none; }
  .hp-hero { padding: 36px 0 28px; }
  .hp-hero h1 { font-size: 28px; }
  .hp-hero p { font-size: 15.5px; }
  .hp-search-hero button { display: none; }
  .hp-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hp-cat { padding: 14px; }
  .hp-cat span { display: none; }
  .hp-list { grid-template-columns: 1fr; }
  .hp-article { padding: 20px 16px; border-radius: 12px; }
  .hp-main > h1, .hp-article h1 { font-size: 24px; }
  .hp-steps > li { padding-left: 38px; }
  .hp-callout { flex-direction: column; gap: 2px; }
}
.hp-top:has(+ .hp-home) .hp-search-top { display: none; }
