/**
 * Category archive + single post + shared sidebar.
 */

.afj-cat-page,
.afj-single-page {
	background: #f4f1ea;
}

.afj-cat {
	--afj-ink: #0a0a0a;
	--afj-muted: #5c5c5c;
	--afj-line: #d9d4cb;
	--afj-lime: #d4ff00;
	--afj-ease: cubic-bezier(0.22, 1, 0.36, 1);
	font-family: var(--afj-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
	color: var(--afj-ink);
	padding: 1.5rem 0 4.5rem;
}

.afj-cat__shell {
	width: min(1180px, calc(100% - 3rem));
	margin-inline: auto;
}

/* Breadcrumbs */
.afj-cat__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 1.75rem;
	font-size: 0.82rem;
	color: var(--afj-muted);
}

.afj-cat__crumbs a {
	color: inherit;
	text-decoration: none;
}

.afj-cat__crumbs a:hover {
	opacity: 0.7;
}

.afj-cat__crumbs-sep {
	opacity: 0.55;
}

/* Hero */
.afj-cat__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
	padding-bottom: 2.5rem;
	margin-bottom: 2.25rem;
	border-bottom: 1px solid var(--afj-line);
}

.afj-cat__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.afj-cat__eyebrow-text {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.afj-cat__eyebrow-line {
	display: block;
	width: min(120px, 28vw);
	height: 1px;
	background: var(--afj-ink);
}

.afj-cat__title {
	margin: 0;
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: clamp(2.6rem, 6vw, 4.5rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.04em;
	max-width: 10ch;
}

.afj-cat__title--wide {
	max-width: 12ch;
}

/* Static pages using the shared sidebar shell */
.afj-page-content {
	min-width: 0;
}

.afj-page-content.entry-content > *:first-child {
	margin-top: 0;
}

/* Resources — coming soon (affiliate library later) */
.afj-coming-soon {
	padding: 1.75rem 1.5rem;
	border: 1px solid var(--afj-line, #ece8e0);
	border-radius: 16px;
	background:
		linear-gradient(135deg, rgba(212, 255, 0, 0.18) 0%, rgba(255, 255, 255, 0) 42%),
		#fff;
}

.afj-coming-soon__badge {
	display: inline-block;
	margin-bottom: 0.85rem;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: #0a0a0a;
	color: #d4ff00;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.afj-coming-soon__title {
	margin: 0 0 0.7rem;
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
	max-width: 18ch;
}

.afj-coming-soon__text,
.afj-coming-soon__hint {
	margin: 0 0 0.85rem;
	max-width: 48ch;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--afj-muted, #6b675f);
}

.afj-coming-soon__hint {
	margin-bottom: 0;
	font-size: 0.92rem;
}

.afj-coming-soon__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.5rem;
}

.afj-coming-soon__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	background: #d4ff00;
	color: #0a0a0a;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.afj-coming-soon__btn:hover {
	opacity: 0.88;
}

.afj-coming-soon__btn--ghost {
	background: transparent;
	border: 1px solid #0a0a0a;
}

/* Category shortcuts on Ideas / Guides / Tools */
.afj-page-cats {
	margin-top: 0.25rem;
}

.afj-page-cats__list {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	padding-inline-start: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.afj-page-cats__link {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.95rem;
	padding: 0.75rem 0.85rem 0.75rem 0.75rem;
	border: 1px solid var(--afj-line, #ece8e0);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.afj-page-cats__link:hover {
	border-color: #c8c2b6;
	transform: translateY(-1px);
}

.afj-page-cats__media {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 12px;
	overflow: hidden;
	background: #f4f2ec;
}

.afj-page-cats__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afj-page-cats__num {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 12px;
	background: #f4f2ec;
	font-weight: 800;
	font-size: 1.05rem;
}

.afj-page-cats__copy {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.afj-page-cats__title {
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.afj-page-cats__desc {
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--afj-muted, #6b675f);
}

.afj-page-cats__go {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #0a0a0a;
	color: #fff;
	flex-shrink: 0;
}

.afj-page-cats__link:hover .afj-page-cats__go {
	background: #d4ff00;
	color: #0a0a0a;
}

@media (max-width: 640px) {
	.afj-page-cats__link {
		grid-template-columns: 56px minmax(0, 1fr) auto;
		gap: 0.7rem;
	}

	.afj-page-cats__media,
	.afj-page-cats__num {
		width: 56px;
		height: 56px;
	}
}

.afj-page-content .wp-block-heading {
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.afj-cat__dot {
	display: inline-block;
	width: 0.28em;
	height: 0.28em;
	margin-left: 0.12em;
	border-radius: 999px;
	background: var(--afj-lime);
	vertical-align: 0.12em;
}

.afj-cat__hero-aside {
	position: relative;
	padding-left: 1.5rem;
	border-left: 1px solid var(--afj-line);
	padding-top: 0.35rem;
}

.afj-cat__number {
	display: block;
	font-size: 1.35rem;
	font-weight: 800;
	margin-bottom: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.afj-cat__blurb {
	margin: 0 0 1.25rem;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--afj-muted);
	max-width: 34ch;
}

.afj-cat__jumps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.afj-cat__jumps a {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--afj-ink);
}

.afj-cat__jumps a:hover {
	opacity: 0.65;
}

/* Two-column layout */
.afj-cat__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.78fr);
	gap: clamp(2rem, 4vw, 3.25rem);
	align-items: start;
}

.afj-cat__list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.35rem;
}

.afj-cat__list-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	flex: 1;
}

.afj-cat__list-text {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.afj-cat__list-line {
	display: block;
	height: 1px;
	flex: 1;
	max-width: 160px;
	background: var(--afj-line);
}

.afj-cat__sort {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--afj-muted);
	flex-shrink: 0;
}

.afj-cat__sort-prefix {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.68rem;
}

.afj-cat__sort select {
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 800;
	color: var(--afj-ink);
	cursor: pointer;
	padding: 0.15rem 0.1rem;
}

.afj-cat__cards {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

/* Guide cards */
.afj-guide-card {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 1.15rem;
	padding: 0.85rem;
	background: #fff;
	border-radius: 1.15rem;
	transition: transform 0.3s var(--afj-ease), box-shadow 0.3s var(--afj-ease);
}

.afj-guide-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}

.afj-guide-card__media {
	display: block;
	overflow: hidden;
	border-radius: 0.85rem;
	aspect-ratio: 5 / 4;
	background: #e6e2d8;
}

.afj-guide-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.55s var(--afj-ease);
}

