/* Off Track — static rebuild of the Shorthand story layout.
   Plain HTML/CSS/JS. Measurements taken from the original at 1440×900. */

:root {
  --blue: #4e649b;
  --orange: #ca743b;
  --gold: #ce9417;
  --ink: #333333;
  --black: #000000;
  --white: #ffffff;
  --dark: #222222;
  --nav-bg: rgba(34, 34, 34, 0.9);
  --nav-link: rgba(255, 255, 255, 0.6);
  --gallery-bg: #f1f2f4;
  --link: #e3061d; /* merah tautan & catatan kaki di artikel Pasopati (.prose a) */
  /* Merah Pasopati: sama dengan --color-pasopati di resources/css/app.css. */
  --pasopati: #dc2626;
  --divider: rgba(204, 204, 204, 0.75);
  --card-dark: rgba(34, 34, 34, 0.82);

  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --serif: "PT Serif", Georgia, serif;

  --nav-h: 32px;
  --gutter: 40px;
  --col-6: 600px;
  --col-8: 827px;
  --col-10: 1067px;
  --ease: cubic-bezier(0.45, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 621px) { body { font-size: 18px; } }
@media (min-width: 1100px) { body { font-size: 20px; } }

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

/* As in the original, underlines come from the <u> inside each link. */
a { color: var(--link); text-decoration: none; }
a u { text-underline-offset: 0.15em; }

/* Nomor catatan kaki: lebih kecil dari bawaan peramban, dan tanpa tinggi
   baris sendiri supaya baris yang memuatnya tidak lebih renggang. */
sup { position: relative; top: -0.5em; vertical-align: baseline; font-size: 0.75em; line-height: 0; }
/* Nomor catatan kaki memakai merah tautan artikel Pasopati (--link). */
a sup { color: var(--link); }
/* Di atas foto atau kartu gelap merah itu nyaris tak terbaca, jadi dipakai
   rona yang lebih terang dari merah yang sama. */
.s-tom.is-dark a sup,
.s-sp.is-dark a sup { color: #ff8a8a; }
a:hover { text-decoration: underline; }
.s-tom.is-dark a { color: var(--white); }

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: 44px; }

/* ---------------------------------------------------------------- nav */

.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 60;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--white);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  font-family: var(--sans);
}

.nav-list {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.nav-list a {
  display: block;
  padding: 8px 10px;
  color: var(--nav-link);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--white); }

/* Penukar bahasa di ujung kanan bilah bab. Spacer ::before selebar penukar
   menjaga daftar bab tetap di tengah; spacer itu yang lebih dulu menyusut
   kalau lebar layar pas-pasan. */
.site-nav { display: flex; }
.site-nav::before { content: ""; flex: 0 1 84px; }
.nav-list { flex: 1 0 auto; }
.nav-lang {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  box-sizing: border-box;
  width: 84px;
  padding-right: 16px;
  color: var(--nav-link);
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
}
.nav-lang a { color: inherit; text-decoration: none; transition: color 0.2s; }
.nav-lang a:hover,
.nav-lang a.is-current { color: var(--white); text-decoration: none; }
/* Poppins lebih lebar daripada Lato: daftar bab (terpanjang versi Indonesia)
   baru muat 16px mulai 1500px, jadi di bawahnya hurufnya dikecilkan. */
@media (min-width: 1101px) and (max-width: 1499px) {
  .nav-list a { padding: 9px 6px; font-size: 14px; line-height: 14px; }
}
@media (min-width: 1101px) and (max-width: 1239px) {
  .nav-list a { padding: 10px 6px; font-size: 12.5px; line-height: 12px; }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: var(--white);
  color: #000;
  cursor: pointer;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -8px; }
.nav-toggle__icon::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-8px) rotate(-45deg); }

/* Phones and tablets: as in the original, the bar becomes a white square
   menu button in the top-right corner. It opens a white header strip and a
   full-screen panel that slides in from the right. */
