/* ==========================================================================
   AcehJurnal — main stylesheet
   Colours and fonts are CSS variables; most can be changed in
   Appearance → Customize → AcehJurnal Options (no code needed).
   ========================================================================== */

:root {
	--aj-accent: #f2b92c;
	--aj-on-accent: #141414;
	--aj-link: #9a6700;
	--aj-ink: #141414;
	--aj-text: #26282b;
	--aj-muted: #676c73;
	--aj-line: #e8e6e1;
	--aj-soft: #f7f6f2;
	--aj-bg: #ffffff;
	--aj-dark: #15171a;
	--aj-radius: 10px;
	--aj-radius-sm: 6px;
	--aj-shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px rgba(20, 20, 20, .06);
	--aj-container: 1288px;
	--aj-gutter: 16px;
	--aj-gap: 24px;
	--aj-font-heading: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	--aj-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--aj-article-size: 19px;
	--aj-header-h: 56px;
}

@media (min-width: 768px) {
	:root { --aj-gutter: 24px; --aj-gap: 28px; }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--aj-bg);
	color: var(--aj-text);
	font-family: var(--aj-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--aj-link); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--aj-font-heading);
	color: var(--aj-ink);
	line-height: 1.25;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.01em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--aj-accent); outline-offset: 2px; border-radius: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 100000; padding: 12px 18px;
	background: var(--aj-ink); color: #fff; border-radius: var(--aj-radius-sm);
}

.aj-icon { flex-shrink: 0; }

.aj-container {
	width: 100%;
	max-width: calc(var(--aj-container) + var(--aj-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--aj-gutter);
}
.aj-container--narrow { max-width: calc(820px + var(--aj-gutter) * 2); }

.aj-button,
.wp-block-button__link,
input[type="submit"] {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--aj-ink); color: #fff;
	border: 0; border-radius: 999px;
	padding: 12px 22px; font-weight: 600; font-size: 15px;
	cursor: pointer; transition: background .2s, color .2s;
}
.aj-button:hover, input[type="submit"]:hover { background: var(--aj-accent); color: var(--aj-on-accent); }

