/* ==========================================================================
   KataDataPress – main stylesheet
   Design system derived from the reference (katadata.co.id), measured values:
   Inter 14/20 #333 · container 1110 · main 710 / rail 340 · navy #042c4b trim
   link #1f7ac1 · active underline #dbb95e · list title 18/25 500 · thumbs 3:2 r5
   article body PT Serif 20/28.6 at 604px · footer navy sitemap
   ========================================================================== */

:root {
	--kdp-primary: #042c4b;
	--kdp-link: #1f7ac1;
	--kdp-accent: #dbb95e;
	--kdp-stories: #1f7ac1;
	--kdp-text: #333;
	--kdp-heading: #121212;
	--kdp-muted: #aaa;
	--kdp-muted-2: #777;
	--kdp-border: #dedede;
	--kdp-grey: #f2f2f2;
	--kdp-surface: #f5f6f8;
	--kdp-quote-bg: #fde3da;
	--kdp-quote-border: #d1aea2;
	--kdp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--kdp-serif: "PT Serif", Georgia, "Times New Roman", serif;
	--kdp-radius: 5px;
	--kdp-gap: 30px;
	--kdp-side: 340px;
	--kdp-sticky-h: 52px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--kdp-font);
	font-size: 14px;
	line-height: 20px;
	color: var(--kdp-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--kdp-link); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; color: var(--kdp-text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--kdp-link); outline-offset: 2px; }
.kdp-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	left: 8px; top: 8px; padding: 10px 16px; background: #fff; color: var(--kdp-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1110px; margin: 0 auto; padding: 0 15px; }
.row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--kdp-side);
	gap: var(--kdp-gap);
	align-items: start;
}
.col-main, .col-side { min-width: 0; }
.page-body { padding-top: 24px; padding-bottom: 40px; }
.grid { display: grid; gap: 20px 15px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 7px 16px; border-radius: 4px; border: 1px solid transparent;
	font-size: 14px; line-height: 20px; font-weight: 400; background: none; color: var(--kdp-text);
	transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--kdp-link); color: #fff; }
