﻿/* baca pelan, jarak yang nyaman untuk teks Indonesia */

body {
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

.nx-story p {
  text-wrap: pretty;
}

.nx-mast {
  background-image:
    linear-gradient(90deg, transparent 0, transparent 12px, rgba(156, 59, 36, 0.09) 12px, rgba(156, 59, 36, 0.09) 13px),
    linear-gradient(#fffaf3, #fffaf3);
  background-size: 18px 100%, 100% 100%;
}

::selection {
  background: #e8c9b4;
  color: #1c1612;
}

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ========== 内页各自排版。首页不加 pg-*，保持原报纸栏 ========== */

/* —— instal：深色条开篇 + 左侧目录轨 + 步骤数字放大 —— */
body.pg-instal {
  background: #efe7db;
}

body.pg-instal .nx-open {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.8rem max(1rem, calc(50% - var(--rail) / 2 + 1rem)) 2.2rem;
  background: var(--ink);
  color: #f3ece2;
  border-bottom: 6px solid var(--brick);
}

body.pg-instal .nx-kicker,
body.pg-instal .nx-kicker time,
body.pg-instal .nx-lead {
  color: #cbbfb3;
}

body.pg-instal .nx-title {
  max-width: 18ch;
  color: #fffaf3;
}

body.pg-instal .nx-lead a {
  color: #e8c9b4;
}

body.pg-instal .nx-isi {
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  padding: 0 1rem 0 0;
  border-radius: 0;
}

body.pg-instal .nx-isi ul {
  flex-direction: column;
  gap: 0.45rem;
}

body.pg-instal .nx-walk {
  max-width: none;
}

body.pg-instal .nx-num {
  width: 2.2rem;
  height: 2.2rem;
  background: var(--ink);
  color: #fffaf3;
  border-radius: 0;
}

body.pg-instal .nx-walk li {
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
}

@media (min-width: 1100px) {
  body.pg-instal .nx-story {
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    column-gap: 2rem;
  }

  body.pg-instal .nx-isi {
    grid-column: 1;
    grid-row: 1 / 80;
    position: sticky;
    top: 1rem;
    align-self: start;
    margin-bottom: 0;
  }

  body.pg-instal .nx-story > *:not(.nx-isi) {
    grid-column: 2;
  }
}

/* —— faq：扁条标题 + 全文一栏 + 底栏横式下载卡 —— */
body.pg-faq {
  background: #f7f1e8;
}

body.pg-faq .nx-open {
  padding: 1.4rem 0 1.2rem;
  border-bottom: 1px solid var(--ink);
}

body.pg-faq .nx-title {
  max-width: none;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-family: var(--sans);
  letter-spacing: -0.03em;
}

body.pg-faq .nx-lead {
  max-width: none;
  font-size: 1rem;
}

body.pg-faq .nx-split {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-top: 1.4rem;
}

body.pg-faq .nx-isi {
  background: var(--ink);
  border: none;
  color: #f3ece2;
}

body.pg-faq .nx-isi p {
  color: #b7a99c;
}

body.pg-faq .nx-isi a {
  color: #fffaf3;
  padding: 0.2rem 0.55rem;
  border: 1px solid #3a322c;
  font-size: 0.8rem;
}

body.pg-faq .nx-isi a:hover {
  background: var(--brick);
  border-color: var(--brick);
  color: #fff;
}

body.pg-faq .nx-cari {
  max-width: none;
  border-width: 2px;
  font-size: 1.05rem;
}

body.pg-faq .nx-faq-block {
  margin: 0 0 1.8rem;
  padding: 0 0 0.4rem 1rem;
  border-left: 3px solid var(--gold);
}

body.pg-faq .nx-faq-block h2 {
  margin-top: 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
}

body.pg-faq .nx-q {
  background: var(--sheet);
  border: 1px solid var(--line);
  margin: 0 0 0.45rem;
  padding: 0 0.9rem;
}

body.pg-faq .nx-ticket {
  position: static;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr auto;
  align-items: center;
  gap: 0;
}

body.pg-faq .nx-ticket-head,
body.pg-faq .nx-ticket-body,
body.pg-faq .nx-ticket-foot {
  border: none;
}

body.pg-faq .nx-ticket-body {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
}

body.pg-faq .nx-ticket-body .nx-file {
  flex: 1;
}

body.pg-faq .nx-ticket-foot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
}

/* —— apk-download：标题与导语并排 + 指标通栏框 —— */
body.pg-unduh .nx-open {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.4rem 2.2rem;
  align-items: end;
  padding-bottom: 1.8rem;
  border-bottom: 2px solid var(--ink);
}

body.pg-unduh .nx-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
}

