/* ==========================================================================
   Halaman studi kasus: daftar (studi-kasus.html), rincian (studi-kasus-*.html),
   dan kebijakan privasi. Token dan komponen bersama ada di base.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.kh {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px);
  border-bottom: var(--border);
}
.kh__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.kh__grid--solo {
  grid-template-columns: minmax(0, 1fr);
}
.kh .crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.kh .crumb a {
  text-decoration: none;
}
.kh .crumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.kh .crumb span {
  margin-inline: 10px;
}
.kh .crumb b {
  font-weight: 600;
  color: var(--ink);
}
.kh__sector {
  display: inline-flex;
  margin-top: var(--space-5);
  padding: 6px 16px;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
}
.kh h1 {
  margin-top: var(--space-4);
  max-width: 18ch;
  text-wrap: balance;
}
.kh h1 em {
  font-style: normal;
  background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.kh__lead {
  margin-top: var(--space-5);
  max-width: 58ch;
  font-size: 1.06rem;
  color: var(--ink-muted);
}
.kh__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
}
.kh__meta div {
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-sm);
}
.kh__meta dt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kh__meta dd {
  margin: 2px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
/* panel berwarna di belakang tangkapan layar hero */
.kh__grid > .up {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  background: var(--teal);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--pop);
}

/* ---------- Tangkapan layar: jendela browser + ponsel ---------- */
.devices {
  position: relative;
  padding-bottom: 8%;
}
.browser {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-sm);
}
.browser::before {
  content: '';
  display: block;
  height: 26px;
  background:
    radial-gradient(circle at 14px 13px, var(--coral) 4px, transparent 4.5px),
    radial-gradient(circle at 28px 13px, var(--yellow) 4px, transparent 4.5px),
    radial-gradient(circle at 42px 13px, var(--teal) 4px, transparent 4.5px),
    var(--surface);
  border-bottom: var(--border);
}
.browser img {
  width: 100%;
  height: auto;
}
.phone {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 27%;
  padding: 6px;
  background: var(--ink);
  border-radius: 24px;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.devices--web .phone {
  width: 22%;
}

/* ---------- Panel ringkas (hero tanpa tangkapan layar, dan isi) ---------- */
.kpanel {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--pop);
}
.kh__grid > .up:has(> .kpanel) {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.kpanel > p {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kpanel__rows {
  margin: 10px 0 0;
}
.kpanel__rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}
.kpanel__rows dd {
  margin: 0;
  color: var(--ink-muted);
}
.kpanel__rows dd + dd {
  color: var(--ink);
  font-weight: 600;
}
.kpanel__rows .kpanel__h {
  padding-top: 0;
  border-bottom: var(--border);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kpanel__rows .kpanel__h dd {
  color: var(--ink);
}
.kpanel__list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: p;
}
.kpanel__list li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}
.kpanel__list li:last-child {
  border-bottom: 0;
}
.kpanel__list li::before {
  content: counter(p, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: var(--border);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.7rem;
}
.kpanel__list span {
  font-weight: 600;
}
.kpanel__list small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- Angka kunci ---------- */
.kfig {
  padding-block: var(--space-7);
  background: var(--surface);
  border-bottom: var(--border);
}
.kfig dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
}
.kfig dl > div {
  --tone: var(--coral);
  padding: var(--space-5);
  border: var(--border);
  border-top: 8px solid var(--tone);
  border-radius: var(--radius-md);
}
.kfig dl > div:nth-child(4n + 2) {
  --tone: var(--yellow);
}
.kfig dl > div:nth-child(4n + 3) {
  --tone: var(--teal);
}
.kfig dl > div:nth-child(4n + 4) {
  --tone: var(--purple);
}
.kfig dt {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.kfig dt small {
  font-size: 0.5em;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.kfig dd {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ---------- Isi artikel dengan daftar isi ---------- */
.kbody {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: var(--sec);
}
.ktoc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  align-self: start;
  padding: var(--space-4);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-md);
}
.ktoc p {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ktoc ol {
  display: grid;
  gap: 2px;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.ktoc a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ink-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.ktoc a:hover {
  color: var(--ink);
  background: var(--bg);
}
.ktoc a.on {
  color: var(--ink);
  font-weight: 600;
  background: var(--yellow);
}

.kart > section + section {
  margin-top: clamp(64px, 7vw, 104px);
}
.kart h2 {
  max-width: 24ch;
  text-wrap: balance;
}
.kart h2 + p,
.kart .kp {
  margin-top: 18px;
  max-width: 68ch;
  line-height: 1.75;
}
.kart .kp + .kp {
  margin-top: 14px;
}
.kart a:not(.btn):not(.kcard) {
  font-weight: 600;
}
.kquote {
  margin-top: 26px;
  padding: 20px 24px;
  max-width: 68ch;
  background: var(--yellow-soft);
  border: var(--border);
  border-radius: var(--radius-md);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* daftar bernomor (tantangan, cara kerja) */
.knum {
  display: grid;
  gap: var(--space-3);
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: k;
}
.knum li {
  counter-increment: k;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  line-height: 1.6;
}
.knum li::before {
  content: counter(k, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: var(--border);
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.75rem;
}
.knum b {
  font-weight: 600;
}
.kticks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.kticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.55;
}
.kticks li::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* tabel */
.ktable {
  width: 100%;
  margin-top: 26px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.55;
}
.ktable th,
.ktable td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.ktable tbody tr:last-child th,
.ktable tbody tr:last-child td {
  border-bottom: 0;
}
.ktable thead th {
  background: var(--yellow);
  border-bottom: var(--border);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ktable tbody th {
  width: 22%;
  font-weight: 600;
}
.ktable td:nth-child(2) {
  width: 32%;
}

/* diagram arsitektur berlapis */
.arch {
  margin-top: 28px;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-lg);
}
.arch__row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.arch__row + .arch__row {
  position: relative;
  margin-top: 26px;
}
.arch__row + .arch__row::before {
  content: '';
  position: absolute;
  left: calc(128px + 16px + 50%);
  top: -22px;
  width: 1.5px;
  height: 18px;
  background: var(--ink);
}
.arch__row + .arch__row::after {
  content: '';
  position: absolute;
  left: calc(128px + 16px + 50% - 4px);
  top: -9px;
  border: 4.5px solid transparent;
  border-top-color: var(--ink);
}
.arch__k {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.arch__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.node {
  flex: 1 1 150px;
  padding: 12px 14px;
  background: var(--surface);
  border: var(--border);
  border-top: 6px solid var(--teal);
  border-radius: var(--radius-sm);
}
.arch__row:nth-child(4n + 2) .node {
  border-top-color: var(--yellow);
}
.arch__row:nth-child(4n + 3) .node {
  border-top-color: var(--coral);
}
.arch__row:nth-child(4n + 4) .node {
  border-top-color: var(--purple);
}
.node b {
  display: block;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.node span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.arch__row .node--dark {
  background: var(--ink);
  border-color: var(--ink);
  border-top-color: var(--yellow);
}
.node--dark b {
  color: #fff;
}
.node--dark span {
  color: #c9c9c4;
}
.arch__row .node--ext {
  background: transparent;
  border-style: dashed;
  border-top: 1px dashed var(--ink);
}
.arch__note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* alur proses */
.flow {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: f;
}
.flow li {
  position: relative;
  counter-increment: f;
  padding: 0 18px 0 0;
}
.flow li::before {
  content: counter(f);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.82rem;
}
.flow li:last-child::before {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.flow li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 44px;
  right: 6px;
  height: 2px;
  background: var(--ink);
}
.flow b {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.98rem;
}
.flow small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.flow p {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* gambar dan galeri */
.kshot {
  margin: 28px 0 0;
}
.kshot a {
  display: block;
  cursor: zoom-in;
}
.kshot img {
  width: 100%;
  height: auto;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
.kshot a:hover img {
  transform: translate(-2px, -2px);
  box-shadow: var(--pop);
}
.kshot figcaption {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.kshot--phone {
  max-width: 260px;
}
.kshot--phone img {
  border: 6px solid var(--ink);
  border-radius: 22px;
}
.kpair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  margin-top: 28px;
}
.kpair .kshot,
.kpair .kpanel {
  margin-top: 0;
}
.kpair--phones {
  grid-template-columns: repeat(2, minmax(0, 220px));
}
.kgal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  align-items: start;
  margin-top: 28px;
}
.kgal .kshot {
  margin-top: 0;
}
.kgal--phones {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kgal--phones .kshot--phone {
  max-width: none;
}

/* ---------- Pelajaran ---------- */
.les {
  margin-top: 24px;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-lg);
}
.les__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.les__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: var(--border);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.8rem;
}
.les:nth-of-type(4n + 2) .les__n {
  background: var(--teal);
}
.les:nth-of-type(4n + 3) .les__n {
  background: var(--coral);
}
.les:nth-of-type(4n + 4) .les__n {
  background: var(--purple);
}
.les h3 {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
}
.les__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 18px;
}
.les__grid--fig {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}
.les__grid:not(.les__grid--fig) .les__txt {
  max-width: 76ch;
}
.les__k {
  margin-top: 16px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.les__k:first-child {
  margin-top: 0;
}
.les__txt > p:not(.les__k):not(.les__learn),
.les__txt li {
  margin-top: 6px;
  font-size: 0.96rem;
  line-height: 1.7;
}
.les__txt ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.les__txt li {
  position: relative;
  padding-left: 20px;
}
.les__txt li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.les__learn {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--yellow-soft);
  border: var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  line-height: 1.65;
}
.les__learn b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.les__figs {
  display: grid;
  gap: 16px;
}
.les__figs .kshot {
  margin-top: 0;
}
.les__figs--phones {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.les__figs--phones .kshot--phone {
  max-width: none;
}

/* ---------- Penutup dan studi kasus lain ---------- */
.kend {
  padding-block: var(--sec);
  border-top: var(--border);
}
.kend__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px clamp(30px, 5vw, 80px);
  align-items: end;
}
.kend h2 {
  max-width: 22ch;
  text-wrap: balance;
}
.kend p:not(.pill) {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--ink-muted);
}
.kend__act {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.kmore {
  margin-top: clamp(48px, 6vw, 80px);
}
.kmore > p {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* kartu studi kasus (daftar dan bagian bawah rincian) */
.kcards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: 18px;
}
.kcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.kcard:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--pop);
}
.kcard__img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
  border-bottom: var(--border);
}
.kcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.kcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(20px, 2.2vw, 28px);
}
.kcard__body > span:not(.kcard__nums) {
  display: block;
}
.kcard__sec {
  align-self: flex-start;
  padding: 4px 12px;
  border: var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
}
.kcard__body > .kcard__sec {
  display: inline-block;
}
.kcard h3 {
  margin-top: 12px;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
}
.kcard__client {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}
.kcard__d {
  margin-top: 10px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.kcard__nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.kcard__nums b {
  display: block;
  font-family: var(--mono);
  font-size: 1.1rem;
}
.kcard__nums span {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ink-muted);
}
.kcard__go {
  margin-top: auto;
  padding-top: 20px;
}
.kcard__go .ulink {
  display: inline-flex;
}
.kcard--big {
  grid-column: 1 / -1;
  flex-direction: row;
}
.kcard--big .kcard__img {
  flex: 0 0 56%;
  aspect-ratio: auto;
  min-height: 340px;
  border-bottom: 0;
  border-right: var(--border);
}

/* proyek lain (ringkas) */
.kmini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: 18px;
}
.kmini article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-md);
}
.kmini .kcard__img {
  aspect-ratio: 4 / 3;
}
.kmini .kcard__body {
  padding: 18px;
}
.kmini h3 {
  margin-top: 10px;
  font-size: 1.02rem;
}
.kmini .kcard__d {
  font-size: 0.88rem;
}
.kmini details {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.86rem;
  line-height: 1.6;
}
.kmini summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: var(--border);
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.kmini summary::-webkit-details-marker {
  display: none;
}
.kmini summary::after {
  content: '+';
  font-family: var(--mono);
  font-weight: 800;
}
.kmini details[open] summary::after {
  content: '\2212';
}
.kmini details h4 {
  margin-top: 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kmini details p {
  margin-top: 4px;
  color: var(--ink-muted);
}
.kmini details dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  margin: 12px 0 0;
  font-size: 0.8rem;
}
.kmini details dt {
  font-family: var(--mono);
  font-weight: 700;
}
.kmini details dd {
  margin: 0;
  color: var(--ink-muted);
}

