/* ============================================================
   extra-v11.css — dimuat SETELAH style.css & tour360.css
   1) Perbaikan jarak tulisan di HP  2) Penulis & tombol bagikan
   3) Tampilan isi artikel (editor)   4) Kartu link Himpunan
   ============================================================ */

/* ---- 1. JARAK TEPI (bug: .content-page menimpa padding kiri-kanan .container) ---- */
.container.content-page { padding-left: 24px; padding-right: 24px; }

@media (max-width: 768px) {
  .page-hero { padding: 64px 0 40px; }
  .content-page { padding-top: 40px; padding-bottom: 64px; }
  .section-center { font-size: 1.6rem; margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .container,
  .container.content-page { padding-left: 20px; padding-right: 20px; }
}

/* ---- 2. PENULIS & BAGIKAN ---- */
.art-meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; color: rgba(255,255,255,.8); font-size: .9rem; }
#artDetailAuthor { font-weight: 600; color: #fff; }

.share-wrap { margin: 0 0 28px; }
.share-label { font-size: .78rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.share-btn svg { width: 22px; height: 22px; fill: currentColor; }
.sb-wa { background: #25d366; } .sb-fb { background: #1877f2; } .sb-x { background: #111; }
.sb-tg { background: #229ed9; } .sb-li { background: #0a66c2; }
.sb-ig { background: linear-gradient(45deg,#f09433,#dc2743 55%,#bc1888); }
.sb-copy { background: var(--purple); } .sb-native { background: var(--gold, #b08d3c); }
.share-bottom-box { margin: 32px 0 0; padding: 18px 20px; background: var(--purple-light); border-radius: 14px; }

.author-box { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding: 16px 18px;
  border: 1px solid var(--gray-200); border-radius: 14px; background: #fff; }
.author-avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; color: #fff; font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid)); display: flex; align-items: center; justify-content: center; }
.author-meta small { display: block; font-size: .72rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .07em; }
.author-meta strong { font-size: 1rem; color: var(--purple-dark); }

.fti-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; z-index: 3000;
  background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: .88rem; text-align: center;
  max-width: 90vw; transition: opacity .25s, transform .25s; pointer-events: none; }
.fti-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- 3. ISI ARTIKEL (hasil editor) ---- */
.article-rich { font-size: 1.05rem; line-height: 1.85; color: #374151; overflow-wrap: anywhere; }
.article-rich p { margin: 0 0 1.1em; }
.article-rich h1, .article-rich h2 { font-family: 'Cormorant Garamond', serif; color: var(--purple-dark); font-size: 1.8rem; line-height: 1.25; margin: 1.6em 0 .6em; }
.article-rich h3, .article-rich h4 { color: var(--purple-dark); font-size: 1.25rem; line-height: 1.35; margin: 1.4em 0 .5em; }
.article-rich ul, .article-rich ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.article-rich li { margin-bottom: .35em; }
.article-rich blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--gold, #b08d3c);
  background: var(--purple-light); border-radius: 0 10px 10px 0; font-style: italic; }
.article-rich a { color: var(--purple); text-decoration: underline; font-weight: 500; }
.article-rich img { max-width: 100%; height: auto; border-radius: 12px; margin: .6em 0; }
.article-rich pre { background: #1f2937; color: #f9fafb; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .9rem; }
.article-rich .ql-align-center { text-align: center; } .article-rich .ql-align-right { text-align: right; }
.article-rich .ql-align-justify { text-align: justify; }
.article-rich .ql-indent-1 { padding-left: 3em; } .article-rich .ql-indent-2 { padding-left: 6em; } .article-rich .ql-indent-3 { padding-left: 9em; }

/* ---- 4. KARTU LINK HIMPUNAN ---- */
.hmp-head { text-align: center; margin-bottom: 32px; }
.hmp-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--purple-dark); margin-bottom: 6px; }
.hmp-head p { color: var(--gray-600); }
.hmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hmp-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 22px;
  background: #fff; border: 1.5px solid var(--gray-200); border-radius: 18px; text-decoration: none; color: inherit; transition: all .25s; }
.hmp-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(91,33,182,.16); }
.hmp-logo { width: 84px; height: 84px; border-radius: 20px; background: var(--purple-light); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; overflow: hidden; }
.hmp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hmp-card h3 { font-size: 1.1rem; color: var(--purple-dark); margin: 0; }
.hmp-card p { font-size: .88rem; color: var(--gray-600); line-height: 1.6; margin: 0; }
.hmp-platform { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--purple-light); color: var(--purple); }
.hmp-cta { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--purple); }
@media (max-width: 480px) { .hmp-grid { grid-template-columns: 1fr; } .hmp-head h2 { font-size: 1.6rem; } }

/* ---- 5. HP: menu samping (drawer) tidak boleh mengintip di sisi kiri ----
   margin-left menu desktop ikut terbawa ke HP sehingga drawer (position: fixed,
   translateX(-100%)) tersisa ±32px di kiri layar dan menutupi banner/teks. */
@media (max-width: 768px) {
  .nav-menu { margin-left: 0 !important; }
}
@media (max-width: 768px) {
  .nav-menu:not(.open) { box-shadow: none !important; visibility: hidden; transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s .32s; }
  .nav-menu.open { visibility: visible; transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s; }
}
