/* Blog orkacbt.id/blog (W4). Tema terang seperti website: teal #0F766E (aksi), gelap #111827, latar #F8FAFC.
   Font sistem (tanpa unduhan font, cepat di HP). Lebar minimal 360 px, target sentuh 44 px. */
:root {
  --teal: #0f766e;
  --teal-dark: #0c5f59;
  --teal-soft: #ccfbf1;
  --ink: #111827;
  --muted: #475569;
  --line: #e2e8f0;
  --canvas: #f8fafc;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.7 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Kerangka */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: .5rem 1rem; min-height: 64px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: .25rem 1rem; flex-wrap: wrap; margin-left: auto; font-size: .94rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { font-weight: 700; }
.nav a.cta, .btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 8px;
  background: var(--teal); color: #fff; font-weight: 700; text-decoration: none;
}
.nav a.cta:hover, .btn:hover { background: var(--teal-dark); color: #fff; }
main { padding: 2rem 0 3rem; }
.foot { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .88rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }

.preview { background: #fffbeb; border: 1px solid #f59e0b; color: #92400e; border-radius: 8px; padding: .6rem .9rem; font-size: .92rem; }

/* Judul halaman */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.intro { margin-bottom: 2rem; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .75rem; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 .75rem; }
.meta { font-size: .88rem; color: var(--muted); margin: 0; }

/* Daftar artikel */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.25rem 1rem; }
.card h2 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 .4rem; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--teal); text-decoration: underline; }
.card p { margin: 0 0 .5rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: .1rem .6rem; margin: 0 0 .5rem; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 1.5rem; }

/* Isi artikel */
.prose { overflow-wrap: break-word; }
.prose h2 { font-size: 1.45rem; line-height: 1.3; margin: 2.2rem 0 .7rem; }
.prose h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.8rem 0 .5rem; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote, .prose pre { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .25rem 0; }
.prose blockquote { border-left: 4px solid var(--teal); background: #fff; padding: .75rem 1rem; color: var(--muted); }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: #eef2f7; border-radius: 4px; padding: .1em .3em; }
.prose pre { background: var(--ink); color: #e2e8f0; border-radius: 8px; padding: 1rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: #eef2f7; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Ajakan dan artikel lain */
.promo { margin: 2.5rem 0 2rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 1.25rem; }
.promo h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.promo p { margin: 0 0 .75rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: 0; }
.related h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.related ul { margin: 0; padding-left: 1.2rem; }
.related li { margin: .4rem 0; }

/* HP: header satu baris (ajakan daftar tetap ada di kotak akhir artikel). */
@media (max-width: 560px) {
  .top .wrap { flex-wrap: nowrap; }
  .nav { gap: .75rem; font-size: .9rem; }
  .nav a.cta { display: none; }
}

/* Sidebar (W5a): di layar lebar di kanan, di HP setelah isi. */
.with-side { display: grid; gap: 2.5rem; }
.with-side > .main { min-width: 0; max-width: 760px; }
@media (min-width: 960px) {
  .with-side { grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; }
  .side { position: sticky; top: 1.5rem; align-self: start; }
}
.side { display: grid; gap: 1.5rem; align-content: start; }
.search label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.search-row { display: flex; gap: .5rem; }
.search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 .75rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.search input:focus { outline: 2px solid rgba(15, 118, 110, .35); border-color: var(--teal); }
.search button { min-height: 44px; padding: 0 1rem; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search button:hover { background: var(--teal-dark); }
.recent { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.recent h2 { font-size: 1rem; margin: 0 0 .5rem; }
.recent ul { list-style: none; margin: 0; padding: 0; }
.recent li { padding: .55rem 0; border-top: 1px solid var(--line); line-height: 1.4; }
.recent li:first-child { border-top: 0; padding-top: 0; }
.recent a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.recent a:hover { color: var(--teal); text-decoration: underline; }
.recent span { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }

/* Halaman daftar di HP: kotak cari naik ke atas daftar artikel, artikel terbaru tetap di bawah. */
@media (max-width: 959px) {
  .search-first > .side { display: contents; }
  .search-first > .side > .search { order: -1; }
  .search-first > .side > .recent { order: 1; }
  .search-first > .main { display: contents; }
  .search-first > .main > .intro { order: -2; margin-bottom: 0; }
}

/* Pindah halaman */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; font-size: .95rem; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--teal); }
.pager .pos { color: var(--muted); }