body.pg-unduh .nx-title {
  max-width: none;
  margin-bottom: 0;
}

body.pg-unduh .nx-lead {
  font-size: 1rem;
}

body.pg-unduh .nx-tiles {
  max-width: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}

body.pg-unduh .nx-tiles div {
  border: none;
  border-right: 1px solid var(--ink);
  background: var(--sheet);
  text-align: center;
  padding: 1.1rem 0.6rem;
}

body.pg-unduh .nx-tiles div:last-child {
  border-right: none;
}

body.pg-unduh .nx-tiles b {
  font-size: 1.55rem;
}

body.pg-unduh .nx-pair article {
  background: var(--ink);
  color: #f3ece2;
  border: none;
  padding: 1.2rem 1.1rem 1.3rem;
}

body.pg-unduh .nx-pair h3 {
  color: #fffaf3;
}

body.pg-unduh .nx-pair p {
  color: #cbbfb3;
}

body.pg-unduh .nx-file {
  background: var(--sheet);
}

body.pg-unduh .nx-isi {
  border: none;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  padding: 0 0 1rem;
}

/* —— apk：下载卡在左，正文在右；图成横滑条 —— */
body.pg-apk {
  background: #f6f0e6;
}

body.pg-apk .nx-open {
  padding-top: 2rem;
}

body.pg-apk .nx-title {
  max-width: 16ch;
  font-style: italic;
}

body.pg-apk .nx-split {
  grid-template-columns: 19.5rem minmax(0, 1fr);
}

body.pg-apk .nx-story {
  order: 2;
}

body.pg-apk .nx-ticket {
  order: 1;
  background: var(--ink);
  color: #f3ece2;
  border-color: var(--ink);
}

body.pg-apk .nx-ticket-head span,
body.pg-apk .nx-ticket p {
  color: #b7a99c;
}

body.pg-apk .nx-ticket-head strong {
  color: #fffaf3;
}

body.pg-apk .nx-file {
  background: #2a231e;
  color: #fffaf3;
  border-color: #4a4038;
}

body.pg-apk .nx-file small {
  color: #cbbfb3;
}

body.pg-apk .nx-tiles {
  grid-template-columns: 1fr;
  max-width: 22rem;
}

body.pg-apk .nx-tiles div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
}

body.pg-apk .nx-tiles span {
  text-align: right;
}

body.pg-apk .nx-shots {
  display: flex;
  overflow-x: auto;
  gap: 0.75rem;
  padding-bottom: 0.4rem;
  grid-template-columns: none;
}

body.pg-apk .nx-shots figure {
  flex: 0 0 11.5rem;
}

