/* sahamdarinol.com/tim: team video review. Phone first (one column), desktop puts comments beside the 9:16 video. */
:root {
  --bg: #f5f6f2; --surface: #fff; --ink: #1d2320; --muted: #5d6661; --line: #dde2dc;
  --acc: #1f8a55; --acc-ink: #fff; --pita: #ffd23f; --draf: #fff6d6; --draf-edge: #e0b52b; --err: #b3261e;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #141816; --surface: #1c211e; --ink: #e8ece8; --muted: #9aa49e; --line: #2e3531;
    --acc: #2f9e66; --draf: #3a3215; --draf-edge: #e0b52b; --err: #ff8a80; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #141816; --surface: #1c211e; --ink: #e8ece8; --muted: #9aa49e; --line: #2e3531;
  --acc: #2f9e66; --draf: #3a3215; --draf-edge: #e0b52b; --err: #ff8a80; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
.wrap { max-width: 64rem; margin: 0 auto; padding: 1.5rem max(16px, env(safe-area-inset-left, 0px)) 9rem max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 1.6rem; }
.nw { white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
.ket { color: var(--muted); font-size: .88rem; }
button { font: inherit; font-weight: 700; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: .65rem 1rem; cursor: pointer; }
button.utama { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, label.file:focus-within { outline: 3px solid var(--pita); outline-offset: 2px; }
button.kecil { padding: .25rem .6rem; font-size: .8rem; font-weight: 600; }

.top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: end; }
/* QA 12 Nov 2026: a grid item is never wider than the page (a long title used to widen every card past the phone screen) */
.wrap > * { min-width: 0; }
.top .intro, .top .pasang { grid-column: 1 / -1; }
.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.1; font-weight: 800; margin: .2rem 0 .5rem; }
.intro { font-size: .98rem; }
.rig { flex: none; }

.kartu { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; display: grid; gap: .8rem; }
.kartu h2 { font-size: 1.1rem; }
#orang { display: flex; flex-wrap: wrap; gap: .5rem; }
.orang { --w: var(--acc); border-color: color-mix(in srgb, var(--w) 45%, var(--line)); color: var(--w); background: var(--surface); }
.orang.pilih { background: var(--w); border-color: var(--w); color: #fff; }

#selfie:empty { display: none; }
#selfie { min-width: 0; display: grid; gap: .6rem; background: var(--bg); border: 1.5px dashed var(--acc); border-radius: 14px; padding: .9rem; }
#selfie h3 { font-size: 1rem; }
#selfie .kamera { display: grid; gap: .6rem; justify-items: center; }
#selfie .kamera video { width: min(100%, 280px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; transform: scaleX(-1); background: #000; border: 4px solid var(--acc); }
#selfie label.file { justify-self: center; font-size: .88rem; font-weight: 700; color: var(--acc); text-decoration: underline; cursor: pointer; }
#selfie label.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#selfie .sudah { display: flex; gap: .8rem; align-items: center; }
#selfie .sudah img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--acc); flex: none; }
#selfie .sudah p { flex: 1; min-width: 0; font-size: .92rem; }
#selfie:has(.sudah) { border-style: solid; }

#ceklis ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .3rem .8rem; }
#ceklis li { display: flex; gap: .45rem; align-items: baseline; font-size: .92rem; color: var(--muted); min-width: 0; }
#ceklis li .isi-cek { min-width: 0; overflow-wrap: anywhere; }
#ceklis li .cek { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 6px; border: 2px solid var(--line); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; align-self: center; }
#ceklis li.ok .cek { background: var(--acc); border-color: var(--acc); }

.toc { position: sticky; top: 0; z-index: 4; display: flex; gap: .5rem; padding: .5rem 0; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); }
.toc::-webkit-scrollbar { display: none; }   /* one row that scrolls sideways: the sticky comment bar below it stays visible */
.toc a { flex: none; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .85rem; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

.vid { display: grid; gap: .8rem; scroll-margin-top: 4.4rem; }
.vid h2 { font-size: 1.2rem; }
.vid h2 .kode { background: var(--pita); color: #1d2320; padding: .05rem .45rem; border-radius: 6px; margin-right: .2rem; white-space: nowrap; }
.vid h2 small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.isi { display: grid; gap: 1rem; }
.layar { display: flex; justify-content: center; background: #0b0d0c; border-radius: 18px; padding: .5rem; }
.layar video { display: block; height: min(56vh, 600px); max-width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.kolom { display: grid; gap: .8rem; align-content: start; min-width: 0; }
.aksi { display: flex; gap: .5rem; position: sticky; top: 3.9rem; z-index: 3; background: var(--bg); padding: .3rem 0; }
.aksi .utama { flex: 1; min-height: 52px; font-size: 1.05rem; }
.aksi [data-umum] { flex: none; min-height: 52px; }
.aksi .jam { font-variant-numeric: tabular-nums; }
.form { background: var(--surface); border: 1.5px solid var(--acc); border-radius: 14px; padding: .8rem; display: grid; gap: .6rem; }
.form { scroll-margin: 5rem 0 7rem; }
.form textarea { font-size: 16px; font-family: inherit; min-height: 6rem; resize: vertical; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); padding: .6rem .7rem; }
.form .baris { display: flex; justify-content: flex-end; gap: .5rem; }
.daftar { display: grid; gap: .5rem; }
.daftar h3 { font-size: .95rem; margin-top: .4rem; }
.kom { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; }
.kom p { min-width: 0; overflow-wrap: anywhere; font-size: .95rem; }
.kom .t { position: relative; min-height: 40px; min-width: 52px; padding: .3rem .5rem; font-size: .8rem; font-variant-numeric: tabular-nums; border-radius: 8px; background: var(--bg); }
.kom .t::after, .kom [data-hapus]::after { content: ""; position: absolute; inset: -4px; }   /* 44 px touch area, small chip */
.kom [data-hapus] { position: relative; min-height: 40px; }
.kom.draf { background: var(--draf); border: 1px dashed var(--draf-edge); }
.kom.beres { opacity: .6; }
.kom.lama { opacity: .75; }
.kom .jawab { grid-column: 2 / 4; font-size: .88rem; color: var(--muted); border-left: 3px solid var(--acc); padding-left: .6rem; }
.kosong { padding: .4rem 0; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: .75rem max(16px, env(safe-area-inset-left, 0px)) calc(.75rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center; text-align: center; }
.bar p { width: 100%; }
.bar .galat { color: var(--err); font-weight: 700; }
.bar .sukses { color: var(--acc); font-weight: 700; }
#btn-kirim { font-size: 1.05rem; padding: .8rem 1.4rem; }

/* video beside its comments from iPad portrait up (820 px used to get one column with wide black bars) */
@media (min-width: 48rem) {
  .isi { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .layar { position: sticky; top: 4.4rem; }
}
@media (max-width: 30rem) { .top h1 { font-size: min(1.75rem, 6.6vw); } }   /* QA 12 Nov 2026: the longest unbroken title phrase fits a 320 px phone */
/* phone, review page: the Bull sits small beside the eyebrow and the title gets the full width, so a long title never pushes the page wider */
@media (max-width: 30rem) {
  body[data-slug] .top .judul { display: contents; }
  body[data-slug] .top .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
  body[data-slug] .top .rig { grid-column: 2; grid-row: 1; zoom: .7; }
  body[data-slug] .top h1 { grid-column: 1 / -1; }
}

/* "Pasang di layar utama" button + how-to sheet */
.pasang { display: flex; align-items: center; gap: .8rem; width: 100%; margin-top: .9rem; text-align: left; font-weight: 400; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: .65rem .9rem; box-shadow: 0 3px 0 var(--line); }
.pasang img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.pasang .teks { display: grid; gap: .05rem; min-width: 0; }
.pasang .teks b { font-size: 1rem; }
.pasang .teks .ket { font-size: .82rem; }
.pasang .panah { margin-left: auto; font-size: 1.8rem; line-height: 1; color: var(--muted); }
.pasang:hover { border-color: var(--acc); }
#lembar-pasang { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; }
#lembar-pasang .latar { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
#lembar-pasang .isi-lembar { position: relative; background: var(--surface); border-radius: 22px 22px 0 0; padding: 1.2rem max(16px, env(safe-area-inset-left, 0px)) calc(1.2rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: 1rem; max-width: 34rem; width: 100%; margin: 0 auto; box-shadow: 0 -10px 30px rgba(0,0,0,.25); }
#lembar-pasang .kepala { display: flex; gap: .8rem; align-items: center; }
#lembar-pasang .kepala img { border-radius: 14px; flex: none; }
#lembar-pasang h2 { font-size: 1.2rem; }
#lembar-pasang ol { margin: 0; padding-left: 1.4rem; display: grid; gap: .7rem; font-size: 1rem; }
#lembar-pasang .ikon { display: inline-flex; vertical-align: middle; padding: 2px 6px; border: 1.5px solid var(--line); border-radius: 8px; color: #1c7ed6; }
#lembar-pasang button { min-height: 50px; }

/* card at the bottom of the review page: link to the before/after page */
.ke-banding { display: grid; gap: 1rem; text-decoration: none; color: #fff; background: #0b2b26; border-radius: 22px; padding: 1rem; box-shadow: 0 6px 0 #071c18; transition: transform .15s ease; }
.ke-banding:hover, .ke-banding:focus-visible { transform: translateY(-2px); outline: 3px solid var(--pita); outline-offset: 3px; }
.ke-banding img { width: 100%; height: auto; border-radius: 14px; display: block; }
.ke-banding .eyebrow { color: var(--pita); }
.ke-banding h2 { font-size: 1.35rem; line-height: 1.2; margin: .2rem 0 .5rem; }
.ke-banding p { font-size: .95rem; color: rgba(255,255,255,.85); }
.ke-banding .tombol { display: inline-block; margin-top: .9rem; background: var(--pita); color: #1d2320; font-weight: 800; padding: .7rem 1.1rem; border-radius: 12px; }
@media (min-width: 52rem) { .ke-banding { grid-template-columns: minmax(0, 1.1fr) 1fr; align-items: center; padding: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .ke-banding { transition: none; } }

/* "Nggak ada komentar, sudah oke" at the very bottom, unlocked after watching every video */
.oke { justify-items: start; }
.oke ul.tonton { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.oke ul.tonton li { display: flex; gap: .45rem; align-items: baseline; color: var(--muted); font-size: .92rem; }
.oke ul.tonton li .cek { width: 1.25rem; height: 1.25rem; border-radius: 6px; border: 2px solid var(--line); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; align-self: center; flex: none; }
.oke ul.tonton li.ok .cek { background: var(--acc); border-color: var(--acc); }
.oke #btn-oke { min-height: 50px; }

/* library pages: /review and /review/<jenis> */
.pustaka .daftar-item { display: grid; gap: .8rem; }
.pustaka .item { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: .85rem .9rem; box-shadow: 0 3px 0 var(--line); }
.pustaka .item:hover, .pustaka .item:focus-visible { border-color: var(--acc); outline: none; }
.pustaka .item.perlu { border-color: var(--acc); box-shadow: 0 3px 0 color-mix(in srgb, var(--acc) 45%, var(--line)); }
.pustaka .logo { flex: none; width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pustaka .logo img { max-width: 52px; max-height: 40px; object-fit: contain; }
.pustaka .logo.jenis { background: var(--pita); color: #1d2320; font-size: 1.6rem; font-weight: 800; }
.pustaka .isi-item { display: grid; gap: .15rem; min-width: 0; }
.pustaka .label { font-size: 1.25rem; line-height: 1.15; text-wrap: balance; }
.pustaka .sub { font-size: .88rem; color: var(--muted); text-wrap: pretty; }
.pustaka .status { justify-self: start; margin-top: .3rem; font-size: .78rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; background: var(--bg); color: var(--muted); }
.pustaka .status.hijau { background: var(--acc); color: #fff; }
.pustaka .panah { margin-left: auto; font-size: 1.8rem; color: var(--muted); flex: none; }
.toc a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* status ticks (13 Nov 2026): approved + uploaded per platform with the post's link; library grouped by status */
.kartu.status h3 { margin: 1rem 0 .1rem; font-size: 1rem; }
.cek-status { display: flex; align-items: center; gap: .7rem; min-height: 48px; cursor: pointer; }
.cek-status input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--acc); }
.cek-status .ket { font-weight: 600; }
.plat + .plat { border-top: 1px solid var(--line); }
.plat .link { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: 0 0 .7rem 2.4rem; }
.plat .link input { flex: 1 1 12rem; min-width: 0; min-height: 44px; font: inherit; font-size: 16px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); padding: .5rem .7rem; }
.plat .link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--acc); overflow-wrap: anywhere; }
.kartu.status button.kecil { min-height: 44px; padding: .4rem .9rem; }
.kartu.status .galat { color: var(--err); font-weight: 700; }
.pustaka .tanda { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin-top: .35rem; font-size: .8rem; font-weight: 800; color: var(--acc); }
.pustaka .grup-h { margin: 1.4rem 0 .2rem; font-size: 1.15rem; }
#status { scroll-margin-top: 4.4rem; }
.kartu.status .galat { text-wrap: pretty; }

/* thumbnail vote (14 Nov 2026): three 9:16 options under each video, one pick per person */
.pilih-thumb { margin-top: 1rem; }
.pilih-thumb h3 { margin: 0 0 .2rem; font-size: 1rem; }
.pilih-thumb .opsi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .6rem 0 .4rem; max-width: 36rem; }
.pilih-thumb .th { position: relative; display: block; padding: 0; border: 3px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); cursor: pointer; }
.pilih-thumb .th img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.pilih-thumb .th.pilih { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc); }
.pilih-thumb .lbl { position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%); min-width: 2rem; padding: .1rem .5rem; border-radius: 999px; background: #fff; color: #0b2b26; font-weight: 800; font-size: .9rem; text-align: center; }
.pilih-thumb .th.pilih .lbl { background: var(--acc); color: #fff; }
.pilih-thumb .th.pilih .lbl::before { content: "✓ "; }
.pilih-thumb .suara { position: absolute; left: 0; right: 0; bottom: 0; padding: .3rem; background: rgba(11, 43, 38, .85); color: #fff; font-weight: 800; font-size: .8rem; text-align: center; }
.pilih-thumb .suara:empty { display: none; }
.pilih-thumb .hasil { text-wrap: pretty; }
.pilih-thumb .galat { color: var(--err); }
