/*!
 * Theme Name:  Detak Media Network
 * Theme URI:   https://detak.media
 * Description: Theme berita Detak.Media — desain editorial bersih dengan hero, ticker, dan blok kategori.
 * Version:     1.7.8
 * Author:      Detak Media
 * Author URI:  https://detak.media
 * License:     GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: detak-media-network
 * Domain Path: /languages
 * Tags:        news, blog, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #db2a2a;
  --accent-dark: #b52222;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --text-mute: #8a8a8a;
  --bg: #ffffff;
  --bg-soft: #f5f5f3;
  --border: #e8e6e2;
  --border-soft: #f0eeea;

  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
figure { margin: 0; }

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}

/* Logo — .custom-logo-link / .custom-logo = output the_custom_logo() WP */
.logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo__img,
.custom-logo {
  height: auto;
  max-height: 40px;
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* Main nav */
.mainnav { flex: 1; }
.mainnav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.mainnav a {
  display: block;
  padding: 8px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 3px;
  transition: color var(--transition);
}
.mainnav a:hover { color: var(--text); }
.mainnav a.active,
.mainnav .current-menu-item > a { color: var(--accent); font-weight: 600; }

/* Actions: search button + hamburger */
.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  color: var(--text-soft);
  transition: color var(--transition), background var(--transition);
}
.search-btn:hover { color: var(--text); background: var(--bg-soft); }

/* Hamburger (mobile only) */
.header__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  color: var(--text-soft);
  transition: color var(--transition), background var(--transition);
}
.header__menu:hover { color: var(--text); background: var(--bg-soft); }
.header__menu .icon-close { display: none; }
.header__menu[aria-expanded="true"] .icon-menu { display: none; }
.header__menu[aria-expanded="true"] .icon-close { display: block; }

/* ============ SEARCH PANEL ============ */
.search-panel {
  background: var(--bg);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease;
}
.search-panel.is-open {
  max-height: 72px;
  border-bottom: 1px solid var(--border);
}

.search-panel__form {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  color: var(--text-mute);
}

.search-panel__form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--text);
}
.search-panel__form input::placeholder { color: var(--text-mute); }

.search-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: var(--text-mute);
  flex-shrink: 0;
  transition: color var(--transition), background var(--transition);
}
.search-panel__close:hover { color: var(--text); background: var(--bg-soft); }

/* ============ TICKER ============ */
.ticker {
  background: var(--accent);
  border-bottom: 2px solid var(--accent-dark);
  overflow: hidden;
}
.ticker__inner {
  display: flex;
  align-items: center;
  height: 38px;
}
.ticker__label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  padding-right: 16px;
  margin-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}
.ticker__track-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 45s linear infinite;
}
.ticker__track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker__item {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 20px;
  white-space: nowrap;
  transition: color 0.15s;
}
.ticker__item:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ticker__sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  flex-shrink: 0;
  user-select: none;
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ============ HERO ============ */
.hero { padding: 24px 0; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Feature article */
.hero__feature { display: flex; }
.hero__feature-link {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero__feature-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 20px;
  transition: opacity var(--transition);
}
.hero__feature-link:hover .hero__feature-img { opacity: 0.92; }

.meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.meta-line--sm { font-size: 10px; margin-bottom: 6px; }

.post-cat { color: var(--accent); font-weight: 700; }
.meta-line .dot { color: var(--text-mute); font-size: 11px; }
.meta-line .time { color: var(--text-mute); font-weight: 500; }

.hero__feature-title {
  font-family: var(--sans);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 16px;
  transition: color var(--transition);
}
.hero__feature-link:hover .hero__feature-title { color: var(--accent-dark); }

.hero__feature-excerpt {
  line-height: 1.6;
  color: var(--text-soft);
  font-size: 14px;
  max-width: 60ch;
}

/* ============ SOROTAN ============ */
.hero__highlights { padding-top: 4px; }

.highlights__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  margin-bottom: 16px;
}

/* ============ UNIFIED NEWS ITEM ============ */
/*
 * Dipakai oleh: highlights__list, latest__grid (card), cat-mini-grid (cat-mini)
 * Layout: thumbnail 84px kiri — teks kanan, dipisah border-bottom
 */