/* —— aplikasi：截图顶置，宽栏，标题无上限宽 —— */
body.pg-app .nx-title {
  max-width: none;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

body.pg-app .nx-shots {
  max-width: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

body.pg-app .nx-shots img {
  border-radius: 0;
  border-width: 2px;
}

body.pg-app .nx-gejala {
  grid-template-columns: 1fr 1fr;
}

body.pg-app .nx-story h2 {
  font-size: 1.35rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}

body.pg-app .nx-picrow {
  background: var(--leaf);
  color: #e8efe8;
  padding: 1rem;
  gap: 1.2rem;
}

body.pg-app .nx-picrow p {
  color: #d5e4d8;
  max-width: none;
}

/* —— ulasan：大数字看板 + 访谈双列卡片 —— */
body.pg-ulas .nx-open {
  text-align: center;
  padding: 3rem 0 1.6rem;
}

body.pg-ulas .nx-kicker {
  justify-content: center;
}

body.pg-ulas .nx-title {
  max-width: none;
  margin-inline: auto;
}

body.pg-ulas .nx-lead {
  margin-inline: auto;
  text-align: left;
  max-width: 36rem;
}

body.pg-ulas .nx-tiles {
  max-width: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

body.pg-ulas .nx-tiles div:first-child {
  background: var(--brick);
  color: #fff7f2;
  border-color: var(--brick);
  text-align: center;
  padding: 1.3rem 0.8rem;
}

body.pg-ulas .nx-tiles div:first-child b {
  font-size: 2.6rem;
  line-height: 1;
}

body.pg-ulas .nx-tiles div:first-child span {
  color: #f0d2b8;
}

body.pg-ulas .nx-isi {
  text-align: center;
}

body.pg-ulas .nx-isi ul {
  justify-content: center;
}

body.pg-ulas .nx-kutip {
  float: left;
  width: calc(50% - 0.55rem);
  margin: 0 0 1.1rem;
  margin-right: 1.1rem;
  padding: 1rem 1.05rem 0.95rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brick);
  min-height: 10.5rem;
}

body.pg-ulas .nx-kutip:nth-of-type(even) {
  margin-right: 0;
}

body.pg-ulas .nx-shots,
body.pg-ulas .nx-tabel,
body.pg-ulas h2#publik,
body.pg-ulas p.nx-soft {
  clear: both;
}

body.pg-ulas .nx-suara {
  grid-template-columns: 1fr;
}

body.pg-ulas .nx-suara article {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  align-items: start;
}

/* —— pembaruan：时间轴圆点 —— */
body.pg-update .nx-open {
  padding-bottom: 0;
}

body.pg-update .nx-title {
  max-width: 14ch;
}

body.pg-update .nx-tiles {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}

body.pg-update .nx-tiles div {
  background: transparent;
  border: none;
  border-top: 3px solid var(--brick);
  padding-left: 0;
}

body.pg-update .nx-story {
  border-left: 2px solid var(--line);
  padding-left: 1.7rem;
  margin-left: 0.35rem;
}

body.pg-update .nx-story h2 {
  position: relative;
}

body.pg-update .nx-story h2::before {
  content: "";
  position: absolute;
  left: -2.12rem;
  top: 0.42em;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--brick);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brick);
}

body.pg-update .nx-isi {
  border-radius: 0;
  border-color: var(--ink);
}

/* —— resmi：居中文书栏，下载卡垫在文后 —— */
body.pg-resmi .nx-open {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding: 2.4rem 0 0.2rem;
}

body.pg-resmi .nx-kicker {
  justify-content: center;
}

body.pg-resmi .nx-title {
  max-width: none;
}

body.pg-resmi .nx-lead {
  margin-inline: auto;
  text-align: left;
}

body.pg-resmi .nx-split {
  display: flex;
  flex-direction: column;
  max-width: 42rem;
  margin-inline: auto;
  gap: 2rem;
}

body.pg-resmi .nx-ticket {
  position: static;
  max-width: none;
  order: -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

body.pg-resmi .nx-ticket-head {
  grid-column: 1 / -1;
}

body.pg-resmi .nx-ticket-foot {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
}

body.pg-resmi .nx-tiles {
  max-width: none;
}

body.pg-resmi .nx-tiles div {
  text-align: center;
}

body.pg-resmi .nx-ya .ok {
  outline: 2px solid var(--leaf);
}

body.pg-resmi .nx-ya .no {
  outline: 2px solid var(--brick);
}

/* —— tentang：三人卡前置，简历条加宽 —— */
body.pg-tim .nx-open {
  padding-bottom: 0.2rem;
}

body.pg-tim .nx-title {
  max-width: 20ch;
}

body.pg-tim .nx-byline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1.2rem;
  border-left: 6px solid var(--brick);
  border-top: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
  padding: 0.2rem 0 0.2rem 1.1rem;
}

body.pg-tim .nx-byline b {
  grid-column: 1 / -1;
  font-size: 1.55rem;
}