.afj-guide-card:hover .afj-guide-card__img {
	transform: scale(1.04);
}

.afj-guide-card__img--ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #ddd8ce, #c8c2b6);
}

.afj-guide-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 0.15rem 0.35rem 0.15rem 0;
}

.afj-guide-card__pill {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: #ece8e0;
	color: var(--afj-muted);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.55rem;
}

.afj-guide-card__title {
	margin: 0 0 0.45rem;
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.afj-guide-card__title a {
	color: inherit;
	text-decoration: none;
}

.afj-guide-card__excerpt {
	margin: 0 0 0.85rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--afj-muted);
	flex: 1;
}

.afj-guide-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
}

.afj-guide-card__meta {
	margin: 0;
	font-size: 0.78rem;
	color: var(--afj-muted);
}

.afj-guide-card__go {
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	border: 1.25px solid var(--afj-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--afj-ink);
	text-decoration: none;
	flex-shrink: 0;
	transition: background 0.25s var(--afj-ease), color 0.25s var(--afj-ease);
}

.afj-guide-card__go:hover {
	background: var(--afj-ink);
	color: #fff;
}

.afj-cat__more-wrap {
	margin-top: 1.75rem;
}

.afj-cat__more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.95rem 1.5rem;
	border-radius: 999px;
	background: var(--afj-ink);
	color: #fff;
	font-size: 0.92rem;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.25s var(--afj-ease), opacity 0.25s var(--afj-ease);
}

.afj-cat__more:hover {
	transform: translateY(-2px);
	opacity: 0.92;
}

.afj-cat__empty {
	margin: 1rem 0;
	color: var(--afj-muted);
}

.afj-cat__pagination {
	margin-top: 1.75rem;
}

.afj-cat__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.afj-cat__pagination .page-numbers a,
.afj-cat__pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.1rem;
	height: 2.1rem;
	padding: 0 0.55rem;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--afj-ink);
	background: #fff;
}

.afj-cat__pagination .page-numbers .current {
	background: var(--afj-ink);
	color: #fff;
}

/* Sidebar */
.afj-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	position: static;
}

.afj-sidebar__cta {
	background: var(--afj-lime);
	border-radius: 1.25rem;
	padding: 1.35rem 1.25rem 1.4rem;
}

.afj-sidebar__cta-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.afj-sidebar__cta-title {
	margin: 0;
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	max-width: 100%;
}

