/* Panduan airvlo.com/guide (GT-2; GT-9: satu halaman per bagian). Berbagi styles.css landing untuk
   font, token, masthead, tombol & footer; di sini hanya tata letak panduan. Tanpa gaya inline (CSP).
   Bingkai halaman dibangkitkan landing/scripts/build-guide.mjs. */

/* ---------- Hero ---------- */
.guide-hero { background: var(--teal); color: #FFFFFF; }
.guide-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.guide-hero__text { flex: 1 1 480px; min-width: 0; }
.guide-hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.guide-hero__lead { margin: 14px 0 0; max-width: 560px; font-size: 19px; line-height: 1.5; color: #DDEFEC; }
.guide-hero__art { flex: 0 1 360px; max-width: 100%; height: auto; }
.guide-hero__art path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.guide-hero__art .is-faint { opacity: .7; }
.guide-hero__art .is-fainter { opacity: .5; }

/* Pencarian: bukan <form> (CSP form-action 'none') — murni JS di halaman. */
.guide-search { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.guide-search__input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.guide-search__input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.guide-search__btn {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: #FFFFFF;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.guide-search__btn:hover { background: rgba(255, 255, 255, .08); }
.guide-search__status { flex: 1 0 100%; box-sizing: border-box; margin: 4px 0 0; padding-left: 18px;min-height: 22px; font-size: 15px; color: #DDEFEC; }
/* Hasil pencarian lintas halaman (daftar tautan di bawah kotak cari). */
.guide-results {
  flex: 1 0 100%;
  list-style: none;
  margin: 4px 0 0;
  padding: 6px;
  border-radius: 18px;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 18px 40px -24px rgba(7, 63, 63, .55);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guide-results[hidden] { display: none; }
.guide-results__link { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.guide-results__link:hover, .guide-results__link:focus-visible { background: var(--tint); }
.guide-results__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.guide-results__sec { font-size: 13px; color: var(--ink-3); }
.guide-results__title { font-weight: 600; color: var(--teal-deep); }
.guide-results__snip { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigasi situs: penanda halaman aktif */
.site-nav a[aria-current] { color: #FFFFFF; font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Bilah halaman bagian: jejak + pencarian ---------- */
.guide-bar { background: var(--teal); color: #FFFFFF; }
.guide-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.guide-bar__crumb { margin: 0; font-size: 15px; color: #DDEFEC; }
.guide-bar__crumb a { color: #FFFFFF; font-weight: 600; }
.guide-bar .guide-search { margin-top: 0; flex: 1 1 420px; }
.guide-bar .guide-search__input, .guide-bar .guide-search__btn { min-height: 46px; }
.guide-bar .guide-search__status:empty { display: none; }

/* ---------- Tata letak ---------- */
.guide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}
.guide-main { flex: 999 1 560px; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 72px; }

/* ---------- Daftar bagian: jalur pipa ---------- */
.guide-toc { flex: 1 1 240px; max-width: 290px; padding: 4px 4px 16px; }
@media (min-width: 900px) {
  .guide-toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
}
/* Lipatan: di layar lebar ringkasannya disembunyikan (selalu terbuka); di HP tertutup lewat JS. */
.guide-toc__summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--teal-deep);
  cursor: pointer;
  list-style: none;
}
.guide-toc__summary::-webkit-details-marker { display: none; }
.guide-toc__summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--teal); color: #FFFFFF; font-size: 16px; line-height: 1; }
.guide-toc__fold[open] > .guide-toc__summary::before { content: '–'; }
.guide-toc__fold[open] > .guide-toc__summary { margin-bottom: 8px; }
@media (min-width: 900px) {
  .guide-toc__summary { display: none; }
}
.guide-toc__title { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.guide-toc__title a { color: inherit; text-decoration: none; }
.guide-toc__title a:hover, .guide-toc__title a[aria-current] { color: var(--teal-deep); }
.guide-toc__list { list-style: none; margin: 0; padding: 0; }
.guide-toc__item { position: relative; padding-left: 30px; }
/* Pipa: garis 2 px di kiri; simpul di depan tiap bagian. */
.guide-toc__item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.guide-toc__item:last-child::before { bottom: auto; height: 20px; }
.guide-toc__item::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 2px solid #A9C7C2;
  transition: all .2s ease;
}
.guide-toc__item.is-done::before { background: var(--teal); }
.guide-toc__item.is-done::after { background: var(--teal); border-color: var(--teal); }
.guide-toc__item.is-active::after {
  left: 1px;
  top: 10px;
  width: 16px;
  height: 16px;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--tint-2);
}
.guide-toc__link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}
.guide-toc__link:hover { color: var(--teal-dark); background: var(--tint); }
.guide-toc__item.is-active > .guide-toc__link { color: var(--teal-deep); font-weight: 600; background: var(--tint); }
.guide-toc__subs { list-style: none; margin: 0 0 6px; padding: 0 0 0 10px; display: flex; flex-direction: column; }
.guide-toc__subs a { display: block; padding: 5px 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; border-radius: 8px; }
.guide-toc__subs a:hover { color: var(--teal-dark); background: var(--tint); }
.guide-toc__subs a[aria-current="location"] { color: var(--teal-deep); font-weight: 600; }
/* Dengan JS: sub-bagian hanya di bawah bagian aktif. Tanpa JS: semua terlihat. */
.js .guide-toc__item:not(.is-active) > .guide-toc__subs { display: none; }
.guide-toc__replay { display: inline-flex; align-items: center; min-height: 44px; margin: 16px 0 0 30px; padding: 0 10px; font-size: 14px; }

/* ---------- Bagian ---------- */
.guide-sec { scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.guide-sub { scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.guide-sec h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.015em; }
.guide-sec h2 { margin: 12px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }
.guide-sub h3 { margin: 8px 0 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.3; }
.guide-sec p, .guide-sec li { max-width: 66ch; }
.guide-sec p { margin: 0; color: var(--ink-2); }
.guide-lead { font-size: 18px; }
.guide-sec ul.guide-list { margin: 0; padding-left: 22px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.guide-sec strong { color: var(--ink); }

/* Langkah bernomor bulat */
.guide-steps { list-style: none; counter-reset: langkah; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.guide-steps > li { counter-increment: langkah; display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); }
.guide-steps > li::before {
  content: counter(langkah);
  flex: 0 0 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-2px);
}

/* Screenshot */
.guide-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: var(--tint);
  box-shadow: 0 18px 40px -24px rgba(7, 63, 63, .45);
  border: 1px solid var(--line-soft);
}
.guide-shot figcaption { font-size: 14px; color: var(--ink-3); }

/* Kartu elemen berikon */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.guide-card { padding: 16px; border-radius: 16px; background: #F5FAF9; display: flex; flex-direction: column; gap: 6px; }
.guide-card img { width: 26px; height: 26px; }
.guide-card svg { width: 28px; height: 28px; color: var(--teal); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.guide-card .is-solid { fill: currentColor; stroke: none; }
.guide-card .is-tinted { fill: currentColor; fill-opacity: .28; }
.guide-card span { font-size: 15px; color: var(--ink-2); }

/* Tips: tembaga lembut */
.guide-tip { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #FBF1E6; color: #4E2E10; }
.guide-tip svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: #C97A3A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-tip p { margin: 0; color: #4E2E10; }

kbd {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 14px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.guide-tip kbd { background: #FFFFFF; }
mark { background: #FCE6C8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* Penutup */
.guide-help { padding: 28px; border-radius: 20px; background: var(--tint); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.guide-help > div { flex: 1 1 320px; }
.guide-help h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; }
.guide-help p { margin: 6px 0 0; color: var(--ink-2); }
.guide-empty { padding: 28px; border-radius: 20px; background: var(--tint); }
.guide-empty[hidden] { display: none; }
.guide-empty p { margin: 0; color: var(--ink-2); }

/* ---------- Layar sempit ---------- */
@media (max-width: 899px) {
  .guide { gap: 32px; padding-top: 32px; }
  .guide-toc { flex-basis: 100%; max-width: none; padding: 16px; border-radius: 16px; background: var(--tint); }
  .guide-main { gap: 56px; }
}
@media (max-width: 600px) {
  .guide { padding-left: 16px; padding-right: 16px; font-size: 16px; }
  .guide-hero__inner { padding: 32px 16px 40px; }
  .guide-hero__art { display: none; }
  .guide-search__btn { flex: 1 0 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-toc__item::after { transition: none; }
}

/* ---------- Previous / Next ---------- */
.guide-pager { display: flex; flex-wrap: wrap; gap: 12px; margin-top: -24px; }
.guide-pager__link, .guide-pager__gap { flex: 1 1 260px; }
.guide-pager__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
}
.guide-pager__link:hover { border-color: var(--teal); background: var(--tint); }
.guide-pager__link--next { text-align: right; }
.guide-pager__dir { font-size: 14px; color: var(--ink-3); }
.guide-pager__title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--teal-deep); }

/* ---------- Halaman pembuka: daftar bagian ---------- */
.guide-parts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.guide-sec .guide-parts li { max-width: none; }
.guide-part__link {
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 4px;
  padding: 18px;
  border-radius: 16px;
  background: #F5FAF9;
  color: var(--ink);
  text-decoration: none;
}
.guide-part__link:hover { background: var(--tint); }
.guide-part__num { grid-row: span 2; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 15px; color: var(--teal); padding-top: 2px; }
.guide-part__title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--teal-deep); }
.guide-part__lead { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