.ksec {
  padding-block: var(--sec);
}
.ksec + .ksec {
  padding-top: 0;
}
.ksec__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 40px;
}
.ksec__head p {
  max-width: 52ch;
  color: var(--ink-muted);
}

/* ---------- Pembesar gambar ---------- */
.lbox {
  max-width: 94vw;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.lbox::backdrop {
  background: rgba(17, 17, 17, 0.8);
}
.lbox img {
  max-width: 94vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-md);
}
.lbox p {
  margin-top: 10px;
  text-align: center;
  color: #f2f2ee;
  font-size: 0.88rem;
}
.lbox button {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: var(--border);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .kh__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .devices {
    max-width: 760px;
  }
  .kbody {
    grid-template-columns: minmax(0, 1fr);
  }
  .ktoc {
    display: none;
  }
  .kmini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kcard--big {
    flex-direction: column;
  }
  .kcard--big .kcard__img {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: var(--border);
  }
}
@media (max-width: 860px) {
  .kfig dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .flow li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 16px;
    padding: 0;
  }
  .flow li::before {
    grid-row: span 3;
  }
  .flow li:not(:last-child)::after {
    top: 44px;
    bottom: -18px;
    left: 18px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .flow b {
    margin-top: 6px;
  }
  .les__grid--fig,
  .kend__in,
  .kcards {
    grid-template-columns: minmax(0, 1fr);
  }
  .kgal,
  .kgal--phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arch__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .arch__row + .arch__row::before {
    left: 50%;
  }
  .arch__row + .arch__row::after {
    left: calc(50% - 4px);
  }
}
@media (max-width: 620px) {
  .kh__meta,
  .kticks,
  .kmini,
  .kpair {
    grid-template-columns: minmax(0, 1fr);
  }
  .kfig dl > div {
    padding: var(--space-4);
  }
  .kpair--phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ktable,
  .ktable tbody,
  .ktable tr,
  .ktable th,
  .ktable td {
    display: block;
    width: auto !important;
  }
  .ktable thead {
    display: none;
  }
  .ktable tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .ktable th,
  .ktable td {
    padding: 2px 0;
    border: 0;
  }
  .kcard__nums {
    grid-template-columns: minmax(0, 1fr);
  }
  .kpanel__rows > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    font-size: 0.85rem;
  }
}
