/*
Theme Name: V1 NewsTalo
Theme URI: https://github.com/firdausekabkl/
Author: Firdaus Eka
Author URI: https://github.com/firdausekabkl/
Description: Tema berita ringan dan sederhana — V1 NewsTalo.
Version: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: v1-newstalo
Tags: news, Blog, Personal, private
*/

/*
 * Article content base. The full zen palette and typography live in
 * assets/v1-editorial.css; these rules keep the legacy article markup
 * monochrome even when that stylesheet has not yet been applied.
 */

/* === 1. Kontainer Utama === */
.content-body {
  font-family: "Roboto", sans-serif;
  color: #171717;
  line-height: 1.85;
  font-size: 1rem;
}

.content-body .isi-artikel {
  text-align: left;
}

/* === 2. Teks Dasar dan Paragraf === */
.content-body .isi-artikel p {
  margin-bottom: 1.25rem;
  color: #171717;
}

/* === 3. Heading === */
.content-body .isi-artikel h2,
.content-body .isi-artikel h3,
.content-body .isi-artikel h4 {
  margin: 2.25rem 0 1rem;
  color: #171717;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.content-body .isi-artikel h2 { font-size: 1.7rem; }
.content-body .isi-artikel h3 { font-size: 1.35rem; }
.content-body .isi-artikel h4 { font-size: 1.1rem; }

/* === 4. Daftar (List) === */
.content-body .isi-artikel ul,
.content-body .isi-artikel ol {
  margin: 0 0 1.25rem 1.5rem;
  padding-left: 1rem;
}

.content-body .isi-artikel ul {
  list-style-type: disc;
}

.content-body .isi-artikel ol {
  list-style-type: decimal;
}

.content-body .isi-artikel li {
  margin-bottom: 0.5rem;
}

/* === 5. Kutipan (Blockquote) === */
.content-body .isi-artikel blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid #b5262e;
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  font-style: normal;
  color: #171717;
}

/* === 6. Tautan === */
.content-body .isi-artikel a {
  color: #b5262e;
  text-decoration: none;
}

.content-body .isi-artikel a:hover {
  color: #941d24;
}

/* === 7. Gambar (Image) === */
.content-body .isi-artikel img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Tangani jika pengguna menyisipkan gambar kecil dengan atribut width/height */
.content-body .isi-artikel img[width][height] {
  height: auto !important;
  width: auto !important;
  max-width: 100% !important;
}

/* === 8. Gambar dengan Caption (WordPress) === */
.content-body .isi-artikel .wp-caption {
  max-width: 100% !important;
  height: auto;
  text-align: center;
  margin: 1.5rem auto;
  font-size: 0.82rem;
  color: #6b6b6b;
}

.content-body .isi-artikel .wp-caption img {
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.content-body .isi-artikel .wp-caption .wp-caption-text {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: left;
  color: #6b6b6b;
}

/* === 9. Video YouTube (Embed) === */
.content-body .isi-artikel iframe[src*="youtube.com"],
.content-body .isi-artikel iframe[src*="youtu.be"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Jika WordPress menggunakan Gutenberg block wrapper */
.content-body .isi-artikel figure.wp-block-embed-youtube {
  margin: 1.5rem 0;
}

.content-body .isi-artikel figure.wp-block-embed-youtube iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
}

/* === 10. Pagination — hairline squares === */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0.5rem;
  border: 1px solid #dedede;
  border-radius: 0;
  background-color: transparent;
  color: #171717;
  font-family: "Roboto", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.pagination a:hover {
  background-color: #171717;
  color: #ffffff;
}

.pagination .current {
  background-color: #171717;
  color: #ffffff;
  cursor: default;
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}
