/*
Theme Name: Central Point News
Theme URI: https://centralpointnews.com
Author: Central Point News
Author URI: https://centralpointnews.com
Description: Modern multi-block news portal theme inspired by leading news sites. Big headline + Most Popular, breaking news ticker, Editor's Picks strip, 6 category blocks with 5 layouts (Feature, Grid, Spotlight, Mosaic, Columns), dark Focus/Video section, AJAX "Load more" news index, inline "Read Also" box, view counter, dark mode, sticky scrollable category menu and full Customizer options. Site name and logo come from Site Identity. Bundled languages: English (default) and Bahasa Indonesia.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpn
Tags: news, blog, grid-layout, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, threaded-comments, translation-ready, sticky-post
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--cpn-primary: #d71920;
	--cpn-primary-dark: #b0141a;
	--cpn-navy: #0b1f3a;
	--cpn-text: #13171f;
	--cpn-text-2: #3a4150;
	--cpn-muted: #6b7280;
	--cpn-border: #e6e8ec;
	--cpn-bg: #ffffff;
	--cpn-bg-soft: #f4f5f8;
	--cpn-card: #ffffff;
	--cpn-radius: 10px;
	--cpn-radius-sm: 6px;
	--cpn-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
	--cpn-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--cpn-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--cpn-container: 1200px;
	--cpn-gap: 24px;
	--cpn-nav-h: 48px;
}

html[data-theme="dark"] {
	--cpn-text: #e8eaee;
	--cpn-text-2: #c3c8d1;
	--cpn-muted: #929aa8;
	--cpn-border: #253042;
	--cpn-bg: #0c121b;
	--cpn-bg-soft: #121a26;
	--cpn-card: #131c29;
	--cpn-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
	color-scheme: dark;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--cpn-font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--cpn-text);
	background: var(--cpn-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.cpn-lock { overflow: hidden; }

img, video, iframe, svg { max-width: 100%; height: auto; }
img { display: block; }

a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--cpn-primary); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--cpn-primary); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 1000; top: 8px; left: 8px;
	padding: 10px 16px; background: var(--cpn-bg); color: var(--cpn-text);
	border-radius: var(--cpn-radius-sm); box-shadow: var(--cpn-shadow);
}

.cpn-container {
	width: 100%;
	max-width: var(--cpn-container);
	margin: 0 auto;
	padding: 0 16px;
}

.cpn-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.cpn-btn,
.cpn-loadmore,
.cpn-comments .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px;
	font-weight: 700; font-size: 14px;
	color: #fff; background: var(--cpn-primary);
	border: 0; border-radius: 999px;
	transition: background .15s ease, transform .15s ease;
}
.cpn-btn:hover,
.cpn-loadmore:hover,
.cpn-comments .submit:hover { background: var(--cpn-primary-dark); color: #fff; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.cpn-topbar {
	background: var(--cpn-navy);
	color: rgba(255, 255, 255, .82);
	font-size: 12.5px;
}
.cpn-topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.cpn-topbar__date { font-weight: 600; white-space: nowrap; }
.cpn-topbar__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.cpn-topbar__menu a:hover { color: #fff; }
.cpn-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.cpn-social { display: flex; align-items: center; gap: 6px; }
.cpn-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%;
	color: inherit; transition: background .15s ease, color .15s ease;
}
.cpn-social a:hover { background: var(--cpn-primary); color: #fff; }

.cpn-mode {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255, 255, 255, .1); color: #fff;
	border: 0; border-radius: 999px; padding: 6px 9px;
}
.cpn-mode:hover { background: rgba(255, 255, 255, .2); }
.cpn-mode .cpn-icon--sun { display: none; }
html[data-theme="dark"] .cpn-mode .cpn-icon--sun { display: inline-block; }
html[data-theme="dark"] .cpn-mode .cpn-icon--moon { display: none; }

.cpn-masthead { background: var(--cpn-bg); border-bottom: 1px solid var(--cpn-border); }
.cpn-masthead__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.cpn-brand { flex-shrink: 0; }
.cpn-logo--img { display: inline-flex; align-items: center; }
.cpn-logo--img img { display: block; width: auto; height: auto; max-height: 56px; max-width: 260px; }
.cpn-logo-img--dark { display: none !important; }
html[data-theme="dark"] .has-dark-logo .cpn-logo-img--light { display: none !important; }
html[data-theme="dark"] .has-dark-logo .cpn-logo-img--dark { display: block !important; }
.cpn-offcanvas__head .cpn-logo--img img { max-height: 40px; max-width: 200px; }
.cpn-footer .cpn-logo--img img { max-height: 48px; max-width: 220px; }
.cpn-masthead__aside { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; flex: 1; max-width: 728px; }
.cpn-masthead__aside .cpn-searchform { max-width: 360px; }
.cpn-header-ad img { max-height: 90px; width: auto; }

/* Text logo */
.cpn-logo-wrap { margin: 0; font-size: inherit; line-height: 1; }
.cpn-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--cpn-text); }
.cpn-logo:hover { color: var(--cpn-text); }
.cpn-logo__mark {
	display: inline-grid; place-items: center;
	width: 46px; height: 46px; border-radius: 12px;
	background: linear-gradient(135deg, var(--cpn-primary) 0%, var(--cpn-primary-dark) 100%);
	color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -.02em;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
	position: relative;
}
.cpn-logo__mark::after {
	content: ""; position: absolute; right: 7px; top: 7px;
	width: 7px; height: 7px; border-radius: 50%; background: #fff;
}
.cpn-logo__text { display: flex; flex-direction: column; line-height: 1; }
.cpn-logo__text strong { font-size: 25px; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
.cpn-logo__text em {
	font-style: normal; font-weight: 800; font-size: 11.5px; letter-spacing: .42em;
	color: var(--cpn-primary); margin-top: 4px; text-transform: uppercase;
}

.cpn-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: transparent; color: var(--cpn-text);
}
.cpn-iconbtn:hover { background: var(--cpn-bg-soft); }
.cpn-burger, .cpn-search-btn--mobile { display: none; }