body.pg-tim .nx-suara {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

body.pg-tim .nx-suara article {
  background: var(--sheet);
  border: 1px solid var(--ink);
  padding: 1.1rem 1rem 1.2rem;
  min-height: 10rem;
}

body.pg-tim .nx-suara h3 {
  font-family: var(--display);
  font-size: 1.25rem;
}

body.pg-tim .nx-tiles {
  max-width: none;
}

/* —— kebijakan-privasi：条款体例，目录竖排 —— */
body.pg-priv {
  background: #f4eee6;
}

body.pg-priv .nx-open {
  padding: 2rem 0 1.4rem;
  border-bottom: 3px double var(--ink);
}

body.pg-priv .nx-title {
  max-width: 22ch;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-family: var(--sans);
  font-weight: 700;
}

body.pg-priv .nx-isi {
  background: transparent;
  border: none;
  padding: 0;
}

body.pg-priv .nx-isi ul {
  flex-direction: column;
  gap: 0.15rem;
  max-width: 22rem;
}

body.pg-priv .nx-isi a {
  display: block;
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.88rem;
}

body.pg-priv .nx-story h2 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
  margin-top: 2.6rem;
}

body.pg-priv .nx-tiles {
  grid-template-columns: 1fr;
  max-width: 24rem;
}

body.pg-priv .nx-tiles div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.6rem;
  align-items: center;
}

body.pg-priv .nx-tabel {
  font-size: 0.92rem;
}

/* —— disclaimer：警告色开篇，章节做成标签块 —— */
body.pg-batas .nx-open {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.2rem max(1rem, calc(50% - var(--rail) / 2 + 1rem)) 1.8rem;
  background: var(--warn-bg);
  border-top: 5px solid var(--brick);
  border-bottom: 1px solid #e0c8a8;
}

body.pg-batas .nx-title {
  max-width: 12ch;
}

body.pg-batas .nx-split {
  grid-template-columns: minmax(0, 1fr) 17.5rem;
}

body.pg-batas .nx-story h2 {
  display: inline-block;
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
  padding: 0.22rem 0.7rem;
  background: var(--ink);
  color: #fffaf3;
  font-size: 1.05rem;
  font-family: var(--sans);
  letter-spacing: 0.04em;
}

body.pg-batas .nx-tiles {
  max-width: none;
}

body.pg-batas .nx-tiles div {
  background: var(--warn-bg);
  border-color: #e0c8a8;
}

body.pg-batas .nx-ya {
  grid-template-columns: 1fr;
}

body.pg-batas .nx-cek {
  background: var(--sheet);
  padding: 0.4rem 1rem 0.6rem;
  border: 1px dashed var(--brick);
}

/* ========== 窄屏：各页特殊网格收回 ========== */
@media (max-width: 980px) {
  body.pg-instal .nx-story,
  body.pg-unduh .nx-open,
  body.pg-apk .nx-split,
  body.pg-app .nx-gejala,
  body.pg-ulas .nx-suara article,
  body.pg-tim .nx-suara,
  body.pg-tim .nx-byline,
  body.pg-faq .nx-ticket,
  body.pg-resmi .nx-ticket {
    display: block;
    grid-template-columns: none;
  }

  body.pg-apk .nx-split {
    grid-template-columns: 1fr;
  }

  body.pg-apk .nx-story,
  body.pg-apk .nx-ticket {
    order: unset;
  }

  body.pg-instal .nx-isi {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1rem;
    margin-bottom: 1.4rem;
  }

  body.pg-instal .nx-isi ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  body.pg-ulas .nx-kutip,
  body.pg-ulas .nx-kutip:nth-of-type(even) {
    float: none;
    width: auto;
    margin-right: 0;
    min-height: 0;
  }

  body.pg-batas .nx-split {
    grid-template-columns: 1fr;
  }

  body.pg-batas .nx-ticket {
    order: 0;
    max-width: none;
  }

  body.pg-batas .nx-title {
    max-width: none;
  }

  body.pg-batas .nx-open {
    padding: 1.7rem 1rem 1.5rem;
  }

  body.pg-batas .nx-story h2 {
    display: block;
    width: fit-content;
    max-width: 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
}

@media (max-width: 760px) {
  body.pg-batas .nx-tiles {
    grid-template-columns: 1fr;
  }

  body.pg-batas .nx-tabel {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.pg-app .nx-shots,
  body.pg-tim .nx-suara {
    grid-template-columns: 1fr 1fr;
  }

  body.pg-unduh .nx-tiles,
  body.pg-ulas .nx-tiles {
    grid-template-columns: 1fr;
  }

  body.pg-unduh .nx-tiles div {
    border-right: none;
    border-bottom: 1px solid var(--ink);
  }
}
