/* Bahasa desain: Transport for Jakarta.
   Krem sebagai dasar, kartu putih bersudut 25px, tombol pil, aksen lime dengan teks biru,
   kepala dan kaki biru tua. Tanpa bayangan dan tanpa garis tepi; pembeda area memakai warna isian.
   Sentence case. Font PT Sans (400 dan 700). */
:root {
  --blue: #18549c;
  --navy: #14293d;
  --ink: #00162b;
  --muted: #5a6a7a;
  --lime: #e8ec14;
  --lime-hover: #d9dd0f;
  --cream: #fcf9ee;
  --tint: #ecf4fc;
  --tint-2: #dbe8f6;
  --red: #e4002b;
  --page-navy: #00152b;
  --navy-raised: #12304f;
  --card: #ffffff;
  --ground: #e4ecf5;
  --icon-bg: #0c1b2a;
  --line: rgba(0, 22, 43, .14);
  --bg: var(--cream);
  --r-card: 25px;
  --r-tile: 20px;
  --r-chip: 10px;
  --r-pill: 500px;
  --gutter: 20px;
  --wrap: 1320px;
}
:root[data-theme="dark"] {
  --page-navy: #000d1a;
  --bg: #00152b;
  --card: #0b2540;
  --navy: #e4ecf5;
  --ink: #ffffff;
  --muted: #9fb4cc;
  --tint: #123254;
  --tint-2: #1b4470;
  --ground: #0f2d4d;
  --navy-raised: #0b2540;
  --blue: #7db4f0;
  --icon-bg: #051120;
  --line: rgba(255, 255, 255, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: "PT Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.55; color: var(--navy); background: var(--bg); }
h1, h2, h3, h4 { font-weight: 700; margin: 0; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(32px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { margin: 0 0 12px; }
a { color: var(--blue); }
img, svg { max-width: 100%; }
ol, ul { list-style: none; margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: var(--tint); color: var(--navy); border-radius: var(--r-pill); padding: 8px 16px; cursor: pointer; font-weight: 700; transition: background .15s; }
button:hover { background: var(--tint-2); }
button.on { background: var(--blue); color: #fff; }
:root[data-theme="dark"] button.on { color: #00152b; }
input, select { border: 0; border-radius: var(--r-chip); padding: 9px 12px; background: var(--tint); min-width: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; background: var(--tint); color: var(--navy); border: 0; cursor: pointer; }
.btn:hover { background: var(--tint-2); }
.btn.cta { background: var(--lime); color: #18549c; }
.btn.cta:hover { background: var(--lime-hover); }
.btn.dark { background: var(--navy-raised); color: #fff; }
.btn.dark:hover { background: #1b4470; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--lime); color: #18549c; padding: 8px 14px; border-radius: var(--r-pill); }

/* ---------- Kepala ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--page-navy); color: #fff; }
.head-in { max-width: var(--wrap); margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand b { font-size: 18px; line-height: 1.1; display: block; }
.brand small { color: #9fb4cc; font-size: 11px; display: block; }
.logo { width: 38px; height: 38px; border-radius: 12px; background: var(--navy-raised); display: grid; place-items: center; flex: none; }
.logo svg { width: 20px; height: 20px; fill: var(--lime); }
.spacer { flex: 1; }
.head-links { display: flex; gap: 4px; }
.head-links a { color: #cfe0f4; text-decoration: none; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; white-space: nowrap; }
.head-links a:hover { background: var(--navy-raised); color: #fff; }
.icon-btn { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; background: var(--navy-raised); color: #fff; flex: none; }
.icon-btn:hover { background: #1b4470; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.search-wrap { position: relative; }
.search-wrap input { width: 230px; background: var(--navy-raised); color: #fff; border-radius: var(--r-pill); padding: 9px 16px 9px 38px; }
.search-wrap input::placeholder { color: #9fb4cc; }
.search-wrap > svg { position: absolute; left: 13px; top: 11px; width: 16px; height: 16px; fill: none; stroke: #9fb4cc; stroke-width: 2; pointer-events: none; }
.results { position: absolute; right: 0; top: 46px; width: min(420px, 90vw); max-height: 70vh; overflow: auto; background: var(--card); border-radius: var(--r-card); padding: 10px; display: none; color: var(--navy); outline: 1px solid var(--line); }
.results.open { display: block; }
.results a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-chip); text-decoration: none; color: var(--navy); }
.results a:hover, .results a:focus { background: var(--tint); }
.results img { width: 34px; height: 34px; flex: none; background: var(--icon-bg); border-radius: 8px; }
.results img.lt { background: #fff; }
.results small { color: var(--muted); display: block; }
.results .none { padding: 12px; color: var(--muted); }

/* ---------- Tata letak ---------- */
.shell { max-width: var(--wrap); margin: 0 auto; padding: var(--gutter) 28px 60px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.side { position: sticky; top: 84px; background: var(--card); border-radius: var(--r-card); padding: 12px; max-height: calc(100vh - 104px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--tint-2) transparent; }

/* Daftar isi: judul situs, bab bernomor yang bisa dibuka-tutup, lalu halaman pendukung */
.toc-home { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--tint); margin-bottom: 8px; }
.toc-home:hover { background: var(--tint-2); }
.toc-home .logo { width: 34px; height: 34px; background: var(--page-navy); }
.toc-home b { display: block; font-size: 15px; line-height: 1.15; }
.toc-home small { display: block; color: var(--muted); font-size: 12px; }
.toc-home.on { background: var(--lime); color: #18549c; }
.toc-home.on small { color: #18549c; }
.toc a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; line-height: 1.25; }
.toc a:hover { background: var(--tint); }
.toc a > span { flex: none; width: 24px; height: 24px; margin-top: -2px; border-radius: 50%; background: var(--tint); color: var(--muted); display: grid; place-items: center; font-size: 12px; }
.toc a > em { flex: 1; font-style: normal; min-width: 0; }
.toc .car { flex: none; width: 8px; height: 8px; margin: 5px 4px 0 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.toc li.open > a .car { transform: rotate(45deg); }
.toc > li.open > a { background: var(--tint); }
.toc > li.on > a { background: var(--lime); color: #18549c; }
.toc > li.on > a > span { background: #18549c; color: #fff; }
.toc > li.on > a .car { border-color: #18549c; }
.toc ol { margin: 4px 0 8px 21px; padding-left: 8px; border-left: 2px solid var(--tint-2); }
.toc ol a { font-weight: 400; font-size: 14px; padding: 6px 10px; border-radius: 10px; }
.toc ol a > span { width: auto; min-width: 24px; height: auto; margin: 0; background: none; font-size: 13px; place-items: start; }
.toc ol a.on { background: var(--tint); color: var(--blue); font-weight: 700; }
.toc-more { margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--tint); display: grid; gap: 2px; }
.toc-more a { padding: 8px 12px; border-radius: 14px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; }
.toc-more a:hover { background: var(--tint); }
.toc-more a.on { background: var(--lime); color: #18549c; }

.content { min-width: 0; display: grid; gap: var(--gutter); }
.card { background: var(--card); border-radius: var(--r-card); padding: 30px 34px; min-width: 0; }
.card > h2 { margin-bottom: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card > p, .card > .note { max-width: 80ch; }
.card.page-head { background: var(--page-navy); color: #fff; padding: 38px 40px; }
.card.page-head h1 { color: #fff; margin-bottom: 12px; }
.card.page-head .lede { color: #cfe0f4; margin: 0; }
.card.tint { background: var(--tint); }
.lede { color: var(--muted); font-size: 18px; max-width: 70ch; }
.eyebrow { display: inline-block; background: var(--navy-raised); color: var(--lime); font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: var(--r-chip); margin-bottom: 12px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.duo { gap: var(--gutter); align-items: stretch; }
.mt { margin-top: 22px; }
.mt-s { margin-top: 12px; }
h3.sub { font-size: 20px; margin: 26px 0 10px; }
.note { background: var(--tint); border-radius: var(--r-tile); padding: 14px 18px; font-size: 15px; color: var(--navy); }
.note b { color: var(--ink); }
.pill { display: inline-block; background: var(--tint); color: var(--muted); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); }
.pageref { color: var(--muted); font-size: 13px; }
.pageref a { color: var(--blue); font-weight: 700; }

/* Hero dasbor */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .sign-stage { background: var(--navy-raised); }
.qlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qlinks a { background: var(--tint); color: var(--navy); text-decoration: none; font-weight: 700; padding: 8px 16px; border-radius: var(--r-pill); }
.qlinks a:hover { background: var(--tint-2); }

/* Bagian berikutnya */
.next-card { display: flex; align-items: center; gap: 18px; background: var(--lime); color: #18549c; border-radius: var(--r-card); padding: 22px 30px; text-decoration: none; }
.next-card:hover { background: var(--lime-hover); }
.next-card small { display: block; font-weight: 700; font-size: 13px; }
.next-card b { display: block; font-size: 24px; line-height: 1.15; }
.next-card div { flex: 1; }
.next-card svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 5; flex: none; }

/* ---------- Ubin ---------- */
.part { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--tint); border-radius: var(--r-tile); padding: 20px 22px; color: var(--navy); }
.part:hover { background: var(--tint-2); }
.part .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.part .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; flex: none; }
:root[data-theme="dark"] .part .num { color: #00152b; }
.part b { font-size: 18px; color: var(--ink); line-height: 1.2; }
.part > span { color: var(--muted); font-size: 14px; }
.stat { background: var(--tint); border-radius: var(--r-tile); padding: 16px 20px; }
.stat b { display: block; font-size: 30px; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

.swatch { border-radius: var(--r-tile); overflow: hidden; background: var(--tint); display: flex; flex-direction: column; text-align: left; padding: 0; font-weight: 400; cursor: pointer; }
.swatch:hover { background: var(--tint-2); }
.swatch .chip { height: 86px; margin: 6px 6px 0; border-radius: 14px; }
.swatch .txt { padding: 8px 14px 12px; }
.swatch b { display: block; color: var(--ink); }
.swatch small { color: var(--muted); display: block; font-size: 12px; line-height: 1.35; }
.swatch code { font-family: inherit; font-weight: 700; color: var(--blue); }

/* Tabel berbentuk matriks: kepala berwarna, garis kisi, baris selang-seling */
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
th { background: var(--page-navy); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
td { background: var(--card); }
tr:nth-child(even) td { background: var(--tint); }
td:first-child { font-weight: 700; color: var(--ink); }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-chip); outline: 1px solid var(--line); outline-offset: -1px; }
.nw { white-space: nowrap; }

/* ---------- Rambu contoh (modul x) ---------- */
/* Tinggi 8x: margin 2x, teks Indonesia 1,5x, spasi 1,5x, teks English x, margin 2x.
   Garis dasar teks dihitung dari metrik PT Sans (x-height 0,5 em; ascender 1,018; descender 0,276):
   font Indonesia 3x dan English 2x, lalu digeser agar tinggi huruf kecil menempati pita 0–1,5x dan 3x–4x. */
.sign { --m: calc(2 * var(--x)); --ar: calc(4 * var(--x)); display: flex; align-items: center; gap: var(--m); padding: var(--m); height: calc(8 * var(--x)); border-radius: calc(.4 * var(--x)); position: relative; width: max-content; flex: none; font-family: "PT Sans", sans-serif; }
.sign.right { justify-content: flex-end; }
.sign .arrow { width: var(--ar); height: var(--ar); flex: none; fill: currentColor; }
.sign .ic { width: var(--ar); height: var(--ar); flex: none; object-fit: contain; display: block; }
.sign .rdw svg { width: 100%; height: 100%; display: block; }
.sign .bx { width: var(--ar); height: var(--ar); flex: none; display: grid; place-items: center; background: #fff; color: #0c1b2a; border-radius: calc(.8 * var(--x)); font-weight: 700; font-size: calc(3 * var(--x)); line-height: 1; }
.sign .bx.ol { background: none; color: inherit; border: calc(.3 * var(--x)) solid currentColor; }
.sign .bar { width: calc(.25 * var(--x)); height: var(--ar); background: currentColor; flex: none; }
.sign .tx { display: block; height: var(--ar); flex: none; white-space: nowrap; }
.sign .tx.end { text-align: right; }
/* Blok teks setinggi ikon (4x): puncak kapital Indonesia di tepi atas, garis dasar English di tepi bawah.
   Dengan perbandingan tinggi huruf kecil 1,5 : spasi 1,5 : 1, font Indonesia = 2,61x dan English = 1,74x. */
.sign .id { display: block; position: relative; font-weight: 700; font-size: calc(2.61 * var(--x)); line-height: 1; top: calc(-.447 * var(--x)); }
.sign .en { display: block; position: relative; font-weight: 400; font-size: calc(1.74 * var(--x)); line-height: 1; top: calc(-.126 * var(--x)); }
.sign .id.b2 { top: calc(-.883 * var(--x)); }
/* Satu baris: tinggi huruf kapital = tinggi ikon 4x (kapital PT Sans = 0,7 em) */
.sign .tx.one { font-weight: 700; font-size: calc(5.71 * var(--x)); line-height: var(--ar); position: relative; top: calc(-.12 * var(--x)); }
.sign.guides { margin: 26px 46px 6px 0; }
.sign.guides::before { content: ""; position: absolute; inset: var(--m); outline: 1px dashed currentColor; opacity: .6; pointer-events: none; }
.sign.guides .arrow, .sign.guides .ic { outline: 1px solid #ff5a6e; }
.sign.guides .tx { background: linear-gradient(transparent 0 13%, rgba(125, 180, 240, .45) 13% 45.7%, transparent 45.7% 78.3%, rgba(255, 150, 60, .5) 78.3% 100%); }
.gl { position: absolute; display: flex; font-size: 11px; font-weight: 700; font-style: normal; color: var(--navy); pointer-events: none; }
.gl i { font-style: normal; display: grid; place-items: center; box-sizing: border-box; }
.gl-h { top: -20px; height: 16px; }
.gl-h i { border-left: 1px solid var(--muted); }
.gl-h i:last-child { border-right: 1px solid var(--muted); }
.gl-v { right: -40px; top: 0; width: 34px; flex-direction: column; }
.gl-v i { border-top: 1px solid var(--muted); justify-items: start; padding-left: 5px; }
.gl-v i:last-child { border-bottom: 1px solid var(--muted); }
/* Identifier fasilitas 400 × 400 mm: ikon di atas, teks dua bahasa di bawah */
.sign-sq { width: calc(10.67 * var(--x)); height: calc(10.67 * var(--x)); background: #0c1b2a; color: #fff; border-radius: calc(.4 * var(--x)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(.3 * var(--x)); flex: none; line-height: 1.1; }
.sign-sq img { width: calc(5 * var(--x)); height: calc(5 * var(--x)); margin-bottom: calc(.5 * var(--x)); }
.sign-sq b { font-size: calc(1.5 * var(--x)); color: #fff; }
.sign-sq span { font-size: calc(1.1 * var(--x)); }
.tpl-img { width: auto; max-width: 100%; display: block; }
.sign .lg { height: var(--ar); width: auto; flex: none; }
.sign .brand { align-self: stretch; margin: calc(-2 * var(--x)) 0 calc(-2 * var(--x)) calc(-2 * var(--x)); padding: 0 calc(2 * var(--x)); display: flex; align-items: center; border-radius: calc(.4 * var(--x)) 0 0 calc(.4 * var(--x)); flex: none; }
.sign .sp { flex: 1; min-width: calc(2 * var(--x)); }
.sign .bx.yb { background: #f9d437; color: #0c1b2a; }
.sign .rl { height: var(--ar); width: calc(26 * var(--x)); flex: none; }

/* ---- Template tegak dan papan: 1em = 20 mm ---- */
.vp, .slab, .totem, .tt, .bst, .bib, .gate, .fp { font-family: "PT Sans", sans-serif; line-height: 1.12; color: #fff; flex: none; text-align: center; }
.vp .arrow, .slab .arrow, .fp .arrow, .gate .arrow { fill: #fff; flex: none; }
.tl { display: block; flex: none; }
.jl { display: block; }
.pj { filter: brightness(0) invert(1); }
/* Rambu sepeda 300 mm, hijau, kepala biru tua berlogo */
.vp { width: 15em; background: #006d3a; display: flex; flex-direction: column; align-items: center; gap: 1em; overflow: hidden; border-radius: .3em; padding-bottom: 1em; }
.vp-head { align-self: stretch; height: 3.4em; background: #00152b; display: flex; align-items: center; justify-content: space-between; padding: 0 .8em; flex: none; margin-bottom: .4em; }
.vp-head .jl { height: 2.6em; }
.vp-head .pj { height: 1.3em; }
.vp .rowx { display: flex; align-items: center; justify-content: center; gap: 1em; }
.vp .rowx .arrow { width: 4em; height: 4em; }
.vp-plate { background: #fff; color: #006d3a; border-radius: 1em; width: 8em; padding: .4em 0 .5em; display: flex; flex-direction: column; align-items: center; flex: none; }
.vp-plate img { width: 5em; height: 5em; display: block; }
.vp-plate b { font-size: 2.4em; line-height: 1; }
.vp .rowx .vp-plate { width: 6em; }
.vp .rowx .vp-plate img { width: 3.4em; height: 3.4em; }
.vp .rowx .vp-plate b { font-size: 1.7em; }
.vp .big, .slab .big { font-size: 2.6em; line-height: 1.05; }
.vp .t { font-size: 1.3em; font-weight: 700; }
.vp .s, .slab .s, .totem .s { font-size: 1em; }
.vp .rule { align-self: stretch; height: .12em; background: rgba(255, 255, 255, .5); flex: none; }
.vp .foot { margin-top: auto; align-self: stretch; border-top: .06em solid rgba(255, 255, 255, .5); padding-top: .4em; font-size: 2.4em; }
.tl-w { width: 7em; height: 7em; background: #fff; border-radius: 1em; display: grid; place-items: center; flex: none; }
.tl-w svg { width: 70%; height: 70%; }
.vp-in { background: #18549c; border-radius: 1em; width: 11em; padding: 1.2em 0; display: flex; flex-direction: column; align-items: center; gap: .6em; }
.vp-in .lamp { width: 3.4em; }
.vp-in .stop { width: 4em; }
.vp-in .eq { font-size: 2.4em; line-height: .6; }
/* Finger pointer 1000 × 200 mm */
.fp { width: 50em; height: 10em; background: #006d3a; border-radius: 1.2em 0 0 1.2em; display: flex; align-items: center; gap: 1.2em; padding: 0 1.4em; }
.fp .arrow { width: 4.4em; height: 4.4em; }
.fp .vp-plate { width: 6em; }
.fp .vp-plate img { width: 3.4em; height: 3.4em; }
.fp .vp-plate b { font-size: 1.6em; }
.fpi { flex: 1; align-self: stretch; margin: 1.2em 0; background: #fff; color: #006d3a; border-radius: .5em; display: flex; flex-direction: column; justify-content: center; gap: .3em; padding: 0 1.2em; font-size: 1.5em; }
.fpi span { display: flex; justify-content: space-between; }
/* Totem dan papan tegak biru tua */
.totem { display: flex; flex-direction: column; align-items: center; }
.totem .cube { width: 20em; height: 20em; background: #0c1b2a; display: grid; place-items: center; }
.totem .neck { width: 2em; height: 4em; background: #0c1b2a; }
.totem .shaft, .slab { background: #0c1b2a; display: flex; flex-direction: column; align-items: center; gap: 1.6em; overflow: hidden; }
.totem .shaft { width: 10em; height: 76em; padding-top: 2em; }
.slab { padding-top: 2em; border-radius: .3em; }
.vt { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.9em; white-space: nowrap; }
.totem .pj, .slab .pj { width: 4em; margin-top: auto; }
.pat { width: 100%; display: block; flex: none; }
.arch { width: 100%; display: block; flex: none; }
.qr { width: 7em; height: 7em; background: #fff; color: #0c1b2a; display: grid; place-items: center; font-weight: 700; font-size: 1em; flex: none; background-image: repeating-conic-gradient(#0c1b2a 0 25%, #fff 0 50%); background-size: 1.4em 1.4em; color: transparent; border: .5em solid #fff; }
.slab .jl.big { height: 6em; }
.shead { align-self: stretch; margin-top: -2em; background: #1f66b0; display: flex; align-items: center; justify-content: space-between; padding: 1.2em 1.4em; text-align: left; font-size: 1.5em; }
.shead .jl { height: 2.6em; mix-blend-mode: normal; border-radius: .3em; }
.drow { align-self: stretch; display: flex; align-items: center; gap: 1em; padding: 0 1.6em; text-align: left; }
.drow .arrow { width: 3em; height: 3em; }
.drow b { display: block; font-size: 1.5em; }
.drow i { font-style: normal; font-size: 1.15em; opacity: .85; }
.mapbox { align-self: stretch; margin: 0 1.6em; height: 30em; background: #dfe6ee; color: #5a6a7a; display: grid; place-items: center; font-size: 1.3em; border-radius: .3em; flex: none; }
.slab .mapbox { height: 22em; }
/* Lettersign: plat logo dan huruf timbul bergaris tepi */
.ls { display: flex; align-items: center; gap: calc(2 * var(--x)); flex: none; }
.lsp { height: calc(8 * var(--x)); background: #fff; border: calc(.3 * var(--x)) solid var(--c); border-radius: var(--x); display: flex; align-items: center; gap: var(--x); padding: 0 calc(1.5 * var(--x)); color: var(--c); }
.lsp img { height: calc(5 * var(--x)); width: auto; }
.lsp .jld { height: calc(5.6 * var(--x)); }
.lsp b { font-size: calc(2.2 * var(--x)); }
.lst { font-family: "PT Sans", sans-serif; font-weight: 700; font-size: calc(9 * var(--x)); line-height: 1; color: #fff; -webkit-text-stroke: calc(.28 * var(--x)) var(--c); white-space: nowrap; }
/* Papan nama stasiun di peron 1500 × 600 mm */
.pn { width: calc(40 * var(--x)); height: calc(16 * var(--x)); background: #0c1b2a; color: #fff; padding: calc(2 * var(--x)); display: flex; flex-direction: column; justify-content: space-between; font-family: "PT Sans", sans-serif; border-radius: calc(.4 * var(--x)); flex: none; }
.pn1 { display: flex; align-items: center; justify-content: center; gap: calc(2 * var(--x)); }
/* ikon moda, roundel, dan nama stasiun sama tinggi: 5x (kapital 0,7 em → font 7,14x) */
.pn1 .ic { width: calc(5 * var(--x)); height: calc(5 * var(--x)); display: block; flex: none; }
.pn1 b { font-size: calc(7.14 * var(--x)); line-height: calc(5 * var(--x)); height: calc(5 * var(--x)); color: #fff; white-space: nowrap; position: relative; top: calc(-.15 * var(--x)); }
.pn { width: auto !important; min-width: calc(40 * var(--x)); }
.pn2 { display: flex; justify-content: space-between; font-size: calc(1.6 * var(--x)); font-weight: 700; border-top: 1px solid rgba(255, 255, 255, .4); padding-top: calc(1.2 * var(--x)); }
.pn2 span { display: flex; align-items: center; gap: var(--x); }
.pn2 .arrow { width: calc(2.4 * var(--x)); height: calc(2.4 * var(--x)); fill: #fff; }
.pn2 .rdw { width: calc(2.6 * var(--x)); height: calc(2.6 * var(--x)); }
.rdw svg { width: 100%; height: 100%; display: block; }
/* Jadwal keberangkatan 670 × 950 mm */
.tt { width: 33.5em; height: 47.5em; background: #fff; color: #0c1b2a; display: flex; flex-direction: column; text-align: left; outline: 1px solid #b9c4d0; }
.tt-h { background: #0c1b2a; color: #fff; display: flex; align-items: center; gap: .8em; padding: 1em 1.4em; }
.tt-h b { display: block; font-size: 1.5em; color: #fff; }
.tt-h i { font-style: normal; font-size: 1em; }
.tt-b { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em; padding: 1.2em 1.4em; min-height: 0; }
.ttc .s { display: block; font-size: .9em; }
.tth { display: flex; align-items: center; gap: .5em; margin: .4em 0 .6em; }
.tth .rdw { width: 2.6em; height: 2.6em; }
.tth b { font-size: 1.15em; color: #0c1b2a; }
.tt table { border-spacing: 0; width: 100%; font-size: .78em; line-height: 1.5; }
.tt th, .tt td { background: none; padding: 0 .5em; border-radius: 0 !important; font-size: 1em; color: #0c1b2a; }
.tt th, .tt td { border: 0; white-space: nowrap; }
.tt tr:nth-child(even) td, .tt tr:nth-child(even) th { background: #fff; }
.tt td:first-child { font-weight: 400; color: #0c1b2a; }
.tt th { width: 2.4em; text-align: center; }
.tt tr:nth-child(odd) td, .tt tr:nth-child(odd) th { background: #cdd1e6; }
.tt tr.hd th, .tt tr.hd td { background: #0c1b2a; color: #fff; }
.tt td { word-spacing: .6em; }
.tt-f { background: #0c1b2a; height: 4.4em; display: flex; align-items: center; justify-content: flex-end; padding: 0 1.4em; }
.tt-f .jl { height: 3em; }
/* Penanda pintu halte BRT 1550 × 400 mm */
.gate { width: 77.5em; height: 20em; background: #fff; display: flex; outline: 1px solid #b9c4d0; }
.gb { width: 13em; background: #0c1b2a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; }
.gb .arrow { width: 3.4em; height: 3.4em; }
.gb b { font-size: 1.9em; color: #fff; }
.gb i { font-style: normal; font-size: 1.3em; }
.gb .bx { width: 5em; height: 5em; background: #fff; color: #0c1b2a; border-radius: .8em; display: grid; place-items: center; font-weight: 700; font-size: 1.3em; margin-top: .4em; }
.gm { flex: 1; display: grid; place-items: center; }
.gm svg { width: 96%; }
/* Totem dan papan informasi halte bus */
.bst { width: 35em; height: 100em; background: #fff; color: #0c1b2a; border-radius: 8em 8em 0 0; overflow: hidden; display: flex; flex-direction: column; outline: 1px solid #b9c4d0; }
.bst-top { background: #00629f; height: 12em; display: flex; align-items: center; justify-content: space-around; flex: none; }
.bst-top .jl { height: 5em; mix-blend-mode: normal; border-radius: .5em; }
.bst-name { padding: 1.6em 1em; flex: none; }
.bst-name i { display: block; font-style: normal; font-size: 1.4em; }
.bst-name b { font-size: 2.4em; line-height: 1.05; color: #0c1b2a; }
.bar { background: #00629f; color: #fff; font-weight: 700; text-align: left; padding: .5em 1em; font-size: 1.2em; flex: none; }
.chips { display: flex; gap: .6em; padding: .8em 1em; flex: none; }
.chip { color: #fff; font-size: 1.6em; padding: .5em .7em 1.6em; min-width: 3.4em; text-align: left; }
.bst .info, .bib .info { background: #e3e8ee; margin: 1em; height: 18em; flex: none; }
.bst-blue { background: #00629f; height: 9em; flex: none; }
.bib { width: 115em; height: 50em; background: #fff; color: #0c1b2a; display: grid; grid-template-columns: 2fr 1.3fr 1.6fr; outline: 1px solid #b9c4d0; }
.bib .c1, .bib .c2 { display: flex; flex-direction: column; min-width: 0; }
.bib .c2 { border-left: 1px solid #b9c4d0; }
.bib .info { flex: 1; height: auto; }
.rcs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; padding: .8em; }
.rc { display: flex; flex-direction: column; align-items: center; background: #f1f3f6; }
.rc .chip { align-self: stretch; padding: .4em .6em; }
.rc i { flex: 1; width: .5em; margin: 1em 0; border-radius: 1em; }
.bib .c3 { background: linear-gradient(160deg, #2a56c6, #19a974); color: #fff; display: grid; place-items: center; font-size: 2em; font-weight: 700; padding: 1em; }
.sign-stage { background: var(--ground); border-radius: var(--r-tile); padding: 26px; display: grid; gap: 14px; justify-items: center; align-items: center; justify-content: safe center; overflow: auto; }
.g4.parts { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.controls label { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.controls input[type=range] { padding: 0; background: transparent; accent-color: var(--blue); width: 160px; }

/* Rambu larangan tipe A dan B */
.ps-stage { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 34px; width: fit-content; max-width: min(100%, 640px); padding: 22px 28px; }
.ps-wrap { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--navy); }
.ps-wrap small { display: block; text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ps-wrap .ps-h { writing-mode: vertical-rl; margin: 18px 0 0; }
.ps-tag { align-self: flex-start; font-size: 18px; color: var(--ink); }
.ps { background: #fff; border: 1px solid #8d99a6; border-radius: 6px; padding: 5px; display: flex; overflow: hidden; }
.ps-ic { display: grid; place-items: center; min-width: 0; min-height: 0; }
.ps-tx { background: #e4002b; color: #fff; border-radius: 2px; display: flex; flex-direction: column; line-height: 1.15; }
.ps-tx b { font-size: 1em; color: inherit; }
.ps-tx span { font-size: .73em; margin-top: .13em; }
.ps-a { flex-direction: column; }
.ps-a .ps-ic { flex: 1; padding: .5em; }
.ps-a .ps-ic img { width: 86%; height: auto; }
.ps-a .ps-tx { padding: .6em .67em .73em; }
.ps-b .ps-ic { height: 100%; aspect-ratio: 1; padding: .27em; }
.ps-b .ps-ic img { height: 100%; width: auto; }
.ps-b .ps-tx { flex: 1; padding: .53em .67em; }
.ps-s .ps-tx { padding: .33em .53em; justify-content: center; }
.ps-s .ps-tx b { font-size: .8em; }
.ps-s .ps-tx span { font-size: .6em; }

/* Panah */
.arrow-tile { background: var(--tint); border-radius: var(--r-tile); padding: 6px 6px 10px; text-align: center; font-size: 12px; color: var(--muted); }
.arrow-tile .p { background: var(--icon-bg); border-radius: 14px; padding: 14px 0; margin-bottom: 6px; }
.arrow-tile svg { width: 44px; height: 44px; fill: #fff; display: block; margin: 0 auto; }

/* Roundel layanan */
.rd { flex: none; display: block; }
.badge-row { display: flex; align-items: center; gap: 12px; background: var(--tint); border-radius: var(--r-tile); padding: 10px 16px; }
.badge-row .t { min-width: 0; }
.badge-row b { display: block; color: var(--ink); font-size: 15px; line-height: 1.2; }
.badge-row small { color: var(--muted); font-size: 12px; }
.code-demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Tipografi */
.specimen { font-size: 28px; line-height: 1.25; word-break: break-all; color: var(--ink); }
.spec-card { background: var(--tint); border-radius: var(--r-tile); padding: 20px 24px; }
.spec-card small { color: var(--muted); font-weight: 700; display: block; margin-bottom: 4px; }

/* Katalog ikon: ikon tampil pada ukuran aslinya (hanya diperkecil bila tidak muat) */
.catalog-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.catalog-bar input { flex: 1; min-width: 200px; border-radius: var(--r-pill); padding: 11px 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip-row button { padding: 5px 13px; font-size: 13px; }
.count { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.icon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.icon-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.icon-cell { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 6px 12px; border-radius: var(--r-tile); background: var(--tint); font-weight: 400; text-align: center; font-size: 13px; line-height: 1.25; }
.icon-cell .box { display: grid; place-items: center; min-height: 150px; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: var(--icon-bg); }
.icon-cell.lt .box { background: #fff; }
.icon-grid-sm .icon-cell .box { min-height: 124px; }
.icon-cell img, .icon-cell svg { display: block; width: auto; height: auto; max-width: 100%; }
.icon-cell b { color: var(--ink); padding: 0 6px; }
.icon-cell small { color: var(--muted); padding: 0 6px; }
/* Ikon penjelas kecil */
/* Ikon ikut mengecil bila ruangnya sempit, tidak keluar kotak */
.h-icons { display: flex; flex-wrap: nowrap; gap: 6px; flex: 0 1 auto; min-width: 0; }
.h-icons > * { flex: 0 1 40px; width: 40px; min-width: 0; height: auto; aspect-ratio: 1; padding: 3px; border-radius: 10px; background: var(--icon-bg); display: block; }
.h-icons img.lt { background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
.stat .h-icons { margin-bottom: 10px; }
.part .top { min-width: 0; }
/* Cuplikan halaman sumber */
.src { display: flex; align-items: center; gap: 14px; background: var(--tint); border-radius: var(--r-tile); padding: 8px 16px 8px 8px; text-decoration: none; color: var(--navy); width: fit-content; max-width: 100%; }
.src:hover { background: var(--tint-2); }
.src img { width: 46px; height: 64px; object-fit: cover; object-position: top; border-radius: 8px; background: #fff; flex: none; }
.src b { display: block; color: var(--ink); font-size: 15px; line-height: 1.25; }
.src small { color: var(--muted); font-size: 12px; }
/* Tampilan daftar katalog */
.seg { display: inline-flex; background: var(--tint); border-radius: var(--r-pill); padding: 3px; }
.seg button { background: transparent; padding: 6px 14px; font-size: 14px; }
.seg button.on { background: var(--blue); }
.icon-rows { display: grid; gap: 6px; }
.icon-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 64px; align-items: center; gap: 14px; text-align: left; font-weight: 400; background: var(--tint); border-radius: 14px; padding: 6px 14px 6px 6px; }
.icon-row .th { width: 48px; height: 48px; border-radius: 10px; background: var(--icon-bg); display: grid; place-items: center; padding: 4px; }
.icon-row.lt .th { background: #fff; }
.icon-row .th img, .icon-row .th svg { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.icon-row b { display: block; color: var(--ink); line-height: 1.2; }
.icon-row small { color: var(--muted); font-size: 13px; }
.icon-row .pg { text-align: right; }
/* Katalog: accordion per kelompok, pilih banyak, unduh ZIP */
.acc-g { background: var(--tint); border-radius: var(--r-tile); margin-bottom: 8px; }
.acc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; }
.acc-t { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 12px; background: transparent; text-align: left; font-size: 17px; padding: 10px 12px; border-radius: 14px; }
.acc-t b { color: var(--ink); }
.acc-t .car { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.acc-g.open .acc-t .car { transform: rotate(45deg); }
.acc-t .pill { background: var(--card); }
.chk { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; cursor: pointer; }
.chk input, .pk input { width: 17px; height: 17px; padding: 0; accent-color: var(--blue); cursor: pointer; }
.acc-h > button { background: var(--card); font-size: 14px; }
.acc-b { padding: 4px 12px 14px; }
.acc .icon-cell, .acc .icon-row { background: var(--card); }
.pick { position: relative; display: grid; }
.pk { position: absolute; left: 12px; top: 12px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; background: var(--card); border-radius: 9px; outline: 1px solid var(--line); cursor: pointer; }
.icon-rows .pick { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.icon-rows .pk { position: static; }
.icon-row { grid-template-columns: 48px minmax(0, 1fr) 64px !important; }
.selbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 8px; background: var(--page-navy); color: #fff; border-radius: var(--r-pill); padding: 8px 10px 8px 22px; outline: 1px solid var(--line); max-width: 94vw; }
.selbar[hidden] { display: none; }
.selbar b { margin-right: 6px; white-space: nowrap; }
.selbar button:not(.on) { background: var(--navy-raised); color: #fff; }
.more-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.more-row:empty { display: none; }
.pill.tp { background: var(--lime); color: #18549c; }

/* Kartu tipe rambu */
.sign-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sign-card { display: flex; flex-direction: column; text-align: left; align-items: stretch; padding: 8px 8px 12px; background: var(--tint); border-radius: var(--r-tile); font-weight: 400; gap: 4px; }
.sign-card:hover { background: var(--tint-2); }
.sign-card .pv { height: 168px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; padding: 8px; position: relative; }
.sign-card .pv .pill { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px; }
.sign-card .pv:not(.pg) > :first-child { position: absolute; left: 50%; top: calc(50% + 8px); transform: translate(-50%, -50%); }
.sign-card .pv.pg { padding: 0; }
.pg-thumb { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.sign-card > b { padding: 6px 8px 0; color: var(--ink); line-height: 1.2; }
.sign-card > small { padding: 0 8px; color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

/* Glosarium dan kredit */
.gloss { display: grid; gap: 6px; margin: 0; }
.gloss div { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; background: var(--tint); border-radius: var(--r-tile); padding: 12px 18px; }
.gloss dt { font-weight: 700; color: var(--ink); }
.gloss dt small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.gloss dd { margin: 0; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.alpha button { width: 34px; height: 34px; padding: 0; font-size: 14px; }
.alpha button:disabled { opacity: .35; cursor: default; }

/* Modal */
dialog { border: 0; padding: 0; border-radius: var(--r-card); background: var(--card); color: var(--navy); width: min(920px, 94vw); max-height: 92vh; overflow: auto; }
dialog::backdrop { background: rgba(0, 21, 43, .7); }
.modal-in { padding: 28px 30px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { flex: 1; font-size: 24px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.kv div { background: var(--tint); border-radius: var(--r-chip); padding: 10px 14px; }
.kv small { display: block; color: var(--muted); font-size: 12px; }
.kv b { color: var(--ink); }
.page-fig, .fig { margin: 0; background: var(--ground); border-radius: var(--r-tile); padding: 10px; }
.page-fig img, .fig img { width: 100%; height: auto; aspect-ratio: 758 / 1072; display: block; border-radius: 12px; background: #fff; }
.fig figcaption { font-size: 13px; color: var(--muted); padding: 8px 6px 2px; }
.pg-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.pg-nav .spacer { flex: 1; }
.pg-fig { max-width: 620px; margin: 0 auto; }
.icon-big { display: grid; place-items: center; background: var(--icon-bg); border-radius: var(--r-tile); padding: 24px; min-height: 240px; }
.icon-big.lt { background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
.icon-big img { width: auto; height: auto; max-width: 100%; }
.var-row { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.var-row:empty { display: none; }
.var-row small { color: var(--muted); margin-right: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Diagram: selalu di atas latar terang agar garis ukur terbaca */
.diagram { background: #e4ecf5; border-radius: var(--r-tile); padding: 14px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram text { font-family: "PT Sans", sans-serif; fill: #14293d; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.calc .out { background: var(--lime); color: #00162b; border-radius: var(--r-tile); padding: 18px 22px; }
.calc .out b { font-size: 40px; line-height: 1.1; display: block; color: #00162b; }

.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(20px); background: var(--page-navy); color: #fff; padding: 10px 20px; border-radius: var(--r-pill); font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%); }

footer { background: var(--page-navy); color: #cfe0f4; margin-top: 20px; }
footer .in { max-width: var(--wrap); margin: 0 auto; padding: 34px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; font-size: 14px; }
footer h4 { color: #fff; margin-bottom: 8px; }
footer a { color: #cfe0f4; display: block; padding: 2px 0; }
footer p { color: #9fb4cc; }

@media (max-width: 1050px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: 62px; left: 0; bottom: 0; z-index: 25; width: min(330px, 88vw); max-height: none; border-radius: 0 var(--r-card) var(--r-card) 0; transform: translateX(-102%); transition: transform .2s; outline: 1px solid var(--line); }
  body.nav-open .side { transform: none; }
  .menu-btn { display: grid; }
  .head-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-wrap input { width: 170px; }
  footer .in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .head-in { padding: 10px 16px; }
  .shell { padding: 14px 16px 50px; }
  .card, .card.page-head { padding: 22px 20px; }
  .g2, .g3, .g4, .calc { grid-template-columns: minmax(0, 1fr); }
  .gloss div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .brand small { display: none; }
  .search-wrap input { width: 110px; }
  .card > h2 { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