/* Search form */
.cpn-searchform { position: relative; display: flex; width: 100%; }
.cpn-searchform__input {
	width: 100%; height: 42px; padding: 0 46px 0 18px;
	font: inherit; font-size: 14px; color: var(--cpn-text);
	background: var(--cpn-bg-soft); border: 1px solid var(--cpn-border); border-radius: 999px;
	transition: border-color .15s ease, background .15s ease;
}
.cpn-searchform__input:focus { outline: 0; border-color: var(--cpn-primary); background: var(--cpn-bg); }
.cpn-searchform__btn {
	position: absolute; right: 4px; top: 4px;
	width: 34px; height: 34px; border-radius: 50%; border: 0;
	display: grid; place-items: center;
	background: var(--cpn-primary); color: #fff;
}

/* Category nav */
.cpn-nav {
	position: sticky; top: 0; z-index: 90;
	background: var(--cpn-primary);
	color: #fff;
	transition: box-shadow .2s ease;
}
.admin-bar .cpn-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .cpn-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cpn-nav { top: 0; } }
.cpn-nav.is-stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.cpn-nav__inner { display: flex; align-items: stretch; height: var(--cpn-nav-h); }
.cpn-nav__home, .cpn-nav__search {
	display: flex; align-items: center; justify-content: center;
	width: 48px; flex-shrink: 0; color: #fff; background: rgba(0, 0, 0, .12); border: 0;
}
.cpn-nav__home:hover, .cpn-nav__search:hover, .cpn-nav__home.is-active { background: rgba(0, 0, 0, .25); color: #fff; }
.cpn-nav__scroll { flex: 1; min-width: 0; }
.cpn-nav__scroll::-webkit-scrollbar { display: none; }

.cpn-menu { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; }
.cpn-menu > li { position: relative; display: flex; }
.cpn-menu > li > a {
	display: flex; align-items: center; padding: 0 15px;
	font-size: 14px; font-weight: 700; white-space: nowrap; color: #fff;
	position: relative;
}
.cpn-menu > li > a::after {
	content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px;
	background: #fff; border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .2s ease;
}
.cpn-menu > li > a:hover,
.cpn-menu > .current-menu-item > a,
.cpn-menu > .current-category-ancestor > a,
.cpn-menu > .current-menu-parent > a { color: #fff; }
.cpn-menu > li > a:hover::after,
.cpn-menu > .current-menu-item > a::after,
.cpn-menu > .current-category-ancestor > a::after,
.cpn-menu > .current-menu-parent > a::after { transform: scaleX(1); }

/* Dropdowns (desktop only — nav is scrollable on mobile) */
.cpn-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 95; min-width: 210px;
	margin: 0; padding: 8px; list-style: none;
	background: var(--cpn-card); border: 1px solid var(--cpn-border);
	border-radius: var(--cpn-radius); box-shadow: var(--cpn-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.cpn-nav .menu-item-has-children:hover > .sub-menu,
.cpn-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cpn-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: var(--cpn-radius-sm); font-size: 14px; font-weight: 600; color: var(--cpn-text); }
.cpn-nav .sub-menu a:hover { background: var(--cpn-bg-soft); color: var(--cpn-primary); }

/* Ticker */
.cpn-ticker { background: var(--cpn-bg); border-bottom: 1px solid var(--cpn-border); font-size: 13.5px; }
.cpn-ticker__inner { display: flex; align-items: center; height: 42px; gap: 14px; }
.cpn-ticker__label {
	display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
	padding: 5px 12px 5px 10px; border-radius: 999px;
	background: color-mix(in srgb, var(--cpn-primary) 12%, transparent);
	color: var(--cpn-primary); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.cpn-ticker__label .cpn-icon { animation: cpn-pulse 1.4s ease-in-out infinite; }
.cpn-ticker__track {
	flex: 1; overflow: hidden; min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.cpn-ticker__list {
	display: flex; width: max-content; margin: 0; padding: 0; list-style: none;
	animation: cpn-marquee var(--cpn-ticker-duration, 60s) linear infinite;
}
.cpn-ticker__track:hover .cpn-ticker__list { animation-play-state: paused; }
.cpn-ticker__list li { display: flex; align-items: center; gap: 8px; padding-right: 34px; white-space: nowrap; }
.cpn-ticker__list li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cpn-border); margin-left: 26px; }
.cpn-ticker__list time { color: var(--cpn-primary); font-weight: 700; font-size: 12px; }
.cpn-ticker__list a { font-weight: 600; }

@keyframes cpn-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cpn-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
	.cpn-ticker__list { animation: none; }
	.cpn-ticker__track { overflow-x: auto; }
}

/* Search overlay */
.cpn-search-overlay {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(8, 14, 24, .72); backdrop-filter: blur(6px);
	display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px;
}
.cpn-search-overlay[hidden] { display: none; }
.cpn-search-overlay__box {
	position: relative; width: 100%; max-width: 680px;
	background: var(--cpn-bg); border-radius: 16px; padding: 30px 26px 26px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	animation: cpn-pop .2s ease;
}
.cpn-search-overlay__label { margin: 0 0 14px; font-weight: 800; font-size: 20px; }
.cpn-search-overlay__close { position: absolute; top: 10px; right: 10px; }
.cpn-search-overlay .cpn-searchform__input { height: 52px; font-size: 16px; }
.cpn-search-overlay .cpn-searchform__btn { width: 44px; height: 44px; }
@keyframes cpn-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* Off-canvas */
.cpn-offcanvas { position: fixed; inset: 0; z-index: 210; visibility: hidden; }
.cpn-offcanvas.is-open { visibility: visible; }
.cpn-offcanvas__backdrop { position: absolute; inset: 0; background: rgba(8, 14, 24, .6); opacity: 0; transition: opacity .25s ease; }
.cpn-offcanvas.is-open .cpn-offcanvas__backdrop { opacity: 1; }
.cpn-offcanvas__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw);
	background: var(--cpn-bg); padding: 18px; overflow-y: auto;
	transform: translateX(-100%); transition: transform .28s ease;
	display: flex; flex-direction: column; gap: 18px;
}
.cpn-offcanvas.is-open .cpn-offcanvas__panel { transform: none; }
.cpn-offcanvas__head { display: flex; align-items: center; justify-content: space-between; }
.cpn-offcanvas__head .cpn-logo__mark { width: 38px; height: 38px; font-size: 14px; }
.cpn-offcanvas__head .cpn-logo__text strong { font-size: 19px; }
.cpn-menu--vertical { flex-direction: column; height: auto; }
.cpn-menu--vertical li { display: block; position: relative; border-bottom: 1px solid var(--cpn-border); }
.cpn-menu--vertical > li > a { padding: 13px 4px; color: var(--cpn-text); font-size: 15px; }
.cpn-menu--vertical > li > a::after { display: none; }
.cpn-menu--vertical .sub-menu { display: none; list-style: none; margin: 0 0 10px; padding: 0 0 0 12px; }
.cpn-menu--vertical .is-open > .sub-menu { display: block; }
.cpn-menu--vertical .sub-menu a { display: block; padding: 8px 4px; font-size: 14px; color: var(--cpn-text-2); }
.cpn-sub-toggle {
	position: absolute; right: 0; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: var(--cpn-muted);
}
.cpn-sub-toggle::before { content: "+"; font-size: 20px; font-weight: 600; }
.is-open > .cpn-sub-toggle::before { content: "–"; }
.cpn-offcanvas__extra { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--cpn-muted); }
.cpn-social--offcanvas a { background: var(--cpn-bg-soft); color: var(--cpn-text); width: 36px; height: 36px; }
.cpn-mode--block { background: var(--cpn-bg-soft); color: var(--cpn-text); padding: 11px 16px; justify-content: center; font-weight: 700; font-size: 14px; }
.cpn-mode--block:hover { background: var(--cpn-border); }

