/* Komponen tambahan: pencarian, newsletter, komentar, tombol atas, legal */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.chevron { color: var(--ink-soft); opacity: .7; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--ink-soft); }

/* Pencarian di header */
.topbar { row-gap: 10px; }
.hsearch { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 4px 2px 14px; }
.hsearch input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; width: 150px; color: var(--ink); }
.hsearch button { border: 0; background: var(--ink); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.hsearch input:focus-visible, .search input:focus-visible, .nl-form input:focus-visible, .comment-form input:focus-visible, .comment-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search button:focus-visible, .btn:focus-visible, .share-btn:focus-visible, .hsearch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Newsletter */
.news-box { margin: 36px 0 0; padding: clamp(22px, 4vw, 32px); border-radius: 18px; background: var(--accent-soft); display: grid; gap: 18px; }
.news-box h2 { font-size: clamp(22px, 3vw, 26px); margin: 6px 0 8px; }
.news-box .eyebrow { display: inline-flex; gap: 6px; align-items: center; }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nl-form input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1px solid #b7d6d9; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.nl-form .btn { cursor: pointer; }
.nl-form .btn:disabled, .comment-form .btn:disabled { opacity: .6; cursor: wait; }
.form-msg { flex: 1 1 100%; margin: 0; font-size: 14px; min-height: 1.2em; }
.form-msg.ok { color: #2e7d5b; }
.form-msg.err { color: #a2473a; }

/* Komentar */
.comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.comments h2 { font-size: clamp(22px, 3vw, 26px); }
.comment-list { display: grid; gap: 12px; }
.comment { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.comment header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.comment time { font-size: 12px; color: var(--ink-soft); }
.comment p { margin: 0; font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
.comment-form { display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.comment-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.comment-form input, .comment-form textarea { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.comment-form textarea { resize: vertical; min-height: 110px; }
.comment-form .btn { justify-self: start; cursor: pointer; }

/* Tombol kembali ke atas */
.to-top { position: fixed; right: 18px; bottom: 24px; z-index: 45; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(20, 32, 43, .2); }
.to-top[hidden] { display: none; }

/* Blok legal dan kartu panel */
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--ink); }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 8px; }
.legal a { color: var(--accent); }
.panel-list { display: grid; gap: 14px; }
.panel-list .panel h3 { font-size: 18px; }

/* Pemisahan dan sisa ruang di HP */
@media (max-width: 479px) {
  .hsearch { width: 100%; }
  .hsearch input { flex: 1; width: auto; }
  .to-top { bottom: 84px; right: 14px; }
  .nl-form .btn { width: 100%; justify-content: center; }
  .comment-form .btn { width: 100%; justify-content: center; }
}
@media (min-width: 720px) {
  .panel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-links { grid-column: 1 / -1; }
}

.logo { display: block; width: 30px; height: 30px; object-fit: contain; }
/* ===================================================
   SKEMA WARNA SELARAS LOGO: navy, teal, cyan, mint
   Berlaku untuk seluruh situs
   =================================================== */
:root {
  --bg: #f6f7f7;
  --ink: #0f2e2a;
  --ink-soft: #4d6b65;
  --line: #e2e6e5;
  --accent: #138a74;
  --accent-soft: rgba(19, 138, 116, .08);
  --card: rgba(255, 255, 255, .92);
  --thumb: #eceeed;
  --navy: #0e6e5e;
  --teal: #1fa98f;
  --cyan: #2cc09a;
  --mint: #7fd9a0;
  --mint-soft: #b4e59a;
  --wash: #f0f2f1;
}

html { background: var(--bg); }

body {
  background:
    linear-gradient(180deg, #fafafa 0%, #f6f7f7 50%, #eff1f0 100%) fixed;
  color: var(--ink);
  position: relative;
}

/* Tekstur halus di seluruh halaman, tidak menghalangi klik */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0.20  0 0 0 0 0.22  0 0 0 0 0.22  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
}

/* Konten di atas tekstur */
.topbar, main, .site-foot, .notice { position: relative; z-index: 1; }

/* Kartu dan panel */
.panel, .member, .product, .quick, .toc, .author-box, .comment, .comment-form,
.faq details, .faq-list details, .compare, .hsearch, .chips a, .share-btn,
.hero-media, .a-cover, .article .thumb, .article-body .callout, .disclosure-box {
  background-color: var(--card);
}

.panel, .member, .product, .quick, .toc, .author-box, .comment, .comment-form,
.faq details, .faq-list details, .compare {
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 30, 26, .04), 0 10px 26px rgba(30, 40, 38, .05);
}

.hsearch { border-color: var(--line); }
.chips a { background-color: var(--card); border-color: var(--line); }
.share-btn { background-color: var(--card); border-color: var(--line); }
.hero-media { background-color: var(--wash); }
.a-cover { background: #ffffff; }
.article .thumb { background-color: var(--thumb); }
.article { border-top-color: var(--line); }
.sec { border-top-color: var(--line); }
.toc, .quick { background: linear-gradient(180deg, #ffffff, #f3f5f4); }

/* Kotak newsletter: gradient navy ke teal dengan sentuhan mint */
.news-box {
  background:
    linear-gradient(135deg, rgba(19, 138, 116, .07) 0%, rgba(31, 169, 143, .05) 55%, rgba(127, 217, 160, .08) 100%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(30, 40, 38, .06);
}
.nl-form input { background: #fff; border-color: #bfe0da; }

/* Kotak ajakan kontak: gradient navy ke teal, sama dengan logo */
.contact-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: #f3fbfa;
  box-shadow: 0 14px 32px rgba(14, 110, 94, .22);
}
.contact-card h2 { color: #ffffff; }
.contact-card p { color: rgba(243, 251, 250, .88); }
.contact-card a { color: #ffffff; }
.contact-card .btn { background: #ffffff; color: var(--navy); }

/* Tombol utama: teal ke cyan */
.btn, .hsearch button, .search button, .nl-form .btn, .comment-form .btn {
  background-image: linear-gradient(180deg, #2cc09a 0%, #138a74 100%);
}
.btn-ghost { background-color: var(--card); }

/* Pengungkapan dan teks pendukung */
.disclosure-box { background-color: rgba(19, 138, 116, .06); border: 1px solid rgba(19, 138, 116, .14); }
.callout { background-color: #f5f7f6; border-left-color: var(--accent); }

/* Tabel perbandingan */
.compare th { background: linear-gradient(180deg, #eef0ef, #e4e7e6); }

/* Footer */
.site-foot {
  background: linear-gradient(180deg, transparent 0%, rgba(226, 230, 229, .6) 100%);
  border-top-color: var(--line);
}

/* Banner pemberitahuan: navy gelap dengan gradient ke teal */
.notice { background: linear-gradient(90deg, #0e6e5e 0%, #138a74 100%); }

/* Halaman artikel */
.article-body p, .article-body li { color: var(--ink); }
.article-body h2, .article-body h3 { color: var(--ink); }

/* ===== Transisi FAQ ===== */
.faq details, .faq-list details {
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.faq details[open], .faq-list details[open] {
  border-color: rgba(19, 138, 116, .35);
  box-shadow: 0 8px 22px rgba(19, 138, 116, .10);
}
.faq summary, .faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq-list summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s ease;
  flex: 0 0 auto;
}
.faq details[open] > summary::after, .faq-list details[open] > summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.faq details[open] > p, .faq-list details[open] > p {
  animation: faqIn .32s ease both;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq details, .faq-list details, .faq summary::after, .faq-list summary::after,
  .faq details[open] > p, .faq-list details[open] > p { transition: none; animation: none; }
}