@media (max-width: 1100px) {
  :root { --nav-h: 0px; }
  .site-nav {
    left: auto;
    display: flex;
    justify-content: flex-end;
    height: 50px;
    background: none;
  }
  .site-nav.is-open { left: 0; background: var(--white); }
  .site-nav::before { content: none; }
  /* Di layar sempit penukar bahasa muncul di strip putih saat menu bab dibuka. */
  .nav-lang { display: none; order: -1; width: auto; margin-right: auto; padding: 0 0 0 16px; color: #6a7282; font-size: 15px; }
  .site-nav.is-open .nav-lang { display: flex; }
  .nav-lang a:hover,
  .nav-lang a.is-current { color: #000; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 24px;
    overflow-y: auto;
    background: var(--nav-bg);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .site-nav.is-open .nav-list {
    visibility: visible;
    transform: none;
    transition: transform 0.35s var(--ease);
  }
  .nav-list a { padding: 15.5px 10px; text-align: center; }
  html.nav-open { overflow: hidden; }
}
/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: #e9dcc0;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* ------------------------------------------------------- body text */

.s-text,
.tom-body,
.sp-card,
.tc-text,
.s-toc { overflow-wrap: break-word; }

:is(.s-text, .tom-body, .sp-card, .tc-text) :is(p, ul, ol) { margin: 1.2em 0; }
:is(.s-text, .tom-body, .sp-card, .tc-text) > :first-child { margin-top: 0; }
:is(.s-text, .tom-body, .sp-card, .tc-text) > :last-child { margin-bottom: 0; }

:is(.s-text, .tom-body, .sp-card, .tc-text) h1,
:is(.s-text, .tom-body, .sp-card, .tc-text) h2 { margin: 0.67em 0; font-weight: 400; }
:is(.s-text, .tom-body, .sp-card, .tc-text) h3 { margin: 0 0 1em; font-weight: 700; }

.f-serif { font-family: var(--serif); line-height: 1.8; }

/* Shorthand's named text sizes, inside regular body text */
.ts-smallest { font-size: 0.75em; line-height: 1.53; }
.ts-xxsmall { font-size: 130%; line-height: 1.2; }
.ts-xsmall  { font-size: 150%; line-height: 1.2; }
.ts-small   { font-size: 187.5%; line-height: 1; }
.ts-normal  { font-size: 225%; line-height: 1; }
.ts-large   { font-size: 262.5%; line-height: 1; }
.ts-xlarge  { font-size: 300%; line-height: 1; }

@media (min-width: 621px) {
  .ts-xxsmall { font-size: 140%; }
  .ts-xsmall  { font-size: 160%; }
  .ts-small   { font-size: 240%; line-height: 1.15; }
  .ts-normal  { font-size: 320%; line-height: 1.1; }
  .ts-large   { font-size: 400%; }
  .ts-xlarge  { font-size: 480%; }
}

.ta-center { text-align: center; }
.ta-left { text-align: left; }
.ta-right { text-align: right; }

.c-blue { color: var(--blue); }
.c-red { color: var(--pasopati); }
.c-orange { color: var(--orange); }
.c-gold { color: var(--gold); }
.c-white { color: var(--white); }
.c-black { color: var(--black); }
.c-ink { color: #101112; }

:is(.s-text, .tom-body, .sp-card, .tc-text) ul { padding-left: 1.2em; list-style: none; }
:is(.s-text, .tom-body, .sp-card, .tc-text) li { position: relative; margin-bottom: 0.4em; }
:is(.s-text, .tom-body, .sp-card, .tc-text) li::before {
  content: "";
  position: absolute;
  left: -1.03em;
  top: 0.67em;
  width: 0.44em;
  height: 0.44em;
  border-radius: 50%;
  background: currentColor;
}

hr.divider {
  width: 50%;
  height: 2px;
  margin: 1.68em auto;
  border: 0;
  background: var(--divider);
}

.btn-wrap { margin: 1.2em 0; }
.btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  border-radius: 7px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn:hover { background: #b5652f; text-decoration: none; }

.inline-media { margin: 1.6em 0; }
.inline-media img,
.inline-media video { width: 100%; height: auto; }
.inline-media figcaption { margin-top: 0.7em; font-size: 0.75em; line-height: 1.5; opacity: 0.85; }
.inline-media figcaption p { margin: 0; }
.inline-media figcaption p + p { margin-top: 0.5em; }

/* --------------------------------------------------- text sections */

.s-text {
  padding: 75px var(--gutter);
  background: var(--white);
}
.s-text > div { margin: 0 auto; }
.s-text .col-6 { max-width: var(--col-6); }
.s-text .col-8 { max-width: var(--col-8); }
.s-text .col-10 { max-width: var(--col-10); }

.s-text h1.ts-large { font-weight: 400; }
.s-text.is-annex { padding-top: 60px; padding-bottom: 60px; font-size: 0.85em; }

.s-text.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, var(--col-6)));
  justify-content: center;
  gap: var(--gutter) 80px;
  align-items: start;
}
.s-text.two-up .inline-media { margin: 0; }

.s-spacer { height: 108px; background: var(--white); }

@media (max-width: 900px) {
  :root { --gutter: 25px; }
  .s-text { padding-top: 50px; padding-bottom: 50px; }
  .s-text.two-up { grid-template-columns: minmax(0, var(--col-6)); }
  .s-spacer { height: 60px; }
}

/* ----------------------------------------------------- contents grid */

.s-toc {
  padding: 50px var(--gutter);
  text-align: center;
}
.toc-title {
  margin: 0 0 0.6em;
  color: var(--blue);
  font-size: 262.5%;
  font-weight: 700;
  line-height: 1.2;
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 45px;
  max-width: 1280px;
  margin: 0 auto 1.6em;
}
.toc-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 16px 24px;
  overflow: hidden;
  border-radius: 16px;
  isolation: isolate;
  color: var(--white);
  text-decoration: none;
}
.toc-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.toc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.32);
  transition: background-color 0.3s;
}
.toc-card:hover img { transform: scale(1.06); }
.toc-card:hover::after { background: rgba(0, 0, 0, 0.45); }
.toc-card__title {
  font-size: 1.875em;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.s-toc .btn-wrap { margin-bottom: 0; }

@media (min-width: 621px) {
  .toc-title { font-size: 400%; }
  .toc-card__title { font-size: 2.4em; }
}
@media (max-width: 1100px) { .toc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 620px) {
  .s-toc { padding-left: 15px; padding-right: 15px; }
  .toc-grid { grid-template-columns: 1fr; gap: 50px; }
  .toc-card { min-height: 0; padding: 25px; }
  .toc-card__title { line-height: 1; }
}

/* --------------------------------------------- text over fixed media */

.s-tom {
  position: relative;
  /* clip-path keeps the fixed background inside this section: the image
     stays still while the section scrolls past it like a window. */
  clip-path: inset(0);
  background: var(--dark);
}
.s-tom.is-light { background: var(--white); }
.s-tom.is-dark { color: var(--white); }

.tom-bg {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}
.tom-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tom-overlay {
  position: absolute;
  inset: 0;
  background: #000;
}

.tom-body {
  position: relative;
  z-index: 1;
  max-width: calc(var(--col-8) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

/* sizes inside a text block scale with the viewport, like Shorthand's */
.tom-body .ts-xxsmall { font-size: 1.25em; }
.tom-body .ts-large { font-size: 2.5em; }
.tom-body .ts-xlarge { font-size: 3em; }
@media (min-width: 621px) {
  .tom-body .ts-xxsmall { font-size: calc(1em + 2vmin); }
  .tom-body .ts-large { font-size: calc(1em + 8vmin); }
  .tom-body .ts-xlarge { font-size: calc(1em + 10vmin); }
}

.s-tom.is-chapter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
}
.s-tom.is-chapter .tom-body p,
.s-tom.is-chapter .tom-body h2 { margin: 0; font-weight: 400; line-height: 1.05; }
.s-tom.is-chapter .tom-body strong { font-weight: 700; }
.s-tom.is-chapter .tom-body { max-width: none; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }

.s-tom.is-long { padding: 18vh 0; }
.s-tom.is-long .tom-body h2 { margin-top: 0; }
.s-tom.is-long .tom-body p:not(.ts-xxsmall) { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.s-tom.is-long .tom-body .ts-xxsmall { margin-top: 1.4em; }
.s-tom.is-long .inline-media { margin: 2em 0; }

.s-tom.is-band { height: 50vh; min-height: 280px; }

/* ----------------------------------------------------- scrollpoints */

.s-sp {
  position: relative;
  background: var(--dark);
  color: var(--white);
}
.s-sp.is-light { background: #d9dcdf; color: var(--ink); }

.sp-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.sp-blur {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(0.9);
  transform: scale(1.08);
  opacity: 1;
}
.sp-tint { position: absolute; inset: 0; background: #000; }

.sp-media {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  transform-origin: 0 0;
  will-change: transform;
  transition: transform 1s var(--ease), width 1s var(--ease), height 1s var(--ease);
}
.sp-img { width: 100%; height: 100%; object-fit: fill; }
.sp-hl {
  position: absolute;
  border: 4px solid var(--orange);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.5s, left 1s var(--ease), top 1s var(--ease), width 1s var(--ease), height 1s var(--ease), box-shadow 0.6s;
}
.sp-hl.is-on { opacity: 1; }
.sp-hl.is-darken { box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.62); }

/* Steps follow the pinned stage in normal flow and scroll up over it.
   Spacing matches Shorthand: each card rises from the bottom of the
   screen (50vh above it), 30vh below, and the last frame lingers. */
.sp-steps {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.sp-step {
  display: flex;
  align-items: flex-start;
  padding: 50vh var(--gutter) 30vh;
}
.sp-step:first-child { padding-top: 0; }
.sp-step:last-child { padding-bottom: 85vh; }
.sp-step.align-left { justify-content: flex-start; }
.sp-step.align-right { justify-content: flex-end; }
.sp-step.align-center { justify-content: center; }

.sp-card {
  width: 680px;
  max-width: 100%;
  padding: 20px 40px;
  border-radius: 10px;
  background: var(--card-bg, var(--card-dark));
  pointer-events: auto;
}
.s-sp.is-light .sp-card { color: var(--ink); }
.sp-card .ts-normal { margin: 0; }
.sp-card ul { padding-left: 1.2em; }

@media (max-width: 900px) {
  .sp-step,
  .sp-step.align-left,
  .sp-step.align-right { justify-content: center; padding-left: 9px; padding-right: 9px; }
  .sp-card { padding: 10px 25px; border-radius: 8.5px; }
}

/* ------------------------------------------- two-column scrollmation */

.s-twocol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  padding: 0 var(--gutter);
  background: var(--white);
}
.s-twocol.media-first .tc-media { order: -1; }

.tc-text {
  align-self: center;
  max-width: 600px;
  padding: 100px 0;
  justify-self: center;
}
.tc-media { position: relative; }
.tc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
}
.tc-item {
  grid-area: 1 / 1;
  display: flex;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.tc-item.is-active { opacity: 1; }
.tc-item img,
.tc-item video {
  width: auto;
  max-width: min(600px, 100%);
  max-height: 80vh;
  object-fit: contain;
}

/* Phones: the media becomes a 35vh band pinned to the top of the screen,
   showing the top of each image, and the text scrolls up beneath it. */
@media (max-width: 900px) {
  .s-twocol { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .s-twocol .tc-text,
  .s-twocol .tc-media { grid-area: 1 / 1; }
  .s-twocol.media-first .tc-media { order: 0; }
  .tc-text {
    justify-self: stretch;
    align-self: start;
    max-width: none;
    padding: calc(35vh + 10px) var(--gutter) 50px;
  }
  .tc-media { z-index: 2; pointer-events: none; }
  .tc-sticky {
    display: block;
    height: 35vh;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
  }
  .tc-item { position: absolute; top: 0; left: 0; padding: 4px; }
  .tc-item img,
  .tc-item video { width: 100%; max-width: none; max-height: none; }
}

/* ---------------------------------------------------------- gallery */

.s-gallery {
  position: relative;
  background: var(--gallery-bg);
}
.gal-track {
  display: flex;
  gap: 15px;
  padding: 35px 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 30px;
  scrollbar-width: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-cell {
  flex: 0 0 auto;
  height: 255px;
  overflow: hidden;
  border-radius: 16px;
  scroll-snap-align: start;
  background: #dfe2e6;
}
.gal-cell img { height: 100%; width: auto; max-width: none; }

/* Plain grey chevrons, as in the original; each hides at its end of the strip. */
.gal-btn {
  position: absolute;
  top: 50%;
  width: 25px;
  height: 43px;
  margin-top: -21px;
  padding: 0;
  border: 0;
  background: none;
  color: #777;
  opacity: 0.7;
  cursor: pointer;
}
.gal-btn:hover { opacity: 1; }
.gal-btn svg { display: block; width: 100%; height: 40px; fill: currentColor; }
.gal-prev { left: 15px; }
.gal-next { right: 15px; }
.gal-btn[disabled] { display: none; }

@media (max-width: 620px) {
  .gal-track { gap: 15px; padding: 20px 15px; scroll-padding: 0 15px; }
  .gal-cell { height: 171px; border-radius: 6.4px; }
  .gal-btn { width: 19px; height: 33px; margin-top: -16px; }
  .gal-btn svg { height: 30px; }
  .gal-prev { left: 0; }
  .gal-next { right: 0; }
}

/* ------------------------------------------------------------ media */

.s-media { background: var(--white); }
.s-media img { width: 100%; height: auto; }
.s-media figcaption { max-width: var(--col-8); margin: 12px auto 0; padding: 0 var(--gutter); font-size: 0.75em; }

/* ---------------------------------------------------------- videos */

.inline-media.is-video { position: relative; }
/* With a caption the toggle anchors to the video, not the whole figure. */
.video-frame { position: relative; }
.video-frame video { display: block; }
.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.video-toggle::before,
.video-toggle::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 4px;
  height: 14px;
  background: var(--white);
}
.video-toggle::before { left: 12px; }
.video-toggle::after { left: 20px; }
.video-toggle.is-paused::before {
  left: 14px;
  width: 0;
  height: 0;
  background: transparent;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--white);
}
.video-toggle.is-paused::after { display: none; }

/* --------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ------------------------------------------------- Pasopati navbar */

/* Salinan mandiri navbar situs (front.components.navbar-user): halaman ini
   tidak memuat Tailwind. Navbar berada di alur dokumen, jadi ikut tergulir
   dan hilang saat halaman di-scroll; nav bab (fixed) muncul dari baliknya. */
.pp-nav,
.pp-menu {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
}
.pp-nav a,
.pp-menu a { color: inherit; text-decoration: none; }
.pp-nav button,
.pp-menu button {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.pp-nav svg,
.pp-menu svg { display: block; }

.pp-nav {
  position: relative;
  z-index: 70;
  padding: 0 12px;
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.pp-nav__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80rem;
  height: 64px;
  margin: 0 auto;
}
.pp-nav__logo { flex: none; }
.pp-nav__logo img { width: 200px; }
.pp-nav__tools { display: flex; align-items: center; gap: 12px; margin-left: 20px; }

.pp-search { display: flex; }
.pp-search input {
  min-width: 0;
  width: 187px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #000;
  font: inherit;
  outline: none;
}
.pp-search input::placeholder { color: #6a7282; opacity: 1; }
.pp-search button { flex: none; padding: 12px; background: #2b5343; color: var(--white); }
.pp-search svg { width: 16px; height: 16px; }
.pp-search--bar { display: none; }

.pp-lang { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; }
.pp-lang a:hover { color: #0d542b; text-decoration: none; }
.pp-lang a.is-current { color: #e7000b; font-weight: 700; }
.pp-lang .pp-forum { display: none; margin-left: 16px; font-weight: 700; }
.pp-lang .pp-forum:hover { color: #4a5565; }

.pp-nav .pp-burger { flex: none; padding: 16px 12px; background: #2b5343; color: var(--white); }
.pp-burger svg { width: 24px; height: 24px; }

@media (min-width: 768px) {
  .pp-nav__logo img { width: 400px; }
  .pp-nav__tools { margin-left: 0; }
  .pp-search--bar { display: flex; }
  .pp-lang .pp-forum { display: inline-block; }
}

.pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0s 0.2s;
}
.pp-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 81;
  box-sizing: border-box;
  height: 100%;
  max-width: 100vw;
  padding: 24px;
  overflow-y: auto;
  background: var(--white);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.2s ease-in, visibility 0s 0.2s;
}
@media (min-width: 640px) { .pp-menu { width: 75vw; } }
@media (min-width: 768px) { .pp-menu { width: 25rem; } }

html.pp-open { overflow: hidden; }
html.pp-open .pp-overlay { opacity: 1; visibility: visible; transition: opacity 0.2s; }
html.pp-open .pp-menu { visibility: visible; transform: none; transition: transform 0.3s ease-out; }

.pp-menu__close { display: flex; justify-content: flex-end; }
.pp-menu__close button { padding: 0; }
.pp-menu__close svg { width: 24px; height: 24px; }

.pp-search--menu { margin-top: 24px; }
.pp-search--menu input { flex: 1; width: auto; }
.pp-search--menu + .pp-menu__list { margin-top: 12px; }

.pp-menu ul { margin: 0; padding: 0; list-style: none; }
.pp-menu__list { margin-top: 24px; }
.pp-menu__list > li + li { margin-top: 12px; }
.pp-menu__top { display: block; color: #1e2939; font-weight: 600; text-transform: uppercase; }
.pp-menu a.pp-menu__top.is-strong { color: #000; font-weight: 700; }
.pp-menu a.pp-menu__top.is-strong:hover { color: #4a5565; text-decoration: none; }
.pp-menu__group { border-bottom: 1px solid #000; }
.pp-menu__group.has-pad { padding-bottom: 16px; }
.pp-menu__head { font-weight: 600; text-transform: uppercase; }
.pp-menu__head.is-small { display: block; margin-bottom: 8px; font-size: 14px; line-height: 20px; }
.pp-menu__group li::before {
  content: "•";
  margin-right: 4px;
  color: #c10007;
  font-size: 20px;
  line-height: 1;
}
.pp-menu__group ul.is-spaced li { display: flex; align-items: center; gap: 8px; }
.pp-menu__group ul.is-spaced li::before { margin-right: 0; }
.pp-menu__group ul.is-spaced li + li { margin-top: 8px; }
.pp-menu__group a:hover { text-decoration: underline; }
.pp-menu__follow { margin-top: 12px; font-weight: 600; }
.pp-menu__follow div { display: flex; gap: 8px; margin-top: 8px; }

@media (min-width: 768px) { .pp-search--menu { display: none; } }

/* Nav bab tetap terlihat tepat di bawah navbar Pasopati, lalu menempel di
   tepi atas begitu navbar tergulir habis. Margin negatif menjaganya tetap
   menumpang di atas hero seperti semula. */
.has-pp-nav .site-nav { position: sticky; top: 0; margin-bottom: calc(-1 * var(--nav-h)); }
@media (max-width: 1100px) {
  /* Di layar sempit nav bab hanya tombol di pojok: strip-nya tembus klik. */
  .has-pp-nav .site-nav { margin-bottom: -50px; pointer-events: none; }
  .has-pp-nav .site-nav > * { pointer-events: auto; }
  .has-pp-nav .site-nav.is-open {
    position: fixed;
    top: 0;
    z-index: 75;
    margin-bottom: 0;
    pointer-events: auto;
  }
}

/* Selagi navbar Pasopati (yang punya EN | ID sendiri) masih terlihat, penukar
   bahasa di bilah bab disembunyikan; main.js menandai <html> dengan pp-gone
   begitu navbar tergulir habis. Tempatnya tetap dipesan supaya daftar bab
   tidak bergeser. */
.has-pp-nav .nav-lang { opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
html.pp-gone .has-pp-nav .nav-lang { opacity: 1; visibility: visible; transition: opacity 0.2s; }
@media (max-width: 1100px) {
  /* Menu bab yang terbuka menutupi navbar, jadi penukarnya selalu tampil di sana. */
  .has-pp-nav .site-nav.is-open .nav-lang { opacity: 1; visibility: visible; }
}

/* Hero mengisi sisa layar di bawah navbar, bukan tinggi layar penuh. */
.has-pp-nav .hero { height: calc(100vh - 64px); height: calc(100svh - 64px); }

/* Lebar teks disamakan dengan artikel Pasopati: kolom isi di sana max-w-2xl
   (672px) dengan px-5, jadi barisnya 632px. Hanya teks yang dipersempit;
   gambar dan video di dalam kolom tetap selebar kolom aslinya. */
:root { --text-w: 632px; }
.s-text:not(.two-up) > div > :not(figure),
.s-tom.is-long .tom-body > :not(figure) {
  max-width: var(--text-w);
  margin-left: auto;
  margin-right: auto;
}

/* ---- Gaya huruf isi mengikuti artikel Pasopati -----------------------
   Angkanya diambil dari .prose di front.page-expose: Poppins 16px, jarak
   baris 1.5 (1.75 di layar sempit), jarak huruf 0.02em, teks abu tua,
   subjudul 24px tebal, tautan merah bergaris bawah. Judul besar (OFF TRACK,
   judul bab di atas foto) tetap memakai skala tampilan naskah. */
:is(.s-text, .tom-body, .sp-card, .tc-text) :is(p:not([class*="ts-"]), ul, ol) {
  font-size: 16px;
  line-height: 1.5;
}
:is(.s-text, .tom-body, .sp-card, .tc-text) p:not([class*="ts-"]) { margin: 1em 0; letter-spacing: 0.02em; }
:is(.s-text, .tom-body, .sp-card, .tc-text) :is(ul, ol) { padding-left: 1.625em; }
:is(.s-text, .tom-body, .sp-card, .tc-text) li { margin: 0.5em 0; padding-left: 0.375em; }
:is(.s-text, .tom-body, .sp-card, .tc-text) > :first-child { margin-top: 0; }
:is(.s-text, .tom-body, .sp-card, .tc-text) > :last-child { margin-bottom: 0; }
@media (max-width: 639px) {
  :is(.s-text, .tom-body, .sp-card, .tc-text) :is(p:not([class*="ts-"]), ul, ol) { line-height: 1.75; }
}

/* Poppins lebih lebar dan kolom teks lebih sempit: dua judul ini dibatasi
   supaya katanya ("Pendahuluan", "Recommendations") tidak terpenggal. */
.s-tom.is-long .tom-body h2.ts-large { font-size: min(calc(1em + 8vmin), 80px); }
.sp-card .ts-normal { font-size: clamp(26px, 7.6vw, 56px); }

/* Subjudul = h2 artikel. */
:is(.s-text, .tom-body, .sp-card, .tc-text) p.ts-xxsmall,
.s-tom.is-long .tom-body p.ts-xxsmall {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.333;
  letter-spacing: normal;
}
:is(.s-text, .tom-body, .sp-card, .tc-text) p.ts-xxsmall:not(:first-child),
.s-tom.is-long .tom-body p.ts-xxsmall:not(:first-child) { margin-top: 32px; }

/* Teks kecil dan keterangan gambar = 0.875em artikel. */
:is(.s-text, .tom-body, .sp-card, .tc-text) .ts-smallest { font-size: 14px; line-height: 1.5; }
.inline-media figcaption,
.s-media figcaption { font-size: 14px; line-height: 1.5; }
.inline-media figcaption p,
.s-media figcaption p,
.s-text .inline-media figcaption p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}
.inline-media figcaption p + p { margin-top: 0.5em; }

/* Warna di bagian berlatar terang; bagian di atas foto tetap putih. */
:is(.s-text, .tc-text) :is(p:not([class*="ts-"]), ul, ol) { color: #364153; }
:is(.s-text, .tc-text) p.ts-xxsmall,
:is(.s-text, .tc-text) :is(p:not([class*="ts-"]), li) strong { color: #101828; }
:is(.s-text, .tc-text) :is(p:not([class*="ts-"]), li) strong { font-weight: 600; }
.s-text li::marker { color: #d1d5dc; }
.s-text .inline-media figcaption,
.s-media figcaption { color: #6a7282; opacity: 1; }
:is(.s-text, .tc-text) :is(p, li) a:not(.btn):not(:has(> sup)) { font-weight: 500; text-decoration: underline; }
.s-text .c-black { color: #000; }

/* Tombol yang berdampingan dalam satu baris (turun baris kalau sempit). */
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin: 1.2em 0; }
/* Spesifisitasnya harus mengalahkan margin paragraf isi (1em). */
:is(.s-text, .tom-body, .sp-card, .tc-text) .btn-row p.btn-wrap { margin: 0; }

/* ---------------------------------------------------- scroll to top */

/* Sama dengan tombol melayang situs (front.components.floating): bulat
   merah di pojok kanan bawah, muncul setelah halaman digulir 300px. */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  padding: 20px;
  border: 0;
  border-radius: 50%;
  background: #d50c2e;
  color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s, background-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transition: opacity 0.3s, background-color 0.2s; }
.to-top:hover { background: #9f0712; }
.to-top svg { display: block; width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* -------------------------------------------------------- preloader */

/* Sama rupa dengan preloader beranda (logo + bilah hijau), tetapi bilahnya
   mengikuti jumlah gambar yang sudah termuat. Hanya tampil kalau skrip
   jalan (html.ot-js), jadi tanpa JavaScript halaman langsung terbuka. */
.ot-preloader { display: none; }
html.ot-js .ot-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--white);
  color: #6a7282;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  transition: opacity 0.35s;
}
html.ot-js .ot-preloader[hidden] { display: none; }
.ot-preloader.is-done { opacity: 0; pointer-events: none; }
.ot-preloader__logo { width: 300px; max-width: 70vw; }
.ot-preloader__bar {
  width: 200px;
  height: 3px;
  margin-top: 32px;
  border-radius: 2px;
  background: #e5e5e5;
  overflow: hidden;
}
.ot-preloader__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: #2b5343;
  transition: width 0.25s;
}
.ot-preloader__text { margin: 14px 0 0; font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ot-preloader__skip {
  margin-top: 18px;
  padding: 6px 14px;
  border: 1px solid #d1d5dc;
  border-radius: 4px;
  background: none;
  color: #364153;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ot-preloader__skip:hover { border-color: #2b5343; color: #2b5343; }
html.ot-loading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html.ot-js .ot-preloader, .ot-preloader__bar span { transition: none; }
}