/* Reading progress */
.cpn-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.admin-bar .cpn-progress { top: 32px; }
.cpn-progress span { display: block; height: 100%; background: var(--cpn-primary); transform: scaleX(0); transform-origin: 0 50%; }

/* ==========================================================================
   4. Shared components
   ========================================================================== */
.cpn-main { padding-bottom: 40px; }

.cpn-media { position: relative; display: block; overflow: hidden; background: var(--cpn-bg-soft); border-radius: var(--cpn-radius); }
.cpn-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
a.cpn-media:hover img, .cpn-card:hover .cpn-media img, .cpn-li:hover .cpn-media img, .cpn-overlay:hover .cpn-media img { transform: scale(1.04); }

.cpn-noimg {
	display: grid; place-items: center; width: 100%; height: 100%;
	background:
		radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--cpn-primary) 40%, transparent), transparent 55%),
		linear-gradient(135deg, var(--cpn-navy), color-mix(in srgb, var(--cpn-navy) 70%, #000));
}
.cpn-noimg span { color: rgba(255, 255, 255, .5); font-weight: 800; letter-spacing: .1em; font-size: 15px; }

.cpn-play {
	position: absolute; left: 10px; bottom: 10px;
	display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(4px);
	border: 2px solid rgba(255, 255, 255, .85);
}
.cpn-play--gallery { width: auto; padding: 0 10px; height: 26px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; border-width: 1px; }

.cpn-cat {
	display: inline-block; margin-bottom: 6px;
	font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
	color: var(--cpn-primary);
}
.cpn-cat--badge {
	padding: 4px 9px; border-radius: 4px;
	background: var(--cpn-primary); color: #fff; font-size: 11px;
}
.cpn-cat--badge:hover { background: var(--cpn-primary-dark); color: #fff; }

.cpn-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--cpn-muted); }
.cpn-meta__views { display: inline-flex; align-items: center; gap: 4px; }

/* Section heading */
.cpn-sec-head {
	display: flex; align-items: center; gap: 14px;
	margin-bottom: 18px;
}
.cpn-sec-head::after { content: ""; flex: 1; height: 2px; background: var(--cpn-border); order: 1; }
.cpn-sec-head__title {
	display: flex; align-items: center; gap: 10px; margin: 0;
	font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-transform: none;
}
.cpn-sec-head__title::before {
	content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--cpn-primary);
}
.cpn-sec-head__more {
	order: 2; display: inline-flex; align-items: center; gap: 2px;
	font-size: 13px; font-weight: 700; color: var(--cpn-primary); white-space: nowrap;
}
.cpn-sec-head__more:hover { color: var(--cpn-primary-dark); }

/* Card (vertical) */
.cpn-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cpn-card__media { aspect-ratio: 16 / 9; }
.cpn-card__title { margin: 0 0 6px; font-size: 16.5px; line-height: 1.35; font-weight: 700; }
.cpn-card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cpn-card__excerpt { margin: 0 0 8px; color: var(--cpn-text-2); font-size: 14px; line-height: 1.55; }
.cpn-card--lead .cpn-card__title { font-size: 22px; line-height: 1.3; }

