/* Portalhub: portal berita padat, terorganisir per kanal. Awalan kelas: ph- */

:root {
  --ph-ink: #14202B;
  --ph-ink-2: #4A5864;
  --ph-line: #DDE2E5;
  --ph-bg: #F3F5F6;
  --ph-white: #FFFFFF;
  --ph-teal: #0E7C86;
  --ph-teal-d: #0A5F67;
  --ph-yellow: #F2A900;
  --ph-ph: #E3E8EB;

  /* 7 warna kanal: semuanya >= 4.5:1 sebagai teks di atas putih dan sebagai latar bagi teks putih */
  --ph-cat-0: #B91C1C;
  --ph-cat-1: #A3216B;
  --ph-cat-2: #1D4ED8;
  --ph-cat-3: #B45309;
  --ph-cat-4: #2F7D32;
  --ph-cat-5: #6D28D9;
  --ph-cat-6: #0E7C86;

  --ph-font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ph-gut: 16px;
  --ph-max: 1280px;
  --ph-nav-h: 52px;
}

.ph-c0 { --c: var(--ph-cat-0); }
.ph-c1 { --c: var(--ph-cat-1); }
.ph-c2 { --c: var(--ph-cat-2); }
.ph-c3 { --c: var(--ph-cat-3); }
.ph-c4 { --c: var(--ph-cat-4); }
.ph-c5 { --c: var(--ph-cat-5); }
.ph-c6 { --c: var(--ph-cat-6); }
.ph-c7 { --c: var(--ph-teal); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ph-nav-h) + 16px); }

.ph-body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ph-bg);
  color: var(--ph-ink);
  font-family: var(--ph-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ph-body > main { flex: 1 0 auto; }
.ph-body :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, address) { margin: 0; }
.ph-body :where(ul, ol) { padding: 0; list-style: none; }
.ph-body img { display: block; max-width: 100%; height: auto; }
.ph-body a { color: inherit; text-decoration: none; cursor: pointer; }
.ph-body button { font: inherit; cursor: pointer; }
.ph-body address { font-style: normal; }
[hidden] { display: none !important; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--ph-teal); outline-offset: 2px; }
.ph-util :focus-visible, .ph-footer :focus-visible { outline-color: var(--ph-yellow); }

.ph-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ph-body .ph-skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ph-ink); color: #fff; padding: 12px 16px; font-weight: 700;
}
.ph-body .ph-skip:focus { top: 8px; }

.ph-wrap { width: 100%; max-width: var(--ph-max); margin-inline: auto; padding-inline: var(--ph-gut); }

