/* Halaman Learning. Memakai token dan komponen dari site.css; di sini cuma gaya artikel. */

.nav-links a[aria-current="page"] { position: relative; font-weight: 700; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px; border-radius: 4px; background: var(--yellow); }

.learn-hero { padding-top: 64px; padding-bottom: 8px; }
.learn-hero .section-head { margin-bottom: 0; }
.learn-hero .section-title { font-size: clamp(2.3rem, 5vw, 3.8rem); }

/* ---------- Artikel ---------- */
.doc { padding-top: 28px; }
.doc-card { max-width: 860px; padding: 48px 56px; border-radius: 32px; background: var(--white); }
.doc-card h2 { margin: 44px 0 16px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card h3 { margin-bottom: 14px; font-size: 19px; font-weight: 800; }
.doc-card p { margin: 0 0 16px; font-size: 16px; line-height: 1.75; }
.doc-card a:not(.btn):not(.course) { text-decoration: underline; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 600; }
.doc-card a:not(.btn):not(.course):hover { background: #f6f7bd; }
.doc-card :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--bg); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }
.doc-card pre { margin: 0 0 22px; padding: 18px 22px; border-radius: 18px; background: var(--ink); color: var(--white); overflow-x: auto; }
.doc-card pre code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.65; white-space: pre; }
.doc-card p.io { margin: 6px 0 8px; color: var(--muted); font-size: 14px; }

.doc-shot { margin: 8px 0 24px; }
.doc-shot img { display: block; width: 100%; height: auto; border: 2.5px solid var(--ink); border-radius: 18px; }
.doc-video { margin: 8px 0 26px; border: 2.5px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--ink); }
.doc-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

/* ---------- Kredit sumber ---------- */
.doc-credit { max-width: 860px; margin-top: 18px; padding: 18px 22px; border-radius: 18px; background: var(--white); color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.doc-credit a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc-credit summary { margin-top: 8px; color: var(--ink); font-weight: 700; cursor: pointer; }
.doc-credit pre { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--bg); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }

.learn-join { margin-top: 24px; }