/* List item (horizontal) */
.cpn-li { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.cpn-li__media { aspect-ratio: 16 / 10; }
.cpn-li__title { margin: 0 0 6px; font-size: 18px; line-height: 1.35; font-weight: 700; }
.cpn-li__excerpt { margin: 0 0 8px; color: var(--cpn-text-2); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cpn-li--compact { grid-template-columns: 112px 1fr; gap: 12px; }
.cpn-li--compact .cpn-li__media { aspect-ratio: 4 / 3; border-radius: var(--cpn-radius-sm); }
.cpn-li--compact .cpn-li__title { font-size: 14.5px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cpn-li--compact .cpn-cat { margin-bottom: 3px; font-size: 10.5px; }
.cpn-li--compact .cpn-play { width: 28px; height: 28px; left: 6px; bottom: 6px; }

.cpn-stack { display: flex; flex-direction: column; gap: 20px; }
.cpn-stack > .cpn-li:not(:last-child) { padding-bottom: 20px; border-bottom: 1px solid var(--cpn-border); }
.cpn-stack > .cpn-li--compact:not(:last-child) { padding-bottom: 14px; }
.cpn-stack > .cpn-overlay { margin-bottom: 4px; }

/* Overlay card */
.cpn-overlay { position: relative; overflow: hidden; border-radius: var(--cpn-radius); min-height: 220px; isolation: isolate; }
.cpn-overlay__media { position: absolute; inset: 0; border-radius: 0; }
.cpn-overlay__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .9) 100%);
}
.cpn-overlay__media .cpn-play { left: auto; right: 14px; top: 14px; bottom: auto; }
.cpn-overlay__body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 18px; color: #fff; pointer-events: none;
}
.cpn-overlay__body a { pointer-events: auto; }
.cpn-overlay__title { margin: 8px 0 8px; font-size: 18px; line-height: 1.3; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.cpn-overlay__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cpn-overlay__dek { margin: 0 0 10px; color: rgba(255, 255, 255, .86); font-size: 15px; max-width: 680px; }
.cpn-overlay .cpn-meta { color: rgba(255, 255, 255, .78); }
.cpn-overlay--lg .cpn-overlay__title { font-size: 24px; }
.cpn-overlay--wide { aspect-ratio: 16 / 8; min-height: 260px; }
.cpn-overlay--wide .cpn-overlay__title { font-size: 26px; }

/* Grid helpers */
.cpn-grid { display: grid; gap: var(--cpn-gap); }
.cpn-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cpn-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpn-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Layout with sidebar */
.cpn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 32px; }
.cpn-layout__main { min-width: 0; }
.cpn-layout__side { min-width: 0; }
.cpn-sticky { position: sticky; top: calc(var(--cpn-nav-h) + 20px); display: flex; flex-direction: column; gap: 30px; }
.admin-bar .cpn-sticky { top: calc(var(--cpn-nav-h) + 52px); }

.cpn-box { background: var(--cpn-card); border: 1px solid var(--cpn-border); border-radius: var(--cpn-radius); padding: 18px; }

/* Numbered popular list */
.cpn-rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.cpn-rank__item {
	counter-increment: rank;
	display: grid; grid-template-columns: 40px 1fr; gap: 10px;
	padding: 13px 0; border-bottom: 1px dashed var(--cpn-border);
}
.cpn-rank__item:first-child { padding-top: 2px; }
.cpn-rank__item:last-child { border-bottom: 0; padding-bottom: 0; }
.cpn-rank__item::before {
	content: counter(rank);
	font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1.5px var(--cpn-primary);
}
.cpn-rank__item:first-child::before { color: var(--cpn-primary); -webkit-text-stroke: 0; }
.cpn-rank__title { margin: 0 0 5px; font-size: 15px; line-height: 1.38; font-weight: 700; }
.cpn-rank .cpn-cat { margin-bottom: 3px; font-size: 10.5px; }

/* Chips */
.cpn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cpn-chips a {
	padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
	background: var(--cpn-bg-soft); border: 1px solid var(--cpn-border); color: var(--cpn-text-2);
}
.cpn-chips a:hover { border-color: var(--cpn-primary); color: var(--cpn-primary); }

.cpn-adslot {
	display: grid; place-items: center; aspect-ratio: 6 / 5;
	border: 1px dashed var(--cpn-border); border-radius: var(--cpn-radius);
	background: repeating-linear-gradient(45deg, var(--cpn-bg-soft), var(--cpn-bg-soft) 10px, transparent 10px, transparent 20px);
	color: var(--cpn-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}

/* Core block widgets (default WordPress sidebar) */
.cpn-widget .wp-block-heading, .cpn-widget h2:not(.cpn-sec-head__title) {
	display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 18px; font-weight: 800; letter-spacing: -.02em;
}
.cpn-widget .wp-block-heading::before, .cpn-widget h2:not(.cpn-sec-head__title)::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--cpn-primary); }
.cpn-footer .cpn-widget h2::before { display: none; }
.cpn-widget .wp-block-search__label { display: none; }
.cpn-widget .wp-block-search__inside-wrapper { position: relative; display: flex; }
.cpn-widget .wp-block-search__input { width: 100%; height: 44px; padding: 0 92px 0 18px; font: inherit; font-size: 14px; color: var(--cpn-text); background: var(--cpn-bg-soft); border: 1px solid var(--cpn-border); border-radius: 999px; }
.cpn-widget .wp-block-search__input:focus { outline: 0; border-color: var(--cpn-primary); }
.cpn-widget .wp-block-search__button { position: absolute; right: 4px; top: 4px; height: 36px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--cpn-primary); color: #fff; font-size: 13px; font-weight: 700; }
.cpn-widget .wp-block-latest-posts__list li, .cpn-widget .wp-block-archives-list li, .cpn-widget .wp-block-categories-list li, .cpn-widget .wp-block-latest-comments li {
	padding: 10px 0; border-bottom: 1px solid var(--cpn-border); font-size: 14.5px; font-weight: 600; line-height: 1.45;
}
.cpn-widget .wp-block-latest-posts__list li:last-child, .cpn-widget .wp-block-archives-list li:last-child, .cpn-widget .wp-block-categories-list li:last-child { border-bottom: 0; }
.cpn-widget .wp-block-latest-comments { padding: 0; margin: 0; }
.cpn-widget .wp-block-group { margin: 0; }
.cpn-widget .no-comments { color: var(--cpn-muted); font-size: 14px; margin: 0; }