/* ---------- Reading progress ---------- */
.aj-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1000; pointer-events: none; }
.aj-progress__bar { display: block; height: 100%; width: 100%; background: var(--aj-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Top bar ---------- */
.aj-topbar { background: var(--aj-dark); color: #d6d6d6; font-size: 13px; }
.aj-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.aj-topbar__left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.aj-topbar__date { white-space: nowrap; color: #fff; font-weight: 500; }
.aj-topbar__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.aj-topbar__menu a { color: #cfcfcf; font-weight: 500; }
.aj-topbar__menu a:hover { color: var(--aj-accent); }
.aj-topbar .aj-social a { color: #cfcfcf; }
.aj-topbar .aj-social a:hover { color: var(--aj-accent); }
@media (max-width: 767px) {
	.aj-topbar__nav, .aj-topbar .aj-social { display: none; }
}

/* ---------- Social icons ---------- */
.aj-social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.aj-social a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; transition: background .2s, color .2s; }
.aj-social--footer a, .aj-social--widget a, .aj-primary-nav .aj-social a { background: var(--aj-soft); color: var(--aj-ink); width: 38px; height: 38px; }
.aj-social--footer a:hover, .aj-social--widget a:hover { background: var(--aj-accent); color: var(--aj-on-accent); }

/* ---------- Brand bar ---------- */
.aj-brandbar { background: var(--aj-bg); }
.aj-brandbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.site-branding { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.custom-logo-link { display: inline-block; }
.custom-logo { width: auto; max-height: 52px; }
@media (min-width: 768px) { .custom-logo { max-height: 64px; } }
.site-description { margin: 0; color: var(--aj-muted); font-size: 13px; }
.aj-header-ad { flex: 0 1 728px; min-width: 0; text-align: right; }
.aj-header-ad .widget { margin: 0; }
.aj-header-ad img { margin-left: auto; }
@media (max-width: 991px) {
	.aj-brandbar__inner { flex-wrap: wrap; }
	.aj-header-ad { flex: 1 1 100%; text-align: center; }
	.aj-header-ad img { margin-inline: auto; }
}

/* ---------- Navigation bar ---------- */
.aj-navbar {
	background: var(--aj-bg);
	border-top: 1px solid var(--aj-line);
	border-bottom: 3px solid var(--aj-ink);
	z-index: 900;
}
.has-sticky-header .aj-navbar { position: sticky; top: 0; }
.admin-bar.has-sticky-header .aj-navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .aj-navbar { top: 0; } }
.aj-navbar.is-stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }

.aj-navbar__inner { display: flex; align-items: center; gap: 8px; min-height: var(--aj-header-h); }

.aj-navbar__mini-logo { display: none; flex-shrink: 0; margin-right: 8px; }
.aj-navbar__mini-logo img { height: 30px; width: auto; }
.aj-navbar.is-stuck .aj-navbar__mini-logo { display: block; }

.aj-icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: transparent; border: 0; cursor: pointer; color: var(--aj-ink);
	transition: background .2s;
}
.aj-icon-btn:hover { background: var(--aj-soft); }
.aj-search-toggle { margin-left: auto; }

.aj-menu { list-style: none; margin: 0; padding: 0; }
.aj-menu a { display: flex; align-items: center; gap: 6px; font-family: var(--aj-font-heading); font-weight: 700; font-size: 15px; color: var(--aj-ink); }
.aj-menu .current-menu-item > a,
.aj-menu .current-category-ancestor > a,
.aj-menu .current-post-ancestor > a,
.aj-menu .current-menu-parent > a { color: var(--aj-link); }
.aj-menu .sub-menu { list-style: none; margin: 0; padding: 0; }

/* Desktop menu */
@media (min-width: 992px) {
	.aj-menu-toggle, .aj-primary-nav__head, .aj-primary-nav__extra { display: none; }
	.aj-primary-nav { flex: 1; min-width: 0; }
	.aj-menu { display: flex; flex-wrap: wrap; }
	.aj-menu > li { position: relative; }
	.aj-menu > li > a { padding: 0 14px; height: var(--aj-header-h); text-transform: uppercase; letter-spacing: .02em; font-size: 14px; position: relative; }
	.aj-menu > li > a::after {
		content: ""; position: absolute; left: 14px; right: 14px; bottom: -3px; height: 3px;
		background: var(--aj-accent); transform: scaleX(0); transition: transform .2s;
	}
	.aj-menu > li:hover > a::after,
	.aj-menu > li:focus-within > a::after,
	.aj-menu > .current-menu-item > a::after,
	.aj-menu > .current-category-ancestor > a::after,
	.aj-menu > .current-post-ancestor > a::after { transform: scaleX(1); }
	.aj-menu > li:first-child > a { padding-left: 0; }
	.aj-menu > li:first-child > a::after { left: 0; }
	.aj-menu > .menu-item-has-children > a::before {
		content: ""; order: 2; width: 6px; height: 6px; margin-top: -3px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
	}
	.aj-menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px;
		background: var(--aj-bg); border-radius: 0 0 var(--aj-radius) var(--aj-radius);
		box-shadow: var(--aj-shadow); border-top: 3px solid var(--aj-accent);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 50;
	}
	.aj-menu li:hover > .sub-menu, .aj-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.aj-menu .sub-menu a { padding: 9px 12px; border-radius: var(--aj-radius-sm); font-size: 14px; font-weight: 600; }
	.aj-menu .sub-menu a:hover { background: var(--aj-soft); }
	.aj-menu .sub-menu .sub-menu { top: -8px; left: 100%; border-radius: var(--aj-radius); }
}

/* Mobile off-canvas menu */
@media (max-width: 991px) {
	.aj-primary-nav {
		position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px);
		background: var(--aj-bg); z-index: 1001; overflow-y: auto;
		padding: 16px 20px 32px; transform: translateX(-100%); transition: transform .25s ease;
		visibility: hidden;
	}
	.aj-primary-nav.is-open { transform: none; visibility: visible; }
	.aj-primary-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
	.aj-primary-nav__title { font-family: var(--aj-font-heading); font-weight: 800; font-size: 20px; }
	.aj-menu li { border-bottom: 1px solid var(--aj-line); }
	.aj-menu a { padding: 14px 0; font-size: 17px; }
	.aj-menu .sub-menu { padding-left: 14px; border-top: 1px solid var(--aj-line); }
	.aj-menu .sub-menu li:last-child { border-bottom: 0; }
	.aj-menu .sub-menu a { font-weight: 600; font-size: 15px; padding: 11px 0; }
	.aj-primary-nav__extra { margin-top: 20px; display: grid; gap: 18px; }
	.aj-mobile-secondary { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--aj-muted); }
}
.aj-overlay { position: fixed; inset: 0; background: rgba(10, 10, 10, .5); z-index: 899; }
body.menu-open { overflow: hidden; }

