/* ==========================================================================
   Reference 1 — visual language (white header, red accents, dense hero)
   Loaded after the shared components so these rules win without !important.
   ========================================================================== */

/* Shell ------------------------------------------------------------------ */

.r1-hero-wrap {
	width: 100%;
	max-width: var(--aadigital-wide-width);
	margin-inline: auto;
	padding-inline: var(--aadigital-gutter);
}

@media (min-width: 1100px) {
	/* Reference keeps the hero flush with the 1024px container. */
	.r1-hero-wrap {
		padding-inline: 0;
	}
}

/* News TV strip (section 1 under the header ad) --------------------------- */

/* Dark panel: label + "See All" on the left, four picture cards on the right,
   measured from the reference widget (#171717, 16px radius, 24px padding). */
/* The panel stacks a body row (label + cards) over an optional ad row. The
   dotted "earth" backdrop is our own render of public-domain Natural Earth
   land polygons (see docs/03_Reference_Themes.md), not the reference artwork. */
.r1-news-tv {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-block-end: 20px;
	padding: 19px 16px 18px 24px;
	overflow: hidden;
	border-radius: 16px;
	background-color: #171717;
	background-image:
		radial-gradient(circle at 4% 128%, rgb(255 255 255 / 8%), transparent 52%),
		url(../img/news-tv-map.png),
		radial-gradient(circle, rgb(255 255 255 / 5%) 1px, transparent 1.1px);
	background-size: auto, 100% 100%, 16px 16px;
	background-position: 0 0, center, 0 0;
	background-repeat: no-repeat, no-repeat, repeat;
}

.r1-news-tv__body {
	display: flex;
	align-items: stretch;
	gap: 24px;
}

.r1-news-tv__ad {
	display: flex;
	justify-content: center;
	padding-block-start: 16px;
	border-block-start: 1px solid rgb(255 255 255 / 10%);
}

.r1-news-tv__ad .ad-slot,
.r1-news-tv__ad .aadigital-ad {
	margin: 0;
}

.r1-news-tv__ad .aadigital-ad__label {
	color: rgb(255 255 255 / 60%);
}

/* Breaking-news card under the News TV panel ----------------------------- */

/* Measured from the reference: a 1024x112 red card (#e50913, radius 8) with a
   white "Breaking News" tag straddling the top edge, an 18/700 headline and a
   "Baca Selengkapnya" cue. */
.r1-breaking {
	position: relative;
	margin-block: 24px;
	border-radius: 8px;
	background: #e50913;
}

.r1-breaking__link {
	display: flex;
	flex-direction: column;
	padding: 12px;
	color: #fff;
	text-decoration: none;
}

.r1-breaking__tag {
	align-self: flex-start;
	margin-block-start: -33px;
	padding: 1px 10px;
	border: 2px solid #fff;
	border-radius: 4px;
	background: #fff;
	color: #e50913;
	font-family: var(--aadigital-font-heading);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.4;
	text-transform: uppercase;
}