/* Generic widgets */
.cpn-widget ul { list-style: none; margin: 0; padding: 0; }
.cpn-widget > ul > li, .cpn-widget .menu > li { padding: 9px 0; border-bottom: 1px solid var(--cpn-border); font-size: 14.5px; font-weight: 600; }
.cpn-widget select, .cpn-widget input[type="text"], .cpn-widget input[type="email"] { width: 100%; padding: 10px 12px; border: 1px solid var(--cpn-border); border-radius: var(--cpn-radius-sm); background: var(--cpn-bg); color: var(--cpn-text); }
.cpn-widget img { border-radius: var(--cpn-radius); }

/* ==========================================================================
   5. Homepage
   ========================================================================== */
.cpn-hero { padding-top: 26px; }
.cpn-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.cpn-overlay--hero { aspect-ratio: 16 / 9; min-height: 340px; border-radius: 14px; }
.cpn-overlay--hero .cpn-overlay__body { padding: 28px 30px; }
.cpn-overlay--hero .cpn-overlay__title { font-size: clamp(24px, 3vw, 36px); line-height: 1.18; letter-spacing: -.025em; margin: 12px 0 10px; }
.cpn-hero__subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.cpn-card--sub .cpn-card__title { font-size: 15px; }
.cpn-hero__popular { align-self: start; }
.cpn-hero__popular .cpn-sec-head { margin-bottom: 12px; }

.cpn-picks { margin-top: 36px; padding: 28px 0 30px; background: var(--cpn-bg-soft); border-top: 1px solid var(--cpn-border); border-bottom: 1px solid var(--cpn-border); }
.cpn-picks__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cpn-gap); }
.cpn-card--pick { background: var(--cpn-card); border-radius: var(--cpn-radius); padding: 10px 10px 14px; box-shadow: var(--cpn-shadow); }
.cpn-card--pick .cpn-card__media { border-radius: var(--cpn-radius-sm); }
.cpn-card--pick .cpn-card__body { padding: 0 4px; }
.cpn-card--pick .cpn-card__title { font-size: 15.5px; }

.cpn-announce { margin-top: 28px; padding: 18px 22px; border-left: 4px solid var(--cpn-primary); background: var(--cpn-bg-soft); border-radius: var(--cpn-radius-sm); }

.cpn-block { margin-bottom: 44px; }
.cpn-block:last-child { margin-bottom: 0; }

/* feature */
.cpn-block__feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--cpn-gap); }
.cpn-block__side { display: flex; flex-direction: column; gap: 14px; }
.cpn-block__side > .cpn-li:not(:last-child) { padding-bottom: 14px; border-bottom: 1px solid var(--cpn-border); }

/* list (sorotan) */
.cpn-block__rest { margin-top: 20px; row-gap: 18px; }

/* mosaic */
.cpn-mosaic { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 440px; }
.cpn-mosaic .cpn-overlay { min-height: 0; }
.cpn-mosaic .cpn-overlay--lg { grid-row: span 2; }
.cpn-mosaic .cpn-overlay:not(.cpn-overlay--lg) .cpn-overlay__title { font-size: 16px; }

/* columns */
.cpn-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--cpn-gap); }
.cpn-headlines { list-style: none; margin: 0; padding: 0; counter-reset: hl; }
.cpn-headlines li { counter-increment: hl; position: relative; padding: 0 0 14px 22px; margin-bottom: 14px; border-bottom: 1px solid var(--cpn-border); }
.cpn-headlines li:last-child { border-bottom: 0; margin-bottom: 0; }
.cpn-headlines li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--cpn-primary); }
.cpn-headlines a { display: block; font-weight: 700; font-size: 15px; line-height: 1.38; margin-bottom: 4px; }
.cpn-headlines time { font-size: 12px; color: var(--cpn-muted); }

/* Mosaic with fewer posts */
.cpn-mosaic--n1, .cpn-mosaic--n2 { height: 380px; grid-template-rows: 1fr; }
.cpn-mosaic--n1 { grid-template-columns: 1fr; }
.cpn-mosaic--n1 .cpn-overlay--lg, .cpn-mosaic--n2 .cpn-overlay--lg { grid-row: auto; }