.btn--primary:hover { background: var(--kdp-primary); color: #fff; }
.btn--outline { border-color: var(--kdp-link); color: var(--kdp-link); }
.btn--outline:hover { background: var(--kdp-link); color: #fff; }
.btn--sm { padding: 5px 14px; font-size: 13px; }
.icon-btn { background: none; border: 0; padding: 6px; color: var(--kdp-text); display: inline-flex; }

/* ---------- Section heading ---------- */
.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-bottom: 15px;
}
.section-title, .widget-title {
	font-size: 14px; line-height: 15.4px; font-weight: 700; text-transform: uppercase;
	color: var(--kdp-text); margin: 0; letter-spacing: 0;
}
.link-more { color: var(--kdp-link); font-size: 14px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.link-more--light { color: #fff; }
.link-more--light:hover { color: #fff; }

/* ---------- Image frames + fallback ---------- */
.kdp-img-link { display: block; }
.kdp-img {
	position: relative; display: block; overflow: hidden; border-radius: var(--kdp-radius);
	background: #eee; aspect-ratio: 3 / 2;
}
.kdp-img--1x1 { aspect-ratio: 1 / 1; }
.kdp-img--16x9 { aspect-ratio: 16 / 9; }
.kdp-img__el { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a:hover .kdp-img__el, .kdp-img-link:hover .kdp-img__el { transform: scale(1.04); }
.kdp-ph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: #ececec;
}
.kdp-ph__mark {
	display: flex; align-items: center; justify-content: center;
	width: 22%; max-width: 64px; min-width: 22px; aspect-ratio: 1; border-radius: 18%;
	background: #d9d9d9; color: #fff; font-weight: 800; font-size: clamp(12px, 3vw, 34px); line-height: 1;
}
.kdp-img__play {
	position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .65); color: #fff;
}
.img-credit { font-size: 9px; line-height: 13px; color: var(--kdp-muted); text-transform: uppercase; text-align: right; margin-top: 4px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { border-top: 8px solid var(--kdp-primary); background: #fff; position: relative; z-index: 30; }

.topbar { border-bottom: 1px solid var(--kdp-border); }
.topbar__inner { display: flex; align-items: center; height: 40px; gap: 0; }
.topbar__label {
	font-weight: 600; font-size: 13px; color: var(--kdp-heading); white-space: nowrap;
	position: relative; padding-right: 22px; margin-right: 6px;
}
.topbar__label::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
	border-top: 1px solid #bbb; border-right: 1px solid #bbb; transform: translateY(-50%) rotate(45deg);
}
.topbar__menu { display: flex; gap: 14px; list-style: none; overflow-x: auto; white-space: nowrap; font-size: 13px; }
.topbar__menu a { color: var(--kdp-heading); }
.topbar__menu a:hover { color: var(--kdp-link); }

.masthead__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.masthead__brand { flex: 0 0 auto; min-width: 0; }
.masthead__search { flex: 0 1 310px; margin: 0 auto; }
.masthead__date { font-size: 13px; color: #555; white-space: nowrap; }
.masthead__search-toggle, .masthead__menu-toggle { display: none; }

/* Logo */
.custom-logo-link img { max-height: 40px; width: auto; }
.site-title { margin: 0; font-size: 30px; line-height: 1; font-weight: 700; }
.site-title a { display: inline-flex; align-items: center; color: var(--kdp-primary); }
.logo-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 30px; margin-right: 3px; border-radius: 3px 10px 10px 3px;
	background: var(--kdp-primary); color: #fff; font-size: 22px; font-weight: 800; text-transform: uppercase;
}
.logo-name { letter-spacing: -1px; text-transform: lowercase; }
.logo-suffix { font-size: 15px; font-weight: 500; color: #5b8fb9; align-self: flex-end; margin: 0 0 2px 1px; letter-spacing: 0; }

/* Search */
.search-form { position: relative; display: flex; }
.search-form__input {
	width: 100%; height: 30px; padding: 4px 38px 4px 10px; border: 1px solid #ccc; border-radius: 4px;
	background: #fff; font-size: 13px;
}
.search-form__input::placeholder { color: #999; }
.search-form__input:focus { outline: none; border-color: var(--kdp-link); }
.search-form__btn {
	position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
	border: 0; background: none; color: #777; padding: 4px 6px; display: flex;
}

/* Channel navigation */
.navbar { background: var(--kdp-grey); border-bottom: 1px solid var(--kdp-border); }
.nav-primary { display: flex; align-items: center; gap: 0 14px; list-style: none; overflow-x: auto; white-space: nowrap; }
.nav-primary > li { padding: 10px 0; }
.nav-primary > li > a {
	display: inline-flex; align-items: center; color: var(--kdp-heading);
	font-weight: 500; font-size: 14px; line-height: 20px; padding-bottom: 2px; border-bottom: 4px solid transparent;
}
.nav-primary > li > a:hover { color: var(--kdp-link); }
.nav-primary > .current-menu-item > a,
.nav-primary > .current-menu-ancestor > a,
.nav-primary > .current-category-ancestor > a { border-bottom-color: var(--kdp-accent); }
.menu-item-home a { color: var(--kdp-heading); }

/* Rubric chips */
.chipbar { padding: 10px 0 0; }
.chips { display: flex; gap: 10px; list-style: none; overflow-x: auto; white-space: nowrap; }
.chips a {
	display: inline-block; padding: 4px 10px; border-radius: 3px; background: var(--kdp-grey);
	font-size: 13px; color: var(--kdp-text);
}
.chips a:hover { background: #e6e6e6; color: var(--kdp-link); }

/* Sticky compact header */
.sticky-header {
	position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: var(--kdp-sticky-h);
	background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); border-top: 3px solid var(--kdp-primary);
	transform: translateY(-110%); transition: transform .25s ease; visibility: hidden;
}
.sticky-header.is-visible { transform: none; visibility: visible; }
.admin-bar .sticky-header { top: 32px; }
.sticky-header__inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.sticky-mark { flex: 0 0 auto; display: flex; }
.sticky-mark span {
	display: flex; align-items: center; justify-content: center; width: 30px; height: 32px;
	border-radius: 3px 10px 10px 3px; background: var(--kdp-primary); color: #fff; font-weight: 800; font-size: 22px; text-transform: uppercase;
}
.sticky-mark img { width: 32px; height: 32px; border-radius: 4px; }
.sticky-header .nav-primary { flex: 1 1 auto; gap: 0 12px; }
.sticky-header .nav-primary > li { padding: 0; }
.sticky-header .nav-primary > li > a { font-size: 13px; border-bottom-width: 3px; }
.sticky-header__search { flex: 0 0 220px; }
.sticky-header__menu { display: none; }
.sticky-header__title {
	flex: 1 1 auto; min-width: 0; text-align: center; font-size: 13px; line-height: 17px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sticky-header__title strong { font-weight: 700; }

/* Offcanvas menu (mobile) */
.offcanvas[hidden] { display: none; }
.offcanvas { position: fixed; inset: 0; z-index: 100; }
.offcanvas__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.offcanvas__panel {
	position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 1;
	overflow-y: auto; padding: 14px 18px 30px; animation: kdpSlide .22s ease;
}
@keyframes kdpSlide { from { transform: translateX(100%); } to { transform: none; } }
.offcanvas__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.offcanvas__head .site-title { font-size: 24px; }
.offcanvas .search-form { margin-bottom: 14px; }
.offcanvas .search-form__input { height: 38px; }
.offcanvas__menu { list-style: none; }
.offcanvas__menu > li { border-bottom: 1px solid var(--kdp-border); padding: 10px 0; }
.offcanvas__menu > li > a { font-weight: 700; font-size: 15px; color: var(--kdp-heading); }
.offcanvas__menu .sub-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.offcanvas__menu .sub-menu a { font-size: 13px; color: #555; }
.offcanvas__network { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0; font-size: 13px; }
body.offcanvas-open { overflow: hidden; }

/* Breaking ticker */
.breaking { margin-top: 12px; }
.breaking__inner { display: flex; align-items: stretch; height: 36px; }
.breaking__label {
	flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px;
	background: var(--kdp-primary); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase;
	border-radius: var(--kdp-radius) 0 0 var(--kdp-radius); letter-spacing: .3px;
}
.breaking__viewport {
	flex: 1 1 auto; min-width: 0; overflow: hidden; position: relative;
	border: 1px solid var(--kdp-border); border-left: 0; border-right: 0; background: #fff;
}
.breaking__list { list-style: none; height: 100%; }
.breaking__item {
	position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px;
	opacity: 0; transform: translateY(100%); transition: opacity .35s, transform .35s;
	white-space: nowrap; overflow: hidden;
}
.breaking__item.is-active { opacity: 1; transform: none; }
.breaking__item time { color: var(--kdp-link); font-weight: 600; font-size: 12px; }
.breaking__item a { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.breaking__nav { display: flex; border: 1px solid var(--kdp-border); border-radius: 0 var(--kdp-radius) var(--kdp-radius) 0; overflow: hidden; }
.breaking__btn { border: 0; background: #fff; width: 30px; display: flex; align-items: center; justify-content: center; color: #555; }
.breaking__btn + .breaking__btn { border-left: 1px solid var(--kdp-border); }
.breaking__btn:hover { background: var(--kdp-grey); }

/* ==========================================================================
   Sliders (scroll-snap based, enhanced in JS)
   ========================================================================== */
.slider { position: relative; }
.slider__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { scroll-snap-align: start; flex: 0 0 100%; min-width: 0; }
.slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 32px; height: 32px; border: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .5); color: #fff; transition: background .15s, opacity .15s;
}
.slider__arrow:hover { background: rgba(0, 0, 0, .8); }
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__arrow[disabled] { opacity: 0; pointer-events: none; }
.slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.slider__dots button {
	width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #c8c8c8;
}
.slider__dots button[aria-selected="true"] { background: var(--kdp-link); }

/* Headline */
.headline { margin: 15px 0 30px; }
.headline-slide__media { position: relative; border-radius: var(--kdp-radius); overflow: hidden; }
.headline-slide__media .kdp-img { border-radius: 0; }
.headline-slide__media::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .85) 100%);
}
.headline-slide__title {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 22px 22px;
	font-size: 28px; line-height: 33.6px; font-weight: 600; color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.headline-slide__title a { color: #fff; }
.headline-slide__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.slider--headline .slider__arrow { top: calc(50% - 20px); width: 32px; height: 36px; }
.slider--headline .slider__dots { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; z-index: 3; }
.slider--headline .slider__dots button { background: rgba(255, 255, 255, .6); }
.slider--headline .slider__dots button[aria-selected="true"] { background: #fff; }
.headline__aside .top-stories .mini-item:last-child { border-bottom: 0; }
.headline__aside .widget { margin-bottom: 0; }

/* Highlight (infographic) row */
.section-highlight { background: #fff; padding: 0 0 20px; border-top: 1px solid var(--kdp-border); padding-top: 20px; }
.slider--cards .slider__track { gap: 30px; }
.slider--cards .slider__slide { flex: 0 0 calc((100% - 90px) / 4); }
.slider--cards .slider__arrow { top: calc(50% - 30px); }
.card-sm--highlight .content-title--sm { margin-top: 10px; }

/* ==========================================================================
   Article list (river)
   ========================================================================== */
.section-news { padding: 20px 0 40px; border-top: 1px solid var(--kdp-border); }
.latest-news { display: flex; flex-direction: column; }
.article--list {
	display: flex; gap: 20px; padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--kdp-border);
}
.article__image { flex: 0 0 155px; }
.article__text { flex: 1 1 auto; min-width: 0; }
.content-title { font-weight: 500; color: var(--kdp-text); font-size: 15px; line-height: 21px; }
a:hover > .content-title, a:hover .content-title { color: var(--kdp-link); }
.content-title--list { font-size: 18px; line-height: 25.2px; margin-bottom: 8px; }
.content-title--md { font-size: 16px; line-height: 22px; margin-top: 10px; }
.content-title--sm { font-size: 14px; line-height: 20px; margin-top: 8px; }
.article__meta { font-size: 12px; line-height: 17px; margin-bottom: 6px; }
.article__cat { font-weight: 600; text-transform: uppercase; color: var(--kdp-text); }
.article__dot, .article__date { color: var(--kdp-muted); }
.content-summary {
	font-size: 14px; line-height: 20px; color: var(--kdp-text);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* In-list modules */
.inlist { margin: 0 0 28px; }
.inlist--stories {
	background: var(--kdp-stories); color: #fff; border-radius: var(--kdp-radius);
	padding: 12px 15px 15px;
	background-image: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .12) 0, rgba(255, 255, 255, 0) 45%),
		radial-gradient(circle at 0% 100%, rgba(0, 0, 0, .18) 0, rgba(0, 0, 0, 0) 50%);
}
.inlist__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.inlist__title { font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.slider--stories .slider__track { gap: 15px; }
.slider--stories .slider__slide { flex: 0 0 calc((100% - 45px) / 4); }
.slider--stories .slider__arrow { top: 30%; width: 26px; height: 26px; }
.story-card .kdp-img { border-radius: var(--kdp-radius); }
.story-card__title {
	margin-top: 10px; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.story-card a:hover .story-card__title { color: #fff; text-decoration: underline; }
.inlist--category { padding-bottom: 24px; border-bottom: 1px solid var(--kdp-border); }

.card-sm .content-title--sm {
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* Load more + pagination */
.load-more-wrap { text-align: center; margin: 10px 0 30px; }
.load-more-wrap .btn { min-width: 150px; }
.load-more-wrap .btn.is-loading { opacity: .6; pointer-events: none; }
.js-ready .section-news .pagination,
.js-ready .page-body .load-more-wrap + .pagination { display: none; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 30px; }
.pagination a, .pagination span {
	display: inline-flex; min-width: 34px; height: 34px; padding: 0 10px; align-items: center; justify-content: center;
	border: 1px solid var(--kdp-border); border-radius: 4px; font-size: 13px;
}
.pagination .current { background: var(--kdp-link); border-color: var(--kdp-link); color: #fff; }
.pagination a:hover { border-color: var(--kdp-link); }

/* ==========================================================================
   Sidebar & widgets
   ========================================================================== */
.sidebar__sticky { position: sticky; top: calc(var(--kdp-sticky-h) + 16px); }
.admin-bar .sidebar__sticky { top: calc(var(--kdp-sticky-h) + 48px); }
.widget { margin-bottom: 40px; }
.panel-grey { background: var(--kdp-grey); padding: 10px; border-radius: 2px; }

/* Most popular – big pale numerals */
.popular-list { list-style: none; counter-reset: kdp-pop; }
.popular-list li {
	counter-increment: kdp-pop; position: relative; padding-left: 40px; min-height: 42px; margin-bottom: 10px;
}
.popular-list li::before {
	content: counter(kdp-pop); position: absolute; left: 0; top: -4px; width: 30px; text-align: center;
	font-size: 35px; line-height: 40px; font-weight: 700; color: #dcdcdc;
}
.popular-list .content-title { font-size: 15px; line-height: 21px; }

/* Mini item (thumb left) */
.mini-list { list-style: none; }
.mini-item { display: flex; gap: 12px; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid #eee; }
.mini-item:last-child { margin-bottom: 0; border-bottom: 0; }
.mini-item__img, .mini-item .kdp-img-link { flex: 0 0 110px; }
.mini-item__body { min-width: 0; flex: 1; }
.mini-item .content-title { font-size: 14px; line-height: 20px; margin-bottom: 4px; }

.video-lead { margin-bottom: 14px; }
.video-lead .content-title--md, .spot-lead .content-title--md { margin-bottom: 14px; }
.btn-subscribe {
	display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px;
	background: #e00; color: #fff; padding: 9px 14px; border-radius: 3px; font-weight: 600; font-size: 13px;
}
.btn-subscribe:hover { background: #c00; color: #fff; }

/* Opinion – round avatars */
.opinion-list { list-style: none; }
.opinion-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.opinion-item__avatar img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.opinion-item .content-title { font-size: 15px; line-height: 21px; }
.opinion-item__author { display: block; color: var(--kdp-muted); font-size: 12px; margin-top: 4px; }

/* Special report – dark cards */
.dark-card {
	display: flex; align-items: stretch; background: #0f1417; border-radius: 3px; overflow: hidden; margin-bottom: 10px;
}
.dark-card .kdp-img-link { flex: 0 0 46%; }
.dark-card .kdp-img { border-radius: 0; height: 100%; }
.dark-card__title {
	flex: 1; padding: 12px; color: #fff; font-size: 15px; line-height: 21px; font-weight: 500;
	display: flex; align-items: center;
}
.dark-card__title:hover { color: #fff; text-decoration: underline; }
.dark-card:last-child { margin-bottom: 0; }

/* Social */
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social__btn {
	width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--kdp-primary); color: #fff;
}
.social__btn:hover { color: #fff; opacity: .85; }
.social--lg .social__btn { width: 40px; height: 40px; }
.social--color .social__btn--facebook { background: #1877f2; }
.social--color .social__btn--x { background: #000; }
.social--color .social__btn--instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social--color .social__btn--youtube { background: #f00; }
.social--color .social__btn--linkedin { background: #0a66c2; }
.social--color .social__btn--tiktok { background: #111; }
.social--color .social__btn--whatsapp { background: #25d366; }
.widget-text { color: #555; font-size: 13px; }

.newsletter-form { display: flex; gap: 6px; }
.newsletter-form input { flex: 1; min-width: 0; height: 34px; border: 1px solid #ccc; border-radius: 4px; padding: 4px 10px; }

.ad-slot { text-align: center; background: var(--kdp-grey); padding: 8px; min-height: 60px; }
.ad-slot__label { display: block; font-size: 10px; color: #bbb; text-transform: uppercase; margin-bottom: 6px; letter-spacing: .5px; }
.ad-slot img { margin: 0 auto; }

/* Default WP widgets inside rail */
.sidebar .widget ul:not([class]) { list-style: none; }
.sidebar .widget ul:not([class]) li { padding: 6px 0; border-bottom: 1px solid #eee; }

/* ==========================================================================
   Channel bar, breadcrumb, archive
   ========================================================================== */
.channel-bar { border-bottom: 1px solid var(--kdp-border); }
.channel-bar__inner { display: flex; align-items: center; gap: 20px; height: 54px; }
.channel-bar__name { display: inline-flex; align-items: center; gap: 8px; color: #555; flex: 0 0 auto; }
.channel-bar__name span { font-size: 24px; font-weight: 300; text-transform: uppercase; letter-spacing: .5px; color: var(--kdp-text); }
.channel-bar__subs { display: flex; gap: 14px; list-style: none; overflow-x: auto; white-space: nowrap; font-size: 13px; }
.channel-bar__subs a { color: #555; }
.channel-bar__subs .is-active a { color: var(--kdp-link); font-weight: 600; }
.channel-bar__subs a:hover { color: var(--kdp-link); }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; margin-bottom: 14px; }
.breadcrumb li { display: inline-flex; align-items: center; color: #777; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: #aaa; }
.breadcrumb a { color: var(--kdp-link); display: inline-flex; }

.archive-header { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--kdp-border); }
.archive-header__kicker { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--kdp-muted-2); margin-bottom: 4px; }
.archive-header__title { font-size: 28px; line-height: 34px; font-weight: 600; }
.archive-header__desc { color: #555; margin-top: 8px; }
.archive-header__search { max-width: 420px; margin-top: 12px; }
.archive-header__search .search-form__input { height: 38px; }
.author-head { display: flex; gap: 18px; align-items: center; }
.author-head img { border-radius: 50%; width: 80px; height: 80px; }
.archive-lead .headline { margin: 0 0 20px; }
.archive-lead .container { padding: 0; }
.archive-lead .row { grid-template-columns: 1fr; }
.archive-grid { margin-bottom: 30px; }

.no-results, .error-404 { padding: 30px 0; }
.no-results .search-form, .error-404 .search-form { max-width: 420px; margin-top: 16px; }
.no-results .search-form__input, .error-404 .search-form__input { height: 40px; }
.error-404__code { font-size: 96px; line-height: 1; font-weight: 800; color: var(--kdp-primary); margin: 0 0 8px; }

/* ==========================================================================
   Single article
   ========================================================================== */
.detail { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--kdp-border); }
.detail-title { font-size: 28px; line-height: 33.6px; font-weight: 600; color: var(--kdp-text); margin-bottom: 15px; }
.detail-dek { font-size: 16px; line-height: 24px; color: #555; margin-bottom: 16px; }
.detail-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-meta__left { display: flex; align-items: center; gap: 10px; }
.detail-meta__avatar img { width: 36px; height: 36px; border-radius: 50%; }
.detail-meta__author { font-size: 13px; color: #555; }
.detail-meta__author a { font-weight: 700; color: var(--kdp-text); }
.detail-meta__date { font-size: 13px; color: var(--kdp-muted-2); }

.share { display: flex; gap: 6px; align-items: center; }
.share__btn {
	width: 30px; height: 30px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center;
	color: #fff; background: #555;
}
.share__btn:hover { color: #fff; opacity: .85; }
.share__btn--facebook { background: #3b5998; }
.share__btn--x { background: #111; }
.share__btn--linkedin { background: #0a66c2; }
.share__btn--whatsapp { background: #25d366; }
.share__btn--copy { background: #8a8f94; }
.share__btn.is-copied { background: var(--kdp-link); }
.share--sm .share__btn { width: 28px; height: 28px; }

.detail-image { margin: 0 0 24px; }
.detail-image img { width: 100%; height: auto; }
.detail-image figcaption { font-size: 9px; line-height: 13px; color: var(--kdp-muted); text-transform: uppercase; margin-top: 4px; }

.detail-body { max-width: 604px; margin: 0 auto; font-family: var(--kdp-serif); font-size: 20px; line-height: 28.6px; color: var(--kdp-text); overflow-wrap: break-word; }
.detail-body p { margin: 0 0 20px; }
.detail-body a { color: var(--kdp-link); text-decoration: underline; text-underline-offset: 2px; }
.detail-body h2, .detail-body h3, .detail-body h4 { font-family: var(--kdp-font); font-weight: 700; margin: 30px 0 14px; line-height: 1.3; }
.detail-body h2 { font-size: 24px; }
.detail-body h3 { font-size: 20px; }
.detail-body h4 { font-size: 18px; }
.detail-body ul, .detail-body ol { padding-left: 1.3em; margin: 0 0 20px; }
.detail-body li { margin-bottom: 6px; }
.detail-body blockquote {
	margin: 0 0 20px; padding: 16px 20px; background: var(--kdp-surface); border-left: 4px solid var(--kdp-primary); font-style: italic;
}
.detail-body figure { margin: 0 0 20px; }
.detail-body figcaption, .detail-body .wp-element-caption { font-family: var(--kdp-font); font-size: 12px; line-height: 17px; color: var(--kdp-muted-2); margin-top: 6px; }
.detail-body img { border-radius: 2px; }
.detail-body table { width: 100%; border-collapse: collapse; font-family: var(--kdp-font); font-size: 14px; line-height: 20px; margin-bottom: 20px; }
.detail-body th, .detail-body td { border: 1px solid var(--kdp-border); padding: 8px 10px; text-align: left; }
.detail-body th { background: var(--kdp-surface); }
.detail-body .alignwide { max-width: none; margin-left: -53px; margin-right: -53px; }
.detail-body .alignfull { max-width: none; }
.detail-body .wp-block-pullquote { border-color: var(--kdp-primary); }
.detail--page .detail-body, .detail--wide .detail-body { max-width: none; }

.read-also {
	font-family: var(--kdp-font); background: var(--kdp-quote-bg); border-left: 8px solid var(--kdp-quote-border);
	border-radius: var(--kdp-radius); padding: 18px 20px 6px; margin: 0 0 24px;
}
.read-also__title { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.read-also ul { list-style: none; padding: 0; margin: 0; }
.read-also li { margin-bottom: 12px; font-size: 16px; line-height: 22px; font-weight: 500; }
.detail-body .read-also a { color: var(--kdp-text); text-decoration: none; }
.detail-body .read-also a:hover { color: var(--kdp-link); }

.detail-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px auto 0; max-width: 604px; }
.detail-tags a { display: inline-block; padding: 6px 10px 8px; border-radius: var(--kdp-radius); background: var(--kdp-grey); color: var(--kdp-link); font-size: 14px; }
.detail-tags a:hover { background: #e7e7e7; }

.author-box { display: flex; gap: 16px; max-width: 604px; margin: 28px auto 0; padding: 18px; background: var(--kdp-surface); border-radius: var(--kdp-radius); }
.author-box img { border-radius: 50%; width: 64px; height: 64px; }
.author-box__name { font-weight: 700; margin-bottom: 4px; }
.author-box p { margin: 0; color: #555; font-size: 13px; }
.after-article { max-width: 604px; margin: 28px auto 0; }

.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-nav a { display: block; padding: 12px 14px; border: 1px solid var(--kdp-border); border-radius: var(--kdp-radius); height: 100%; }
.post-nav a:hover { border-color: var(--kdp-link); }
.post-nav .nav-next { text-align: right; grid-column: 2; }
.post-nav__label { display: block; font-size: 12px; text-transform: uppercase; color: var(--kdp-muted-2); margin-bottom: 4px; font-weight: 600; }
.post-nav__title { font-weight: 500; }

.related { margin-bottom: 40px; }

/* Comments */
.comments { margin-bottom: 40px; }
.comment-list { list-style: none; margin-bottom: 24px; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid #eee; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--kdp-muted); margin: 4px 0 8px 50px; }
.comment-content { margin-left: 50px; }
.reply { margin-left: 50px; font-size: 12px; }
.reply a { color: var(--kdp-link); }
.comment-form label { display: block; font-size: 13px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid #ccc; border-radius: 4px; padding: 8px 10px;
}
.comment-reply-title { margin: 10px 0 14px; }

/* WP core classes */
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--kdp-surface); margin-top: 20px; }
.footer-sitemap { background: var(--kdp-primary); color: #fff; padding: 50px 0 40px; }
.footer-columns { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 24px 20px; }
.footer-columns > li > a { display: block; font-weight: 700; font-size: 12px; color: #fff; margin-bottom: 6px; }
.footer-columns .sub-menu { list-style: none; }
.footer-columns .sub-menu a { display: block; font-size: 12px; line-height: 19px; color: #c7d2dc; }
.footer-columns a:hover { color: #fff; text-decoration: underline; }

.footer-bar { background: #dfe5e2; }
.footer-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.footer-newsletter { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-newsletter label { font-size: 12px; font-weight: 500; }
.footer-newsletter input { width: 260px; height: 30px; border: 1px solid #ccc; border-radius: 4px; padding: 4px 10px; font-size: 12px; background: #fff; }
.footer-tagline { margin: 0; font-size: 12px; color: #555; }
.footer-follow { display: flex; align-items: center; gap: 12px; font-size: 12px; }

.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; }
.footer-legal a { color: #555; }
.footer-copy { margin: 0; font-size: 12px; color: #555; }

.to-top {
	position: fixed; right: 18px; bottom: 22px; z-index: 35; width: 40px; height: 40px; border: 0; border-radius: 8px;
	background: #5b8fc7; color: #fff; display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--kdp-primary); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	:root { --kdp-side: 300px; }
	.masthead__search { flex-basis: 260px; }
}

@media (max-width: 991px) {
	.row { grid-template-columns: minmax(0, 1fr); }
	.sidebar__sticky { position: static; }
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
	.sidebar__sticky { display: contents; }
	.headline__aside { display: none; }
	.slider--cards .slider__slide { flex-basis: calc((100% - 30px) / 2.3); }
	.sticky-header__search { display: none; }
}

@media (max-width: 767px) {
	:root { --kdp-sticky-h: 50px; }
	.topbar, .masthead__date, .chipbar + .breaking { }
	.topbar { display: none; }
	.masthead__inner { height: 58px; justify-content: space-between; gap: 8px; }
	.masthead__search-toggle, .masthead__menu-toggle { display: inline-flex; }
	.masthead__brand { flex: 1 1 auto; display: flex; justify-content: center; }
	.masthead__date { display: none; }
	.masthead__search {
		display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 10px 15px; background: #fff;
		border-bottom: 1px solid var(--kdp-border); z-index: 5; margin: 0;
	}
	.masthead__search.is-open { display: block; }
	.masthead__search .search-form__input { height: 38px; font-size: 15px; }
	.site-title { font-size: 26px; }
	.custom-logo-link img { max-height: 34px; }
	.nav-primary > li > a { font-size: 15px; }
	.chips a { font-size: 14px; padding: 5px 10px; }

	.sticky-header .nav-primary { display: none; }
	.sticky-header__inner { justify-content: space-between; }
	.sticky-header__title { display: none; }
	.sticky-header .share { margin-left: auto; }
	.sticky-header__menu { display: inline-flex; }

	.headline { margin: 12px 0 20px; }
	.headline-slide__title { font-size: 19px; line-height: 25px; padding: 0 14px 26px; }
	.slider--headline .slider__arrow { width: 26px; height: 30px; }

	.section-highlight .slider__arrow { display: none; }
	.slider--cards .slider__track { gap: 15px; }
	.slider--cards .slider__slide { flex-basis: 78%; }

	.article--list { gap: 12px; padding-bottom: 15px; margin-bottom: 15px; }
	.article__image { flex-basis: 112px; }
	.content-title--list { font-size: 15px; line-height: 21px; margin-bottom: 6px; }
	.content-summary { display: none; }
	.article__meta { margin-bottom: 0; font-size: 11px; }

	.slider--stories .slider__slide { flex-basis: 62%; }
	.slider--stories .slider__arrow { display: none; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.sidebar { display: block; }

	.channel-bar__inner { height: 48px; gap: 14px; }
	.channel-bar__name span { font-size: 20px; }

	.detail-title { font-size: 23px; line-height: 29px; }
	.detail-body { font-size: 18px; line-height: 27px; }
	.detail-body .alignwide { margin-left: 0; margin-right: 0; }
	.detail-image { margin-left: -15px; margin-right: -15px; }
	.detail-image figcaption { padding: 0 15px; }
	.detail-meta { align-items: flex-start; }
	.post-nav .nav-links { grid-template-columns: 1fr; }
	.post-nav .nav-next { grid-column: auto; }

	.breaking__nav { display: none; }
	.breaking__viewport { border-right: 1px solid var(--kdp-border); border-radius: 0 var(--kdp-radius) var(--kdp-radius) 0; }

	.footer-sitemap { padding: 30px 0; }
	.footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-bar__inner, .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
	.footer-newsletter input { width: 100%; }
	.footer-newsletter { width: 100%; }
	.admin-bar .sticky-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .sticky-header { top: 0; }
}

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

@media print {
	.site-header, .sticky-header, .sidebar, .site-footer, .share, .to-top, .related, .comments, .breaking { display: none !important; }
	.row { display: block; }
	.detail-body { max-width: none; font-size: 12pt; }
}

/* Avatar frames (keep layout stable even if the avatar service is slow/unreachable) */
.opinion-item__avatar, .detail-meta__avatar, .author-box > img, .author-head > img {
	flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: #e9e9e9;
}
.opinion-item__avatar { width: 58px; height: 58px; }
.detail-meta__avatar { width: 36px; height: 36px; display: block; }
.opinion-item__avatar img, .detail-meta__avatar img { display: block; width: 100%; height: 100%; font-size: 0; color: transparent; }