.afj-sidebar__cta-bolt {
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 999px;
	background: var(--afj-ink);
	color: var(--afj-lime);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.afj-sidebar__cta-text {
	margin: 0 0 1.1rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #1a1a1a;
}

.afj-sidebar__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.8rem 1.1rem;
	border-radius: 999px;
	background: var(--afj-ink);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.25s var(--afj-ease);
}

.afj-sidebar__cta-btn:hover {
	transform: translateY(-2px);
}

.afj-sidebar__heading {
	margin: 0 0 0.95rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.afj-sidebar__resources,
.afj-sidebar__related {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.afj-sidebar__resource {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.7rem;
	align-items: start;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--afj-line);
}

.afj-sidebar__resource:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.afj-sidebar__resource-icon {
	color: var(--afj-ink);
	opacity: 0.85;
	padding-top: 0.1rem;
}

.afj-sidebar__resource-title {
	display: block;
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: inherit;
	text-decoration: none;
	margin-bottom: 0.2rem;
}

.afj-sidebar__resource-title:hover {
	opacity: 0.7;
}

.afj-sidebar__resource-desc {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--afj-muted);
}

.afj-sidebar__resource-go {
	color: var(--afj-ink);
	opacity: 0.55;
	padding-top: 0.2rem;
}

.afj-sidebar__related-link {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
	padding: 0.35rem 0;
}

.afj-sidebar__related-img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 0.7rem;
	display: block;
	background: #e6e2d8;
}

.afj-sidebar__related-img--ph {
	display: block;
}