.ph-i { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Bar utilitas ---------- */
.ph-util { background: var(--ph-ink); color: #E3E9ED; font-size: 13px; }
.ph-util__in { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; }
.ph-util__date { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ph-util__right { display: none; align-items: center; gap: 16px; }
.ph-util__social { display: flex; }
.ph-util__social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #E3E9ED; transition: color .15s, background-color .15s; }
.ph-util__social a:hover { color: var(--ph-yellow); }
.ph-util__search { display: flex; align-items: stretch; height: 36px; }
.ph-util__search input {
  width: 220px; border: 1px solid #3A4B59; border-right: 0; background: #1D2C3A; color: #fff;
  padding: 0 12px; font: inherit; font-size: 14px; border-radius: 0;
}
.ph-util__search input::placeholder { color: #B5C0C8; opacity: 1; }
.ph-util__search input::-webkit-search-cancel-button { display: none; }
.ph-util__search button {
  width: 44px; border: 0; background: var(--ph-teal); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background-color .15s;
}
.ph-util__search button:hover { background: var(--ph-teal-d); }

/* ---------- Baris logo + banner ---------- */
.ph-brandrow { background: var(--ph-white); }
.ph-brandrow__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; min-height: 88px; }
.ph-logo { display: inline-flex; align-items: center; min-height: 44px; }
.ph-logo img { height: 48px; width: auto; max-width: 100%; }
.ph-wordmark { font-weight: 800; font-size: 28px; letter-spacing: -.02em; color: var(--ph-teal-d); line-height: 1.1; }
.ph-wordmark--sm { font-size: 20px; }
.ph-ad { background: var(--ph-ph); }
.ph-ad img { width: 100%; height: auto; }
.ph-ad--h { display: none; flex: 0 1 728px; max-width: 728px; aspect-ratio: 728 / 90; }

/* ---------- Navigasi kanal ---------- */
.ph-navbar { position: sticky; top: 0; z-index: 50; background: var(--ph-white); border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); }
.ph-navbar.is-stuck { box-shadow: 0 2px 8px rgba(20, 32, 43, .08); }
.ph-navbar__in { display: flex; align-items: center; height: var(--ph-nav-h); gap: 8px; }

.ph-navbtn {
  display: inline-flex; align-items: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 8px;
  background: transparent; border: 0; color: var(--ph-ink); font-weight: 700; font-size: 15px;
  transition: color .15s, background-color .15s;
}
.ph-navbtn:hover { color: var(--ph-teal-d); background: var(--ph-bg); }
.ph-navbtn .ph-i--shut { display: none; }
.ph-navbtn[aria-expanded="true"] .ph-i--open { display: none; }
.ph-navbtn[aria-expanded="true"] .ph-i--shut { display: block; }
.ph-searchbtn { margin-left: auto; justify-content: center; }

.ph-minilogo { display: none; align-items: center; min-height: 44px; margin-left: 8px; }
.ph-minilogo img { height: 32px; width: auto; }
.ph-navbar.is-stuck .ph-minilogo { display: inline-flex; animation: ph-fade .2s ease-out; }

.ph-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ph-white); border-bottom: 1px solid var(--ph-line); box-shadow: 0 8px 16px rgba(20, 32, 43, .08); max-height: calc(100dvh - var(--ph-nav-h)); overflow-y: auto; }
.ph-navbar.is-menu .ph-nav { display: block; animation: ph-fade .15s ease-out; }
.ph-nav ul { padding: 8px 0; }
.ph-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 var(--ph-gut); font-weight: 700; border-left: 4px solid transparent; transition: background-color .15s, color .15s; }
.ph-nav a:hover { background: var(--ph-bg); }
.ph-nav a.is-active { border-left-color: var(--c, var(--ph-teal)); background: var(--ph-bg); }
.ph-nav__home { --c: var(--ph-teal); }
.ph-dot { display: inline-block; width: 8px; height: 8px; background: var(--c, var(--ph-teal)); flex: none; }

.ph-searchpanel { position: absolute; left: 0; right: 0; top: 100%; background: var(--ph-white); border-bottom: 1px solid var(--ph-line); box-shadow: 0 8px 16px rgba(20, 32, 43, .08); padding-block: 16px; }
.ph-searchpanel form { display: flex; gap: 8px; }
.ph-searchpanel input { flex: 1; min-width: 0; height: 44px; border: 1px solid #8A96A0; padding: 0 12px; font: inherit; color: var(--ph-ink); background: #fff; border-radius: 0; }
.ph-searchpanel input:focus-visible { outline-offset: 0; border-color: var(--ph-teal); }

@keyframes ph-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Tombol ---------- */
.ph-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  background: var(--ph-teal); border: 2px solid var(--ph-teal); color: #fff !important; font-weight: 700; font-size: 15px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.ph-btn:hover { background: var(--ph-teal-d); border-color: var(--ph-teal-d); }
.ph-btn--ghost { background: #fff; color: var(--ph-teal-d) !important; }
.ph-btn--ghost:hover { background: var(--ph-bg); color: var(--ph-teal-d) !important; border-color: var(--ph-teal-d); }

/* ---------- Kilas (flash) ---------- */
.ph-flash { background: var(--ph-white); border-bottom: 1px solid var(--ph-line); }
.ph-flash__in { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.ph-flash__label { flex: none; background: var(--ph-yellow); color: var(--ph-ink); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; }
.ph-flash__list { flex: 1; min-width: 0; display: grid; }
.ph-flash__list li { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .25s; }
.ph-flash__list li.is-on { opacity: 1; visibility: visible; }
.ph-flash__list a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 15px; line-height: 44px; }
.ph-flash__list a:hover { text-decoration: underline; }
.ph-flash__cat { color: var(--c); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.ph-flash__ctl { display: flex; flex: none; }
.ph-flash__ctl button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--ph-ink-2); transition: color .15s, background-color .15s; }
.ph-flash__ctl button:hover { color: var(--ph-teal-d); background: var(--ph-bg); }

/* ---------- Komponen bersama ---------- */
.ph-box { background: var(--ph-white); border: 1px solid var(--ph-line); padding: 16px; }

.ph-bar {
  display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
  border-bottom: 2px solid var(--c, var(--ph-teal)); margin-bottom: 16px;
  font-size: 14px; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; font-weight: 800;
}
.ph-bar > span:first-child {
  display: inline-flex; align-items: center; gap: 8px; background: var(--c, var(--ph-teal)); color: #fff; padding: 8px 12px;
}
.ph-bar > span:first-child::after { content: ""; width: 6px; height: 6px; background: var(--ph-yellow); flex: none; }
.ph-bar > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 0 0 8px; min-height: 44px; margin-block: -8px -2px;
  color: var(--c); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; transition: color .15s;
}
.ph-bar > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ph-bar > a .ph-i { transition: transform .15s; }
.ph-bar > a:hover .ph-i { transform: translateX(2px); }