/* -- Sorotan -- */
.highlights__list { display: flex; flex-direction: column; }

.highlight {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.highlight:last-child { border-bottom: none; padding-bottom: 0; }

.highlight__thumb {
  width: 84px;
  height: 84px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  transition: opacity var(--transition);
}
.highlight:hover .highlight__thumb { opacity: 0.92; }

.highlight__body { min-width: 0; }

.highlight__title {
  display: block;
	font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
    color: var(--text);
    transition: color var(--transition);
}
.highlight:hover .highlight__title { color: var(--accent-dark); }

/* -- Berita Terbaru -- */
.latest { padding: 16px 0 32px; }

.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  margin-bottom: 16px;
}

.latest__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}

.card {
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 0;
}
.card:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }

.card__link {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: start;
}

.card__img {
  width: 84px;
  height: 84px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  transition: opacity var(--transition);
}
.card__link:hover .card__img { opacity: 0.92; }

.card__body { min-width: 0; }

.card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--text);
  transition: color var(--transition);
}
.card__link:hover .card__title { color: var(--accent-dark); }


/* -- Kategori Mini -- */
.cat-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}

.cat-mini {
  border-bottom: 1px solid var(--border-soft);
}
.cat-mini:nth-last-child(-n+2) { border-bottom: none; }

/* Grid 2-kolom: gambar kiri spanning 2 baris, teks kanan bertumpuk */
.cat-mini__link {
  display: grid;
  grid-template-columns: 84px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  padding: 16px 0;
}

.cat-mini__link > figure {
  grid-column: 1;
  grid-row: 1 / 3;
}
.cat-mini__img {
  width: 84px;
  height: 84px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  transition: opacity var(--transition);
}
.cat-mini:hover .cat-mini__img { opacity: 0.92; }

.cat-mini__link > .meta-line {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  margin-top: 0;
  align-self: end;
}

.cat-mini__title {
  grid-column: 2;
  grid-row: 2;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--text);
  padding: 0;
  align-self: start;
  transition: color var(--transition);
}
.cat-mini:hover .cat-mini__title { color: var(--accent-dark); }

/* ============ KATEGORI ============ */
.cat-section { padding: 16px 0 32px; }

.cat-block + .cat-block { margin-top: 32px; }

.cat-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.cat-block__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.cat-block__more {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-mute);
  transition: color var(--transition);
}
.cat-block__more:hover { color: var(--accent); }

/* Cat lead — cinematic overlay card */
.cat-lead {
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
}

.cat-lead__link {
  position: relative;
  display: block;
}

.cat-lead__img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}
.cat-lead__link:hover .cat-lead__img { transform: scale(1.03); }

.cat-lead__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 64px 32px 30px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.52) 45%,
    transparent 100%
  );
}

.cat-lead__body .dot  { color: rgba(255, 255, 255, 0.35); }
.cat-lead__body .time { color: rgba(255, 255, 255, 0.6); font-weight: 400; }

.cat-lead__title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: #ffffff;
  margin-bottom: 10px;
  transition: opacity var(--transition);
}
.cat-lead__link:hover .cat-lead__title { opacity: 0.88; }

.cat-lead__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__logo-img,
.footer .custom-logo {
	height: auto;
  max-height: 40px;
  width: 100%;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.footer__nav a {
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--accent); }

/* Follow strip — di dalam container artikel */
.follow-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 20px;
}
.follow-strip__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  flex-shrink: 0;
}
.follow-strip__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.google-btn:hover {
  border-color: #4285f4;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(66,133,244,0.15);
}
.google-btn__icon { display: block; flex-shrink: 0; }

.footer__copy {
  font-size: 12px;
  color: var(--text-mute);
}

/* ============ PAGE ============ */

.page-header { padding-bottom: 32px; }

.page-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  text-align: center;
  padding: 40px 0 8px;
}

.page-body {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 48px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin: 8px 0 40px;
}
.team-card { text-align: center; }
.team-card figure { display: flex; justify-content: center; margin-bottom: 12px; }
.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-soft);
}
.team-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 12px;
  color: var(--text-mute);
}

/* ============ ARCHIVE ============ */