.r1-breaking__text {
	padding-block-start: 12px;
	font-family: var(--aadigital-font-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.r1-breaking__more {
	margin-block-start: 12px;
	color: #ebebeb;
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
}

.r1-breaking__link:hover .r1-breaking__more,
.r1-breaking__link:focus-visible .r1-breaking__more {
	text-decoration: underline;
}

/* Video Highlight: four 16:9 clips under a standard block header --------- */

.r1-video-highlight {
	margin-block-end: 30px;
}

.r1-video-highlight__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r1-video-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.r1-video-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 7px;
	background: #ececec;
}

.r1-video-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.r1-video-card__play {
	position: absolute;
	inset-block-end: 8px;
	inset-inline-start: 8px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	color: var(--aadigital-color-accent);
	box-shadow: 0 1px 4px rgb(0 0 0 / 22%);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.r1-video-card__media:hover .r1-video-card__play,
.r1-video-card__media:focus-visible .r1-video-card__play {
	background: var(--aadigital-color-accent);
	color: #fff;
}

.r1-video-card__category {
	margin: 0;
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-heading);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.r1-video-card__title {
	margin: 0;
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.r1-video-card__title a {
	color: var(--aadigital-color-text);
	text-decoration: none;
}

.r1-video-card__title a:hover,
.r1-video-card__title a:focus-visible {
	color: var(--aadigital-color-accent);
}

@media (max-width: 959px) {
	.r1-video-highlight__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

html[data-theme="dark"] .r1-video-card__title a {
	color: #e3e3e3;
}

html[data-theme="dark"] .r1-breaking {
	background: #c4000a;
}

@media (max-width: 559px) {
	.r1-breaking {
		margin-block: 20px;
	}

	.r1-breaking__tag {
		margin-block-start: -26px;
		padding-inline: 8px;
		font-size: 15px;
	}

	.r1-breaking__text {
		font-size: 15px;
		line-height: 1.5;
	}
}

.r1-news-tv__lead {
	display: flex;
	flex: 0 0 140px;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	padding-block-start: 30px;
}

.r1-news-tv__label {
	color: #fff;
	font-family: var(--aadigital-font-heading);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.2px;
	line-height: 1.15;
}

.r1-news-tv__label::after {
	content: "TV";
	display: inline-block;
	margin-inline-start: 4px;
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--aadigital-color-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	vertical-align: super;
}

.r1-news-tv__more {
	display: inline-block;
	margin-block-start: auto;
	padding: 8px 20px;
	white-space: nowrap;
	border-radius: 20px;
	background: var(--aadigital-color-accent);
	color: #fff;
	font-family: var(--aadigital-font-heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.r1-news-tv__more:hover,
.r1-news-tv__more:focus-visible {
	background: var(--aadigital-color-accent-strong);
	color: #fff;
}

.r1-news-tv__list {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r1-news-tv__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 8px;
	border-radius: 8px;
	background: #fff;
	color: #0d0d0d;
	text-decoration: none;
}

.r1-news-tv__media {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 3 / 2;
	background: var(--aadigital-color-surface-muted);
}

.r1-news-tv__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Clip markers: a small play badge and the duration, both floating over the
   thumbnail so the strip reads as video at a glance. */
.r1-news-tv__media {
	position: relative;
}

.r1-news-tv__play {
	position: absolute;
	inset-block-end: 6px;
	inset-inline-start: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgb(0 0 0 / 72%);
	color: #fff;
}

.r1-news-tv__duration {
	position: absolute;
	inset-block-end: 6px;
	inset-inline-end: 6px;
	padding: 1px 5px;
	border-radius: 3px;
	background: rgb(0 0 0 / 72%);
	color: #fff;
	font-family: var(--aadigital-font-heading);
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
}

.r1-news-tv__title {
	display: -webkit-box;
	overflow: hidden;
	color: #0d0d0d;
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.r1-news-tv__card:hover .r1-news-tv__title,
.r1-news-tv__card:focus-visible .r1-news-tv__title {
	color: var(--aadigital-color-accent);
}

@media (max-width: 959px) {
	/* The reference keeps the label column beside the cards and lets the cards
	   run off the edge; we keep that shape but make the row swipeable so the
	   other clips stay reachable. */
	.r1-news-tv {
		gap: 14px;
		padding: 16px;
	}

	.r1-news-tv__body {
		flex-direction: row;
		gap: 16px;
	}

	.r1-news-tv__lead {
		flex: 0 0 96px;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 14px;
		padding-block-start: 4px;
	}

	.r1-news-tv__label {
		font-size: 18px;
		line-height: 1.2;
	}

	.r1-news-tv__more {
		margin-block-start: 0;
		padding: 7px 14px;
		font-size: 12px;
	}

	.r1-news-tv__list {
		display: flex;
		gap: 12px;
		min-width: 0;
		padding-block-end: 8px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		/* Scrollbar tipis dibiarkan terlihat agar pembaca tahu masih ada kartu
		   di sampingnya (sebelumnya disembunyikan total). */
		scrollbar-width: thin;
		scrollbar-color: rgb(255 255 255 / 35%) transparent;
	}

	.r1-news-tv__list::-webkit-scrollbar {
		display: block;
		width: 6px;
		height: 6px;
	}

	.r1-news-tv__list::-webkit-scrollbar-track {
		background: transparent;
	}

	.r1-news-tv__list::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: rgb(255 255 255 / 35%);
	}

	/* Cards keep a legible floor on phones and stretch a little on tablets, so
	   the row never leaves a gap at the end. */
	.r1-news-tv__list > li {
		flex: 0 0 auto;
		width: clamp(92px, 22%, 168px);
		scroll-snap-align: start;
	}

	.r1-news-tv__card {
		height: auto;
	}

	.r1-news-tv__media {
		aspect-ratio: auto;
		height: 90px;
	}

	.r1-news-tv__title {
		font-size: 12px;
		line-height: 1.4;
	}
}

@media (max-width: 559px) {
	.r1-news-tv__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Masthead: wordmark on the left, leaderboard on the right ---------------- */

/* The reference paints this row white over the grey utility strip. */
.r1-masthead-band {
	background: var(--aadigital-color-surface);
}

.r1-masthead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-block-size: 98px;
}

/* The leaderboard keeps its 728 px slot, so the wordmark takes the remainder
   instead of pushing the banner narrower than its creative. */
.r1-masthead .site-branding {
	flex: 1 1 0;
	min-width: 0;
}

.r1-masthead .site-branding img {
	max-width: 100%;
}

.r1-masthead .site-logo-text {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.r1-masthead .site-logo-text {
	font-size: 34px;
	line-height: 1.1;
}

.r1-masthead .custom-logo {
	width: auto;
	max-block-size: 55px;
}

.r1-masthead__ad {
	display: flex;
	flex: 0 0 728px;
	align-items: center;
	justify-content: center;
	min-block-size: 90px;
	margin: 0;
	background: #fafafa;
}

.r1-masthead__ad .ad-slot {
	margin-block: 0;
	margin-inline: auto;
}

/* The reference floats its "Advertisement" caption over the banner instead of
   stacking it above, which keeps the masthead at 98px. */
.r1-masthead__ad .aadigital-ad {
	position: relative;
}

.r1-masthead__ad .aadigital-ad__label {
	position: absolute;
	inset-block-start: 6px;
	inset-inline: 0;
	margin: 0;
	text-align: center;
	pointer-events: none;
}

/* Mobile top banner: desktop has no equivalent (the leaderboard sits beside
   the wordmark), so the wrapper only appears where that leaderboard is
   dropped at 640px. ------------------------------------------------ */

.r1-topad {
	display: none;
}

/* Header leaderboard: the band that follows the "More news" strip --------- */

.r1-below-more {
	padding-block: 18px;
	background: var(--aadigital-color-surface);
}

.r1-below-more__inner {
	display: flex;
	justify-content: center;
}

.r1-below-more .ad-slot {
	margin-block: 0;
	margin-inline: auto;
}

.r1-below-more .aadigital-ad {
	width: 100%;
}

/* "More news" strip under the menu bar ------------------------------------ */

.r1-more-news {
	background: #fafafa;
	border-block-end: 1px solid var(--aadigital-color-border);
}

.r1-more-news__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	align-items: center;
	min-block-size: 55px;
	padding-block: 8px;
}

.r1-more-news__label {
	font-family: var(--aadigital-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
}

.r1-more-news__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r1-more-news__list a {
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.r1-more-news__list a:hover,
.r1-more-news__list a:focus-visible {
	color: var(--aadigital-color-accent);
}

html[data-theme="dark"] .r1-more-news {
	background: var(--aadigital-color-surface-muted);
}

/* Header ----------------------------------------------------------------- */

/* The reference separates its 48px utility strip from the white menu row with
   a light grey band, so the strip paints the whole width and the nav bar keeps
   its own surface. */
.site-header {
	background: #fafafa;
	border-block-end: 1px solid var(--aadigital-color-border);
}

.site-topbar {
	/* 40px lead logo + 2 x 4px = the reference's 48px utility strip. */
	min-block-size: 48px;
	padding-block: 4px;
	gap: 20px;
	/* The reference never wraps this strip: the search pill gives way instead,
	   and past that point the row scrolls sideways. */
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.site-topbar::-webkit-scrollbar {
	display: none;
}

/* The drawer button already owns the mobile menu, so the base theme's "Menu"
   toggle would be a duplicate. */
.site-topbar .menu-toggle,
.site-topbar .menu-toggle[hidden] {
	display: none;
}

.site-logo-text {
	color: var(--aadigital-color-accent);
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.site-topbar-center {
	flex: 1 1 auto;
	justify-content: center;
	min-width: 150px;
}

/* Without the old logo strip the row is just the search pill + actions, so the
   pill starts at the container edge and takes the leftover width instead of
   sitting in a fixed 310px block. */
@media (min-width: 700px) {
	.site-topbar .site-topbar-center {
		justify-content: flex-start;
	}
}

/* Phone-only header parts: the wordmark and the search toggle live in the
   topbar so the strip is complete on its own, like the reference's mobile
   header. */
/* Specific enough to beat the later `.r1-icon-button` rule. */
.site-topbar .r1-topbar-brand,
.site-topbar .r1-topbar-brand-logo,
.site-topbar .r1-search-toggle,
.site-topbar .r1-search-panel {
	display: none;
}

.site-topbar-right {
	flex: 0 0 auto;
}

/* Search pill: 32px white field, 1px #e3e3e3 border, 128px radius, with the
   magnifier sitting 18px in from the right edge. Without the old logo strip the
   row only holds the pill + actions, so the pill stretches over the leftover
   width instead of a fixed 310px block. */
.site-topbar-center .search-form {
	position: relative;
	width: 100%;
	min-width: 150px;
	max-width: none;
}

.site-topbar-center .search-field {
	width: 100%;
	height: 32px;
	padding: 4px 48px 4px 16px;
	border: 1px solid #e3e3e3;
	border-radius: 128px;
	background: #fff;
	color: var(--aadigital-color-text);
	font-size: 14px;
}

.site-topbar-center .search-field::placeholder {
	color: #757575;
	opacity: 1;
}

.site-topbar-center .search-field:focus {
	border-color: #c9c9c9;
	background: #fff;
	outline: 2px solid rgb(17 17 17 / 12%);
	outline-offset: 0;
}

.site-topbar-center .search-submit {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #111;
}

.site-topbar-center .search-submit svg {
	width: 18px;
	height: 18px;
}

.site-topbar-center .search-submit:hover,
.site-topbar-center .search-submit:focus-visible {
	background: transparent;
	color: #000;
}

.site-topbar-center .search-submit:focus-visible {
	outline: 2px solid rgb(17 17 17 / 35%);
	outline-offset: -4px;
	border-radius: 128px;
}

/* Network link: icon + label, no filled button. */
.site-topbar .network-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
}

.site-topbar .network-button__icon {
	width: 18px;
	height: 18px;
	color: var(--aadigital-color-accent);
}

.site-topbar .network-button__caret {
	width: 12px;
	height: 12px;
	margin-inline-start: -2px;
}

.site-topbar .network-button:hover,
.site-topbar .network-button:focus-visible {
	background: transparent;
	color: var(--aadigital-color-accent);
}

/* Navigation: white bar with red active underline. */
.site-navigation-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	border-block-end: 1px solid var(--aadigital-color-border);
	background: var(--aadigital-color-surface);
}

/* Sticky topbar + nav at every width ------------------------------------- */

/* `position: sticky` only holds while the parent is still in view, so the
   wrappers around the topbar are flattened: `.site-header` and its first
   `.site-header__inner` become `display: contents`, which makes the topbar and
   the nav direct children of <body>. What the flattened wrappers used to paint
   — the inner column (max width + gutter) and the light grey band behind the
   strip — moves onto the topbar, so the desktop layout does not shift.
   `--r1-topbar-h` is measured by `initStickyHeader()`; the nav parks directly
   under the topbar at any width. */
.site-header,
.site-header > .site-header__inner:first-child {
	display: contents;
}

.site-topbar {
	position: sticky;
	inset-block-start: 0;
	z-index: 30;
	width: 100%;
	max-width: var(--aadigital-wide-width);
	margin-inline: auto;
	padding-inline: var(--aadigital-gutter);
	background: #fafafa;
}

html[data-theme="dark"] .site-topbar {
	background: var(--aadigital-color-surface);
}

.site-navigation-bar {
	position: sticky;
	inset-block-start: var(--r1-topbar-h, 48px);
	z-index: 29;
	background: var(--aadigital-color-surface);
	transition: box-shadow 0.15s ease;
}

html.r1-header-stuck .site-topbar {
	box-shadow: 0 1px 0 var(--aadigital-color-border);
}

html.r1-header-stuck .site-navigation-bar {
	box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

/* Anchors and "back to top" must clear the pinned bars. */
html {
	scroll-padding-block-start: calc(var(--r1-topbar-h, 48px) + 52px);
}

.site-navigation-bar .primary-navigation {
	flex: 1 1 auto;
	min-width: 0;
}

.primary-navigation .primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation .primary-menu a {
	padding: 0 0 10px;
	color: #0b0b0b;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.primary-navigation .primary-menu a:hover,
.primary-navigation .primary-menu a:focus-visible {
	background: transparent;
	color: var(--aadigital-color-accent);
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a {
	background: transparent;
	box-shadow: inset 0 -4px 0 #ff0000;
	color: var(--aadigital-color-accent);
}

.primary-navigation .sub-menu {
	border-block-start: 2px solid var(--aadigital-color-accent);
}

.primary-navigation .sub-menu a {
	color: var(--aadigital-color-text);
	box-shadow: none;
}

.primary-navigation .sub-menu a:hover,
.primary-navigation .sub-menu a:focus-visible {
	background: var(--aadigital-color-surface-muted);
	color: var(--aadigital-color-accent);
}

@media (max-width: 959px) {
	/* Without the base "Menu" toggle there is nothing to collapse the bar into,
	   so it scrolls sideways like the reference instead of stacking. */
	.primary-navigation,
	.primary-navigation .primary-menu {
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.primary-navigation::-webkit-scrollbar,
	.primary-navigation .primary-menu::-webkit-scrollbar {
		display: none;
	}

	.primary-navigation .primary-menu {
		flex-wrap: nowrap;
		gap: 18px;
	}

	.primary-navigation .primary-menu a {
		padding: 10px 0;
		white-space: nowrap;
	}
}

/* Hero: one lead story plus a compact list ------------------------------- */

.r1-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-block-end: 24px;
}

/* The reference splits the row in half and pads the list, instead of a gap. */
.r1-hero__lead {
	display: block;
	color: inherit;
	text-decoration: none;
}

.r1-hero__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 512 / 412;
	border-radius: 7px;
	background: #101010;
}

.r1-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.r1-hero__lead:hover .r1-hero__media img,
.r1-hero__lead:focus-visible .r1-hero__media img {
	transform: scale(1.02);
}

.r1-hero__body {
	display: block;
	padding-block-start: 10px;
}

.r1-hero__kicker {
	display: block;
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-heading);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.r1-hero__title {
	display: block;
	margin-block-start: 4px;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.5;
}

.r1-hero__lead:hover .r1-hero__title,
.r1-hero__lead:focus-visible .r1-hero__title {
	color: var(--aadigital-color-accent);
}

.r1-hero__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0 0 0 16px;
	list-style: none;
}

.r1-hero__item {
	margin: 0;
}

.r1-hero__item-link {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	color: #222;
	text-decoration: none;
}

.r1-hero__item-link img {
	display: block;
	width: 128px;
	height: 88px;
	border-radius: 7px;
	object-fit: cover;
}

.r1-hero__item-kicker {
	display: block;
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-heading);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.r1-hero__item-title {
	display: block;
	margin-block-start: 2px;
	font-family: var(--aadigital-font-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.r1-hero__item-link:hover .r1-hero__item-title,
.r1-hero__item-link:focus-visible .r1-hero__item-title {
	color: var(--aadigital-color-accent);
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 900px) {
	.r1-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.r1-hero__title {
		font-size: 20px;
	}
}

@media (max-width: 699px) {
	/* The reference swaps to its mobile header here: wordmark + icon-only
	   actions in one row. Nothing is cropped or scrolled — the strip fits from
	   the first paint, and search moves into a panel under it. */
	.site-topbar {
		gap: 8px;
		padding-block: 6px;
		flex-wrap: nowrap;
		overflow: visible;
		/* The wordmark already sits in the strip, so the strip is white here
		   instead of the desktop's light grey band. */
		background: var(--aadigital-color-surface);
	}

	.site-topbar-center {
		display: none;
	}

	.site-topbar .r1-topbar-brand {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		min-width: 0;
		color: var(--aadigital-color-accent);
		text-decoration: none;
	}

	/* Sites with a custom logo use it here; the text wordmark above is then
	   not printed at all, so the strip never shows both. */
	.site-topbar .r1-topbar-brand-logo {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		min-width: 0;
	}

	.site-topbar .r1-topbar-brand-logo .custom-logo-link {
		display: inline-flex;
		align-items: center;
		max-width: 100%;
	}

	.site-topbar .r1-topbar-brand-logo .custom-logo {
		display: block;
		width: auto;
		max-width: 100%;
		block-size: auto;
		max-block-size: 30px;
	}

	.r1-topbar-brand .site-logo-text {
		display: block;
		overflow: hidden;
		max-width: 100%;
		font-size: 21px;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.r1-topbar-brand .custom-logo {
		width: auto;
		max-block-size: 32px;
		max-width: 100%;
	}

	.site-topbar .r1-search-toggle {
		display: inline-flex;
	}

	.site-topbar-right {
		gap: 4px;
		margin-inline-start: auto;
	}

	/* The wordmark already sits in the strip, and the leaderboard is off. */
	.r1-masthead-band {
		display: none;
	}

	.site-topbar .r1-search-panel {
		display: block;
		padding-block: 4px 10px;
		background: inherit;
	}

	.site-topbar .r1-search-panel[hidden] {
		display: none;
	}

	.r1-search-panel .search-form {
		position: relative;
		width: 100%;
	}

	.r1-search-panel .search-field {
		width: 100%;
		height: 38px;
		padding-inline: 14px 44px;
		border: 1px solid #e3e3e3;
		border-radius: 999px;
		background: #fff;
		font-size: 14px;
	}

	.r1-search-panel .search-submit {
		position: absolute;
		inset-block-start: 0;
		inset-inline-end: 4px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 38px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--aadigital-color-accent);
		cursor: pointer;
	}

	.r1-search-panel .search-submit svg {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 640px) {
	/* Undo the base theme's two-row stack: the strip stays inline. */
	.site-topbar {
		gap: 12px;
		padding-block: 4px;
		flex-wrap: nowrap;
	}

	.site-topbar-center {
		order: 0;
		flex: 1 1 auto;
		min-width: 150px;
	}

	.site-topbar-center .search-form {
		max-width: 310px;
	}

	.site-topbar .network-button {
		padding: 0;
		border: 0;
		background: transparent;
	}

	.site-logo-text {
		font-size: 22px;
	}

	.r1-hero__lead {
		aspect-ratio: 4 / 3;
	}

	.r1-hero__body {
		padding: 14px 16px;
	}

	.r1-hero__item-link {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.r1-hero__item-link img {
		width: 96px;
		height: 62px;
	}
}

@media (max-width: 959px) {
	/* "More news" stays a single tidy line on smaller screens: a bold label,
	   then the portals at 14px — the reference never lets it wrap. */
	.r1-more-news__inner {
		flex-wrap: nowrap;
		gap: 4px 24px;
		min-block-size: 44px;
		padding-block: 6px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.r1-more-news__inner::-webkit-scrollbar {
		display: none;
	}

	.r1-more-news__label {
		font-size: 16px;
		white-space: nowrap;
	}

	.r1-more-news__list {
		flex-wrap: nowrap;
		gap: 4px 24px;
	}

	.r1-more-news__list a {
		font-size: 14px;
		white-space: nowrap;
	}
}

@media (max-width: 640px) {
	/* The reference drops the leaderboard beside the wordmark on phones, so the
	   band shrinks to the logo instead of keeping the 90px ad height, and the
	   mobile banner above the header takes over. */
	.r1-masthead__ad {
		display: none;
	}

	.r1-topad {
		display: block;
		padding: 8px 12px;
		background: #fafafa;
	}

	.r1-topad .ad-slot,
	.r1-topad .aadigital-ad-slot {
		display: flex;
		justify-content: center;
		margin: 0;
	}

	.r1-topad img {
		display: block;
		max-width: 100%;
		height: auto;
	}

	.r1-masthead {
		min-block-size: 0;
		padding-block: 12px 8px;
	}
}

/* Tablet: the leaderboard no longer fits beside the wordmark, so it wraps to a
   second line. Centre both rows instead of leaving them pinned to the left. */
@media (min-width: 700px) and (max-width: 959px) {
	.r1-masthead {
		align-items: center;
		justify-content: center;
	}
}

@media (max-width: 400px) {
	/* Very narrow phones: give the cards more of the panel. */
	.r1-news-tv__lead {
		flex-basis: 84px;
	}

	.r1-news-tv__label {
		font-size: 16px;
	}

	.r1-news-tv__list > li {
		width: clamp(84px, 40%, 120px);
	}
}

@media (max-width: 560px) {
	/* Squeeze the groups so a phone still shows the whole strip; if a long site
	   name ever pushes past it, the row scrolls instead of wrapping. */
	.site-topbar {
		gap: 10px;
	}

	.site-topbar-center {
		min-width: 120px;
	}

	.site-topbar-center .search-form {
		min-width: 120px;
	}

	.site-topbar .network-button span,
	.site-topbar .network-button__caret {
		display: none;
	}

	.site-topbar-right {
		gap: 2px;
	}

	.primary-navigation .primary-menu {
		gap: 12px;
	}

	.primary-navigation .primary-menu a {
		padding: 9px 0;
		font-size: 14px;
	}
}

/* Section headers and card grids (reference: bar + 20px title + red pill) --- */

@media (min-width: 1100px) {
	/* The reference aligns header and nav to the 1024px container, no inset.
	   `.site-topbar` carries the column inset now that the inner wrapper is
	   flattened for the sticky header, so it drops its inset here too. */
	.site-header__inner,
	.site-topbar,
	.primary-navigation {
		padding-inline: 0;
	}
}

.home-block {
	display: flow-root;
	margin-block-end: 30px;
	padding: 0;
	background: transparent;
	border: 0;
}

.home-block__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-block-start: 10px;
	margin-block-end: 16px;
}

.home-block__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.home-block__heading::before {
	content: "";
	flex: 0 0 5px;
	width: 5px;
	height: 20px;
	border-radius: 3px;
	background: #ff0000;
}

.home-block__title {
	margin: 0;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
}

.home-block__more,
.home-block__more:hover,
.home-block__more:focus-visible {
	display: inline-flex;
	align-items: center;
	padding: 4px 16px;
	border-radius: 32px;
	background: var(--aadigital-color-accent);
	color: #fff;
	font-family: var(--aadigital-font-heading);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: none;
	text-decoration: none;
}

/* Light panel around the three cards, like the reference "Widget Grid". */
.home-block--grid .home-block__carousel {
	padding: 20px;
	border-radius: 6px;
	background: var(--aadigital-color-surface-muted);
}

.home-block--grid .home-block__nav {
	display: none;
}

.home-block__grid {
	display: grid;
	grid-auto-flow: row;
	grid-auto-columns: auto;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	overflow: visible;
	scroll-snap-type: none;
	list-style: none;
}

.home-block__grid > li {
	width: auto;
}

.home-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.home-card__media {
	display: block;
	overflow: hidden;
	border-radius: 7px;
	background: #f2f2f2;
}

.home-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 233 / 139;
	object-fit: cover;
}

.home-card__category {
	margin: 0;
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-heading);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.home-card__title {
	margin: 0;
	font-family: var(--aadigital-font-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.home-card__title a {
	color: var(--aadigital-color-text);
	text-decoration: none;
}

.home-card__title a:hover,
.home-card__title a:focus-visible {
	color: var(--aadigital-color-accent);
}

@media (max-width: 699px) {
	/* Di ponsel setiap blok beranda (Berita Terkini, Berita, Foto, Video,
	   Lainnya) jadi strip horizontal: kartu bergeser ke samping, bukan
	   bertumpuk ke bawah (sebelumnya satu kolom setinggi ~830 px). Tanpa
	   panah dan tanpa JavaScript — scroller native sudah cukup. */
	.home-block--grid .home-block__grid {
		display: flex;
		flex-flow: row nowrap;
		align-items: stretch;
		gap: 14px;
		padding-block-end: 10px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		/* Scrollbar tipis dibiarkan terlihat agar pembaca tahu masih ada kartu
		   di sampingnya (sebelumnya disembunyikan total). */
		scrollbar-width: thin;
		scrollbar-color: var(--aadigital-color-scrollbar) transparent;
		-webkit-overflow-scrolling: touch;
	}

	.home-block--grid .home-block__grid::-webkit-scrollbar {
		display: block;
		width: 6px;
		height: 6px;
	}

	.home-block--grid .home-block__grid::-webkit-scrollbar-track {
		background: transparent;
	}

	.home-block--grid .home-block__grid::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: var(--aadigital-color-scrollbar);
	}

	.home-block--grid .home-block__grid > li {
		flex: 0 0 clamp(200px, 60vw, 240px);
		width: auto;
		min-width: 0;
		scroll-snap-align: start;
	}

	.home-block--grid .home-card {
		height: 100%;
	}

	/* Kartu selebar ±220 px butuh thumbnail lebih pendek agar judul kebaca. */
	.home-block--grid .home-card__media img {
		aspect-ratio: 16 / 10;
	}

	.home-block__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 479px) {
	.home-block__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* "Berita Terkini" heading mirrors the block headers. */
.news-feed-judul-block {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 0;
	background: transparent;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
}

.news-feed-judul-block::before {
	content: "";
	flex: 0 0 5px;
	width: 5px;
	height: 20px;
	border-radius: 3px;
	background: #ff0000;
}

.news-feed-judul-block span {
	padding: 0;
	background: transparent;
}


/* Feed rows: 164x109 thumbnail, 16px gap, 20px headline (reference "indeks"). */
.news-feed-list {
	margin: 0 0 25px;
	padding: 0;
	border: 0;
}

.news-feed-link {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.news-feed-link figure {
	flex: 0 0 164px;
	width: 164px;
	margin: 0;
}

.news-feed-link figure img {
	display: block;
	width: 164px;
	height: 109px;
	border-radius: 7px;
	object-fit: cover;
}

.news-feed-text-block {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
}

.news-feed-list .kategori {
	margin: 0;
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-heading);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: none;
}

.news-feed-list .news-feed-judul {
	margin: 3px 0 0;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 30px;
}

.news-feed-list .news-feed-judul a,
.news-feed-list:hover .news-feed-judul,
.news-feed-link:hover .news-feed-judul {
	color: var(--aadigital-color-text);
}

.news-feed-link:hover .news-feed-judul,
.news-feed-link:focus-visible .news-feed-judul {
	color: var(--aadigital-color-accent);
}

/* The reference keeps the row free of dates. */
.news-feed-list .tanggal {
	display: none;
}

@media (max-width: 559px) {
	.news-feed-link {
		gap: 12px;
	}

	.news-feed-link figure,
	.news-feed-link figure img {
		flex-basis: 120px;
		width: 120px;
		height: 80px;
	}

	.news-feed-list .news-feed-judul {
		font-size: 16px;
		line-height: 1.45;
	}
}

/* Dark mode: red text and the card panel need the dark-surface palette. */
html[data-theme="dark"] .r1-hero__kicker,
html[data-theme="dark"] .r1-hero__item-kicker,
html[data-theme="dark"] .home-card__category,
html[data-theme="dark"] .news-feed-list .kategori,
html[data-theme="dark"] .home-block__title,
html[data-theme="dark"] .news-feed-judul-block {
	color: var(--aadigital-color-accent-dark, var(--aadigital-color-brand));
}

html[data-theme="dark"] .home-block--grid .home-block__carousel {
	background: var(--aadigital-color-surface-muted);
}

html[data-theme="dark"] .home-card__title a,
html[data-theme="dark"] .news-feed-list .news-feed-judul,
html[data-theme="dark"] .r1-hero__title {
	color: var(--aadigital-color-text);
}

/* Widget Slider: horizontally scrolling cards with arrows (reference). */
.home-block--slider .home-block__carousel {
	position: relative;
}

.home-block--slider .home-block__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 295px;
	grid-template-columns: none;
	gap: 16px;
	margin: 0;
	padding: 0 0 6px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}

.home-block--slider .home-block__grid::-webkit-scrollbar {
	display: none;
}

.home-block--slider .home-block__grid > li {
	width: auto;
	scroll-snap-align: start;
}

.home-block--slider .home-card__media {
	border-radius: 7px;
}

.home-block--slider .home-card__media img {
	aspect-ratio: 295 / 197;
}

.home-block--slider .home-block__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	top: -46px;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #d60000;
	color: #fff;
	font-size: 18px;
	line-height: 1;
}

.home-block--slider .home-block__nav--prev {
	inset-inline-end: 34px;
	inset-inline-start: auto;
}

/* "Terkini" list widget keeps the feed row rhythm. */
.home-block--list {
	margin-block-end: 30px;
}

/* Leaderboard around the widgets. */
.home-block__ad {
	margin-block: 20px 0;
}

.home-block__ad--top {
	margin-block: 0 20px;
}

/* Full-width row inside the two-column grid (reference runs some ads across). */
.site-main__full {
	grid-column: 1 / -1;
	width: 100%;
}

.site-main__full .aadigital-ad-slot,
.site-main__full .aadigital-ad {
	display: flex;
	justify-content: center;
	margin-block: 0;
	margin-inline: auto;
	padding: 0;
	border: 0;
	background: transparent;
}

.home-block__ad .aadigital-ad-slot,
.home-block__ad .aadigital-ad {
	margin-block: 0;
	margin-inline: auto;
	padding: 0;
	border: 0;
	background: transparent;
}

/* Round the remaining photo shapes so the page reads like the reference. */
.widget img,
.post-card__media img,
.widget-post-list img,
.widget .wp-post-image {
	border-radius: 7px;
}

/* Sidebar widgets -------------------------------------------------------- */


/* The reference sidebar is a 32px stack of rounded panels: black cards for
   picture lists, a light panel for the numbered topics. */
.widget-area {
	gap: 32px;
	align-content: start;
}

.sidebar-right,
.single-sidebar {
	gap: 32px;
}

.widget {
	padding: 0;
	background: transparent;
	border: 0;
}

/* Titles are plain 18/700 — the reference has no accent bar. */
.widget-title {
	display: block;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	letter-spacing: normal;
	text-transform: none;
}

.widget-title::before {
	content: none;
}

/* Numbered topics: light panel, 18px radius, tight rows. */
.widget_tag_cloud {
	padding: 16px 10px;
	border-radius: 18px;
	background: #fafafa;
	box-shadow: 0 1px 2px rgb(17 17 17 / 5%);
}

.widget_tag_cloud .widget-title {
	margin-block-end: 8px;
	padding-inline: 6px;
}

/* Picture lists: black card with white titles. */
.widget--thumbnail,
.widget--dark {
	padding: 20px 16px;
	border-radius: 4px;
	background: #000;
	box-shadow: 0 1px 2px rgb(17 17 17 / 6%);
}

.widget--thumbnail .widget-title,
.widget--dark .widget-title {
	color: #fff;
}

/* Keep the card titles legible on the black panel; the shared list rules set a
   dark colour with the same specificity, so these are scoped deeper. */
.widget--thumbnail .widget-post-list .post-card__title a,
.widget--dark .widget-post-list .post-card__title a {
	color: #e3e3e3;
}

.widget--thumbnail .widget-post-list .post-card__title a:hover,
.widget--thumbnail .widget-post-list .post-card__title a:focus-visible,
.widget--dark .widget-post-list .post-card__title a:hover,
.widget--dark .widget-post-list .post-card__title a:focus-visible {
	color: #fff;
}

.widget--thumbnail .widget-post-list .category-label,
.widget--dark .widget-post-list .category-label {
	display: none;
}

/* Numbered topics share the light panel with the tag list. */
.widget--numbered {
	padding: 16px 10px;
	border-radius: 18px;
	background: #fafafa;
	box-shadow: 0 1px 2px rgb(17 17 17 / 5%);
}

.widget--numbered .widget-title {
	margin-block-end: 8px;
	padding-inline: 6px;
}

/* The 300x250 rectangle that opens the column; its caption floats over the
   banner so the block stays 250px tall like the reference. */
.r1-sidebar-ad {
	position: relative;
	display: flex;
	justify-content: center;
	margin: 0;
}

.r1-sidebar-ad .aadigital-ad__label {
	position: absolute;
	inset-block-start: 6px;
	inset-inline: 0;
	z-index: 1;
	margin: 0;
	text-align: center;
	pointer-events: none;
}

.r1-sidebar-ad .ad-slot,
.r1-sidebar-ad .aadigital-ad {
	margin-block: 0;
	margin-inline: auto;
}

/* Opinion list keeps a plain white panel. */
.widget_aadigital_opini {
	padding: 16px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 2px rgb(17 17 17 / 5%);
}

/* E-Paper carousel and the plain text widget stay on the page background. */
.widget_aadigital_latest_epaper,
.widget_text {
	padding: 0;
	background: transparent;
}

.widget .textwidget {
	color: var(--aadigital-color-text);
	font-size: 14px;
	line-height: 1.5;
}

.widget .textwidget > :first-child {
	margin-block-start: 0;
}

.widget .textwidget > :last-child {
	margin-block-end: 0;
}

/* Thumbnail list --------------------------------------------------------- */

.widget-post-list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget-post-list > li,
.widget-post-list > li + li {
	margin: 0;
	padding: 0;
	border: 0;
}

/* The in-feed widget spans the article column, so its thumbs get more room. */
.news-feed-widget .widget-post-list {
	gap: 18px;
}

.news-feed-widget .widget-post-list .post-card--compact .post-card__media {
	flex: 0 0 132px;
	width: 132px;
	height: 92px;
}

.news-feed-widget .widget-post-list .post-card__title {
	font-size: 16px;
}

.widget-post-list .post-card--compact {
	gap: 12px;
}

/* 84px square thumbs and 14/700 titles, like the reference card rows. */
.widget-post-list .post-card--compact .post-card__media {
	flex: 0 0 84px;
	width: 84px;
	height: 84px;
	border-radius: 8px;
	overflow: hidden;
}

.widget-post-list .post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.widget-post-list .post-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Title first, category underneath, like the reference list widgets. */
.widget-post-list .post-card__title {
	order: 1;
	margin: 0;
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: 0;
}

.widget-post-list .post-card__title a {
	display: -webkit-box;
	overflow: hidden;
	color: var(--aadigital-color-text);
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.widget-post-list .category-label {
	order: 2;
	font-family: var(--aadigital-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.widget-post-list a:hover,
.widget-post-list a:focus-visible {
	color: var(--aadigital-color-accent);
}

/* Ranked list ------------------------------------------------------------ */

.widget-post-list--ranked {
	counter-reset: pst-rank;
	gap: 17px;
}

.widget-rank {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	column-gap: 10px;
	row-gap: 0;
	counter-increment: pst-rank;
}

.widget-rank::before {
	content: counter(pst-rank, decimal-leading-zero);
	grid-row: 1;
	color: var(--aadigital-color-muted);
	font-family: var(--aadigital-font-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

/* Outline the counters where the browser supports it; the muted fill above is
   the fallback. */
@supports (-webkit-text-stroke: 1px #000) {
	.widget-rank::before {
		color: transparent;
		-webkit-text-stroke: 0.5px #8f97a3;
	}
}

.widget-rank__title {
	margin: 0;
	font-family: var(--aadigital-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: normal;
}

.widget-rank__title a {
	display: -webkit-box;
	overflow: hidden;
	color: var(--aadigital-color-text);
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.widget-rank .category-label {
	display: none;
}

/* Tag cloud, rendered as the numbered topic list the reference uses. */
.widget_tag_cloud .tagcloud {
	counter-reset: pst-tag;
	display: grid;
	gap: 17px;
}

.widget_tag_cloud .tagcloud a {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	column-gap: 10px;
	align-items: baseline;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 16px !important;
	font-weight: 700;
	line-height: 24px;
	text-decoration: none;
	counter-increment: pst-tag;
}

.widget_tag_cloud .tagcloud a::before {
	content: counter(pst-tag, decimal-leading-zero);
	color: var(--aadigital-color-muted);
	font-family: var(--aadigital-font-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

@supports (-webkit-text-stroke: 1px #000) {
	.widget_tag_cloud .tagcloud a::before {
		color: transparent;
		-webkit-text-stroke: 0.5px #8f97a3;
	}
}

.widget_tag_cloud .tagcloud a:hover,
.widget_tag_cloud .tagcloud a:focus-visible {
	color: var(--aadigital-color-accent);
}

/* "Lihat Semua" pill ----------------------------------------------------- */

.widget-more {
	display: block;
	margin-block-start: 18px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--aadigital-color-accent);
	color: #fff;
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background var(--aadigital-transition);
}

.widget-more:hover,
.widget-more:focus-visible {
	background: var(--aadigital-color-accent-strong);
	color: #fff;
}

/* Dark card widget ("Pilihan Redaksi") ----------------------------------- */

/* Matches the reference black card: 4px radius, 20/16 padding, a lead card and
   84px rows, all on #000. */
.widget.widget--dark {
	overflow: hidden;
	padding: 20px 16px;
	border: 0;
	border-radius: 4px;
	background: #000;
	color: #fff;
}

.widget--dark .widget-title {
	margin: 0 0 16px;
	padding: 0;
	color: #fff;
}

.widget--dark .widget-post-list {
	gap: 16px;
	padding: 0;
	margin: 0;
}

.widget--dark .widget-post-list > li {
	margin: 0;
}

/* Lead item: photo above the headline. */
.widget--dark .widget-post-list > li:first-child .post-card--compact {
	flex-direction: column;
	gap: 8px;
}

.widget--dark .widget-post-list > li:first-child .post-card__media {
	flex: 0 0 auto;
	width: 100%;
	height: auto;
	aspect-ratio: 276 / 184;
	border-radius: 8px;
}

.widget--dark .widget-post-list > li:first-child .post-card__body {
	padding: 0;
}

.widget--dark .widget-post-list .post-card--compact {
	gap: 12px;
}

.widget--dark .widget-post-list .post-card--compact .post-card__media {
	flex: 0 0 84px;
	width: 84px;
	height: 84px;
	border-radius: 8px;
}

.widget--dark .post-card__title,
.widget--dark .widget-post-list > li:first-child .post-card__title {
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: normal;
}

.widget--thumbnail .widget-post-list .post-card__title {
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: normal;
}

.widget--dark .widget-post-list .post-card__title a {
	color: #e3e3e3;
}

.widget--dark .widget-post-list .post-card__title a:hover,
.widget--dark .widget-post-list .post-card__title a:focus-visible {
	color: #fff;
}

.widget--dark .widget-post-list .category-label,
.widget--dark .post-card__meta {
	display: none;
}

.widget--dark .widget-more {
	position: relative;
	display: block;
	margin: 16px 0 0;
	padding: 11px 34px;
	border-radius: 999px;
	background: var(--aadigital-color-accent);
	color: #fff;
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.widget--dark .widget-more::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 18px;
	width: 7px;
	height: 7px;
	border-block-start: 2px solid currentColor;
	border-inline-end: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.widget--dark .widget-more:hover,
.widget--dark .widget-more:focus-visible {
	background: var(--aadigital-color-accent-strong);
	color: #fff;
}

html[data-theme="dark"] .widget.widget--dark,
html[data-theme="dark"] .widget--thumbnail {
	background: #0b0d10;
	border: 1px solid var(--aadigital-color-border);
}

html[data-theme="dark"] .widget_tag_cloud,
html[data-theme="dark"] .widget--numbered,
html[data-theme="dark"] .widget_aadigital_opini {
	border: 1px solid var(--aadigital-color-border);
	background: var(--aadigital-color-surface-muted);
}

/* Opinion widget: alternating avatar side, red byline --------------------- */

.opini-list {
	gap: 4px;
}

.opini-item {
	gap: 10px;
	padding: 8px;
}

/* Even rows put the avatar on the right, mirroring the reference. */
.opini-item:nth-child(even) {
	flex-direction: row-reverse;
}

.opini-item__title {
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: normal;
}

.opini-item__author {
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
}

/* Sidebar icons: avatars, thumbs and the carousel arrows get a hairline lift
   so they do not sit flat on the panel. */
.opini-item__avatar img {
	box-shadow: 0 1px 2px rgb(17 17 17 / 12%);
}

.widget-post-list .post-card__media img,
.epaper-widget-list .epaper-img img {
	box-shadow: 0 1px 2px rgb(17 17 17 / 10%);
}

.epaper-widget__arrow {
	border: 1px solid #e6e6e6;
	background: #fff;
	box-shadow: 0 1px 2px rgb(17 17 17 / 10%);
}

.epaper-widget__arrow:hover,
.epaper-widget__arrow:focus-visible {
	border-color: var(--aadigital-color-accent);
}

html[data-theme="dark"] .opini-item__avatar img,
html[data-theme="dark"] .widget-post-list .post-card__media img,
html[data-theme="dark"] .epaper-widget-list .epaper-img img {
	box-shadow: 0 1px 2px rgb(0 0 0 / 45%);
}

html[data-theme="dark"] .epaper-widget__arrow {
	border-color: var(--aadigital-color-border);
	background: #0f1216;
	box-shadow: 0 1px 2px rgb(0 0 0 / 45%);
}

/* Prayer times ----------------------------------------------------------- */

.prayer-list {
	gap: 0;
	margin: 0;
}

.prayer-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-block: 9px;
	border-block-end: 1px solid var(--aadigital-color-border);
	font-size: 12px;
	letter-spacing: 0.03em;
}

.prayer-list li:last-child {
	padding-block-end: 0;
	border-block-end: 0;
}

.prayer-list__label {
	color: var(--aadigital-color-muted);
	font-weight: 700;
	text-transform: uppercase;
}

.prayer-list__time {
	color: var(--aadigital-color-text);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.prayer-credit {
	margin: 10px 0 0;
	color: var(--aadigital-color-muted);
	font-size: 11px;
}

/* E-paper ---------------------------------------------------------------- */

.epaper-widget-list .epaper-img {
	border-radius: 8px;
}

.epaper-widget__arrow {
	width: 34px;
	height: 30px;
	border-radius: 6px;
	transition: border-color var(--aadigital-transition), color var(--aadigital-transition);
}

.tanggal-epaper {
	font-family: var(--aadigital-font-heading);
	font-size: 12px;
	font-weight: 700;
}

/* Below the desktop breakpoint the sidebar becomes a full-width column, so the
   widget stack keeps its spacing but the thumbs shrink a little. */
@media (max-width: 959px) {
	.widget-area {
		gap: 26px;
	}

	.widget-post-list .post-card--compact .post-card__media {
		flex-basis: 84px;
		width: 84px;
		height: 84px;
	}
}

/* Header action buttons (dark mode + drawer) ----------------------------- */

.r1-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	/* The reference draws the moon, globe and hamburger in the brand red. */
	color: var(--aadigital-color-accent);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.r1-icon-button svg {
	width: 20px;
	height: 20px;
}

.r1-icon-button:hover,
.r1-icon-button:focus-visible {
	background: var(--aadigital-color-surface-muted);
	color: var(--aadigital-color-accent-strong);
}

.r1-icon-button:focus-visible {
	outline: 2px solid var(--aadigital-color-accent);
	outline-offset: 2px;
}

/* Light mode shows the sun, dark mode shows the moon. */
.r1-mode-toggle__sun {
	display: none;
}

html[data-theme="dark"] .r1-mode-toggle__sun {
	display: block;
}

html[data-theme="dark"] .r1-mode-toggle__moon {
	display: none;
}

/* Off-canvas drawer ------------------------------------------------------ */

.r1-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.r1-drawer[hidden] {
	display: none;
}

.r1-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgb(33 33 33 / 60%);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.r1-drawer.is-open .r1-drawer__scrim {
	opacity: 1;
}

/* The reference slides the panel in from the right edge. */
.r1-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: flex;
	flex-direction: column;
	width: min(423px, 92vw);
	padding: 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--aadigital-color-surface);
	box-shadow: -4px 0 24px rgb(0 0 0 / 18%);
	transform: translateX(100%);
	transition: transform 0.2s ease;
}

.r1-drawer.is-open .r1-drawer__panel {
	transform: none;
}

.r1-drawer__panel:focus {
	outline: none;
}

.r1-drawer__head {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 30px;
	margin-block-end: 32px;
}

.r1-drawer__brand {
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-heading);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.4px;
	line-height: 30px;
}

.r1-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--aadigital-color-accent);
	cursor: pointer;
}

.r1-drawer__close svg {
	width: 22px;
	height: 22px;
}

.r1-drawer__close:hover,
.r1-drawer__close:focus-visible {
	color: var(--aadigital-color-accent-strong);
}

.r1-drawer__body {
	display: grid;
	gap: 32px;
	padding-inline: 16px;
}

.r1-drawer__title {
	margin: 0 0 16px;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 30px;
}

.r1-drawer__kanal {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r1-drawer__kanal > li {
	width: calc((100% - 15px) / 2);
}

/* Each channel is its own tile: white card with a hairline border and a soft
   drop shadow so the grid reads as separate blocks. */
.r1-drawer__kanal-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 12px 8px;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgb(17 17 17 / 10%), 0 2px 6px rgb(17 17 17 / 8%);
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 13px;
	font-weight: 600;
	line-height: 19.5px;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.r1-drawer__icon {
	width: 24px;
	height: 24px;
	color: var(--aadigital-color-accent);
}

.r1-drawer__kanal-link:hover,
.r1-drawer__kanal-link:focus-visible {
	border-color: var(--aadigital-color-accent);
	color: var(--aadigital-color-accent);
	box-shadow: 0 2px 6px rgb(17 17 17 / 14%), 0 4px 12px rgb(17 17 17 / 10%);
}

/* Plain two-column link list, matching the reference's "Informasi" block. */
.r1-drawer__info {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r1-drawer__info > li {
	width: calc((100% - 15px) / 2);
}

.r1-drawer__info a {
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 13px;
	font-weight: 600;
	line-height: 21px;
	text-decoration: none;
}

.r1-drawer__info a:hover,
.r1-drawer__info a:focus-visible {
	color: var(--aadigital-color-accent);
}

html[data-theme="dark"] .r1-drawer__panel {
	border-inline-start: 1px solid var(--aadigital-color-border);
}

html[data-theme="dark"] .r1-drawer__kanal-link {
	border-color: var(--aadigital-color-border);
	background: #0f1216;
	box-shadow: 0 1px 3px rgb(0 0 0 / 45%), 0 2px 6px rgb(0 0 0 / 30%);
}

html[data-theme="dark"] .r1-drawer__icon {
	color: var(--aadigital-color-accent-dark);
}

html[data-theme="dark"] .r1-drawer__brand,
html[data-theme="dark"] .r1-drawer__close {
	color: var(--aadigital-color-accent-dark);
}

body.r1-drawer-open {
	overflow: hidden;
}

/* Footer — black slab with a red top rule -------------------------------- */

.site-footer.r1-footer {
	padding: 0 var(--aadigital-gutter) 30px;
	background: #030303;
	border: 0;
	color: #fff;
}

/* The reference draws the red rule across the content column, not the viewport. */
.r1-footer .site-footer__inner {
	max-width: var(--aadigital-wide-width);
	padding-block-start: 30px;
	border-block-start: 5px solid var(--aadigital-color-accent);
}

.r1-footer__row {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

/* Brand column: logo, social circles, app links, publisher details. */
.r1-footer__brand {
	flex: 0 0 40%;
	min-width: 0;
	text-align: center;
}

.r1-footer__logo {
	display: inline-block;
	margin-block-end: 20px;
}

.r1-footer__logo img {
	display: block;
	width: auto;
	max-width: 240px;
	max-height: 60px;
	margin-inline: auto;
}

.r1-footer__wordmark {
	display: inline-block;
	margin-block-end: 20px;
	color: #fff;
	font-family: var(--aadigital-font-heading);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.4px;
	text-decoration: none;
}

.r1-footer__wordmark:hover,
.r1-footer__wordmark:focus-visible {
	color: #fff;
}

.r1-footer__heading {
	margin: 0 0 12px;
	color: #fff;
	font-family: var(--aadigital-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: none;
}

.r1-footer__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.r1-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--aadigital-color-accent);
	color: #111;
	transition: background var(--aadigital-transition), color var(--aadigital-transition);
}

.r1-footer__social-link .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
	line-height: 17px;
}

.r1-footer__social-link:hover,
.r1-footer__social-link:focus-visible {
	background: #fff;
	color: var(--aadigital-color-accent);
}

.r1-footer__social-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.r1-footer__apps {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-block-end: 26px;
}

.r1-footer__app {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid #3a3a3a;
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff;
	text-align: start;
	text-decoration: none;
}

.r1-footer__app .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 20px;
	color: #fff;
}

.r1-footer__app-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.r1-footer__app-hint {
	color: #bdbdbd;
	font-size: 9px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.r1-footer__app-name {
	color: #fff;
	font-family: var(--aadigital-font-heading);
	font-size: 13px;
	font-weight: 700;
}

.r1-footer__app:hover,
.r1-footer__app:focus-visible {
	border-color: var(--aadigital-color-accent);
	color: #fff;
}

.r1-footer__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: #bdbdbd;
	font-size: 11px;
	line-height: 1.6;
}

.r1-footer__meta strong {
	color: #e6e6e6;
	font-weight: 700;
}

.r1-footer__meta a {
	color: #bdbdbd;
}

.r1-footer__meta a:hover,
.r1-footer__meta a:focus-visible {
	color: #fff;
}

/* Link columns */
.r1-footer__cols {
	display: flex;
	flex: 1 1 auto;
	gap: 30px;
	min-width: 0;
}

.r1-footer__col {
	flex: 1 1 0;
	min-width: 0;
}

.r1-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.r1-footer__list li {
	margin: 0;
}

.r1-footer__list a {
	display: inline-block;
	padding-block: 5px;
	color: #bdbdbd;
	font-family: var(--aadigital-font-body);
	font-size: 12px;
	line-height: 1.5;
	text-decoration: none;
}

.r1-footer__list a:hover,
.r1-footer__list a:focus-visible {
	color: #fff;
}

/* Copyright */
.r1-footer__copyright {
	margin: 30px 0 0;
	color: #bdbdbd;
	font-family: var(--aadigital-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
}

/* Dark mode -------------------------------------------------------------- */

html[data-theme="dark"] {
	color-scheme: dark;
	--aadigital-color-text: #e9ecf1;
	/* Light red for links/labels on dark surfaces; --accent stays dark enough
	   for white text on the ticker and badges. */
	--aadigital-color-brand: #ff6f61;
	--aadigital-color-accent-dark: #ff6f61;
	--aadigital-color-brand-strong: #ff9c92;
	--aadigital-color-brand-contrast: #ffffff;
	--aadigital-color-surface: #15181d;
	--aadigital-color-surface-muted: #1d222a;
	--aadigital-color-footer: #101216;
	--aadigital-color-border: #2b313a;
	--aadigital-color-muted: #b9c2cf;
	--aadigital-color-scrollbar: rgb(185 194 207 / 45%);
}

/* Red text on dark surfaces needs the lighter accent. */
html[data-theme="dark"] .r1-hero__item-kicker,
html[data-theme="dark"] .news-feed-list .kategori,
html[data-theme="dark"] .category-label,
html[data-theme="dark"] .single-kategori a,
html[data-theme="dark"] .comment-metadata,
html[data-theme="dark"] .aadigital-ad__label {
	color: var(--aadigital-color-brand);
}

/* Brand as a surface colour must not end up light-on-light. */
html[data-theme="dark"] .button--primary,
html[data-theme="dark"] .comment-submit {
	background: var(--aadigital-color-accent);
	color: #fff;
}

html[data-theme="dark"] .button--primary:hover,
html[data-theme="dark"] .button--primary:focus-visible,
html[data-theme="dark"] .comment-submit:hover,
html[data-theme="dark"] .comment-submit:focus-visible {
	background: var(--aadigital-color-accent-strong);
}

html[data-theme="dark"] body {
	background: var(--aadigital-color-surface);
	color: var(--aadigital-color-text);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-navigation-bar {
	background: var(--aadigital-color-surface);
}

/* The reference pill is white on light grey; dark mode keeps the same shape but
   swaps the surface so it does not glare. */
html[data-theme="dark"] .r1-search-panel .search-field {
	border-color: var(--aadigital-color-border);
	background: #0f1216;
	color: var(--aadigital-color-text);
}

html[data-theme="dark"] .r1-search-panel .search-field::placeholder {
	color: #9aa2ad;
}

html[data-theme="dark"] .r1-topbar-brand {
	color: var(--aadigital-color-text);
}

html[data-theme="dark"] .site-topbar-center .search-field {
	border-color: var(--aadigital-color-border);
	background: #0f1216;
	color: var(--aadigital-color-text);
}

html[data-theme="dark"] .site-topbar-center .search-field::placeholder {
	color: #9aa2ad;
}

html[data-theme="dark"] .site-topbar-center .search-field:focus {
	border-color: var(--aadigital-color-accent-dark);
	background: #0f1216;
	outline-color: rgb(255 111 97 / 22%);
}

html[data-theme="dark"] .r1-icon-button,
html[data-theme="dark"] .site-topbar .network-button,
html[data-theme="dark"] .site-topbar .network-button__icon {
	color: var(--aadigital-color-accent-dark);
}

html[data-theme="dark"] .site-topbar-center .search-submit {
	color: var(--aadigital-color-text);
}

html[data-theme="dark"] .site-topbar-center .search-submit:hover,
html[data-theme="dark"] .site-topbar-center .search-submit:focus-visible {
	color: #fff;
}

html[data-theme="dark"] .opini-item__author,
html[data-theme="dark"] .opini-item__title a:hover,
html[data-theme="dark"] .opini-item__title a:focus-visible {
	color: #ff8a8a;
}

html[data-theme="dark"] .song-title,
html[data-theme="dark"] .site-logo-text,
html[data-theme="dark"] .primary-navigation .primary-menu a,
html[data-theme="dark"] .r1-hero__item-link,
html[data-theme="dark"] .news-feed-judul,
html[data-theme="dark"] .judul-berita-rekomendasi {
	color: var(--aadigital-color-text);
}

html[data-theme="dark"] .news-feed-judul-block,
html[data-theme="dark"] .judul-berita-rekomendasi {
	background: var(--aadigital-color-surface);
	color: var(--aadigital-color-text);
}

html[data-theme="dark"] .post-card,
html[data-theme="dark"] .comment-item .comment-body,
html[data-theme="dark"] .comment-respond,
html[data-theme="dark"] .error-404,
html[data-theme="dark"] .entry-content th,
html[data-theme="dark"] .single-article-text {
	background: var(--aadigital-color-surface);
	color: var(--aadigital-color-text);
	border-color: var(--aadigital-color-border);
}

/* Sidebar widgets are transparent blocks in both modes. */
html[data-theme="dark"] .widget {
	background: transparent;
	border: 0;
}

html[data-theme="dark"] .widget-post-list .post-card--compact,
html[data-theme="dark"] .widget-post-list .post-card__media {
	background: transparent;
	border: 0;
}

@supports (-webkit-text-stroke: 1px #000) {
	html[data-theme="dark"] .widget-rank::before {
		-webkit-text-stroke-color: #7d8794;
	}
}

@supports (-webkit-text-stroke: 1px #000) {
	html[data-theme="dark"] .widget_tag_cloud .tagcloud a::before {
		-webkit-text-stroke-color: #7d8794;
	}
}

html[data-theme="dark"] .epaper-widget__arrow {
	background: var(--aadigital-color-surface-muted);
}

html[data-theme="dark"] .site-footer.r1-footer {
	background: #0b0d10;
}

html[data-theme="dark"] .entry-content a,
html[data-theme="dark"] .single-article-text a {
	color: #ff8a80;
}

html[data-theme="dark"] .comment-submit {
	background: var(--aadigital-color-accent);
	color: #fff;
}

html[data-theme="dark"] .next-wrap .page-numbers,
html[data-theme="dark"] .pagination .page-numbers,
html[data-theme="dark"] .pagination .nav-links a,
html[data-theme="dark"] .pagination .nav-links span {
	border-color: var(--aadigital-color-border);
	background: var(--aadigital-color-surface-muted);
	color: var(--aadigital-color-text);
}

/* Footer below the desktop breakpoint ------------------------------------ */

@media (max-width: 959px) {
	.r1-footer__row {
		flex-direction: column;
		gap: 26px;
	}

	.r1-footer__brand {
		flex: 1 1 auto;
		width: 100%;
	}

	.r1-footer__cols {
		flex-wrap: wrap;
		width: 100%;
		gap: 26px;
	}

	.r1-footer__col {
		flex: 1 1 180px;
	}
}

@media (max-width: 640px) {
	.r1-footer__cols {
		flex-direction: column;
		gap: 20px;
	}

	.r1-footer__col {
		flex: 1 1 auto;
	}
}

/* Article page (single) — iBerita layout -------------------------------- */

/* Breadcrumb: muted first crumb, red current category, chevron separator. */
.single-kategori {
	margin: 0 0 15px;
	font-family: var(--aadigital-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.single-kategori a,
.single-kategori a span {
	color: var(--aadigital-color-muted);
}

.single-kategori a[rel="category tag"] {
	color: var(--aadigital-color-accent);
	font-weight: 700;
}

/* The separator is a slash in the shared markup; show a chevron instead. */
.single-kategori > span[aria-hidden] {
	font-size: 0;
}

.single-kategori > span[aria-hidden]::after {
	content: "\203A";
	margin-inline: 7px;
	color: #b3b3b3;
	font-size: 13px;
	font-weight: 400;
}

.single-title {
	margin: 0 0 15px;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.2px;
}

.single-subtitle {
	margin: 0 0 14px;
	color: #444;
	font-family: var(--aadigital-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

/* Meta: date on its own line, then avatar + author with the share buttons. */
.container-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0 0 18px;
	padding: 0;
}

/* Flatten the wrapper so its children can take part in the row above. */
.group-penulis-dan-tanggal {
	display: contents;
}

.tanggal-single {
	order: 0;
	flex: 1 0 100%;
	margin: 0;
	padding: 0;
	color: var(--aadigital-color-muted);
	font-family: var(--aadigital-font-body);
	font-size: 13px;
	font-weight: 400;
}

.single-editor {
	display: inline;
	margin-inline-start: 6px;
	color: var(--aadigital-color-muted);
	font-size: 12px;
}

.foto-penulis {
	order: 1;
	padding: 0;
}

.nama-penulis {
	order: 2;
	margin: 0;
	padding: 0;
	/* Hide the "- Penulis" suffix: the reference shows the name only. */
	font-size: 0;
	text-transform: none;
}

.nama-penulis span,
.nama-penulis a {
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 700;
}

.nama-penulis a {
	color: var(--aadigital-color-text);
}

.nama-penulis a:hover,
.nama-penulis a:focus-visible {
	color: var(--aadigital-color-accent);
}

.container-single-meta .share {
	order: 3;
	margin-inline-start: auto;
}

.container-single-meta .share__link,
.container-single-meta .share__copy {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
}

/* Feature image and caption */
.single-featured {
	margin: 0 0 20px;
}

.single-featured img {
	border-radius: 16px;
}

.single-featured__caption {
	margin-block-start: 10px;
	color: var(--aadigital-color-muted);
	font-family: var(--aadigital-font-body);
	font-size: 12px;
	line-height: 1.5;
}

/* Body copy: 16px/1.5 with 16px paragraph spacing, like the reference. */
.single-body {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.single-article-text {
	order: 1;
	max-width: 100%;
}

.entry-content {
	color: #222;
	font-family: var(--aadigital-font-body);
	font-size: 16px;
	line-height: 1.5;
}

.entry-content p {
	margin: 0 0 16px;
}

.entry-content h2 {
	font-size: 20px;
	line-height: 1.35;
}

.entry-content h3 {
	font-size: 17px;
	line-height: 1.4;
}

.enlarge-font-wrap {
	margin: 0 0 16px;
	padding: 0;
}

/* "Lihat Juga" card injected into the body. */
.r1-read-also {
	margin: 20px 0;
	padding: 12px 16px 12px 18px;
	border-inline-start: 3px solid var(--aadigital-color-accent);
	border-radius: 0 8px 8px 0;
	background: #f7f7f8;
}

.r1-read-also__link {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--aadigital-color-text);
	text-decoration: none;
}

.r1-read-also__thumb {
	flex: 0 0 108px;
	width: 108px;
	height: 78px;
	border-radius: 6px;
	object-fit: cover;
}

.r1-read-also__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.r1-read-also__label {
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-heading);
	font-size: 12px;
	font-weight: 700;
}

.r1-read-also__title {
	display: -webkit-box;
	overflow: hidden;
	font-family: var(--aadigital-font-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.r1-read-also__link:hover .r1-read-also__title,
.r1-read-also__link:focus-visible .r1-read-also__title {
	color: var(--aadigital-color-accent);
}

/* Related posts sit under the article, not beside it. */
.related-post-wrap {
	order: 2;
	/* The base theme floats this block as a 160px rail beside the body copy. */
	float: none;
	width: 100%;
	max-width: none;
	margin-block-start: 26px;
	padding-block-start: 20px;
	border-block-start: 1px solid var(--aadigital-color-border);
}

.berita-terkait {
	position: relative;
	margin: 0 0 16px;
	padding: 0 0 8px;
	border: 0;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 18px;
	font-weight: 700;
}

.berita-terkait::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	width: 40px;
	height: 3px;
	background: var(--aadigital-color-accent);
}

.related-post-box {
	display: inline-block;
	width: 100%;
	vertical-align: top;
}

.related-post-box a {
	margin: 0;
	padding: 9px 0;
	border-block-end: 1px solid var(--aadigital-color-border);
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.related-post-box a:hover,
.related-post-box a:focus-visible {
	color: var(--aadigital-color-accent);
}

@media (min-width: 700px) {
	.related-post-wrap {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.berita-terkait {
		flex: 1 0 100%;
	}

	.related-post-box {
		flex: 0 0 calc(50% - 12px);
		width: calc(50% - 12px);
	}
}

@media (max-width: 640px) {
	.single-title {
		font-size: 24px;
	}

	.single-featured img {
		border-radius: 10px;
	}

	.r1-read-also__thumb {
		flex-basis: 88px;
		width: 88px;
		height: 66px;
	}
}

/* Dark mode tweaks for the article page. */
html[data-theme="dark"] .single-title,
html[data-theme="dark"] .single-subtitle,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .related-post-box a,
html[data-theme="dark"] .r1-read-also__title {
	color: var(--aadigital-color-text);
}

html[data-theme="dark"] .r1-read-also {
	background: var(--aadigital-color-surface-muted);
}

html[data-theme="dark"] .single-kategori a,
html[data-theme="dark"] .single-kategori a span {
	color: var(--aadigital-color-muted);
}

html[data-theme="dark"] .single-kategori a[rel="category tag"] {
	color: #ff8a8a;
}

.r1-read-also__thumb-wrap {
	flex: 0 0 108px;
	width: 108px;
	height: 78px;
	overflow: hidden;
	border-radius: 6px;
}

.r1-read-also__thumb-wrap img {
	display: block;
	width: 108px;
	height: 78px;
	border-radius: 6px;
	object-fit: cover;
}

@media (max-width: 640px) {
	.r1-read-also__thumb-wrap {
		flex-basis: 88px;
		width: 88px;
		height: 66px;
	}

	.r1-read-also__thumb-wrap img {
		width: 88px;
		height: 66px;
	}
}

/* Sticky share bar (cloned by variant.js once the byline scrolls away). */
.r1-sticky-share {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px var(--aadigital-gutter);
	border-block-end: 1px solid var(--aadigital-color-border);
	background: var(--aadigital-color-surface);
	box-shadow: 0 2px 8px rgb(16 24 40 / 8%);
}

.r1-sticky-share[hidden] {
	display: none;
}

.r1-sticky-share__label {
	flex: 0 0 auto;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 700;
}

.r1-sticky-share .share__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r1-sticky-share .share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
}

.r1-sticky-share__title {
	overflow: hidden;
	margin-inline-start: 4px;
	color: var(--aadigital-color-text);
	font-family: var(--aadigital-font-heading);
	font-size: 14px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

html[data-theme="dark"] .r1-sticky-share {
	background: var(--aadigital-color-surface-muted);
	border-color: var(--aadigital-color-border);
}

@media (max-width: 699px) {
	.r1-sticky-share__title {
		display: none;
	}
}

/* Quotes and notes inside the article body. */
.entry-content blockquote {
	margin: 20px 0;
	padding: 14px 18px;
	border-inline-start: 3px solid var(--aadigital-color-border);
	background: var(--aadigital-color-surface-muted);
	color: #444;
	font-style: italic;
}

.entry-content blockquote p:last-child {
	margin-block-end: 0;
}

.entry-content blockquote cite {
	display: block;
	margin-block-start: 8px;
	color: var(--aadigital-color-muted);
	font-size: 12px;
	font-style: normal;
}

.additional-text {
	margin-block-start: 20px;
	padding: 12px 16px;
	border-inline-start: 3px solid var(--aadigital-color-border);
	background: var(--aadigital-color-surface-muted);
	color: var(--aadigital-color-muted);
	font-size: 13px;
	line-height: 1.6;
}

/* Tag chips close the article. */
.entry-tags {
	gap: 8px;
	margin-block-start: 20px;
}

.entry-tags a {
	padding: 4px 12px;
	border-radius: 999px;
	border-color: var(--aadigital-color-border);
	color: var(--aadigital-color-muted);
	font-family: var(--aadigital-font-heading);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.entry-tags a:hover,
.entry-tags a:focus-visible {
	border-color: var(--aadigital-color-accent);
	background: var(--aadigital-color-accent-soft, #fde8e8);
	color: var(--aadigital-color-accent);
}

html[data-theme="dark"] .entry-content blockquote,
html[data-theme="dark"] .additional-text {
	background: var(--aadigital-color-surface-muted);
	color: var(--aadigital-color-muted);
}

/* Bottom widget area under the article ----------------------------------- */

.single-bottom {
	gap: 22px;
	margin-block-start: 30px;
	padding-block-start: 26px;
	border-block-start: 1px solid var(--aadigital-color-border);
}

.single-bottom .widget-title {
	font-size: 18px;
}

/* Card grid with a centred "Lihat Semua" pill, like the reference. */
.widget-post-list--grid {
	gap: 20px;
}

.widget-post-list--grid .post-card__media {
	border-radius: 8px;
	aspect-ratio: 16 / 10;
}

.widget-post-list--grid .post-card__body {
	gap: 6px;
}

.widget-post-list--grid .category-label {
	order: 0;
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.widget-post-list--grid .post-card__title {
	order: 1;
	font-size: 15px;
	line-height: 1.4;
}

.single-bottom .widget-more {
	width: auto;
	max-width: 220px;
	margin-inline: auto;
	margin-block-start: 22px;
	padding: 11px 26px;
	border-radius: 999px;
	font-size: 14px;
}

html[data-theme="dark"] .single-bottom {
	border-color: var(--aadigital-color-border);
}

/* Widget slider + video cards in the bottom area ------------------------- */

/* The reference wraps the slider and grid in a soft card. */
.single-bottom .widget:has(.widget-slider),
.single-bottom .widget:has(.widget-post-list--grid) {
	padding: 18px;
	border-radius: 8px;
	background: var(--aadigital-color-surface-muted);
}

.single-bottom .widget-slider__arrow {
	background: var(--aadigital-color-accent);
	border-color: var(--aadigital-color-accent);
	color: #fff;
}

.single-bottom .widget-slider__arrow:hover:not(:disabled),
.single-bottom .widget-slider__arrow:focus-visible:not(:disabled) {
	background: var(--aadigital-color-accent-strong);
	border-color: var(--aadigital-color-accent-strong);
	color: #fff;
}

.single-bottom .widget-slider__arrow:disabled {
	background: var(--aadigital-color-surface);
	border-color: var(--aadigital-color-border);
	color: var(--aadigital-color-muted);
}

.widget-post-list--slider .category-label {
	order: 0;
	color: var(--aadigital-color-accent);
	font-family: var(--aadigital-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* Video card: dark panel, white copy. */
.widget.widget_aadigital_video {
	padding: 18px;
	border-radius: 8px;
	background: #111;
	color: #fff;
}

.widget_aadigital_video .widget-title {
	color: #fff;
}

.widget_aadigital_video .widget-title::after {
	display: none;
}

.widget_aadigital_video .video-widget__title,
.widget_aadigital_video .video-widget__item-title {
	color: #fff;
}

html[data-theme="dark"] .widget.widget_aadigital_video {
	background: #0b0d10;
	border: 1px solid var(--aadigital-color-border);
}

html[data-theme="dark"] .single-bottom .widget:has(.widget-slider),
html[data-theme="dark"] .single-bottom .widget:has(.widget-post-list--grid) {
	background: var(--aadigital-color-surface-muted);
}