.afj-sidebar__related-title {
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

.afj-sidebar__related-go {
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 999px;
	border: 1.25px solid var(--afj-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.25s var(--afj-ease), color 0.25s var(--afj-ease);
}

.afj-sidebar__related-link:hover .afj-sidebar__related-go {
	background: var(--afj-ink);
	color: #fff;
}

/* Single post */
.afj-single__article {
	min-width: 0;
	background: #fff;
	border-radius: 1.25rem;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.afj-single__header {
	margin-bottom: 1.5rem;
}

.afj-single__title {
	margin: 0.55rem 0 0.75rem;
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.afj-single__meta {
	margin: 0;
	font-size: 0.88rem;
	color: var(--afj-muted);
}

.afj-single__media {
	margin: 0 0 1.75rem;
	overflow: hidden;
	border-radius: 1rem;
}

.afj-single__img {
	width: 100%;
	height: auto;
	display: block;
}

.afj-single__content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #1f1f1f;
}

.afj-single__content > *:first-child {
	margin-top: 0;
}

.afj-single__content > *:last-child {
	margin-bottom: 0;
}

.afj-single__content h2,
.afj-single__content h3,
.afj-single__content h4 {
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	scroll-margin-top: 1.5rem;
}

.afj-single__content p,
.afj-single__content ul,
.afj-single__content ol,
.afj-single__content h2,
.afj-single__content h3,
.afj-single__content figure,
.afj-single__content blockquote {
	margin-block: 0;
}

.afj-single__content > p,
.afj-single__content > .wp-block-paragraph {
	margin-bottom: 1rem;
}

.afj-single__content h2 {
	margin: 2.35rem 0 0.85rem;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.afj-single__content h3 {
	margin: 0 0 0.35rem;
	font-size: 1.12rem;
}

.afj-single__content .afj-article-dek {
	margin-bottom: 1.15rem;
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: clamp(1.25rem, 2vw, 1.45rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.afj-single__content .afj-article-kicker {
	margin: 2.35rem 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--afj-muted);
}

.afj-single__content .afj-article-kicker + h2 {
	margin-top: 0;
}

.afj-single__content ul,
.afj-single__content ol {
	margin: 0.35rem 0 1.15rem;
	padding-left: 1.25rem;
}

.afj-single__content li {
	margin: 0.4rem 0;
	padding-left: 0.2rem;
}

.afj-single__content li::marker {
	font-weight: 800;
	color: var(--afj-ink);
}

.afj-single__content .wp-block-quote {
	margin: 1.35rem 0 1.5rem;
	padding: 0.15rem 0 0.15rem 1.05rem;
	border-left: 3px solid var(--afj-ink);
}

.afj-single__content .wp-block-quote p {
	margin: 0;
	font-family: var(--afj-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.afj-single__content .wp-block-table {
	margin: 1.15rem 0 1.4rem;
	overflow-x: auto;
}

.afj-single__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.96rem;
}

.afj-single__content th,
.afj-single__content td {
	padding: 0.8rem 0.9rem;
	border-bottom: 1px solid var(--afj-line);
	text-align: left;
	vertical-align: top;
}

.afj-single__content th {
	background: #f7f4ee;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.afj-single__content tr:last-child td {
	border-bottom: 0;
}

.afj-article-toc {
	margin: 0.35rem 0 1.75rem;
	padding: 1.05rem 1.15rem 0.95rem;
	background: #f7f4ee;
	border-radius: 1rem;
}

.afj-article-toc__label {
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.afj-article-toc ol {
	margin: 0;
}

.afj-article-toc a {
	color: inherit;
	font-weight: 650;
	text-decoration: none;
}

.afj-article-toc a:hover {
	text-decoration: underline;
}

.afj-article-note {
	margin: 1.15rem 0 1.35rem;
	padding: 1rem 1.1rem 0.15rem;
	background: #f7f4ee;
	border-radius: 1rem;
}

.afj-article-note p {
	margin: 0 0 0.85rem;
}

.afj-article-steps {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 1.15rem 0 1.5rem;
}

.afj-article-step {
	display: grid;
	grid-template-columns: 5.4rem minmax(0, 1fr);
	gap: 0.9rem;
	align-items: start;
	padding: 0.95rem 1rem;
	background: #fff;
	border: 1px solid var(--afj-line);
	border-radius: 1rem;
}

.afj-article-step__day {
	margin: 0.15rem 0 0;
	padding: 0.35rem 0.4rem;
	background: var(--afj-lime);
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.afj-article-step p:last-child {
	margin: 0;
	color: var(--afj-muted);
}

@media (max-width: 640px) {
	.afj-article-step {
		grid-template-columns: 1fr;
	}

	.afj-article-step__day {
		width: fit-content;
	}
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 960px) {
	.afj-cat__hero {
		grid-template-columns: 1fr;
	}

	.afj-cat__hero-aside {
		padding-left: 0;
		border-left: 0;
		padding-top: 0;
		border-top: 1px solid var(--afj-line);
		padding-top: 1.25rem;
	}

	.afj-cat__layout {
		grid-template-columns: 1fr;
	}

	.afj-sidebar {
		order: 2;
	}
}

@media (max-width: 640px) {
	.afj-cat__shell {
		width: calc(100% - 2rem);
	}

	.afj-guide-card {
		grid-template-columns: 1fr;
	}

	.afj-guide-card__media {
		aspect-ratio: 16 / 10;
	}

	.afj-cat__title {
		max-width: none;
	}

	.afj-cat__list-head {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Tools index — tighter hero → cards spacing */
body.page-slug-tools .afj-cat__hero {
	padding-bottom: 1.5rem;
	margin-bottom: 1rem;
}

.afj-resources {
	margin: 0;
}

.afj-resources-grid {
	display: grid;
	gap: 0.75rem;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	padding-inline-start: 0 !important;
}

.afj-resources-grid > li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.afj-resources-grid > li::marker {
	content: none;
}

.afj-resources-grid__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.9rem;
	align-items: start;
	padding: 1rem 1.1rem;
	border: 1px solid #e4e0d8;
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.afj-resources-grid__link:hover {
	border-color: #0a66c2;
	box-shadow: 0 12px 28px rgba(10, 102, 194, 0.1);
	transform: translateY(-1px);
}

.afj-resources-grid__badge {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 11px;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, #0a66c2, #1c86ff);
}

.afj-resources-grid__badge--headshot {
	color: #111;
	background: linear-gradient(135deg, #ffb800, #f59e0b);
}

.afj-resources-grid__badge--checklist {
	color: #0a0a0a;
	background: linear-gradient(135deg, #d4ff00, #b8e000);
}

.afj-resources-grid__badge--kit {
	color: #fff;
	background: linear-gradient(135deg, #111827, #374151);
}

.afj-resources-grid__soon {
	display: inline-flex;
	align-items: center;
	margin-left: 0.45rem;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: #0a0a0a;
	color: #d4ff00;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	vertical-align: middle;
}

.afj-resources-grid__link.is-soon {
	opacity: 0.96;
}

.afj-tool-soon-page .afj-cat__number {
	font-size: clamp(1.4rem, 3vw, 2rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.afj-resources-grid__title {
	display: block;
	margin: 0.15rem 0 0.2rem;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.25;
	color: #0a0a0a;
}

.afj-resources-grid__desc {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #6b675f;
}

.afj-resources-grid__go {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: 0.35rem;
	color: #0a66c2;
}