.ph-cat { display: inline-block; color: var(--c, var(--ph-teal-d)); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; }
a.ph-cat:hover { text-decoration: underline; text-underline-offset: 3px; }

.ph-time { display: inline-flex; align-items: center; gap: 4px; color: var(--ph-ink-2); font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.4; }

.ph-body :where(h2, h3) a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Gambar kartu */
.ph-lead__img, .ph-sub__img, .ph-chan__img, .ph-row__img, .ph-side__img, .ph-also__img { display: block; overflow: hidden; background: var(--ph-ph); }
.ph-lead__img img, .ph-sub__img img, .ph-chan__img img, .ph-row__img img, .ph-side__img img, .ph-also__img img {
  width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s;
}
@media (hover: hover) {
  a.ph-lead__img:hover img, a.ph-sub__img:hover img, a.ph-chan__img:hover img, a.ph-row__img:hover img, a.ph-side__img:hover img, a.ph-also__img:hover img { transform: scale(1.03); }
}

/* ---------- Beranda: hero ---------- */
.ph-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px; }
.ph-lead, .ph-sub { background: var(--ph-white); border: 1px solid var(--ph-line); border-top: 4px solid var(--c); display: flex; flex-direction: column; }
.ph-lead__body, .ph-sub > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
.ph-lead h2 { font-size: clamp(24px, 5vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.ph-lead p { color: var(--ph-ink-2); font-size: 16px; line-height: 1.6; }
.ph-sub h2 { font-size: 18px; line-height: 1.3; font-weight: 800; }
.ph-subs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ph-sub { min-height: 0; }

.ph-trend { display: flex; flex-direction: column; }
.ph-trend ol { display: flex; flex-direction: column; flex: 1; }
.ph-trend li { flex: 1; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ph-line); }
.ph-trend li:first-child { border-top: 0; padding-top: 0; }
.ph-trend li:last-child { padding-bottom: 0; }
.ph-trend__n { font-size: 44px; line-height: 1; font-weight: 800; color: var(--ph-teal); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.ph-trend h3 { font-size: 16px; line-height: 1.35; font-weight: 700; }
.ph-trend li > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* Terkini */
.ph-latest-wrap { padding-bottom: 24px; }
.ph-latest ul { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
.ph-latest li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--ph-line); align-items: start; }
.ph-latest li:first-child { border-top: 0; padding-top: 0; }
.ph-latest__t { color: var(--ph-teal-d); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.5; padding-top: 14px; }
.ph-latest li > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ph-latest__title { font-weight: 700; font-size: 16px; line-height: 1.4; }
.ph-latest__title:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kolom utama + sidebar ---------- */
.ph-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 40px; }
.ph-cols--page { padding-top: 24px; }
.ph-main { min-width: 0; }

