/*
 * Halaman artikel dan pusat artikel.
 * Memakai variabel, header, footer, dan tipografi dari legal.css.
 */

/* Breadcrumb */
.art-breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--lg-muted);
}
.art-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.art-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.art-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: #94a3b8;
}
.art-breadcrumb a {
  color: var(--lg-muted);
  font-weight: 600;
  text-decoration: none;
}
.art-breadcrumb a:hover {
  color: var(--lg-link);
  text-decoration: underline;
}
.art-breadcrumb [aria-current="page"] {
  color: var(--lg-text);
  font-weight: 700;
}

/* Hero artikel */
.art-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 1.5rem;
}
@media (min-width: 900px) {
  .art-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 3rem;
  }
}
.art-hero h1 {
  max-width: 21ch;
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.art-hero .lg-lead {
  margin-bottom: 0.9rem;
}
.art-byline {
  margin: 0;
  color: var(--lg-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.art-byline strong {
  color: var(--lg-text);
}
.art-hero-media {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 24px;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
}
.art-hero-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 40px -20px rgb(15 23 42 / 0.35);
}
.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.art-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.6rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
.art-tag:hover {
  background: #dbeafe;
  color: #1e40af;
}

/* Pusat artikel */
.art-hub-hero {
  padding: 2.5rem 0 1rem;
}
.art-hub-hero h1 {
  max-width: 24ch;
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.art-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
@media (min-width: 720px) {
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.art-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--lg-border);
  border-radius: 20px;
  background: var(--lg-surface);
}
.art-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
}
.art-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}
.art-card:hover .art-card-media img {
  transform: scale(1.03);
}
.art-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.1rem 1.25rem;
}
.art-card-kicker {
  margin: 0 0 0.45rem;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.art-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.art-card h2 a {
  color: var(--lg-text);
  text-decoration: none;
}
.art-card h2 a:hover {
  color: var(--lg-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.art-card p {
  margin: 0 0 1rem;
  color: var(--lg-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.art-card-more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
}

.art-section-title {
  margin: 1rem 0 0.35rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
}
.art-section-lead {
  max-width: 65ch;
  margin: 0 0 0.5rem;
  color: var(--lg-muted);
}

/* CTA unduhan */
.art-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.4rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
}
.art-cta h2 {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 1.2rem;
}
.art-cta p {
  margin: 0;
  color: #dbeafe;
  font-size: 0.9rem;
}
.lg-body .art-cta a.lg-btn {
  margin: 0;
  background: #fff;
  color: #1d4ed8 !important;
}
.lg-body .art-cta a.lg-btn:hover {
  background: #eff6ff;
  color: #1e40af !important;
}

/* Artikel terkait */
.art-related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lg-border);
}
.art-related h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}
.art-related ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.art-related a {
  font-weight: 700;
}

/* Gambar dalam isi artikel */
.art-figure {
  margin: 1rem 0 1.25rem;
}
.art-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
  border: 1px solid var(--lg-border);
  border-radius: 16px;
  background: #fff;
}
.art-figure figcaption {
  margin-top: 0.5rem;
  color: var(--lg-muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* Tabel di dalam artikel tetap memakai lg-table */
.art-article .lg-article section:first-child {
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .art-card-media img { transition: none; }
  .art-card:hover .art-card-media img { transform: none; }
}
