/* handphone.id — halaman artikel & halaman situs. Memakai token dari style.css */
.b-page { min-height: 100vh; display: flex; flex-direction: column; }
.b-page > main { flex: 1; }
.b-nav { display: flex; gap: 4px; margin-left: 8px; }
.b-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; }
.b-nav a:hover { color: var(--ink); background: var(--hover); }
.b-nav a.on { color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-edge); }
.b-page .topbar .iconbtn { margin-left: auto; }

/* ---------- Daftar ---------- */
.b-list { padding-top: 28px; padding-bottom: 70px; display: grid; gap: 24px; }
.b-hero { display: grid; gap: 10px; max-width: 760px; }
.b-hero h1 { margin: 0; font: 700 40px/1.1 var(--display); letter-spacing: -.03em; }
.b-hero > p { margin: 0; color: var(--muted); font-size: 16.5px; }
.b-search { margin: 8px 0 0; max-width: 460px; }
.b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b-chips a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--ink); text-decoration: none; font-size: 14px; }
.b-chips a small { color: var(--muted); margin-left: 4px; }
.b-chips a.on { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.b-chips a.on small { color: inherit; opacity: .6; }
.b-found { margin: 0; color: var(--muted); } .b-found a { color: var(--accent); }
.b-empty { padding: 60px 0; text-align: center; color: var(--muted); }
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.b-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.b-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(46, 64, 130, .18); }
.b-cover { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--plate); }
.b-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-cover-ph { display: flex; align-items: flex-end; height: 100%; padding: 18px; font: 600 18px/1.25 var(--display); color: #fff;
  background: linear-gradient(135deg, var(--accent), #7C3AED 60%, #0E9F8E); }
.b-card-body { display: grid; gap: 8px; padding: 18px 20px 20px; align-content: start; flex: 1; }
.b-meta { margin: 0; color: var(--muted); font-size: 13px; }
.b-meta a { color: var(--accent); text-decoration: none; position: relative; z-index: 1; }
.b-card h2 { margin: 0; font: 600 19px/1.3 var(--display); letter-spacing: -.01em; }
.b-card h2 a { color: var(--ink); text-decoration: none; }
.b-card h2 a::after { content: ""; position: absolute; inset: 0; }
.b-sum { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.b-card.featured { flex-direction: row; }
.b-card.featured .b-cover { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
.b-card.featured .b-card-body { flex: 1; padding: 30px; align-content: center; }
.b-card.featured h2 { font-size: 28px; }
.b-card.featured .b-sum { -webkit-line-clamp: 4; font-size: 15.5px; }
.b-pager { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
.b-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-radius: 24px;
  background: var(--solid); color: var(--on-solid);
}
.b-cta h2 { margin: 0 0 4px; font: 600 21px/1.2 var(--display); }
.b-cta p { margin: 0; opacity: .75; }
.b-cta .btn { background: var(--accent); border-color: var(--accent); color: #fff; flex: none; }

/* ---------- Artikel ---------- */
.b-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.b-preview { padding: 10px 16px; text-align: center; background: #FDE68A; color: #3B2F05; font-size: 14px; }
.b-preview a { color: inherit; font-weight: 600; margin-left: 8px; }
.b-read { padding-bottom: 70px; display: grid; gap: 28px; }
.b-head { max-width: 860px; text-align: center; padding-top: 34px; display: grid; gap: 14px; justify-items: center; }
.b-head .pp-crumbs { justify-content: center; margin: 0; }
.b-head h1 { margin: 0; font: 700 clamp(30px, 4.4vw, 48px)/1.12 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.b-lead { margin: 0; max-width: 680px; font-size: 19px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.b-hero-img { margin: 0 auto; width: min(1040px, calc(100% - 40px)); }
.b-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 26px; box-shadow: var(--glass-shadow); }
.b-body { display: grid; grid-template-columns: minmax(0, 840px); justify-content: center; gap: 28px; }
.b-body.has-toc { grid-template-columns: 260px minmax(0, 820px); }
.b-toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.b-toc details { padding: 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
.b-toc summary { font: 600 14px/1.2 var(--display); cursor: pointer; list-style: none; }
.b-toc summary::-webkit-details-marker { display: none; }
.b-toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.b-toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.4; text-decoration: none; border-left: 2px solid transparent; }
.b-toc li.lv3 a { padding-left: 22px; font-size: 13px; }
.b-toc a:hover { color: var(--ink); background: var(--hover); }
.b-toc a.on { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }
.b-sheet { padding: clamp(22px, 4vw, 48px); border-radius: 26px; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); min-width: 0; }
.b-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.b-share span { color: var(--muted); font-size: 14px; margin-right: 4px; }
.b-share a, .b-share button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--ink); font-size: 13.5px; text-decoration: none; }
.b-share a:hover, .b-share button:hover { border-color: var(--accent); color: var(--accent); }
.b-related { display: grid; gap: 16px; }
.b-related-head { display: flex; align-items: baseline; justify-content: space-between; }
.b-related-head h2 { margin: 0; font: 600 24px/1.2 var(--display); }
.b-related-head a { color: var(--accent); }
.b-read > .b-cta { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Tipografi isi (dipakai juga oleh editor admin) ---------- */
.k-prose { font: 17.5px/1.75 var(--body); color: var(--ink); overflow-wrap: break-word; }
.k-prose > :first-child { margin-top: 0; }
.k-prose p { margin: 0 0 1.1em; }
.k-prose h2 { font: 700 27px/1.25 var(--display); letter-spacing: -.02em; margin: 1.8em 0 .6em; scroll-margin-top: 100px; }
.k-prose h3 { font: 600 21px/1.3 var(--display); margin: 1.5em 0 .5em; scroll-margin-top: 100px; }
.k-prose h4 { font: 600 17.5px/1.4 var(--display); margin: 1.3em 0 .4em; }
.k-prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.k-prose ul, .k-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.k-prose li { margin: .3em 0; }
.k-prose li > p { margin: 0; }
.k-prose blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--accent); font-size: 1.08em; font-style: italic; color: var(--muted); }
.k-prose blockquote p:last-child { margin: 0; }
.k-prose pre { margin: 1.4em 0; padding: 16px 18px; border-radius: 14px; background: #0D1424; color: #E6EAF3; overflow-x: auto; font: 14px/1.6 ui-monospace, Consolas, monospace; }
.k-prose code { font: .9em ui-monospace, Consolas, monospace; padding: 1px 6px; border-radius: 6px; background: var(--hover); }
.k-prose pre code { padding: 0; background: none; }
.k-prose hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.2em 0; }
.k-prose img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 16px; }
.k-prose figure { margin: 1.6em 0; } .k-prose figcaption { text-align: center; color: var(--muted); font-size: 14px; }
.k-prose mark { background: rgba(250, 204, 21, .45); color: inherit; padding: 0 3px; border-radius: 4px; }
.k-table-wrap, .k-prose .tableWrapper { margin: 1.6em 0; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line-strong); }
.k-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.k-prose th, .k-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal; }
.k-prose th { background: var(--hover); font-weight: 600; color: var(--ink); position: static; }
.k-prose tr:last-child td { border-bottom: 0; }
.k-prose th p, .k-prose td p { margin: 0; }
.k-prose [data-callout] { position: relative; margin: 1.6em 0; padding: 16px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid transparent; }
.k-prose [data-callout][data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 600 13px/1.3 var(--display); letter-spacing: .02em; }
.k-prose [data-callout="tip"] { background: rgba(61, 220, 151, .14); }
.k-prose [data-callout="warning"] { background: rgba(245, 158, 11, .16); }
.k-prose [data-callout="note"] { background: var(--hover); }
.k-prose [data-callout] p:last-child { margin-bottom: 0; }
.k-prose details { margin: .8em 0; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--glass); }
.k-prose summary { font: 600 16.5px/1.4 var(--display); cursor: pointer; }
.k-prose details[open] summary { margin-bottom: 8px; }
.k-prose details p:last-child { margin-bottom: 0; }
.k-video { margin: 1.6em 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.k-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.k-prose .k-line { margin-top: -.6em; }
.k-gap-tight .k-line { margin-top: -1.1em; }
.k-gap-relaxed .k-line { margin-top: 0; }
.k-font-inter { font-family: "Inter", system-ui, sans-serif; }
.k-font-lora { font-family: "Lora", Georgia, serif; font-size: 18.5px; line-height: 1.8; }
.k-font-source-serif { font-family: "Source Serif 4", Georgia, serif; font-size: 18.5px; line-height: 1.8; }
.k-dropcap > p:first-of-type::first-letter { float: left; font: 700 3.6em/.85 var(--display); margin: .08em .1em 0 0; color: var(--accent); }
.k-indent p + p { text-indent: 1.6em; }

/* Kartu HP di dalam artikel */
.k-phone { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; margin: 1.8em 0; padding: 18px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); font-size: 15px; line-height: 1.5; }
.k-phone-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; border-radius: 16px; background: var(--plate); padding: 12px; }
.k-prose .k-phone-img img { margin: 0; max-height: 100%; width: auto; border-radius: 0; filter: drop-shadow(0 10px 14px rgba(10, 16, 40, .25)); }
.k-phone-body { display: grid; gap: 6px; align-content: center; min-width: 0; }
.k-phone-brand { color: var(--muted); font-size: 13px; }
.k-prose a.k-phone-name { font: 600 20px/1.25 var(--display); color: var(--ink); text-decoration: none; }
.k-prose a.k-phone-name:hover { color: var(--accent); }
.k-prose .k-phone-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; padding: 0; list-style: none; }
.k-prose .k-phone-facts li { margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--hover); font-size: 13px; }
.k-phone-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.k-phone-price { font: 600 19px/1.2 var(--display); }
.k-phone-buys { display: flex; gap: 6px; }
.k-prose .k-phone-buys a.buy { min-height: 34px; padding: 0 14px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }

