/* blog.jogjarental.com — stylesheet tunggal, tanpa font eksternal */
:root {
  --ink: #0e1726;
  --ink-soft: #334155;
  --muted: #5b6b7f;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f7fafc;
  --teal: #0f766e;
  --teal-dark: #0b5c56;
  --gold: #b45309;
  --gold-soft: #fef3c7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --wrap: 1120px;
  --prose: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.7; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 99; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand span.mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--teal), #14b8a6); display: grid; place-items: center; color: #fff; font-size: .85rem; font-weight: 800; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 11px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.nav a:hover { background: var(--soft); color: var(--teal-dark); }
.nav a[aria-current="page"] { background: #ecfdf5; color: var(--teal-dark); }
/* Di layar sempit: header tidak lagi sticky dan nav dibuat membungkus (wrap),
   sehingga SEMUA kategori terlihat dan tidak ada item yang terpotong di tepi kanan.
   Sticky dibuang karena header setinggi dua baris akan memakan layar terus-menerus. */
@media (max-width: 699px) {
  .site-header { position: static; }
  .header-in { flex-wrap: wrap; min-height: 0; padding: 8px 0 4px; row-gap: 0; }
  .brand small { display: none; }
  .brand span.mark { width: 26px; height: 26px; border-radius: 8px; font-size: .78rem; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 3px; margin-top: 4px;
         flex-wrap: wrap; overflow: visible; }
  .nav a { padding: 5px 8px; font-size: .84rem; }
}

/* hero */
.hero { padding: 44px 0 8px; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; max-width: 20ch; }
.hero p.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; margin: 0 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; text-decoration: none; }
.pill--gold { background: var(--gold-soft); border-color: #fde68a; color: #92400e; }

/* cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 42px 0 18px; }
.section-head h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 0; }
.section-head a { font-size: .9rem; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card img { aspect-ratio: 40 / 21; object-fit: cover; width: 100%; background: var(--soft); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.06rem; line-height: 1.35; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: 6px; font-size: .78rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-dark); }

/* article */
.article-head { padding: 34px 0 0; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #94a3b8; }
.article-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 14px; max-width: 22ch; }
.article-head .dek { color: var(--ink-soft); font-size: 1.06rem; max-width: 66ch; margin: 0 0 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 0 0 26px; }
figure.hero { margin: 0 0 28px; }
figure.hero img { border-radius: var(--radius); border: 1px solid var(--line); }
figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 56px; }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .aside { position: sticky; top: 84px; } }

.prose { max-width: var(--prose); font-size: 1.02rem; overflow-wrap: break-word; }
/* URL sumber panjang tidak punya spasi: tanpa ini halaman melebar ke kanan di HP
   (terukur 433px pada layar 390px) dan teks terlihat mepet ke tepi. */
.prose a, .prose li, .prose p { overflow-wrap: anywhere; }
.credit, .credit a { overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.42rem; line-height: 1.25; letter-spacing: -.02em; margin-top: 1.9em; }
.prose h3 { font-size: 1.14rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--teal); background: var(--soft); border-radius: 0 10px 10px 0; color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.prose img { border-radius: 10px; }
.prose code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: .9em; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--soft); font-size: .9rem; }
.toc strong { display: block; margin-bottom: 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc a { text-decoration: none; }

.faq { margin-top: 2em; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--paper); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

.cta { margin: 2em 0; border: 1px solid #99f6e4; background: linear-gradient(180deg, #f0fdfa, #ecfdf5); border-radius: var(--radius); padding: 20px 22px; }
.cta h2, .cta h3 { margin: 0 0 8px; font-size: 1.12rem; }
.cta p { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; }
.btn { display: inline-block; background: var(--teal-dark); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 10px; font-size: .93rem; }
.btn:hover { background: var(--teal); color: #fff; }
.btn--ghost { background: transparent; color: var(--teal-dark); border: 1.5px solid var(--teal-dark); }
.btn--ghost:hover { background: #ecfdf5; color: var(--teal-dark); }

.aside { display: grid; gap: 18px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.aside-card h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-card li a { text-decoration: none; font-weight: 600; font-size: .93rem; line-height: 1.4; display: block; }
.aside-card li small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 34px 0 40px; margin-top: 20px; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--teal-dark); text-decoration: underline; }
.footer-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

.notfound { padding: 70px 0; text-align: center; }
.notfound h1 { font-size: 2.4rem; margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .site-header, .aside, .cta, .site-footer { display: none; } .prose { max-width: none; } }

.credit { display: block; margin-top: 6px; font-size: .74rem; color: var(--muted); }
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* iklan — jarak aman, dan wadah ikut menutup bila unit tidak terisi.
   Tanpa ini, min-height akan meninggalkan kotak kosong 100px di halaman. */
.ad-wrap { margin: 26px 0; display: flex; justify-content: center; align-items: center; }
.ad-wrap ins { width: 100%; }
.ad-wrap:has(ins[data-ad-status="unfilled"]) { display: none; }
@media (min-width: 700px) { .ad-wrap { margin: 32px 0; } }
