/* TumbuhBareng app: komponen tambahan di atas style.css landing.
   Hanya memakai token dari style.css (--accent, --line, --soft, --muted, --radius, Inter).
   Jangan tambah warna baru di luar token + merah peringatan #c4502f (sudah dipakai .live di landing). */
:root { --danger: #c4502f; --danger-soft: #fdeee9; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack-sm > * + * { margin-top: 8px; }
.vstack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
h1.title { font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h2.subtitle { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- tombol tambahan ---------- */
button.btn { border: 0; }
button.btn-line, .btn-line { border: 1px solid var(--line); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 14px; }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-line { border: 1px solid #f1c7b9; color: var(--danger); background: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.linkbtn { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; }
.iconbtn:hover { background: var(--soft); }
form.inline { display: inline; }

/* ---------- form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: 14px; font-weight: 500; }
.field .hint { color: var(--muted); font-size: 13px; }
.field .err { color: var(--danger); font-size: 13px; }
.input, .form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url],
.form input[type=number], .form input[type=search], .form input[type=datetime-local], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 12px;
  height: 46px; padding: 0 14px; transition: border-color .15s, box-shadow .15s;
}
.form textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { position: relative; }
.radio-row input { position: absolute; opacity: 0; }
.radio-row span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.radio-row input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.radio-row input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* pilih avatar / cover tanpa upload */
.pick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.pick-grid.covers { grid-template-columns: repeat(4, 1fr); }
.pick-grid label { position: relative; cursor: pointer; }
.pick-grid input { position: absolute; opacity: 0; }
.pick-grid img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; transition: border-color .15s, transform .15s; }
.pick-grid.covers img { aspect-ratio: 2 / 1; border-radius: 10px; object-fit: cover; }
.pick-grid input:checked + img { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pick-grid input:focus-visible + img { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-grid label:hover img { transform: translateY(-1px); }

/* ---------- pesan ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.alert svg { flex: none; margin-top: 1px; }
.alert-ok { background: var(--accent-soft); border-color: #bfe5cf; color: var(--accent-text); }
.alert-error { background: var(--danger-soft); border-color: #f5cfc2; color: #a2401f; }
.alert-info { background: var(--soft); border-color: var(--line); color: var(--text); }
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }

/* ---------- kartu ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card-soft { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.card h2, .card h3 { font-weight: 500; }
.danger-zone { border-color: #f1c7b9; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty img { width: 160px; margin: 0 auto 16px; border-radius: 12px; }
.empty h3 { color: var(--text); font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* avatar dengan badge level */
.av { position: relative; display: inline-block; flex: none; line-height: 0; }
.av .lv { position: absolute; right: -3px; bottom: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.av.sm .lv { min-width: 10px; height: 14px; line-height: 14px; padding: 0 2px; font-size: 9px; right: 0; bottom: 0; transform: translate(35%, 35%); border-width: 2px; }
.meta .av.sm { margin-right: 4px; margin-bottom: 3px; }
.av.lg .lv { min-width: 26px; height: 26px; line-height: 26px; font-size: 14px; right: 0; bottom: 0; }
.role { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 500; }
.role.owner { background: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 500; }
.tag.lock { background: var(--danger-soft); color: #a2401f; }
.tag.ok { background: var(--accent-soft); color: var(--accent-text); }

/* ---------- tabs sebagai link (app) ---------- */
.tabs a { height: 54px; font-size: 17px; color: #737a76; position: relative; display: grid; place-items: center; transition: color .2s; }
.tabs a.on { color: var(--text); }
.tabs a:hover { color: var(--text); }
.tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tabs a.on::after { transform: scaleX(1); }
.tabs.t2 { grid-template-columns: repeat(2, 1fr); }
.tabs.t4 { grid-template-columns: repeat(4, 1fr); }
/* tabs komunitas: bisa digeser di layar kecil */
.ctabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 0 -30px; padding: 0 30px; }
.ctabs::-webkit-scrollbar { display: none; }
.ctabs a { position: relative; height: 50px; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: #737a76; white-space: nowrap; }
.ctabs a:hover, .ctabs a.on { color: var(--text); }
.ctabs a.on { font-weight: 500; }
.ctabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.ctabs a.on::after { transform: scaleX(1); }
.ctabs .num { font-size: 12px; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; }

/* kepala komunitas di kolom tengah */
.chead { display: flex; align-items: center; gap: 16px; padding: 22px 0 18px; }
.chead > img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.chead h1, .chead .chead-name { margin: 0; color: var(--text); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.chead p { color: var(--muted); font-size: 14px; }
.chead .btn { margin-left: auto; }

/* ---------- app shell tambahan ---------- */
.bell::after { display: none; }
.bell.unread::after { display: block; }
.bell .num { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.bell.unread .num ~ * { display: none; }
.searchbar form.search { margin: 0; }
.user-dd { position: relative; }
.user-dd > summary { list-style: none; cursor: pointer; }
.user-dd > summary::-webkit-details-marker { display: none; }
.user-dd .dd { position: absolute; left: 0; right: 0; top: calc(100% - 8px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 20px 40px -16px rgba(8,24,16,.3); display: grid; }
.user-dd .dd a, .user-dd .dd button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; width: 100%; text-align: left; }
.user-dd .dd a:hover, .user-dd .dd button:hover { background: var(--soft); }
.topbar .tb-actions { display: flex; align-items: center; gap: 8px; }
.topbar .iconbtn { position: relative; width: 38px; height: 38px; }
.topbar .iconbtn .num { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.aside .mine { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aside .mine img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.aside .mine div { min-width: 0; flex: 1; }
.aside .mine strong { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aside .mine small { color: var(--muted); font-size: 13px; }
.aside .mine:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.aside .side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.aside .side-head a { font-size: 14px; color: var(--accent-text); font-weight: 500; }
/* kartu komunitas kolom kanan (seperti sidebar grup Skool) */
.ccard-side { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ccard-side > img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ccard-side .in { padding: 18px 20px 20px; display: grid; gap: 10px; }
.ccard-side h3 { font-size: 18px; font-weight: 500; }
.ccard-side .url { display: block; max-width: 100%; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard-side .nums { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 4px 0; }
.ccard-side .nums b { display: block; font-size: 17px; font-weight: 600; }
.ccard-side .nums small { color: var(--muted); font-size: 12px; }
.ccard-side .btn { justify-content: center; }
.main-in > .page-head { margin-bottom: 18px; }

/* ---------- header publik (halaman selain landing) ---------- */
.pubnav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.pubnav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.pubnav .logo { font-size: 21px; }
.pubnav .logo svg { width: 32px; height: 32px; }
.pubnav nav { display: flex; gap: 24px; font-size: 15px; color: #3a403d; margin-left: 12px; }
.pubnav nav a:hover, .pubnav nav a.on { color: var(--accent-text); }
.pubnav .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pubnav .actions .btn { height: 42px; padding: 0 18px; }
.pubnav .mnav summary { border-color: var(--line); color: var(--text); }
.page-hero { background: var(--soft); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; max-width: 760px; text-wrap: balance; }
.page-hero p { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 620px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs span[aria-hidden] { color: var(--faint); }
.pub-main { padding: 48px 0 80px; }

/* ---------- halaman auth ---------- */
.auth-body { background: var(--soft); min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: 0 30px 60px -40px rgba(8,24,16,.35); }
.auth-card .logo { font-size: 21px; margin-bottom: 26px; }
.auth-card .logo svg { width: 32px; height: 32px; }
.auth-card h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.auth-card .lede { color: var(--muted); margin: 6px 0 24px; }
.auth-card .alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-card .alt a { color: var(--accent-text); font-weight: 500; }

/* ---------- jelajah: grid kartu komunitas ---------- */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.app .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ccard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.ccard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(8,24,16,.45); }
.ccard > img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ccard .in { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.ccard h3 { font-size: 17px; font-weight: 500; line-height: 1.35; }
.ccard:hover h3 { color: var(--accent); }
.ccard p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .foot-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--muted); }
.ccard .price-tag { font-weight: 600; color: var(--text); }
.filters { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; margin-bottom: 18px; }
.filters .search { height: 46px; }
.filters select { height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font: inherit; background: #fff; color: var(--text); }
.result-meta { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }

/* paginasi */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.pager a:hover { background: var(--soft); }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { border: 0; min-width: 20px; padding: 0; }

/* ---------- about (sales page) ---------- */
.about-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
.about-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.about-facts span { display: inline-flex; align-items: center; gap: 7px; }
.join-box { display: grid; gap: 12px; }
.join-box .amt { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.join-box .amt small { font-size: 14px; color: var(--muted); font-weight: 400; }
.owner-line { display: flex; align-items: center; gap: 10px; }

/* prosa (blog, deskripsi komunitas, isi post) */
.prose { font-size: 16px; line-height: 1.75; color: #232826; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin-top: 1.8em; }
.prose h3 { font-size: 19px; font-weight: 600; margin-top: 1.5em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); }
.prose code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose img { border-radius: 12px; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article { max-width: 740px; margin: 0 auto; }
.article-head h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.article-head .lede { font-size: 18px; color: var(--muted); margin-top: 14px; }
.article-head .stats { margin-top: 18px; }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
.article .faq-list details { border-top: 1px solid var(--line); }
.article .faq-list summary { font-weight: 500; cursor: pointer; padding: 16px 0; }
.article .faq-list p { color: var(--muted); padding-bottom: 16px; }

/* profil */
.profile-head { display: flex; gap: 22px; align-items: center; }
.profile-head .av img { width: 104px; height: 104px; }
.profile-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.profile-links a, .profile-links span { display: inline-flex; align-items: center; gap: 6px; }
.profile-links a:hover { color: var(--accent-text); }
.heatmap-wrap { overflow-x: auto; padding-bottom: 6px; }
.heatmap { display: grid; grid-template-rows: repeat(7, 11px); grid-auto-flow: column; grid-auto-columns: 11px; gap: 3px; }
.heatmap i { width: 11px; height: 11px; border-radius: 3px; background: var(--soft); border: 1px solid #eceeed; }
.heatmap i.l1 { background: #c8ebd6; border-color: #c8ebd6; }
.heatmap i.l2 { background: #86d0a5; border-color: #86d0a5; }
.heatmap i.l3 { background: #3fae6f; border-color: #3fae6f; }
.heatmap i.l4 { background: var(--accent-text); border-color: var(--accent-text); }
.heatmap i.pad { visibility: hidden; }
.hm-months { display: grid; grid-auto-flow: column; grid-auto-columns: 14px; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.hm-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.hm-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.levels-list { display: grid; gap: 10px; }
.lvl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lvl-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.lvl-row div { flex: 1; min-width: 0; }
.lvl-row strong { display: block; font-weight: 500; }
.lvl-row small { color: var(--muted); font-size: 13px; }

/* daftar sederhana bergaris */
.list { display: grid; }
.list > * { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list > *:first-child { border-top: 1px solid var(--line); }
.settings-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.settings-nav a { height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: 14px; }
.settings-nav a:hover { background: var(--soft); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stat small { color: var(--muted); font-size: 13px; }

/* halaman error */
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.err-page .code { font-size: clamp(64px, 12vw, 120px); font-weight: 600; letter-spacing: -0.05em; color: var(--accent); line-height: 1; }
.err-page h1 { font-size: 26px; font-weight: 600; margin-top: 10px; letter-spacing: -0.02em; }
.err-page p { color: var(--muted); margin: 10px auto 24px; max-width: 460px; }
.err-page img { width: min(320px, 80%); margin: 0 auto 24px; border-radius: 16px; }

@media (max-width: 1180px) {
  .ctabs { margin: 0 -22px; padding: 0 22px; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-dd .dd { left: 0; right: auto; width: 200px; }
}
@media (max-width: 900px) {
  .ctabs { margin: 0 -16px; padding: 0 16px; gap: 20px; }
  .pubnav nav, .pubnav .actions > a:not(.btn) { display: none; }
  .pubnav .wrap { height: 64px; gap: 12px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .pick-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 600px) {
  .cgrid, .app .cgrid, .blog-grid { grid-template-columns: 1fr; }
  .form-2 { grid-template-columns: 1fr; }
  .pick-grid { grid-template-columns: repeat(4, 1fr); }
  .pick-grid.covers { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 26px 20px; }
  .card { padding: 18px; }
  .chead > img { width: 52px; height: 52px; }
  .chead h1, .chead .chead-name { font-size: 19px; }
  .chead .btn { display: none; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pubnav .actions .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .page-hero { padding: 36px 0 32px; }
}

/* utilitas kecil */
.flex.tight { gap: 6px; }
.flash-wrap { margin-top: 18px; }
.foot-logo { font-size: 18px; color: var(--text); }
.foot-logo svg { width: 28px; height: 28px; }
.aside .muted.small { margin-top: 8px; }
.row.row-text { grid-template-columns: 1fr; }
.row h4 a:hover { color: var(--accent); }

.chip.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.jelajah-chips { margin-bottom: 8px; }
.about-pub .about-grid { max-width: 820px; }
.about-tagline { font-size: 17px; }
.about-main .join-box .stack img { width: 24px; height: 24px; }

/* bantuan, artikel */
.help-list { max-width: 820px; }
.help-list details { border-top: 1px solid var(--line); }
.help-list details:last-child { border-bottom: 1px solid var(--line); }
.help-list summary { font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; }
.help-list summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.help-list details[open] summary::after { content: "\2212"; }
.help-list details p { color: var(--muted); padding-bottom: 18px; margin-top: -6px; }
.help-contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; max-width: 820px; }
.article-cta { margin-top: 44px; padding: 32px; }
.article-cta h3 { font-size: 22px; }
.more-articles { margin-top: 64px; }
.more-articles .side-title { margin-bottom: 18px; }
.small-prose { font-size: 15px; max-width: 620px; }
.page-head { margin-bottom: 18px; }

/* perbaikan setelah cek visual */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 7px; float: left; width: 100%; }
fieldset.field > legend + * { clear: both; }
.about-cover, .ccard > img, .article figure img, .pick-grid img, .ccard-side > img, .empty img, .err-page img, .chead > img { height: auto; }
.chead > img { aspect-ratio: 1; }
@media (max-width: 900px) {
  .searchbar .bell { display: none; }
  .topbar .tb-actions a[href="/cari"] { display: none; }
}
@media (max-width: 420px) {
  .topbar .logo .lbl { font-size: 18px; }
  .topbar .tb-actions { gap: 6px; }
}
.hm-months span { white-space: nowrap; }
/* heatmap: konten selebar isinya + ruang kanan supaya label bulan terakhir tidak terpotong; JS menggeser ke bulan terbaru */
.heatmap-wrap > .hm-months, .heatmap-wrap > .heatmap { width: max-content; padding-right: 26px; }
@media (min-width: 1024px) and (max-width: 1500px) {
  .heatmap { grid-template-rows: repeat(7, 10px); grid-auto-columns: 10px; gap: 2px; }
  .heatmap i { width: 10px; height: 10px; border-radius: 2px; }
  .hm-months { grid-template-columns: repeat(53, 12px) !important; grid-auto-columns: 12px; }
}
.nowrap { white-space: nowrap; }

/* HP kecil (QA 320-420px): header publik, kaki, dan baris info artikel tidak boleh melebar keluar layar */
.article-head .stats { flex-wrap: wrap; row-gap: 6px; }
.foot nav { flex-wrap: wrap; }
@media (max-width: 420px) {
  .pubnav .logo { font-size: 18px; gap: 8px; }
  .pubnav .logo svg { width: 28px; height: 28px; }
  .pubnav .actions { gap: 8px; }
  .pubnav .actions .btn { padding: 0 12px; }
  .pubnav .mnav summary { width: 40px; height: 40px; }
  .foot nav { gap: 6px 14px; }
}
@media (max-width: 374px) {
  /* tombol daftar/beranda tetap ada di menu (tautan .go paling atas) */
  .pubnav .actions > .btn { display: none; }
}
/* filter jelajah: select tidak boleh memaksa lebar minimum lebih dari kolomnya */
.filters > * { min-width: 0; }
.filters select { width: 100%; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .btn { grid-column: 1 / -1; }
}
/* ilustrasi artikel 1200x675 (16:9) ditampilkan utuh */
.article figure img[src^="/img/blog/"] { aspect-ratio: 16 / 9; }

/* ---------- putaran perbaikan juri 1 ---------- */
/* about di dalam layout app: jarak dari garis tab */
.ctabs ~ .about-grid .about-cover, .community-head ~ .about-grid .about-cover { margin-top: 24px; }
/* chip kategori jelajah di HP: satu baris geser horizontal seperti beranda */
@media (max-width: 760px) {
  .jelajah-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .jelajah-chips::-webkit-scrollbar { display: none; }
  .jelajah-chips .chip { flex: none; }
}
/* beranda: pemisah post dari komunitas yang belum diikuti */
.rows-sep { padding: 26px 0 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.rows-sep .side-title { font-size: 18px; }
.rows-sep + .row { border-top: 0; }
/* rekomendasi diikuti ala demo: avatar bulat + tombol Ikuti di kanan */
.aside .rec img.avatar { border-radius: 50%; }
.aside .rec form { margin-left: auto; flex: none; }
.aside .rec .btn { margin-left: auto; }
/* pelajaran tanpa video: placeholder 16:9 dari cover kursus */
.lesson-ph { background: var(--soft); }
.lesson-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lesson-ph .tag { position: absolute; left: 14px; bottom: 14px; background: #fff; }
.empty-sm { padding: 28px 20px; }