/* Search panel */
.aj-search-panel { border-top: 1px solid var(--aj-line); padding-block: 16px; background: var(--aj-soft); }
.aj-search-form { display: flex; gap: 0; position: relative; max-width: 720px; margin-inline: auto; }
.aj-search-form__input {
	flex: 1; min-width: 0; height: 48px; padding: 0 56px 0 20px;
	border: 1px solid var(--aj-line); border-radius: 999px; background: var(--aj-bg); font-size: 16px;
}
.aj-search-form__input:focus { outline: none; border-color: var(--aj-ink); box-shadow: 0 0 0 3px rgba(242, 185, 44, .35); }
.aj-search-form__btn {
	position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border-radius: 50%;
	border: 0; background: var(--aj-ink); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.aj-search-form__btn:hover { background: var(--aj-accent); color: var(--aj-on-accent); }

/* ---------- Ticker ---------- */
.aj-ticker { background: var(--aj-soft); border-bottom: 1px solid var(--aj-line); }
.aj-ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.aj-ticker__label {
	flex-shrink: 0; background: var(--aj-accent); color: var(--aj-on-accent);
	font-family: var(--aj-font-heading); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
	padding: 6px 12px; border-radius: var(--aj-radius-sm); position: relative;
}
.aj-ticker__label::before {
	content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d62d20;
	margin-right: 8px; vertical-align: 1px; animation: aj-pulse 1.6s infinite;
}
@keyframes aj-pulse { 50% { opacity: .25; } }
.aj-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; height: 24px; position: relative; }
.aj-ticker__track { list-style: none; margin: 0; padding: 0; }
.aj-ticker__item { height: 24px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 14.5px; }
.js .aj-ticker__item { position: absolute; inset: 0; opacity: 0; transform: translateY(100%); transition: opacity .35s, transform .35s; }
.js .aj-ticker__item.is-active { opacity: 1; transform: none; }
.js .aj-ticker__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.aj-ticker__controls { display: flex; gap: 4px; flex-shrink: 0; }
.aj-ticker__btn {
	width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--aj-line); background: var(--aj-bg);
	cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px;
}
.aj-ticker__btn:hover { border-color: var(--aj-ink); }
@media (max-width: 575px) { .aj-ticker__controls { display: none; } .aj-ticker__label { font-size: 11px; padding: 5px 9px; } }

/* ---------- Badges & meta ---------- */
.aj-badge {
	display: inline-block; background: var(--aj-accent); color: var(--aj-on-accent);
	font-family: var(--aj-font-heading); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
	padding: 4px 9px; border-radius: 4px; line-height: 1.3;
}
.aj-badge:hover { background: var(--aj-ink); color: #fff; }
.aj-badge--text { background: none; padding: 0; color: var(--aj-link); margin-bottom: 6px; }
.aj-badge--text:hover { background: none; color: var(--aj-ink); }
.aj-badge--on-media { position: absolute; left: 12px; top: 12px; z-index: 2; }

.aj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--aj-muted); font-size: 13px; }
.aj-meta__item { display: inline-flex; align-items: center; gap: 5px; }
.aj-meta__author { font-weight: 600; color: var(--aj-text); }

/* ---------- Section titles ---------- */
.aj-section { margin-block: 36px; }
.aj-section-title {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
	border-bottom: 2px solid var(--aj-ink); margin-bottom: 20px;
}
.aj-section-title__text {
	margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
	background: var(--aj-ink); color: #fff; padding: 8px 14px 6px; border-radius: var(--aj-radius-sm) var(--aj-radius-sm) 0 0;
	position: relative;
}
.aj-section-title__text::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--aj-accent); border-radius: var(--aj-radius-sm) 0 0 0; }
.aj-section-title__text { padding-left: 18px; }
.aj-section-title__more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--aj-muted); padding-bottom: 6px; }
.aj-section-title__more:hover { color: var(--aj-ink); }

