/* News article page (blog/berita_page.html).
   A page for reading: one text measure, images a step wider, and the brand's
   own tokens only — palette and display font come from BrandSettings. */

/* A news title is often a whole sentence. The site's page-head size fits a
   two-word title; this one keeps a long headline to a few lines. The excerpt
   under it is the article's standfirst. */
.page-head--berita { padding-block: clamp(48px, 6vw, 80px); }
.page-head--berita .page-head__inner { max-width: 900px; }
.page-head--berita .page-head__title {
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  line-height: 1.1;
}
.page-head--berita .page-head__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  max-width: 62ch;
}

/* ── Column ─────────────────────────────────────────────────────────────── */
/* Left-aligned under the headline: one left edge from the title down. */
.artikel { max-width: 860px; }

.artikel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}
.artikel__meta a.berita-card__cat:hover { text-decoration: underline; }

/* ── Text: about 70 characters a line ───────────────────────────────────── */
/* In em, not ch: ch is the width of "0", and Plus Jakarta Sans has wide digits —
   68ch came out as the whole 860px column. Running text averages ~0.5em. */
.artikel__teks {
  max-width: 37em;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--c-ink);
}
.artikel__teks > * + * { margin-top: 1.1em; }
.artikel__teks p { margin: 0; }
.artikel__teks p + p { margin-top: 1.1em; }
.artikel__teks h2,
.artikel__teks h3 {
  font-family: var(--font-display);
  color: var(--c-primary-deep);
  line-height: 1.2;
  margin-top: 1.8em;
}
.artikel__teks h2 { font-size: 1.6rem; }
.artikel__teks h3 { font-size: 1.3rem; }
.artikel__teks ul,
.artikel__teks ol { padding-left: 1.3em; }
.artikel__teks li + li { margin-top: 0.5em; }
.artikel__teks a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.artikel__teks blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--c-accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--c-primary-deep);
}
.artikel__teks + .artikel__teks { margin-top: 1.1em; }

/* ── Images: the full column, a step wider than the text ───────────────── */
.artikel__gambar { margin: 36px 0; }
.artikel__gambar--utama { margin-top: 0; }
/* A portrait poster at full column width is taller than the screen; it stops at
   85% of the viewport and keeps the text's left edge. Landscape images still
   fill the column. */
.artikel__gambar img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  border-radius: var(--r-lg);
  background: var(--c-base-deep);
}
.artikel__gambar a { display: inline-block; max-width: 100%; border-radius: var(--r-lg); vertical-align: top; }
.artikel__gambar a:hover img { opacity: 0.94; }
.artikel__gambar a:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

/* ── End of the article ─────────────────────────────────────────────────── */
.artikel__bagikan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.artikel__bagikan-label { font-weight: 600; margin-right: 8px; }

.artikel__lainnya { margin-top: 56px; }
.artikel__lainnya-judul {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--c-primary-deep);
  margin: 0 0 20px;
}
.artikel__lainnya-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.artikel__kembali { margin-top: 40px; }
.artikel__kembali a { color: var(--c-primary); font-weight: 600; }

@media (max-width: 760px) {
  .artikel__lainnya-grid { grid-template-columns: 1fr; }
  .artikel__teks { font-size: 1.02rem; }
  .artikel__bagikan-label { flex-basis: 100%; }
}

/* ── News index (blog/berita_grid_partial.html) ─────────────────────────── */
/* Overrides styles.css, which this file follows. Titles here run from three
   words to a whole paragraph. In the reference grid the feature card spanned two
   rows and every card stretched to its tallest row-mate, so a short title sat
   above a tall empty box. Now the feature lies across the top, and titles and
   summaries are held to a few lines so a row's cards come out close in height. */
/* The category filter is a left sidebar on the index, so the grid has two columns. */
.berita-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.berita-feature {
  grid-column: 1 / -1;
  grid-row: auto;
  flex-direction: row;
}
.berita-feature__img {
  flex: 0 0 55%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.berita-feature__body { padding: 32px 36px; }
.berita-feature__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.berita-feature__excerpt {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.berita-card { position: relative; }
.berita-card__img { overflow: hidden; }
.berita-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.berita-card__ringkasan {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--c-ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* The whole card is the link, not only the title text. */
.berita-feature { position: relative; }
.berita-card__title a::after,
.berita-feature__title a::after { content: ""; position: absolute; inset: 0; }
.berita-card:focus-within,
.berita-feature:focus-within { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.berita-card__title a:focus-visible,
.berita-feature__title a:focus-visible { outline: none; }
.berita-feature:hover { border-color: var(--c-primary); }

.berita-feature__img img,
.berita-card__img img { width: 100%; height: 100%; object-fit: cover; }

.berita-kosong { color: var(--c-ink-soft); }

@media (max-width: 760px) {
  .berita-grid { grid-template-columns: 1fr; }
  .berita-feature { flex-direction: column; }
  .berita-feature__img { flex-basis: auto; }
  .berita-feature__body { padding: 24px; }
}