/* ---------- Halaman materi: sidebar + isi ---------- */
.doc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 40px; }
.doc-side { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: thin; }
.side-box { padding: 18px 14px; border-radius: 26px; background: var(--white); }
.side-box summary { padding: 0 8px 6px; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.side-box summary::-webkit-details-marker { display: none; }
.side-group { margin: 14px 8px 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.side-box ol { display: grid; gap: 2px; padding: 0; list-style: none; }
.side-box ol a { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.side-box ol a span { flex: none; min-width: 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.side-box ol a:hover { background: #f6f7bd; }
.side-box ol a[aria-current="page"] { background: var(--ink); color: var(--white); font-weight: 700; }
.side-box ol a[aria-current="page"] span { color: var(--yellow); }

.doc-main { min-width: 0; }
.doc-crumb { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.doc-crumb a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-title { margin-bottom: 22px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
.doc-main .doc-card { max-width: none; }
.doc-card h3 { margin: 30px 0 12px; }
.doc-card ul, .doc-card ol { margin: 0 0 18px; padding-left: 1.4em; font-size: 16px; line-height: 1.7; }
.doc-card li + li { margin-top: 6px; }
.doc-card li > ul, .doc-card li > ol { margin: 8px 0 0; }
.doc-card blockquote { margin: 0 0 20px; padding: 14px 18px; border-left: 5px solid var(--yellow-deep); border-radius: 0 14px 14px 0; background: #f6f7bd; }
.doc-card blockquote p { margin: 0; font-size: 15px; }
.doc-card blockquote p + p { margin-top: 8px; }
.doc-card-link { display: grid; gap: 4px; margin: 4px 0 22px; padding: 18px 20px; border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.doc-card-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.doc-card-link span { color: var(--muted); font-size: 12px; font-weight: 700; }
.doc-card-link b { font-size: 16px; }

.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.doc-pager a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 22px; background: var(--white); transition: transform .12s ease; }
.doc-pager a:hover { transform: translateY(-2px); }
.doc-pager a span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.doc-pager a b { font-size: 15px; line-height: 1.35; }
.doc-pager .next { grid-column: 2; text-align: right; background: var(--yellow); }
.doc-pager .next span { color: var(--ink); }
.doc-main .doc-credit { max-width: none; }

/* ---------- Daftar materi ---------- */
.learn-start { margin-top: 26px; border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.learn-start:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.toc-wrap { padding-top: 20px; }
.toc-group + .toc-group { margin-top: 34px; }
.toc-group h2 { margin-bottom: 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; list-style: none; }
.toc-item { display: flex; gap: 14px; height: 100%; padding: 18px 20px; border-radius: 22px; background: var(--white); transition: transform .12s ease, box-shadow .12s ease; }
.toc-item:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.toc-num { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); font-size: 13px; font-weight: 800; }
.toc-text { display: grid; gap: 5px; min-width: 0; }
.toc-text b { font-size: 16px; }
.toc-text small { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.toc-wrap .doc-credit { margin-top: 34px; max-width: none; }

@media (max-width: 920px) {
  .doc-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .doc-side { position: static; max-height: none; }
  .side-box summary { padding-bottom: 0; }
  .side-box summary::after { content: " ▾"; }
  .side-box[open] summary { padding-bottom: 6px; }
  .toc { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .doc-card { padding: 26px 18px; border-radius: 24px; }
  .doc-card pre { padding: 14px 16px; }
  .doc-card pre code { font-size: 13.5px; }
  .doc-pager { grid-template-columns: 1fr; }
  .doc-pager .next { grid-column: auto; }
}
.doc-card hr { margin: 30px 0; border: 0; border-top: 2px dashed #d6d6d6; }

/* AI Tools & Agent: tabel, video sendiri, pencarian materi */
.doc-table { margin: 8px 0 24px; overflow-x: auto; border: 2.5px solid var(--ink); border-radius: 14px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc-table th, .doc-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1.5px solid rgba(0,0,0,.12); }
.doc-table th { background: var(--ink); color: #fff; font-weight: 700; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table code { white-space: nowrap; }
.doc-video-native video { display: block; width: 100%; height: auto; background: var(--ink); }
.doc-video-native figcaption { padding: 8px 14px; color: #fff; font-size: .9rem; }
.learn-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.toc-search { display: flex; flex-direction: column; gap: 6px; max-width: 520px; margin-top: 22px; font-weight: 700; }
.toc-search input { padding: 12px 16px; font: inherit; font-weight: 500; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; }
.toc li.is-hidden, .toc-item.is-hidden, .toc-group.is-hidden { display: none; }
@media (max-width: 600px) { .doc-table table { font-size: .85rem; } }
/* Tutorial YouTube klik-untuk-memuat */
.yt-tutorials { margin-top: 34px; }
.yt-disclaimer { font-size: .9em; opacity: .8; }
.yt-card { margin: 16px 0 24px; border: 2.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.yt-frame { aspect-ratio: 16 / 9; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; text-align: center; }
.yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-frame.loaded { padding: 0; }
.yt-load { font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 999px; border: 2.5px solid #fff; background: #ff4d4d; color: #fff; cursor: pointer; }
.yt-privacy { font-size: .8em; opacity: .8; }
.yt-card figcaption { padding: 12px 16px; font-size: .92em; overflow-wrap: anywhere; }
.yt-note { margin: 8px 0 0; font-size: .95em; }
.yt-link { display: inline-block; margin-top: 8px; font-weight: 700; }
.yt-none { margin-top: 28px; padding: 12px 16px; border: 2px dashed var(--ink); border-radius: 14px; }

/* ===== Hero learning yang lebih hidup ===== */
.lh { position: relative; overflow: hidden; padding-top: 56px; }
.lh-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.lh-mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 .08em; }
.lh .section-sub { max-width: 34em; }
.lh-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; padding: 0; list-style: none; }
.lh-stats li { display: grid; min-width: 96px; padding: 10px 16px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.lh-stats b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.lh-stats span { font-size: 13px; font-weight: 600; opacity: .75; }
.lh-visual { position: relative; display: grid; gap: 18px; }
.lh-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(100%, 330px); justify-self: center; }
.lh-logo { display: grid; place-items: center; aspect-ratio: 1; border: 2.5px solid var(--ink); border-radius: 22px; background: var(--white); box-shadow: 4px 4px 0 var(--ink); animation: lh-float 6s ease-in-out infinite; }
.lh-logo img { width: 46%; height: auto; }
.lh-logo:nth-child(2n) { background: var(--yellow); animation-delay: -2s; }
.lh-logo:nth-child(3n) { animation-delay: -4s; transform: rotate(-3deg); }
.lh-preview { padding: 16px 18px; border: 2.5px solid var(--ink); border-radius: 20px; background: var(--ink); color: var(--white); }
.lh-preview-tag { margin: 0 0 8px; color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lh-prev-item { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: inherit; font-weight: 600; font-size: 14px; text-decoration: none; border-top: 1px solid rgba(255,255,255,.15); }
.lh-prev-item:first-of-type { border-top: 0; }
.lh-prev-item span { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; }
.lh-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 6px; }
.lh-chip { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.lh-chip span { padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 12px; }
.lh-chip:hover, .lh-chip:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); background: var(--yellow); }
.lh .toc-search { position: relative; z-index: 1; }
.lh-deco { position: absolute; z-index: 0; pointer-events: none; border: 2.5px solid var(--ink); }
@keyframes lh-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* CTA bawah */
.lh-cta { position: relative; overflow: hidden; padding-top: 30px; padding-bottom: 70px; }
.lh-cta-box { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; padding: 46px 24px; border: 3px solid var(--ink); border-radius: 32px; background: var(--yellow); box-shadow: 8px 8px 0 var(--ink); text-align: center; }
.lh-cta-kicker { margin: 0; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: var(--yellow); font-weight: 800; }
.lh-cta-box h2 { margin: 4px 0 0; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.lh-cta-box p:not(.lh-cta-kicker) { max-width: 32em; margin: 0 0 8px; font-weight: 500; }
.lh-cta-btn { background: var(--ink); color: var(--white); display: inline-flex; gap: 10px; align-items: center; }
.lh-deco-4 { top: 6px; right: 8%; width: 70px; height: 70px; border-radius: 50%; background: var(--white); z-index: 2; }

@media (max-width: 860px) {
  .lh-grid { grid-template-columns: 1fr; gap: 26px; }
  .lh-logos { grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; }
  .lh-stats { gap: 8px; }
  .lh-stats li { padding: 8px 10px; box-shadow: 3px 3px 0 var(--ink); }
  .lh-logo { border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
  .lh-logo:nth-child(n+6) { display: none; }
      .lh-stats li { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lh-logo,   .lh-chip { transition: none; }
}
/* Demo interaktif (iframe sandbox) & tombol unduh */
.doc-demo { margin: 10px 0 26px; }
.doc-demo iframe { display: block; width: 100%; max-width: 420px; height: 860px; margin: 0 auto; border: 2.5px solid var(--ink); border-radius: 18px; background: #ebebeb; }
.doc-demo figcaption { margin-top: 8px; text-align: center; font-size: .9em; }
.doc-download { margin: 0 0 24px; text-align: center; }
/* Tombol salin di blok kode */
.doc-card pre { position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); cursor: pointer; }
@media (max-width: 600px) { .doc-demo iframe { height: 760px; } }