/* ---------- Cards ---------- */
.aj-card { position: relative; min-width: 0; }
.aj-card__media { position: relative; }
.aj-thumb { display: block; overflow: hidden; border-radius: var(--aj-radius); background: var(--aj-soft); aspect-ratio: 16 / 10; }
.aj-thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.aj-thumb__img--placeholder { object-fit: cover; }
.aj-card:hover .aj-thumb__img { transform: scale(1.04); }
.aj-card__title { margin: 0 0 8px; font-size: 18px; line-height: 1.32; font-weight: 700; }
.aj-card__title a { background-image: linear-gradient(var(--aj-accent), var(--aj-accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.aj-card__title a:hover { color: var(--aj-ink); background-size: 100% 2px; }
.aj-card__excerpt { color: var(--aj-muted); font-size: 15px; line-height: 1.6; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* card: image top */
.aj-card--card .aj-card__body { padding-top: 14px; }

/* hero: text over image */
.aj-card--hero { border-radius: var(--aj-radius); overflow: hidden; background: var(--aj-dark); isolation: isolate; }
.aj-card--hero .aj-thumb { border-radius: 0; aspect-ratio: 16 / 10; height: 100%; position: relative; }
.aj-card--hero .aj-thumb__img { position: absolute; inset: 0; }
.aj-card--hero .aj-card__media { height: 100%; }
.aj-card--hero .aj-card__media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.88) 100%);
}
.aj-card--hero .aj-card__body { position: absolute; inset: auto 0 0 0; padding: 20px; z-index: 2; color: #fff; }
.aj-card--hero .aj-card__title { color: #fff; font-size: 19px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.aj-card--hero .aj-card__title a:hover { color: #fff; }
.aj-card--hero .aj-card__excerpt { color: rgba(255,255,255,.85); }
.aj-card--hero .aj-meta, .aj-card--hero .aj-meta__author { color: rgba(255,255,255,.85); }

/* list: image left */
.aj-card--list { display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: start; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--aj-line); }
.aj-card--list:last-child { border-bottom: 0; margin-bottom: 0; }
.aj-card--list .aj-card__title { font-size: 19px; }
@media (max-width: 575px) {
	.aj-card--list { grid-template-columns: 112px 1fr; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; }
	.aj-card--list .aj-thumb { aspect-ratio: 1; }
	.aj-card--list .aj-card__title { font-size: 16px; }
	.aj-card--list .aj-card__excerpt { display: none; }
}

/* mini: small thumbnail left */
.aj-card--mini { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; }
.aj-card--mini .aj-thumb { aspect-ratio: 4 / 3; border-radius: var(--aj-radius-sm); }
.aj-card--mini .aj-card__title { font-size: 15.5px; line-height: 1.38; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aj-card--mini .aj-meta { font-size: 12px; }

/* text only */
.aj-card--text .aj-card__title { font-size: 16px; }

/* ---------- Grids ---------- */
.aj-grid { display: grid; gap: var(--aj-gap); }
.aj-grid--2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.aj-grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.aj-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- Homepage hero ---------- */
.aj-hero { margin-top: 24px; }
.aj-hero__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.aj-hero__side { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.aj-hero__side .aj-card__title { font-size: 15.5px; }
.aj-hero__side .aj-card__body { padding: 14px; }
.aj-hero__row { display: grid; gap: var(--aj-gap); grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
.aj-hero__main .aj-card__title { font-size: clamp(22px, 3.2vw, 34px); line-height: 1.2; font-weight: 800; }
.aj-hero__main .aj-thumb { aspect-ratio: 4 / 3; }
@media (min-width: 576px) { .aj-hero__main .aj-thumb { aspect-ratio: 16 / 10; } }
@media (max-width: 575px) {
	.aj-hero__side { grid-template-columns: 1fr; }
	.aj-hero__side .aj-card--hero .aj-thumb { aspect-ratio: 16 / 9; }
	.aj-hero__row .aj-card__title { font-size: 15px; }
	.aj-hero__main .aj-card__excerpt { display: none; }
}
@media (min-width: 992px) {
	.aj-hero__grid { grid-template-columns: 1.65fr 1fr; grid-template-areas: "main side" "row row"; }
	.aj-hero__main { grid-area: main; }
	.aj-hero__main .aj-card { height: 100%; }
	.aj-hero__main .aj-thumb { aspect-ratio: auto; min-height: 460px; }
	.aj-hero__side { grid-area: side; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
	.aj-hero__side .aj-thumb { aspect-ratio: auto; min-height: 222px; }
	.aj-hero__row { grid-area: row; grid-template-columns: repeat(4, 1fr); }
	.aj-hero__main .aj-card__body { padding: 28px; }
}
.aj-hero__row .aj-card__title { font-size: 16px; }

.aj-ad-row { margin-block: 28px; text-align: center; }
.aj-ad-row img { margin-inline: auto; }

/* ---------- Layout with sidebar ---------- */
.aj-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); margin-block: 28px 12px; }
@media (min-width: 992px) {
	.aj-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
	.no-sidebar .aj-layout { grid-template-columns: minmax(0, 1fr); }
}
.aj-layout__main > .aj-section:first-child { margin-top: 0; }

/* ---------- Homepage category blocks ---------- */
.aj-block__grid { display: grid; gap: var(--aj-gap); }
.aj-block--grid .aj-block__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.aj-block--list .aj-block__grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px var(--aj-gap); }
.aj-block--feature .aj-block__grid { grid-template-columns: 1fr; }
.aj-block__rest { display: grid; gap: 18px; align-content: start; }
.aj-block__lead .aj-card__title { font-size: 22px; font-weight: 800; }
@media (min-width: 768px) {
	.aj-block--feature .aj-block__grid { grid-template-columns: 1.15fr 1fr; }
}

/* ---------- Archive header ---------- */
.aj-archive-header { background: var(--aj-soft); border-bottom: 1px solid var(--aj-line); padding-block: 28px; }
.aj-archive-header__title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 6px 0 4px; }
.aj-archive-header__title span { color: var(--aj-link); }
.aj-archive-header__desc { color: var(--aj-muted); max-width: 720px; }
.aj-archive-header__desc p:last-child { margin: 0; }
.aj-archive-header__author { display: flex; gap: 14px; align-items: center; }
.aj-archive-header__author img { border-radius: 50%; }
.aj-archive-header__search { margin-top: 14px; }
.aj-archive-header__search .aj-search-form { margin: 0; }
.aj-archive-lead { margin-bottom: 28px; }
.aj-archive-lead .aj-card__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.aj-archive-lead .aj-thumb { aspect-ratio: 16 / 9; }
.aj-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.aj-chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--aj-bg); border: 1px solid var(--aj-line); font-size: 14px; font-weight: 600; }
.aj-chips a:hover { border-color: var(--aj-ink); color: var(--aj-ink); }