.ph-chans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ph-chan { padding: 16px; }
.ph-chan__body { display: grid; gap: 16px; align-content: start; }
.ph-chan__lead { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border-top: 0; }
.ph-chan__lead h3 { font-size: 20px; line-height: 1.3; font-weight: 800; margin-top: 4px; }
.ph-chan__img { width: 100%; }
.ph-chan__list li { padding: 12px 0; border-top: 1px solid var(--ph-line); display: flex; flex-direction: column; gap: 2px; align-items: flex-start; position: relative; padding-left: 16px; }
.ph-chan__list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 6px; height: 6px; background: var(--c); }
.ph-chan__list li:first-child { border-top: 0; padding-top: 0; }
.ph-chan__list li:first-child::before { top: 8px; }
.ph-chan__list a { font-weight: 700; font-size: 16px; line-height: 1.4; }
.ph-chan__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Sidebar */
.ph-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ph-side__list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--ph-line); align-items: start; }
.ph-side__list li:first-child { border-top: 0; padding-top: 0; }
.ph-side__list li:last-child { padding-bottom: 0; }
.ph-side__list li > div { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
.ph-side__list h3 { font-size: 15px; line-height: 1.35; font-weight: 700; }
.ph-side__img { border-top: 3px solid var(--c); }

.ph-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; background: var(--ph-bg); border: 1px solid var(--ph-line); font-weight: 600; font-size: 14px; transition: background-color .15s, color .15s, border-color .15s; }
.ph-tags a:hover { background: var(--ph-teal); border-color: var(--ph-teal); color: #fff; }

.ph-follow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ph-follow a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ph-line); font-weight: 700; font-size: 14px; transition: background-color .15s, color .15s, border-color .15s; }
.ph-follow a:hover { background: var(--ph-ink); border-color: var(--ph-ink); color: #fff; }

.ph-ad--v { display: none; width: 300px; max-width: 100%; aspect-ratio: 300 / 600; align-self: center; position: sticky; top: calc(var(--ph-nav-h) + 16px); }

/* ---------- Breadcrumb ---------- */
.ph-crumbs { margin-bottom: 16px; font-size: 14px; color: var(--ph-ink-2); }
.ph-crumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; }
.ph-crumbs li { display: flex; align-items: center; min-width: 0; }
.ph-crumbs li + li::before { content: "\203A"; margin-inline: 8px; color: var(--ph-ink-2); flex: none; }
.ph-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ph-teal-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ph-crumbs li:last-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 44px; }
.ph-crumbs li:last-child::before { display: inline; }
.ph-crumbs li:not(:last-child) { flex: none; }

/* ---------- Daftar ---------- */
.ph-listhead { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ph-ink); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.ph-listhead h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ph-listhead h1 .text-danger, .ph-listhead h1 label { color: var(--ph-teal-d); }
.ph-listhead p { color: var(--ph-ink-2); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

.ph-rows { display: grid; gap: 16px; }
.ph-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--ph-white); border: 1px solid var(--ph-line); border-left: 4px solid var(--c); align-items: start; }
.ph-row__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.ph-row h2 { font-size: 16px; line-height: 1.35; font-weight: 800; }
.ph-row p { display: none; color: var(--ph-ink-2); font-size: 15px; line-height: 1.55; }
.ph-row .ph-time .ph-i { color: var(--ph-ink-2); }

.ph-empty { text-align: left; padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; color: var(--ph-ink-2); font-size: 18px; }
.ph-hero + .ph-empty, .ph-wrap.ph-empty { padding-block: 32px; }