/* ---------- Halaman situs ---------- */
.b-pagewrap { padding-top: 30px; padding-bottom: 70px; display: grid; grid-template-columns: minmax(0, 820px); justify-content: center; gap: 24px; }
.b-pagewrap.has-side { grid-template-columns: minmax(0, 820px) 240px; }
.b-pagehead { margin-bottom: 26px; } .b-pagehead h1 { margin: 0 0 6px; font: 700 34px/1.15 var(--display); }
.b-side { position: sticky; top: 92px; align-self: start; display: grid; gap: 4px; padding: 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); }
.b-side h2 { margin: 0 0 6px; font: 600 14px/1.2 var(--display); color: var(--muted); }
.b-side a { padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.b-side a:hover { background: var(--hover); }

.b-foot { padding: 28px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.b-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.b-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.b-foot a { color: var(--muted); text-decoration: none; } .b-foot a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-body.has-toc { grid-template-columns: minmax(0, 820px); }
  .b-toc { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .b-nav a { padding: 7px 10px; }
  .b-hero h1 { font-size: 32px; }
  .b-grid { grid-template-columns: 1fr; }
  .b-card.featured { flex-direction: column; }
  .b-card.featured .b-cover { min-height: 0; aspect-ratio: 1200 / 630; }
  .b-card.featured .b-card-body { padding: 20px; }
  .b-card.featured h2 { font-size: 22px; }
  .b-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
  .k-prose { font-size: 17px; }
  .k-phone { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .b-pagewrap.has-side { grid-template-columns: 1fr; }
  .b-side { position: static; }
  .b-hero-img { width: calc(100% - 28px); }
}
@media (max-width: 520px) { .b-nav { margin-left: 0; } .b-page .logo { font-size: 0; } }