.archive-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 32px;
}
.archive-header__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.archive-header__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 12px;
}
.archive-header__desc {
  font-size: 16px;
  color: var(--text-mute);
  max-width: 560px;
  line-height: 1.6;
}

/* Search results inline form */
.search-results__form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  max-width: 480px;
}
.search-results__form svg { flex-shrink: 0; color: var(--text-mute); }
.search-results__form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.search-results__form input[type="search"]::placeholder { color: var(--text-mute); }
.search-results__form button[type="submit"] {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.search-results__form button[type="submit"]:hover { background: var(--accent-dark); }

/* Search no-results state */
.search-empty {
  padding: 64px 0;
  text-align: center;
}
.search-empty__text {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.search-empty__hint {
  font-size: 14px;
  color: var(--text-mute);
}

/* ============ 404 ============ */

.erro-r404 { padding: 64px 0 80px; }

.error-404__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0;
}
.error-404__code {
  font-size: clamp(96px, 16vw, 160px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -6px;
  color: var(--border);
  margin-bottom: 16px;
  user-select: none;
}
.error-404__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.error-404__desc {
  font-size: 16px;
  color: var(--text-mute);
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.error-404__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  width: 100%;
  max-width: 420px;
  margin-bottom: 20px;
}
.error-404__search svg { flex-shrink: 0; color: var(--text-mute); }
.error-404__search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.error-404__search input[type="search"]::placeholder { color: var(--text-mute); }
.error-404__search button[type="submit"] {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.error-404__search button[type="submit"]:hover { background: var(--accent-dark); }
.error-404__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mute);
  transition: color var(--transition);
}
.error-404__home:hover { color: var(--accent); }

.error-404__cats { margin-bottom: 48px; }
.error-404__cats-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.error-404__cats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.error-404__cat {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.error-404__cat:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-soft);
}

.error-404__recent { }
.error-404__recent .error404__cats-label { margin-bottom: 20px; }

/* Author profile */
.author-profile {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 16px;
}
.author-profile__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-soft);
}
.author-profile__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.author-profile__info .archive-header__title {
  padding: 0;
  margin: 0;
  text-align: left;
}
.author-profile__info .archive-header__desc { margin: 0; }
.author-profile__count {
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 600;
}
.author-profile__socials {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.author-profile__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--text-mute);
  transition: color var(--transition), background var(--transition);
}
.author-profile__social:hover {
  color: var(--text);
  background: var(--bg-soft);
}

/* Pagination */
.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 48px;
  flex-wrap: wrap;
}
.archive-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.archive-pagination__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.archive-pagination__btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.archive-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
.archive-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.archive-pagination__page:hover {
  border-color: var(--border);
  color: var(--text);
}
.archive-pagination__page.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.archive-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  color: var(--text-mute);
}

/* ============ SINGLE POST ============ */

/* Breadcrumb */
.post-breadcrumb { padding: 24px 0 0; }
.post-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
}
.post-breadcrumb a { color: var(--text-mute); transition: color var(--transition); }
.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb .post-cat { color: var(--accent); font-weight: 700; }

/* Post header */
.post-header { padding-bottom: 32px; }
.post-header__inner { max-width: 780px; margin: 0 auto; }

.post-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin: 16px 0 20px;
}

.post-deck {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 66ch;
  margin-bottom: 24px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mute);
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.post-meta__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
}
.post-meta__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.post-meta__author { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.post-meta__author a { color: inherit; transition: color var(--transition); }
.post-meta__author a:hover { color: var(--accent); }
.post-meta__date { font-size: 12px; }

/* Share button — di kanan post-meta */
.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-mute);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.post-share__btn:hover { color: var(--text); border-color: var(--text-mute); background: var(--bg-soft); }

/* Featured image — .wp-post-image = WP 5.5+ auto-wraps the_post_thumbnail() in <figure> */
.post-thumbnail { margin-bottom: 40px; }
.post-thumbnail__img,
.post-thumbnail .wp-post-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
.post-thumbnail figcaption {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 10px;
  line-height: 1.5;
}

/* Post body — narrow column centered */
.post-body { max-width: 700px; margin: 0 auto; padding-bottom: 24px; }