/* Pagination (markup Bootstrap 4 milik Laravel) */
.ph-pager { margin-top: 24px; }
.ph-pager nav { display: block; }
.ph-pager .pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ph-pager .page-link {
  display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  background: var(--ph-white); border: 1px solid var(--ph-line); color: var(--ph-ink); font-weight: 700; font-size: 15px;
  font-variant-numeric: tabular-nums; border-radius: 0; transition: background-color .15s, color .15s, border-color .15s;
}
.ph-pager a.page-link:hover { background: var(--ph-bg); border-color: var(--ph-ink); }
.ph-pager .active .page-link { background: var(--ph-teal); border-color: var(--ph-teal); color: #fff; }
.ph-pager .disabled .page-link { color: #5F6B76; background: var(--ph-bg); }
.ph-pager .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Detail ---------- */
.ph-article { background: var(--ph-white); border: 1px solid var(--ph-line); border-top: 4px solid var(--c); padding: 16px; }
.ph-article__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ph-article h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; overflow-wrap: anywhere; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ph-ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.ph-meta li { display: inline-flex; align-items: center; gap: 6px; }
.ph-article__fig { margin: 16px -16px 0; background: var(--ph-ph); }
.ph-article__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.ph-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding-block: 12px; border-block: 1px solid var(--ph-line); }
.ph-share__l { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ph-ink-2); }
.ph-share ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-share a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ph-ink); font-weight: 700; font-size: 14px; transition: background-color .15s, color .15s; }
.ph-share a:hover { background: var(--ph-ink); color: #fff; }

.ph-prose { margin-top: 24px; max-width: 70ch; font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.ph-prose > * + * { margin-top: 1.1em; }
.ph-prose h2, .ph-prose h3, .ph-prose h4 { line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin-top: 1.8em; }
.ph-prose h2 { font-size: 26px; }
.ph-prose h3 { font-size: 22px; }
.ph-prose h4 { font-size: 19px; }
.ph-prose a { color: var(--ph-teal-d); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.ph-prose a:hover { background: var(--ph-bg); }
.ph-prose ul, .ph-prose ol { padding-left: 1.5em; }
.ph-prose ul { list-style: square; }
.ph-prose ol { list-style: decimal; }
.ph-prose li + li { margin-top: .4em; }
.ph-prose li::marker { color: var(--ph-teal); font-weight: 700; }
.ph-prose blockquote { padding: 16px 20px; border-left: 4px solid var(--ph-yellow); background: var(--ph-bg); font-size: 1.05em; font-weight: 500; }
.ph-prose img { height: auto; }
.ph-prose figure { max-width: 100%; }
.ph-prose figcaption { font-size: 14px; color: var(--ph-ink-2); margin-top: 8px; line-height: 1.5; }
.ph-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.ph-prose th, .ph-prose td { border: 1px solid var(--ph-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.ph-prose th { background: var(--ph-bg); font-weight: 800; }
.ph-prose iframe, .ph-prose video { max-width: 100%; }
.ph-prose hr { border: 0; border-top: 1px solid var(--ph-line); }
.ph-prose pre { overflow-x: auto; padding: 16px; background: var(--ph-ink); color: #fff; font-size: 15px; line-height: 1.5; }
.ph-prose code { font-size: .9em; }

.ph-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ph-line); }
.ph-article__tags > span { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ph-ink-2); }

/* Baca juga */
.ph-also { margin-top: 24px; background: var(--ph-white); border: 1px solid var(--ph-line); border-left: 4px solid var(--ph-yellow); padding: 16px; }
.ph-also__h { font-size: 20px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.ph-also__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ph-also__list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.ph-also__list li > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.ph-also__list h3 { font-size: 16px; line-height: 1.35; font-weight: 700; }

/* ---------- Error ---------- */
.ph-err { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; min-height: 60dvh; padding-block: 64px; }
.ph-err__code { font-size: clamp(96px, 26vw, 192px); font-weight: 800; line-height: .85; letter-spacing: -.05em; color: var(--ph-teal); font-variant-numeric: tabular-nums; border-bottom: 8px solid var(--ph-yellow); padding-bottom: 8px; }
.ph-err h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; font-weight: 800; margin-top: 8px; }
.ph-err > p:not(.ph-err__code) { max-width: 52ch; color: var(--ph-ink-2); font-size: 18px; line-height: 1.6; }
.ph-err__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- Footer ---------- */
.ph-footer { margin-top: auto; background: var(--ph-ink); color: #D3DBE0; border-top: 4px solid var(--ph-yellow); }
.ph-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px; }
.ph-footer .ph-logo img { filter: none; background: #fff; padding: 8px 12px; height: 64px; }
.ph-footer .ph-wordmark { color: #fff; }
.ph-footer__about { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ph-footer__about p { max-width: 44ch; line-height: 1.6; }
.ph-footer__social { display: flex; gap: 8px; }
.ph-footer__social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #3A4B59; color: #fff; transition: background-color .15s, color .15s, border-color .15s; }
.ph-footer__social a:hover { background: var(--ph-yellow); border-color: var(--ph-yellow); color: var(--ph-ink); }
.ph-footer__h { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: #fff; margin-bottom: 8px; }
.ph-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.ph-footer__links a { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ph-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ph-footer address p { line-height: 1.6; margin-bottom: 8px; }
.ph-footer address a { text-decoration: underline; text-underline-offset: 3px; }
.ph-footer__bar { border-top: 1px solid #2B3B49; padding-block: 16px; font-size: 14px; color: #B5C0C8; }

/* ---------- >= 640 ---------- */
@media (min-width: 640px) {
  :root { --ph-gut: 24px; }
  .ph-row { grid-template-columns: 224px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .ph-row h2 { font-size: 20px; }
  .ph-row p { display: block; }
  .ph-article { padding: 24px; }
  .ph-article__fig { margin-inline: -24px; }
  .ph-also__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
}

/* ---------- >= 768 ---------- */
@media (min-width: 768px) {
  .ph-util__right { display: flex; }
  .ph-ad--h { display: block; }
  .ph-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-lead { grid-column: 1 / -1; }
  .ph-subs { display: contents; }
  .ph-trend { grid-column: 1 / -1; }
  .ph-trend ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .ph-trend li:nth-child(2) { border-top: 0; padding-top: 0; }
  .ph-latest ul { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), auto); grid-auto-flow: column; }
  .ph-latest li { border-top: 1px solid var(--ph-line); padding-top: 12px; }
  .ph-latest li.is-top { border-top: 0; padding-top: 0; }
  .ph-chans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-chan:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ph-chan:last-child:nth-child(odd) .ph-chan__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- >= 1024 ---------- */
@media (min-width: 1024px) {
  .ph-cols { grid-template-columns: minmax(0, 1fr) 316px; gap: 32px; }
  .ph-ad--v { display: block; }
  .ph-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
  .ph-article { padding: 32px; }
  .ph-article__fig { margin-inline: -32px; }

  .ph-menubtn { display: none; }
  .ph-searchbtn { display: none; }
  .ph-navbar.is-stuck .ph-searchbtn { display: inline-flex; }
  .ph-nav { display: block; position: static; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; flex: 1; min-width: 0; }
  .ph-navbar.is-menu .ph-nav { animation: none; }
  .ph-nav ul { display: flex; padding: 0; height: var(--ph-nav-h); }
  .ph-nav a { height: var(--ph-nav-h); min-height: 0; padding: 0 10px; font-size: 14px; border-left: 0; border-bottom: 3px solid transparent; gap: 8px; white-space: nowrap; }
  .ph-nav a:hover { background: transparent; border-bottom-color: var(--c, var(--ph-teal)); }
  .ph-nav a.is-active { background: transparent; border-bottom-color: var(--c, var(--ph-teal)); }
  .ph-nav__home { padding-left: 0; }
  .ph-navbar.is-stuck .ph-nav__home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ph-navbar.is-stuck .ph-nav__home { padding-inline: 12px; }
  .ph-minilogo { margin-left: 0; margin-right: 8px; }
  .ph-navbar__in { gap: 0; }
}

/* ---------- >= 1100: hero tiga kolom ---------- */
@media (min-width: 1100px) {
  .ph-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 24px; align-items: stretch; }
  .ph-lead { grid-column: auto; }
  .ph-subs { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .ph-sub > div { padding: 12px 16px 16px; }
  .ph-trend { grid-column: auto; }
  .ph-trend ol { display: flex; }
  .ph-trend li:nth-child(2) { border-top: 1px solid var(--ph-line); padding-top: 12px; }
}

@media (min-width: 1280px) {
  .ph-nav a { padding: 0 14px; font-size: 15px; }
  .ph-nav__home { padding-left: 0; }
  .ph-bar { font-size: 15px; }
}

/* Hero di rentang 768-1099: sub-utama dua kolom tanpa sisa ruang */
@media (min-width: 768px) and (max-width: 1099px) {
  .ph-lead__img img { aspect-ratio: 2 / 1; }
}

/* ---------- Gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