/* ---------- Breadcrumbs ---------- */
.aj-breadcrumbs { font-size: 13px; color: var(--aj-muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.aj-breadcrumbs a:hover { color: var(--aj-ink); }
.aj-breadcrumbs .sep { opacity: .5; }
.aj-breadcrumbs span[aria-current] { color: var(--aj-text); }

/* ---------- Pagination ---------- */
.aj-pagination { margin-top: 32px; clear: both; }
/* WordPress gives the <ul> wrapper the same "page-numbers" class as the links,
   so style only the <a>/<span> items, never the list itself. */
.aj-pagination ul.page-numbers,
.aj-pagination ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; width: auto; height: auto; min-width: 0; border: 0; border-radius: 0; }
.aj-pagination li { margin: 0; padding: 0; }
.aj-pagination a.page-numbers,
.aj-pagination span.page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border-radius: 999px; border: 1px solid var(--aj-line); font-weight: 600; font-size: 15px; line-height: 1; background: var(--aj-bg);
}
.aj-pagination a.page-numbers:hover { border-color: var(--aj-ink); color: var(--aj-ink); }
.aj-pagination span.current { background: var(--aj-ink); color: #fff; border-color: var(--aj-ink); }
.aj-pagination span.dots { border: 0; background: none; min-width: 20px; padding: 0 2px; }
@media (max-width: 575px) {
	.aj-pagination a.page-numbers, .aj-pagination span.page-numbers { min-width: 38px; height: 38px; padding: 0 10px; font-size: 14px; }
}

/* ---------- Article ---------- */
.aj-article__header { margin-bottom: 22px; }
.aj-article__title { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.16; font-weight: 800; margin: 12px 0 14px; letter-spacing: -.02em; }
.aj-article--page .aj-article__title, .aj-article--full .aj-article__title { margin-top: 0; }
.aj-article__dek { font-size: 19px; line-height: 1.55; color: var(--aj-muted); margin-bottom: 18px; }
.aj-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 14px; border-block: 1px solid var(--aj-line); }
.aj-byline { display: flex; align-items: center; gap: 12px; }
.aj-byline__avatar { border-radius: 50%; }
.aj-byline__name { display: block; font-weight: 700; color: var(--aj-ink); font-size: 15px; }
/* Featured image inside the article: standard 900×600 (3:2).
   Photos inside the article text keep their own size. */
.single-post .aj-article__figure { margin: 0 auto 28px; max-width: 900px; }
.single-post .aj-article__figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--aj-radius); }
.aj-article__figure { margin: 0 0 28px; }
.aj-article__figure img { width: 100%; border-radius: var(--aj-radius); }
.aj-article__figure figcaption { font-size: 13.5px; color: var(--aj-muted); margin-top: 8px; line-height: 1.5; }

.entry-content { font-size: var(--aj-article-size); line-height: 1.78; color: var(--aj-text); overflow-wrap: break-word; }
.aj-article__content { max-width: 760px; }
.no-sidebar .aj-article__content, .aj-article--full .aj-article__content { margin-inline: auto; }
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2 { font-size: 1.45em; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.22em; margin-top: 1.5em; }
.entry-content h4 { font-size: 1.05em; margin-top: 1.4em; }
.entry-content a { color: var(--aj-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--aj-ink); text-decoration-color: var(--aj-accent); text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--aj-accent);
	font-family: var(--aj-font-heading); font-size: 1.12em; font-weight: 600; color: var(--aj-ink); line-height: 1.55;
}
.entry-content .wp-block-pullquote { border-block: 3px solid var(--aj-ink); padding: 24px 0; text-align: center; }
.entry-content figure { margin-inline: 0; }
.entry-content img { border-radius: var(--aj-radius-sm); }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: 13.5px; color: var(--aj-muted); text-align: left; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .85em; }
.entry-content th, .entry-content td { border: 1px solid var(--aj-line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--aj-soft); }
.entry-content hr { border: 0; border-top: 1px solid var(--aj-line); margin-block: 2em; }
.entry-content pre { background: var(--aj-soft); padding: 16px; border-radius: var(--aj-radius-sm); overflow-x: auto; font-size: .8em; }
.alignwide { margin-inline: 0; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }

.aj-inline-widget { margin-block: 28px; text-align: center; clear: both; }
.aj-inline-widget .widget { margin: 0; }
.aj-inline-widget img { margin-inline: auto; }