/* Focus (dark) */
.cpn-focus { margin-top: 48px; padding: 40px 0 44px; background: var(--cpn-navy); color: #fff; }
.cpn-focus .cpn-sec-head::after { background: rgba(255, 255, 255, .15); }
.cpn-focus .cpn-sec-head__title { color: #fff; }
.cpn-focus .cpn-sec-head__more { color: #fff; opacity: .85; }
.cpn-focus__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 460px; }
.cpn-focus__grid .cpn-overlay { min-height: 0; }
.cpn-focus__grid .cpn-overlay--lg { grid-row: span 2; }
.cpn-focus__grid > .cpn-overlay:nth-child(4) { grid-column: span 2; }
.cpn-focus__grid .cpn-overlay:not(.cpn-overlay--lg) .cpn-overlay__title { font-size: 16px; }
.cpn-focus__grid--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 420px; }
.cpn-focus__grid--n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; height: 400px; }
.cpn-focus__grid--n3 { grid-template-columns: 2fr 1fr; }
.cpn-focus__grid--n1 .cpn-overlay--lg, .cpn-focus__grid--n2 .cpn-overlay--lg { grid-row: auto; }
.cpn-focus + .cpn-layout { padding-top: 44px; }

.cpn-loadmore { display: flex; width: 100%; margin-top: 26px; padding: 14px; border-radius: var(--cpn-radius); background: var(--cpn-bg-soft); color: var(--cpn-text); border: 1px solid var(--cpn-border); }
.cpn-loadmore:hover { background: var(--cpn-primary); border-color: var(--cpn-primary); color: #fff; }
.cpn-loadmore.is-loading { opacity: .7; pointer-events: none; }

/* ==========================================================================
   6. Archive
   ========================================================================== */
.cpn-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--cpn-muted); margin-bottom: 14px; }
.cpn-crumb a { font-weight: 600; color: var(--cpn-text-2); }
.cpn-crumb a:hover { color: var(--cpn-primary); }
.cpn-crumb__sep { opacity: .55; display: inline-flex; }

.cpn-archive-head { padding: 30px 0 26px; border-bottom: 1px solid var(--cpn-border); }
.cpn-archive-head__title { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 14px; }
.cpn-archive-head__title::before { content: ""; width: 8px; height: 1em; border-radius: 4px; background: var(--cpn-primary); flex-shrink: 0; }
.cpn-archive-head__desc { margin-top: 10px; color: var(--cpn-text-2); max-width: 760px; }
.cpn-archive-head__desc p { margin: 0; }
.cpn-archive-head__search { margin-top: 16px; max-width: 520px; }
.cpn-chips--sub { margin-top: 16px; }

.cpn-pagination { margin-top: 36px; }
.cpn-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cpn-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--cpn-border); border-radius: 999px; font-weight: 700; font-size: 14px;
}
.cpn-pagination .page-numbers.current, .cpn-pagination a.page-numbers:hover { background: var(--cpn-primary); border-color: var(--cpn-primary); color: #fff; }
.cpn-pagination .dots { border: 0; }

.cpn-empty, .cpn-404 { text-align: center; padding: 60px 20px; }
.cpn-empty .cpn-searchform, .cpn-404 .cpn-searchform { max-width: 460px; margin: 20px auto; }
.cpn-404__code { display: block; font-size: clamp(90px, 16vw, 160px); font-weight: 800; line-height: 1; letter-spacing: -.06em; color: var(--cpn-primary); }
.cpn-404 h1 { font-size: 28px; margin-top: 10px; }
.cpn-404 p { color: var(--cpn-text-2); max-width: 520px; margin: 0 auto; }

/* ==========================================================================
   7. Single article
   ========================================================================== */
.cpn-layout--single { padding-top: 24px; }
.cpn-article__header { margin-bottom: 22px; }
.cpn-article__title { margin: 12px 0 12px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.18; font-weight: 800; letter-spacing: -.03em; }
.cpn-article__dek { margin: 0 0 18px; font-size: 18px; line-height: 1.55; color: var(--cpn-text-2); }

.cpn-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--cpn-border); border-bottom: 1px solid var(--cpn-border); margin-bottom: 14px; }
.cpn-byline__avatar img { border-radius: 50%; width: 44px; height: 44px; }
.cpn-byline__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cpn-byline__name { font-weight: 700; font-size: 15px; }
.cpn-byline__editor { font-weight: 500; color: var(--cpn-muted); font-size: 13.5px; }
.cpn-byline__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--cpn-muted); }
.cpn-byline__meta span { display: inline-flex; align-items: center; gap: 4px; }

.cpn-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cpn-share__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--cpn-muted); margin-right: 4px; }
.cpn-share__btn {
	position: relative;
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--cpn-border); background: var(--cpn-bg); color: var(--cpn-text);
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.cpn-share__btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.cpn-share__btn--facebook:hover { background: #1877f2; }
.cpn-share__btn--x:hover { background: #000; }
.cpn-share__btn--whatsapp:hover { background: #25d366; }
.cpn-share__btn--telegram:hover { background: #229ed9; }
.cpn-share__btn--copy:hover { background: var(--cpn-primary); }
.cpn-share__btn.is-copied::after {
	content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	padding: 5px 9px; border-radius: 6px; background: var(--cpn-text); color: var(--cpn-bg); font-size: 12px; white-space: nowrap;
}
.cpn-share--bottom { margin: 28px 0; padding: 16px 0; border-top: 1px solid var(--cpn-border); border-bottom: 1px solid var(--cpn-border); }

.cpn-article__figure { margin: 0 0 26px; }
.cpn-article__figure img { width: 100%; border-radius: 12px; }
.cpn-article__figure figcaption { margin-top: 10px; font-size: 13px; color: var(--cpn-muted); line-height: 1.5; padding-left: 12px; border-left: 3px solid var(--cpn-border); }

/* Article typography */
.entry-content { font-family: var(--cpn-serif); font-size: 19px; line-height: 1.78; color: var(--cpn-text); overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--cpn-font); margin-top: 1.6em; letter-spacing: -.02em; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--cpn-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--cpn-primary);
	font-size: 22px; font-style: italic; color: var(--cpn-text-2);
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--cpn-font); font-size: 14px; font-style: normal; font-weight: 700; color: var(--cpn-muted); }
.entry-content img { border-radius: var(--cpn-radius); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-family: var(--cpn-font); font-size: 13px; color: var(--cpn-muted); margin-top: 8px; text-align: left; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--cpn-font); font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--cpn-border); text-align: left; }
.entry-content th { background: var(--cpn-bg-soft); }
.entry-content pre { padding: 16px; border-radius: var(--cpn-radius); background: var(--cpn-bg-soft); overflow-x: auto; font-size: 14px; }
.entry-content iframe { width: 100%; border-radius: var(--cpn-radius); }
.entry-content .alignwide { margin-left: -40px; margin-right: -40px; max-width: calc(100% + 80px); }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