/* entry-content: WordPress content typography */
.entry-content { margin-bottom: 32px; }

.entry-content p {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.entry-content p:last-child { margin-bottom: 0; }

.entry-content h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--text);
  margin: 40px 0 16px;
}
.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  margin: 32px 0 12px;
}

.entry-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
}
.entry-content blockquote p {
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 8px;
}
.entry-content blockquote cite {
  font-size: 13px;
  font-style: normal;
  color: var(--text-mute);
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--accent-dark); }

.entry-content ul,
.entry-content ol {
  margin: 0 0 24px 20px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.entry-content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}
.entry-content figure { margin: 32px 0; }
.entry-content figcaption {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 8px;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.post-tags__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mute);
  margin-right: 2px;
}
.post-tags__item {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-soft);
  border-radius: 32px;
  padding: 5px 14px;
  transition: color var(--transition), background var(--transition);
}
.post-tags__item:hover {
  color: var(--accent);
  background: #fceeee;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}

/* Related posts — same card component as .latest__grid */
.related { padding: 24px 0; border-top: 1px solid var(--border); }

.related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }

  .latest__grid { grid-template-columns: 1fr; gap: 0; }
  .card:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-soft); padding-bottom: 16px; }
  .card:last-child { border-bottom: none; padding-bottom: 0; }

  .cat-lead__img { aspect-ratio: 3 / 2; }
  .cat-lead__title { font-size: 24px; }
  .cat-mini-grid { grid-template-columns: 1fr; gap: 0; }
  .cat-mini:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .cat-mini:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  .header__inner { height: 56px; gap: 12px; }
  .mainnav { display: none; }
  .header__menu { display: flex; }

  .hero { padding: 24px 0 32px; }

  /* Drawer mobile */
  .mainnav.is-open {
    display: block;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    z-index: 99;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  }
  .mainnav.is-open ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav.is-open a {
    padding: 14px 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .mainnav.is-open li:last-child a { border-bottom: none; }
}

@media (max-width: 720px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .related__grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .post-title { letter-spacing: -0.4px; }
  .entry-content p, .entry-content li { font-size: 16px; }
  .entry-content h2 { font-size: 20px; }

  .container { padding: 0 18px; }
  .hero__feature-excerpt { max-width: 100%; }

  /* Thumbnail sedikit lebih kecil di layar sempit */
  .highlight { grid-template-columns: 72px 1fr; }
  .highlight__thumb { width: 72px; height: 72px; }

  .card__link { grid-template-columns: 72px 1fr; }
  .card__img { width: 72px; height: 72px; }

  .cat-block__title { font-size: 16px; }
  .cat-lead__img { aspect-ratio: 4 / 3; }
  .cat-lead__body { padding: 40px 18px 20px; }
  .cat-lead__title { font-size: 20px; }
  .cat-lead__excerpt { display: none; }

  .cat-mini__link { grid-template-columns: 72px 1fr; }
  .cat-mini__img { width: 72px; height: 72px; }

  .archive-header { padding: 28px 0 24px; margin-bottom: 24px; }
  .archive-header__title { letter-spacing: -0.5px; }
  .archive-pagination { gap: 6px; padding: 28px 0 36px; }
  .archive-pagination__btn { padding: 7px 12px; font-size: 13px; }
  .archive-pagination__page { width: 32px; height: 32px; font-size: 13px; }
  .archive-pagination__ellipsis { width: 32px; height: 32px; font-size: 13px; }

  .author-profile { gap: 14px; }
  .author-profile__avatar { width: 64px; height: 64px; }
  .search-results__form { max-width: 100%; }
}

/* ============================================================
   OVERRIDES & ADDITIONS — sengaja di paling akhir agar memenangi
   konflik specificity sama dengan rule sebelumnya.
   ============================================================ */

/* Geser main nav ke sisi kanan (di sebelah kiri tombol search).
   Auto-margin pada logo mendorong semua sibling ke kanan. */
.header__inner > .logo,
.header__inner > .custom-logo-link {
  margin-right: auto;
}
.header__inner .mainnav {
  flex: initial;
}