/* Share */
.aj-share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aj-share__label { font-size: 13px; font-weight: 700; color: var(--aj-muted); margin-right: 4px; text-transform: uppercase; letter-spacing: .04em; }
.aj-share__btn {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	border: 0; cursor: pointer; color: #fff; background: var(--aj-ink); transition: transform .15s, opacity .15s;
}
.aj-share__btn:hover { color: #fff; transform: translateY(-2px); }
.aj-share__btn--whatsapp { background: #1fa855; }
.aj-share__btn--facebook { background: #1877f2; }
.aj-share__btn--x { background: #111; }
.aj-share__btn--telegram { background: #229ed9; }
.aj-share__btn--copy { background: var(--aj-soft); color: var(--aj-ink); }
.aj-share__btn--copy:hover { color: var(--aj-ink); }
.aj-share__btn.is-copied { background: var(--aj-accent); }

.aj-article__footer { margin-top: 32px; display: grid; gap: 24px; }
.aj-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aj-tags__label { font-weight: 800; font-family: var(--aj-font-heading); margin-right: 6px; }
.aj-tags a { padding: 6px 14px; border-radius: 999px; background: var(--aj-soft); font-size: 14px; font-weight: 500; }
.aj-tags a:hover { background: var(--aj-accent); color: var(--aj-on-accent); }

.aj-author-box { display: flex; gap: 18px; padding: 22px; border-radius: var(--aj-radius); background: var(--aj-soft); }
.aj-author-box__avatar { border-radius: 50%; flex-shrink: 0; }
.aj-author-box__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--aj-muted); font-weight: 700; }
.aj-author-box__name { font-family: var(--aj-font-heading); font-weight: 800; font-size: 18px; color: var(--aj-ink); }
.aj-author-box__bio { margin: 6px 0 0; font-size: 15px; color: var(--aj-muted); }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 16px; border: 1px solid var(--aj-line); border-radius: var(--aj-radius); height: 100%; }
.post-navigation a:hover { border-color: var(--aj-ink); color: var(--aj-ink); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-subtitle { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--aj-muted); font-weight: 700; margin-bottom: 4px; }
.post-navigation .nav-title { font-family: var(--aj-font-heading); font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }

.aj-related .aj-card__title { font-size: 16px; }

/* ---------- Comments ---------- */
.aj-comments { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--aj-ink); }
.aj-comments__title { font-size: 22px; font-weight: 800; }
.aj-comments__list, .aj-comments__list .children { list-style: none; padding: 0; margin: 0; }
.aj-comments__list .children { padding-left: 28px; }
.aj-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--aj-line); }
.aj-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.aj-comments .comment-author img { border-radius: 50%; }
.aj-comments .comment-author .says { display: none; }
.aj-comments .comment-metadata { font-size: 13px; color: var(--aj-muted); margin: 4px 0 8px 54px; }
.aj-comments .comment-content { margin-left: 54px; }
.aj-comments .reply { margin-left: 54px; font-size: 14px; font-weight: 700; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--aj-line); border-radius: var(--aj-radius-sm); background: var(--aj-bg);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--aj-ink); box-shadow: 0 0 0 3px rgba(242, 185, 44, .35); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Widgets ---------- */
.widget { margin-bottom: 36px; }
.widget-title {
	font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
	border-bottom: 2px solid var(--aj-ink); margin-bottom: 18px; padding-bottom: 0;
}
.widget-title span { display: inline-block; background: var(--aj-accent); color: var(--aj-on-accent); padding: 7px 12px 5px; border-radius: var(--aj-radius-sm) var(--aj-radius-sm) 0 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
/* Block-based widgets: give their headings the same look as classic widget titles. */
.widget > h2, .widget .wp-block-group > h2, .widget .wp-block-heading,
.widget .wp-block-search__label {
	display: block; font-family: var(--aj-font-heading); font-size: 16px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .04em; color: var(--aj-ink); border-bottom: 2px solid var(--aj-ink); padding-bottom: 8px; margin: 0 0 16px;
}
.widget .wp-block-latest-posts li, .widget .wp-block-archives li, .widget .wp-block-categories li, .widget .wp-block-latest-comments li {
	padding: 9px 0; border-bottom: 1px solid var(--aj-line); margin: 0; font-weight: 600; line-height: 1.4;
}
.widget .wp-block-search__inside-wrapper { gap: 6px; }
.widget_categories li, .widget_archive li, .widget_pages li, .widget_nav_menu li, .widget_recent_entries li, .widget_meta li {
	padding: 9px 0; border-bottom: 1px solid var(--aj-line);
}
.widget_categories li a, .widget_nav_menu li a { font-weight: 600; }
.widget .wp-block-search__input { border-radius: 999px; padding: 10px 16px; border: 1px solid var(--aj-line); }
.widget .wp-block-search__button { border-radius: 999px; background: var(--aj-ink); color: #fff; border: 0; padding: 10px 18px; }

.aj-widget-list { list-style: none; margin: 0; padding: 0; counter-reset: aj; }
.aj-widget-list__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding-block: 14px; border-bottom: 1px solid var(--aj-line); }
.aj-widget-list__item:first-child { padding-top: 0; }
.aj-widget-list__item:last-child { border-bottom: 0; }
.aj-widget-list__num {
	font-family: var(--aj-font-heading); font-size: 30px; font-weight: 800; line-height: 1; color: var(--aj-accent);
	min-width: 32px; -webkit-text-stroke: 0;
}
.aj-widget-list__title { display: block; font-family: var(--aj-font-heading); font-weight: 700; line-height: 1.38; font-size: 15.5px; margin-bottom: 4px; color: var(--aj-ink); }
.aj-widget-list__title:hover { color: var(--aj-link); }
.aj-widget-list .aj-meta { font-size: 12px; }
.aj-widget-list--thumbs .aj-thumb, .aj-widget-list--first-big .aj-thumb { width: 92px; aspect-ratio: 1; border-radius: var(--aj-radius-sm); }
.aj-widget-list--first-big .aj-widget-list__item:first-child { grid-template-columns: 1fr; }
.aj-widget-list--first-big .aj-widget-list__item:first-child .aj-thumb { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--aj-radius); }
.aj-widget-list--first-big .aj-widget-list__item:first-child .aj-widget-list__title { font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--aj-soft); border-top: 4px solid var(--aj-accent); }
.aj-footer__top { display: grid; gap: 36px; padding-block: 48px 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 992px) { .aj-footer__top { grid-template-columns: 1.4fr repeat(auto-fit, minmax(200px, 1fr)); } }
.aj-footer__logo img { max-height: 54px; width: auto; }
.aj-footer__about { color: var(--aj-muted); font-size: 15px; margin: 16px 0 18px; max-width: 420px; }
.aj-footer__cats { columns: 2; column-gap: 24px; list-style: none; margin: 0; padding: 0; }
.aj-footer__cats li { padding: 6px 0; break-inside: avoid; font-weight: 600; }
.site-footer .widget-title span { background: var(--aj-ink); color: #fff; }
.site-footer .widget { margin-bottom: 0; }
.aj-footer__bottom { background: var(--aj-dark); color: #bfbfbf; font-size: 14px; }
.aj-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; }
.aj-footer__copy { margin: 0; }
.aj-footer__copy a { color: #fff; }
.aj-footer__menu { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.aj-footer__menu a { color: #e0e0e0; }
.aj-footer__menu a:hover { color: var(--aj-accent); }
.aj-footer__menu-hint a { color: var(--aj-accent); font-weight: 600; }

/* Back to top */
.aj-back-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 800; width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: var(--aj-ink); color: #fff; display: grid; place-items: center; cursor: pointer;
	box-shadow: var(--aj-shadow); transition: background .2s, transform .2s;
}
.aj-back-top:hover { background: var(--aj-accent); color: var(--aj-on-accent); transform: translateY(-3px); }
.aj-back-top[hidden] { display: none; }

/* ---------- Empty / 404 ---------- */
.aj-empty { padding: 32px; border-radius: var(--aj-radius); background: var(--aj-soft); }
.aj-empty .aj-search-form { margin: 18px 0 0; }
.aj-404 { text-align: center; padding-block: 48px 0; }
.aj-404__code { font-family: var(--aj-font-heading); font-size: clamp(90px, 18vw, 170px); font-weight: 800; line-height: 1; margin: 0; color: var(--aj-accent); letter-spacing: -.04em; }
.aj-404__title { font-size: clamp(26px, 4vw, 38px); }
.aj-404 .aj-search-form { margin-block: 24px; }
.aj-404 .aj-section { text-align: left; margin-top: 56px; }

/* ---------- Sticky posts & misc ---------- */
.sticky .aj-card__title a::before { content: "★ "; color: var(--aj-accent); }
.bypostauthor > .comment-body .fn::after { content: " ✓"; color: var(--aj-link); }
.wp-block-image img { border-radius: var(--aj-radius-sm); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.aj-page-links { margin-top: 24px; font-weight: 700; display: flex; gap: 10px; }

/* Print: clean article */
@media print {
	.aj-topbar, .aj-navbar, .aj-ticker, .aj-layout__side, .site-footer, .aj-share, .aj-related, .aj-comments, .aj-back-top, .aj-progress, .aj-inline-widget, .post-navigation { display: none !important; }
	.aj-layout { display: block; }
	body { font-size: 12pt; }
}

/* Keep the mobile menu below the WordPress admin bar for logged-in users. */
@media (max-width: 991px) {
	.admin-bar .aj-primary-nav { top: 46px; }
}
@media (min-width: 783px) and (max-width: 991px) {
	.admin-bar .aj-primary-nav { top: 32px; }
}

/* ==========================================================================
   Ads (menu "Iklan")
   ========================================================================== */
.aj-ad { position: relative; text-align: center; margin-block: 28px; clear: both; max-width: 100%; overflow: hidden; }
.aj-ad__label {
	display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--aj-muted); margin-bottom: 6px; line-height: 1;
}
.aj-ad__inner { display: flex; justify-content: center; align-items: center; min-width: 0; }
.aj-ad__inner > * { max-width: 100%; }
.aj-ad__inner ins, .aj-ad__inner iframe { max-width: 100%; }
.aj-ad__img { margin-inline: auto; border-radius: 4px; height: auto; }
.aj-ad__link { display: inline-block; max-width: 100%; }
.aj-header-ad .aj-ad, .widget--ad .aj-ad, .aj-ad-row .aj-ad { margin-block: 0; }
.aj-header-ad .aj-ad__label { text-align: right; }
@media (max-width: 991px) { .aj-header-ad .aj-ad__label { text-align: center; } .aj-header-ad .aj-ad { margin-top: 4px; } }
.aj-ad-row--footer { margin-top: 40px; }
.aj-list > .aj-ad, .aj-grid > .aj-ad { grid-column: 1 / -1; margin-block: 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--aj-line); }
.entry-content > .aj-ad { margin-block: 32px; }
/* Sticky sidebar (desktop): the column stretches to the article height and the
   inner wrapper sticks. JS sets --aj-side-top so a tall sidebar sticks when its
   LAST box reaches the bottom of the screen; a short one sticks under the menu. */
@media (min-width: 992px) {
	.has-sticky-sidebar .aj-layout { align-items: stretch; }
	.has-sticky-sidebar .aj-sticky-side { position: sticky; top: var(--aj-side-top, calc(var(--aj-header-h) + 24px)); }
}

/* Device visibility */
@media (max-width: 767px) { .aj-ad--desktop { display: none !important; } }
@media (min-width: 768px) { .aj-ad--mobile:not(.aj-ad--mobile_sticky) { display: none !important; } }
@media (min-width: 768px) { .aj-ad--mobile_sticky.aj-ad--mobile { display: none !important; } }

/* Sticky bottom ad */
.aj-ad--mobile_sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
	background: var(--aj-bg); box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); overflow: visible;
}
.aj-ad--mobile_sticky .aj-ad__label { position: absolute; left: 8px; top: -18px; background: var(--aj-bg); padding: 4px 8px; border-radius: 4px 4px 0 0; margin: 0; }
.aj-ad--mobile_sticky .aj-ad__img { max-height: 90px; width: auto; }
.aj-ad__close {
	position: absolute; right: 8px; top: -26px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--aj-ink); color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center;
}
.aj-ad.is-closed { display: none !important; }
body.has-sticky-ad:not(.has-sticky-ad--mobile) { padding-bottom: 100px; }
body.has-sticky-ad:not(.has-sticky-ad--mobile) .aj-back-top { bottom: 120px; }
@media (max-width: 767px) {
	body.has-sticky-ad { padding-bottom: 72px; }
	body.has-sticky-ad .aj-back-top { bottom: 96px; }
}
body.has-sticky-ad.sticky-ad-closed { padding-bottom: 0 !important; }
body.has-sticky-ad.sticky-ad-closed .aj-back-top { bottom: 18px !important; }