/* "Baca Juga" inline box */
.cpn-bacajuga {
	font-family: var(--cpn-font);
	margin: 1.6em 0 !important; padding: 14px 18px;
	background: var(--cpn-bg-soft); border-left: 4px solid var(--cpn-primary); border-radius: 0 var(--cpn-radius-sm) var(--cpn-radius-sm) 0;
}
.cpn-bacajuga__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cpn-primary); margin-bottom: 6px; }
.cpn-bacajuga ul { list-style: none; margin: 0; padding: 0; }
.cpn-bacajuga li { margin: 0; padding: 4px 0; }
.entry-content .cpn-bacajuga a { color: var(--cpn-text); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.45; }
.entry-content .cpn-bacajuga a:hover { color: var(--cpn-primary); }

.cpn-pagelinks { display: flex; gap: 6px; align-items: center; font-family: var(--cpn-font); font-size: 14px; font-weight: 700; }
.cpn-pagelinks a span, .cpn-pagelinks > span:not(:first-child) { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--cpn-border); }
.cpn-pagelinks > span.current, .cpn-pagelinks > .post-page-numbers.current { background: var(--cpn-primary); color: #fff; border-color: var(--cpn-primary); }

.cpn-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.cpn-tags__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--cpn-muted); margin-right: 4px; }
.cpn-tags a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--cpn-bg-soft); color: var(--cpn-text-2); }
.cpn-tags a:hover { background: var(--cpn-primary); color: #fff; }

.cpn-after-article { margin-bottom: 28px; }

.cpn-authorbox { display: flex; gap: 18px; padding: 22px; background: var(--cpn-bg-soft); border-radius: var(--cpn-radius); margin-bottom: 40px; }
.cpn-authorbox img { border-radius: 50%; width: 72px; height: 72px; flex-shrink: 0; }
.cpn-authorbox__label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cpn-primary); }
.cpn-authorbox__name { margin: 2px 0 6px; font-size: 18px; }
.cpn-authorbox p { margin: 0; font-size: 14.5px; color: var(--cpn-text-2); }

.cpn-related { margin-bottom: 40px; }

.cpn-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.cpn-postnav a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--cpn-border); border-radius: var(--cpn-radius); transition: border-color .15s ease; }
.cpn-postnav a:hover { border-color: var(--cpn-primary); }
.cpn-postnav .nav-next { text-align: right; grid-column: 2; }
.cpn-postnav__label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--cpn-primary); margin-bottom: 4px; }
.cpn-postnav__title { font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--cpn-text); }

/* Comments */
.cpn-comments { margin-top: 10px; }
.cpn-comments__title { font-size: 20px; font-weight: 800; }
.cpn-comments__list, .cpn-comments__list .children { list-style: none; margin: 0; padding: 0; }
.cpn-comments__list .children { padding-left: 32px; }
.cpn-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--cpn-border); font-size: 15px; }
.cpn-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.cpn-comments .comment-author img { border-radius: 50%; }
.cpn-comments .says { display: none; }
.cpn-comments .comment-metadata { font-size: 12px; color: var(--cpn-muted); margin: 4px 0 0 50px; }
.cpn-comments .comment-content { margin-left: 50px; }
.cpn-comments .reply { margin-left: 50px; font-size: 13px; font-weight: 700; }
.cpn-comments .reply a { color: var(--cpn-primary); }
.cpn-comments textarea, .cpn-comments input[type="text"], .cpn-comments input[type="email"], .cpn-comments input[type="url"] {
	width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
	color: var(--cpn-text); background: var(--cpn-bg); border: 1px solid var(--cpn-border); border-radius: var(--cpn-radius-sm);
}
.cpn-comments textarea:focus, .cpn-comments input:focus { outline: 0; border-color: var(--cpn-primary); }
.cpn-comments label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.cpn-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.cpn-comments .comment-form-cookies-consent label { font-weight: 500; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.cpn-footer { background: var(--cpn-navy); color: rgba(255, 255, 255, .75); font-size: 14px; margin-top: 30px; }
.cpn-footer a:hover { color: #fff; }
.cpn-footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1.2fr; gap: 40px; padding-top: 50px; padding-bottom: 40px; }
.cpn-footer .cpn-logo, .cpn-footer .cpn-logo:hover { color: #fff; }
.cpn-footer__about p { margin: 16px 0 18px; line-height: 1.65; }
.cpn-footer__about > p:first-child { margin-top: 0; }
.cpn-social--footer a { background: rgba(255, 255, 255, .08); width: 36px; height: 36px; }
.cpn-footer__title { color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.cpn-footer__title::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--cpn-primary); margin-top: 10px; }
.cpn-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cpn-footer__links--2col { grid-template-columns: 1fr 1fr; }
.cpn-footer__links--news li { padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-weight: 600; line-height: 1.45; }
.cpn-footer__links--news li:last-child { border-bottom: 0; }
.cpn-footer .cpn-widget ul li { border-color: rgba(255, 255, 255, .08); }
.cpn-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.cpn-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.cpn-footer__bottom p { margin: 0; }
.cpn-footer__rss { font-weight: 800; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, .08); }