/* === Skip link (a11y) === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* === Auto-hide sticky header on scroll down === */
.header {
  transition: transform 0.3s ease;
  will-change: transform;
}
.header.is-hidden {
  transform: translateY(-100%);
}

/* === Reading progress bar (single post) === */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* === Focus visible (a11y) ===
   Hanya tampil saat keyboard nav, bukan klik mouse. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* === Separator antar-artikel di infinite scroll === */
.next-article-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px auto;
  padding: 0 16px;
}
.next-article-separator::before,
.next-article-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.next-article-separator__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  white-space: nowrap;
}

/* === Infinite scroll sentinel / status === */
.page-load-status {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  padding: 24px 16px;
  font-size: 14px;
  color: var(--text-mute);
  text-align: center;
}
.page-load-status > span {
  display: none;
}
.page-load-status[data-state="loading"] .page-load-status__loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-load-status[data-state="loading"] .page-load-status__loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: detak-spin 0.6s linear infinite;
}
@keyframes detak-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-load-status[data-state="loading"] .page-load-status__loading::before {
    animation: none;
  }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .header,
  .reading-progress,
  .skip-link {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.dateline {
  color: var(--accent);
  font-weight: 700;
}

.post-tags {
  margin-bottom: 0;
}

.entry-content img {
  margin: 0;
}

.post-content a {
  text-decoration: none;
}

.entry-content figcaption {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 10px;
  line-height: 1.5;
  text-align: center;
}

.archive-latest__grid {
  margin: 32px auto;
}

.post-thumbnail figcaption {
  text-align: center;
}

.logo__img,
.custom-logo {
  height: auto;
  max-height: 32px;
}

.related-article-block {
  margin-bottom: 24px;
}

.related-article-label {
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--border-soft, #e5e5e5);
  text-align: left;
}

thead {
  border-bottom: 2px solid var(--border-soft, #e5e5e5);
}

th {
  font-weight: 600;
  background: var(--bg-soft, #f9f9f9);
}

.wp-block-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-block-table table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  text-align: left;
}

.wp-block-table thead {
  border-bottom: 2px solid var(--border-soft);
}

.wp-block-table th {
  font-weight: 600;
  background: var(--bg-soft, #f9f9f9);
}

.author-profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-soft);
}

.post-meta img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
}

.responsive-ad {
  height: auto;
  min-width: 300px;
  min-height: 250px;
}

.ad-container {
  margin: 24px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.ad-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 336px;
  min-height: 280px;
  margin: auto;
  background-color: #eee;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23999' d='M6.153 10.625h1.444L6.875 8.546zM13.75 10c-0.517 0 -0.938 0.421 -0.938 0.938s0.421 0.938 0.938 0.938 0.938 -0.421 0.938 -0.938 -0.421 -0.938 -0.938 -0.938M18.125 2.5H1.875C0.84 2.5 0 3.34 0 4.375v11.25c0 1.035 0.84 1.875 1.875 1.875h16.25c1.035 0 1.875 -0.84 1.875 -1.875V4.375c0 -1.035 -0.84 -1.875 -1.875 -1.875M9.788 13.75h-0.662c-0.266 0 -0.503 -0.169 -0.591 -0.42L8.248 12.5h-2.746l-0.288 0.83A0.625 0.625 0 0 1 4.623 13.75h-0.662c-0.43 0 -0.732 -0.424 -0.591 -0.83L5.469 6.88A0.937 0.937 0 0 1 6.354 6.25h1.041A0.937 0.937 0 0 1 8.281 6.88l2.097 6.04c0.141 0.406 -0.161 0.83 -0.59 0.83M16.563 13.125c0 0.345 -0.28 0.625 -0.625 0.625h-0.625c-0.189 0 -0.353 -0.089 -0.468 -0.222 -0.337 0.143 -0.707 0.222 -1.095 0.222 -1.551 0 -2.813 -1.262 -2.813 -2.813s1.262 -2.813 2.813 -2.813c0.33 0 0.643 0.068 0.938 0.173V6.875c0 -0.345 0.28 -0.625 0.625 -0.625h0.625c0.345 0 0.625 0.28 0.625 0.625z'/%3E%3C/svg%3E");
}
