/* Skeleton CSS Anti-FOUC & Keyframe Utilities */

/* 1. Reset Dasar Cepat */
html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #F0F2F5;
  color: #1C1E21;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100dvh;
}

/* 2. Sembunyikan scrollbar untuk Pills Kategori horizontal */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 3. Animasi Bottom Sheet Modal */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 4. Touch target feedback */
.touch-press:active {
  transform: scale(0.97);
}

/* 5. Rich Bio Content Formatting (Word-like styling) */
.bio-content {
  font-size: 0.75rem; /* text-xs */
  line-height: 1.45;
  color: #4B5563;
}

.bio-content p {
  margin: 0.15rem 0;
}

.bio-content b,
.bio-content strong {
  font-weight: 700;
  color: #111827;
}

.bio-content i,
.bio-content em {
  font-style: italic;
  color: #374151;
}

.bio-content u {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #10B981;
}

.bio-content mark {
  background-color: #FEF08A;
  color: #854D0E;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.bio-content ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0.35rem 0;
}

.bio-content ul li {
  display: inline-flex;
  align-items: center;
  background-color: #F3F4F6;
  color: #1F2937;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.6875rem; /* 11px */
  font-weight: 500;
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.bio-content a {
  color: #172C27;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 6. Rich Word-Document & Terms Content Formatting (Word-like styling) */
.terms-content {
  color: #1F2937;
  line-height: 1.6;
}

.terms-content p {
  margin: 0.35rem 0 0.55rem 0;
}

.terms-content h1,
.terms-content h2,
.terms-content h3,
.terms-content h4 {
  font-weight: 800;
  color: #0F172A;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.terms-content h1 {
  font-size: 1.15rem;
  border-bottom: 1.5px solid #E2E8F0;
  padding-bottom: 0.3rem;
}

.terms-content h2 {
  font-size: 1rem;
  color: #172C27;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 0.25rem;
}

.terms-content h3 {
  font-size: 0.9rem;
  color: #1E293B;
}

.terms-content h4 {
  font-size: 0.825rem;
}

.terms-content b,
.terms-content strong {
  font-weight: 700;
  color: #0F172A;
}

.terms-content i,
.terms-content em {
  font-style: italic;
  color: #334155;
}

.terms-content u {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #10B981;
}

.terms-content mark {
  background-color: #FEF08A;
  color: #854D0E;
  padding: 0.08rem 0.35rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

/* Numbered lists (Word-style) */
.terms-content ol {
  list-style-type: decimal;
  margin: 0.4rem 0 0.6rem 1.25rem;
  padding: 0;
}

.terms-content ol li {
  margin-bottom: 0.3rem;
  padding-left: 0.25rem;
}

/* Bullet lists (Word-style) */
.terms-content ul {
  list-style-type: disc;
  margin: 0.4rem 0 0.6rem 1.25rem;
  padding: 0;
}

.terms-content ul li {
  margin-bottom: 0.3rem;
  padding-left: 0.25rem;
}

.terms-content ul ul {
  list-style-type: circle;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Blockquote / Kotak Jaminan & Kebijakan */
.terms-content blockquote {
  margin: 0.65rem 0;
  padding: 0.5rem 0.75rem;
  background-color: #F0FDF4;
  border-left: 4px solid #10B981;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #064E3B;
  font-size: 0.8rem;
}

.terms-content blockquote p {
  margin: 0;
}

/* Divider / Horizontal line */
.terms-content hr {
  border: 0;
  border-top: 1px dashed #CBD5E1;
  margin: 0.85rem 0;
}

/* Table styling (Word-style) */
.terms-content table {
  width: 100%;
  margin: 0.65rem 0;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.terms-content th {
  background-color: #F1F5F9;
  font-weight: 700;
  text-align: left;
  padding: 0.35rem 0.55rem;
  border: 1px solid #CBD5E1;
}

.terms-content td {
  padding: 0.35rem 0.55rem;
  border: 1px solid #E2E8F0;
}

/* Links */
.terms-content a {
  color: #172C27;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Text Alignments (Word-Style: Left, Center, Right, Justify) */
.terms-content .text-left,
.terms-content [align="left"],
.bio-content .text-left,
.bio-content [align="left"] {
  text-align: left !important;
}

.terms-content .text-center,
.terms-content [align="center"],
.terms-content center,
.bio-content .text-center,
.bio-content [align="center"],
.bio-content center {
  text-align: center !important;
}

.terms-content .text-right,
.terms-content [align="right"],
.bio-content .text-right,
.bio-content [align="right"] {
  text-align: right !important;
}

.terms-content .text-justify,
.terms-content [align="justify"],
.bio-content .text-justify,
.bio-content [align="justify"] {
  text-align: justify !important;
  text-justify: inter-word;
}