.cpn-totop {
	position: fixed; right: 18px; bottom: 18px; z-index: 80;
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: var(--cpn-primary); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
}
.cpn-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.cpn-totop:hover { background: var(--cpn-primary-dark); }

/* WP core classes */
.sticky, .bypostauthor, .gallery-caption { }
.wp-caption { max-width: 100%; }
.alignnone { margin: 0; }

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.cpn-hero__grid { grid-template-columns: minmax(0, 1fr) 300px; }
	.cpn-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
	.cpn-li { grid-template-columns: 200px 1fr; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}

@media (max-width: 960px) {
	.cpn-topbar__menu { display: none; }
	.cpn-masthead__aside { display: none; }
	.cpn-burger, .cpn-search-btn--mobile { display: inline-flex; }
	.cpn-masthead__inner { min-height: 64px; gap: 8px; justify-content: space-between; }
	.cpn-brand { flex: 1; display: flex; justify-content: center; }
	.cpn-logo__mark { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
	.cpn-logo__mark::after { width: 6px; height: 6px; top: 6px; right: 6px; }
	.cpn-logo__text strong { font-size: 20px; }
	.cpn-logo__text em { font-size: 10px; }
	.cpn-brand .cpn-logo--img img { max-height: 42px; max-width: 180px; }
	.cpn-nav__search { display: none; }
	.cpn-nav__scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.cpn-nav .sub-menu { display: none; }

	.cpn-hero__grid { grid-template-columns: 1fr; }
	.cpn-layout { grid-template-columns: 1fr; }
	.cpn-sticky { position: static; }
	.cpn-picks__row { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.cpn-picks__row > * { scroll-snap-align: start; }
	.cpn-footer__grid { grid-template-columns: 1fr 1fr; }
	.cpn-focus__grid { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.cpn-focus__grid .cpn-overlay { aspect-ratio: 4 / 3; }
	.cpn-focus__grid .cpn-overlay--lg { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
	.cpn-focus__grid > .cpn-overlay:nth-child(4) { grid-column: auto; }
}

@media (max-width: 720px) {
	:root { --cpn-gap: 16px; }
	.cpn-topbar__date { font-size: 11.5px; }
	.cpn-social--top { display: none; }
	.cpn-hero { padding-top: 0; }
	.cpn-hero .cpn-container.cpn-hero__grid { padding: 0; }
	.cpn-overlay--hero { border-radius: 0; aspect-ratio: 4 / 4.2; }
	.cpn-overlay--hero .cpn-overlay__body { padding: 18px 16px; }
	.cpn-overlay--hero .cpn-overlay__dek { display: none; }
	.cpn-hero__subs { grid-template-columns: 1fr; gap: 14px; padding: 0 16px; }
	.cpn-hero__subs .cpn-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
	.cpn-hero__subs .cpn-card__media { aspect-ratio: 4 / 3; border-radius: var(--cpn-radius-sm); }
	.cpn-hero__popular { margin: 0 16px; }

	.cpn-grid--3, .cpn-grid--2, .cpn-block__feature, .cpn-columns { grid-template-columns: 1fr; }
	.cpn-grid--3 > .cpn-card:not(:first-child) { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
	.cpn-grid--3 > .cpn-card:not(:first-child) .cpn-card__media { aspect-ratio: 4 / 3; border-radius: var(--cpn-radius-sm); }
	.cpn-grid--3 > .cpn-card:not(:first-child) .cpn-card__title { font-size: 15px; }

	.cpn-li { grid-template-columns: 120px 1fr; gap: 12px; }
	.cpn-li__media { aspect-ratio: 4 / 3; border-radius: var(--cpn-radius-sm); }
	.cpn-li__title { font-size: 15.5px; }
	.cpn-li__excerpt { display: none; }

	.cpn-mosaic { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.cpn-mosaic .cpn-overlay { aspect-ratio: 1 / 1; }
	.cpn-mosaic .cpn-overlay--lg { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }

	.cpn-overlay--wide { aspect-ratio: 4 / 3; }
	.cpn-overlay--wide .cpn-overlay__title, .cpn-overlay--lg .cpn-overlay__title { font-size: 20px; }
	.cpn-overlay__dek { display: none; }

	.cpn-focus__grid { grid-template-columns: 1fr; }
	.cpn-focus__grid .cpn-overlay--lg { grid-column: auto; }

	.cpn-sec-head__title { font-size: 18px; }
	.cpn-layout { padding-top: 26px; }
	.cpn-block { margin-bottom: 34px; }

	.entry-content { font-size: 17.5px; line-height: 1.72; }
	.cpn-article__dek { font-size: 16.5px; }
	.cpn-article__figure { margin-left: -16px; margin-right: -16px; }
	.cpn-article__figure img { border-radius: 0; }
	.cpn-article__figure figcaption { margin-left: 16px; margin-right: 16px; }
	.cpn-share__label { width: 100%; }
	.cpn-postnav .nav-links { grid-template-columns: 1fr; }
	.cpn-postnav .nav-next { grid-column: auto; }
	.cpn-authorbox { flex-direction: column; }

	.cpn-footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.cpn-footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media print {
	.cpn-topbar, .cpn-nav, .cpn-ticker, .cpn-layout__side, .cpn-share, .cpn-related, .cpn-footer, .cpn-totop, .cpn-comments, .cpn-postnav, .cpn-progress { display: none !important; }
	.cpn-layout { display: block; }
	.entry-content { font-size: 12pt; }
}
