/*
Theme Name: Retro Artikel
Description: Tema artikel retrokonsultan.id, mengikuti identitas situs utama.
Author: Retro Konsultan
Version: 1.1
Requires PHP: 7.4
Text Domain: retro-artikel
*/
:root { --brand: #0b3ab1; --navy: #041034; --yellow: #fdbe33; --ink: #101b3f; --muted: #4d5e8c; --surface: #f5f8fe; --line: #d9e2f5; --mono: 'Space Mono', monospace; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 168px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.7 'Sora', Arial, sans-serif; overflow-x: clip; overflow-wrap: break-word; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
.rt-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.rt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rt-skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 18px; background: var(--yellow); }
.rt-skip:focus { left: 12px; }
.rt-i { flex: none; vertical-align: -4px; }
.rt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px; transition: transform .2s, background .2s; }
.rt-btn:hover { transform: translateY(-2px); background: #ffd671; }
.rt-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--brand); }
.rt-more .rt-i { transition: transform .25s; }
.rt-more:hover .rt-i { transform: translateX(4px); }

/* Kepala situs */
.rt-header { position: sticky; top: 0; z-index: 99; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .rt-header { top: 32px; }
.rt-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.rt-logo img { display: block; height: 68px; width: auto; }
.rt-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); white-space: nowrap; font: 400 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rt-nav > a, .rt-dd summary { padding: 14px 0; cursor: pointer; transition: color .2s; }
.rt-nav > a:hover, .rt-dd summary:hover { color: var(--brand); }
.rt-nav > .is-on { color: var(--brand); box-shadow: inset 0 -2px var(--yellow); }
.rt-dd { position: relative; }
.rt-dd summary { display: flex; align-items: center; gap: 4px; list-style: none; }
.rt-dd summary::-webkit-details-marker { display: none; }
.rt-dd[open] summary .rt-i { transform: rotate(180deg); }
.rt-dd div { position: absolute; top: 100%; left: -20px; width: 320px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(11, 58, 177, .2); }
.rt-dd div a { white-space: normal; display: block; padding: 14px 16px; border-radius: 10px; font: 500 14px/1.5 'Sora', sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); }
.rt-dd div a:hover { background: var(--surface); color: var(--brand); }
.rt-nav > .rt-nav__cta { padding: 17px 24px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; white-space: nowrap; }
.rt-nav > .rt-nav__cta:hover { background: #0a2f90; color: #fff; }
.rt-burger { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand); cursor: pointer; }
.rt-progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; }