/* Admin preview of empty positions (?aj_ads_preview=1) */
.aj-ad__placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 90px; padding: 14px;
	border: 2px dashed var(--aj-accent); border-radius: 8px; background: #fff8e1; color: #6b4f00; font-size: 13px; text-decoration: none;
}
.aj-ad__placeholder:hover { color: var(--aj-ink); background: #ffefc2; }
.aj-ad__placeholder strong { font-family: var(--aj-font-heading); font-size: 15px; }
.aj-layout__side .aj-ad__placeholder { min-height: 250px; }

/* Article sidebar: related topics */
.aj-topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.aj-topics a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--aj-soft); border: 1px solid var(--aj-line); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.aj-topics a:hover { background: var(--aj-accent); border-color: var(--aj-accent); color: var(--aj-on-accent); }

/* ==========================================================================
   "Baca Juga" – automatic related links inside articles (one line each)
   ========================================================================== */
.aj-readalso { margin: 24px 0; clear: both; }
.aj-readalso-group { margin: 24px 0; display: grid; gap: 10px; }
.aj-readalso-group .aj-readalso { margin: 0; }
.entry-content .aj-readalso__link {
	display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%;
	padding: 8px 14px 8px 8px; border: 1px solid var(--aj-line); border-left: 4px solid var(--aj-accent);
	border-radius: var(--aj-radius-sm); background: var(--aj-soft);
	color: var(--aj-ink); text-decoration: none; font-family: var(--aj-font-heading); line-height: 1.3;
	transition: background .2s, border-color .2s;
}
.entry-content .aj-readalso__link:hover { background: #fff8e1; border-color: var(--aj-accent); color: var(--aj-ink); text-decoration: none; }
.aj-readalso__img { width: 52px; height: 40px; object-fit: cover; border-radius: 4px; flex-shrink: 0; margin: 0 !important; }
.aj-readalso__label {
	flex-shrink: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--aj-link);
}
.aj-readalso__title {
	flex: 1 1 auto; min-width: 0; font-size: 15.5px; font-weight: 700;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* always one line */
}
@media (max-width: 575px) {
	.entry-content .aj-readalso__link { gap: 10px; padding: 6px 10px 6px 6px; }
	.aj-readalso__img { width: 44px; height: 36px; }
	.aj-readalso__label { font-size: 10.5px; }
	.aj-readalso__title { font-size: 14px; }
}
@media (max-width: 400px) {
	.aj-readalso__img { display: none; } /* small phones: label + title only, more room for the headline */
	.entry-content .aj-readalso__link { padding: 9px 12px; }
}

/* Homepage "more news" button */
.aj-more { margin: 24px 0 0; text-align: center; }
.aj-button--outline { background: transparent; color: var(--aj-ink); border: 2px solid var(--aj-ink); }
.aj-button--outline:hover { background: var(--aj-ink); color: #fff; }
.aj-home-latest { margin-top: 36px; }
.aj-home-latest .aj-latest { margin-bottom: 0; }