.rt-crumb { display: flex; flex-wrap: wrap; font-size: 14px; color: #c9d6fa; }
.rt-crumb > * + *::before { content: '/'; margin: 0 10px; opacity: .6; }
.rt-crumb a:hover { color: var(--yellow); }

/* Meja register: panel topik menetap di kiri, baris artikel di kanan */
.rt-desk { display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.rt-rail { background: var(--brand); color: #fff; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 40px 40px; }
.rt-rail__in { position: sticky; top: 89px; max-height: calc(100vh - 89px); overflow-y: auto; scrollbar-width: none; padding: 40px 36px; }
.rt-rail h1 { margin: 20px 0 14px; font-size: clamp(36px, 3.4vw, 48px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
.rt-rail__lead { margin: 0 0 24px; font-size: 15px; color: #dbe4fb; }
.rt-search { display: flex; border: 2px solid #fff; border-radius: 10px; overflow: hidden; background: #fff; }
.rt-search:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rt-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; outline: 0; font: inherit; color: var(--ink); background: #fff; }
.rt-search input::placeholder { color: var(--muted); opacity: 1; }
.rt-search button { width: 52px; border: 0; background: var(--yellow); color: var(--ink); cursor: pointer; }
.rt-index { margin-top: 24px; }
.rt-index a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); line-height: 1.35; transition: padding .25s, color .2s; }
.rt-index a:hover { padding-left: 8px; color: var(--yellow); }
.rt-index small { font: 400 14px var(--mono); }
.rt-index .is-on { color: var(--yellow); font-weight: 700; border-color: var(--yellow); }
.rt-feed { min-width: 0; padding-bottom: 72px; }
.rt-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13.5px; }
.rt-poster a { display: block; overflow: hidden; background: var(--yellow); }
.rt-poster img { display: block; width: 100%; height: auto; }
.rt-poster a:hover h2 { color: var(--brand); }
.rt-poster__box { padding: 30px 44px 34px; }
.rt-poster h2 { max-width: 900px; transition: color .2s; margin: 10px 0; font-size: clamp(26px, 2.9vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.rt-poster p:not(.rt-meta) { margin: 0; font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rt-row a { display: grid; grid-template-columns: 96px minmax(0, 1fr) 256px; gap: 32px; align-items: center; padding: 30px 44px; border-bottom: 1px solid var(--line); transition: background .2s; }
.rt-row a:hover { background: var(--surface); }
.rt-row time b { display: block; font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--brand); }
.rt-row time span { display: block; margin-top: 6px; font: 400 13px/1.3 var(--mono); color: var(--muted); }
.rt-row h3 { margin: 0 0 8px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.28; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.rt-row a:hover h3 { color: var(--brand); }
.rt-row p { margin: 0 0 8px; font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rt-row small { font-size: 13.5px; font-weight: 600; color: var(--brand); }
.rt-row__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dbe4f7; }
.rt-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rt-pages { display: flex; flex-wrap: wrap; gap: 8px; padding: 40px 44px 0; }
.rt-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 12px; border: 2px solid var(--line); font-weight: 700; }
.rt-pages a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.rt-pages .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.rt-pages .dots { border: 0; }
.rt-empty { padding: 72px 44px; }
.rt-empty h2 { margin: 0 0 8px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.rt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rt-tiles a { position: relative; display: flex; align-items: flex-end; min-height: 320px; overflow: hidden; color: #fff; background: var(--navy); }
.rt-tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.rt-tiles a:hover img { transform: scale(1.05); }
.rt-tiles a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(4, 16, 52, .92)); }
.rt-tiles span { position: relative; z-index: 1; padding: 28px; }
.rt-tiles b { display: block; font-size: 21px; line-height: 1.25; }
.rt-tiles em { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--yellow); }

/* Halaman baca: pembuka terbelah, kop, bilah daftar isi, lembar baca */
.rt-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--brand); color: #fff; }
.rt-open__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 56px 64px 56px max(28px, calc((100vw - 1280px) / 2 + 28px)); background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 40px 40px; }
.rt-open h1 { margin: 24px 0 0; font-size: clamp(32px, 3.9vw, 58px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.rt-open p { margin: 20px 0 0; font-size: 18px; color: #dbe4fb; }
.rt-open__img { display: flex; margin: 0; }
.rt-open__img img { display: block; width: 100%; height: auto; align-self: center; }
.rt-open--plain { grid-template-columns: minmax(0, 1fr); min-height: 340px; }
.rt-open--plain h1 { max-width: 1040px; }
.rt-kop { display: flex; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.rt-kop div { flex: 1 1 170px; padding: 22px 24px 22px 0; }
.rt-kop div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.rt-kop dt { font-size: 13px; color: var(--muted); }
.rt-kop dd { margin: 2px 0 0; font-weight: 600; line-height: 1.45; }
.rt-kop a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.rt-bar { position: sticky; top: 89px; z-index: 50; background: var(--yellow); }
.rt-bar summary { display: flex; align-items: center; gap: 18px; max-width: 1280px; min-height: 54px; margin: 0 auto; padding: 0 28px; cursor: pointer; list-style: none; white-space: nowrap; }
.rt-bar summary::-webkit-details-marker { display: none; }
.rt-bar summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.rt-bar[open] .rt-i { transform: rotate(180deg); }
.rt-bar ol { position: absolute; left: 0; right: 0; max-height: 60vh; overflow-y: auto; margin: 0; padding: 12px max(28px, calc((100vw - 1280px) / 2 + 28px)) 24px; list-style: none; columns: 2; column-gap: 48px; background: #fff; box-shadow: 0 30px 50px rgba(4, 16, 52, .2); }
.rt-bar li { break-inside: avoid; }
.rt-bar li a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.rt-bar .is-l3 a { padding-left: 20px; color: var(--muted); }
.rt-bar li a:hover, .rt-bar li a.is-on { color: var(--brand); }
.rt-bar li a.is-on { font-weight: 700; }
.rt-paper { max-width: 816px; margin: 0 auto; padding: 56px 28px 88px; }
figcaption, .wp-caption-text { margin-top: 10px; font-size: 14px; color: var(--muted); }
.rt-content { font-size: 17px; line-height: 1.85; color: #2a3760; }
.rt-content > *:first-child { margin-top: 0; }
/* Pembungkus bergaya sebaris di artikel: lebar dan jarak mengikuti lembar baca */
.rt-content > div[style*="max-width"] { max-width: none !important; padding: 0 !important; }
.rt-content h2[style*="border"] { border-top: 0; padding-top: 0; }
.rt-content p, .rt-content ul, .rt-content ol { margin: 0 0 1.3em; }
.rt-content li { margin-bottom: .5em; padding-left: 4px; }
.rt-content li::marker { color: var(--brand); font-weight: 700; }
.rt-content h2, .rt-content h3, .rt-content h4 { color: var(--ink); font-weight: 700; line-height: 1.28; letter-spacing: -.015em; text-wrap: balance; }
.rt-content h2 { margin: 2.2em 0 .7em; padding-top: .9em; border-top: 2px solid var(--ink); font-size: clamp(25px, 2.7vw, 34px); font-weight: 800; }
.rt-content h3 { margin: 1.7em 0 .6em; font-size: 22px; }
.rt-content h4 { margin: 1.5em 0 .5em; font-size: 18px; }
.rt-content strong, .rt-content b { color: var(--ink); font-weight: 700; }
.rt-content a { color: var(--brand); text-decoration: underline; text-decoration-color: #9db8f5; text-underline-offset: 4px; }
.rt-content a:hover { text-decoration-color: var(--brand); }
.rt-content img { height: auto; }
.rt-content figure { margin: 2em 0; }
.rt-content iframe { max-width: 100%; }
.rt-content blockquote { margin: 2em 0; padding: 28px 32px; background: var(--brand); color: #fff; font-size: 20px; line-height: 1.6; }
.rt-content blockquote strong, .rt-content blockquote a { color: inherit; }
.rt-content blockquote p:last-child { margin: 0; }
.rt-table { margin: 2em 0; overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.rt-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.rt-table th, .rt-table td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rt-table th, .rt-table thead td { background: var(--brand); color: #fff; font-weight: 600; }
.rt-table th strong { color: inherit; }
.rt-table tr:last-child td { border-bottom: 0; }
.alignleft { float: left; margin: 6px 28px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 28px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.rt-content::after { content: ''; display: table; clear: both; }
.rt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.rt-tags a { padding: 8px 16px; border-radius: 999px; background: #e6eeff; font-size: 14px; color: var(--brand); }
.rt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.rt-share span { margin-right: 8px; font-weight: 700; }
.rt-share a, .rt-share button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.rt-share button[hidden] { display: none; }
.rt-share a:hover, .rt-share button:hover { border-color: var(--brand); color: var(--brand); }
.rt-offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--navy); color: #dbe4fb; }
.rt-offer img { display: block; width: 100%; height: 100%; min-height: 320px; max-height: 440px; object-fit: cover; }
.rt-offer > div { align-self: center; max-width: 660px; padding: 56px 64px; }
.rt-offer h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.rt-offer p { margin: 0; }
.rt-offer .rt-offer__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 26px; }
.rt-offer .rt-more { color: #fff; }
.rt-next { max-width: 1280px; margin: 0 auto; padding: 80px 28px 96px; }
.rt-next > h2 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.rt-next .rt-row a { padding-left: 0; padding-right: 0; }

/* Ajakan dan kaki situs */
.rt-cta { padding: 96px 28px 104px; text-align: center; border-top: 1px solid var(--line); background-color: var(--surface); background-image: linear-gradient(rgba(11, 58, 177, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 58, 177, .06) 1px, transparent 1px); background-size: 40px 40px; }
.rt-cta h2 { max-width: 900px; margin: 0 auto 16px; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.rt-cta h2 span { color: var(--brand); }
.rt-cta p { margin: 0 0 28px; color: var(--muted); }
.rt-btn { border-radius: 8px; }
.rt-footer { padding: 72px 0 36px; background: var(--brand); color: #fff; font-size: 14px; }
.rt-footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr .8fr; gap: 48px; }
.rt-footer img { height: 92px; width: auto; }
.rt-footer__grid p { max-width: 290px; margin: 16px 0 0; }
.rt-footer h2 { margin: 0 0 14px; font: 700 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.rt-footer__grid a { display: block; padding: 7px 0; }
.rt-footer a:hover { color: var(--yellow); }
.rt-footer__end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; }

@media (max-width: 1180px) {
  .rt-desk { grid-template-columns: 290px minmax(0, 1fr); }
  .rt-rail__in { padding: 36px 24px; }
  .rt-row a { grid-template-columns: 76px minmax(0, 1fr) 150px; gap: 22px; padding: 26px 28px; }
  .rt-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  html { scroll-padding-top: 146px; }
  .rt-header__in { min-height: 72px; }
  .rt-logo img { height: 48px; }
  .rt-burger { display: grid; place-items: center; }
  .rt-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 72px); overflow-y: auto; padding: 8px 28px 24px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 50px rgba(4, 16, 52, .18); }
  .rt-nav.is-open { display: flex; }
  .rt-nav > a, .rt-dd summary { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .rt-dd summary { justify-content: space-between; }
  .rt-dd div { position: static; width: auto; padding: 6px 0; border: 0; box-shadow: none; }
  .rt-nav > .rt-nav__cta { margin-top: 20px; border: 0; text-align: center; }
  .rt-desk { grid-template-columns: minmax(0, 1fr); }
  .rt-rail__in { position: static; max-height: none; padding: 32px 28px 20px; }
  .rt-index { display: flex; gap: 26px; margin: 16px -28px 0; padding: 0 28px; overflow-x: auto; scrollbar-width: none; }
  .rt-index a { flex: none; gap: 8px; border-bottom: 3px solid transparent; white-space: nowrap; }
  .rt-index a:hover { padding-left: 0; }
  .rt-bar { top: 73px; }
  .rt-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .rt-open { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rt-open__text { padding: 36px 28px 40px; }
  .rt-kop { display: grid; grid-template-columns: 1fr 1fr; padding-top: 10px; padding-bottom: 10px; }
  .rt-kop div, .rt-kop div + div { padding: 10px 16px 10px 0; border: 0; }
  .rt-bar ol { columns: 1; }
  .rt-offer { grid-template-columns: minmax(0, 1fr); }
  .rt-offer img { min-height: 0; height: 240px; }
  .rt-offer > div { padding: 40px 28px 48px; }
}
@media (max-width: 782px) { .admin-bar .rt-header { top: 46px; } }
@media (max-width: 640px) {
  .rt-wrap, .rt-rail__in, .rt-next, .rt-paper, .rt-kop, .rt-bar summary, .rt-open__text { padding-left: 20px; padding-right: 20px; }
  .rt-index { margin: 16px -20px 0; padding: 0 20px; }
  .rt-poster__box { padding: 24px 20px 28px; }
  .rt-row a { grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 24px 20px; align-items: start; }
  .rt-row time b { font-size: 34px; }
  .rt-row time span { font-size: 12px; }
  .rt-row p { display: none; }
  .rt-row__img { grid-column: 2; aspect-ratio: 16 / 9; }
  .rt-pages { padding: 32px 20px 0; }
  .rt-empty { padding: 48px 20px; }
  .rt-tiles a { min-height: 230px; }
  .rt-tiles span { padding: 18px; }
  .rt-tiles b { font-size: 17px; }
  .rt-content { font-size: 16.5px; }
  .rt-cta { padding: 72px 20px 80px; }
  .rt-footer__grid { gap: 36px 24px; }
  .rt-footer__grid > div { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { transition: none !important; } }
