/*
 * ABF Accounting — Resources (blog), tax calculator, article and legal templates.
 *
 * Figma frames (page 01): Resources 1044:1598, Category 1052:1291, Post Wide 1052:1547,
 * Post Narrow 1296:1437, Search 1296:1715, No Results 1296:1972, Legal 1045:1390 and siblings.
 */

/* ---------- Shared pieces ---------- */

.abf-search,
.abf-search *,
.abf-calc,
.abf-calc *,
.abf-post-sidebar * {
	box-sizing: border-box;
}

.abf-blog-subtitle {
	color: var(--abf-ink);
	font-size: 28px;
	font-weight: 700;
	line-height: 34px;
	letter-spacing: -0.01em;
}

.abf-chips li {
	flex-shrink: 0;
}

.abf-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Category pills: 40px tall, 20px side padding, never wrapping (client fix list). */
.abf-chip {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 40px;
	padding: 0 20px;
	border: 1px solid rgba(13, 51, 63, 0.1);
	border-radius: 999px;
	background: #fff;
	color: var(--abf-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 21px;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--abf-transition), border-color var(--abf-transition), color var(--abf-transition);
}

.abf-chip:hover {
	border-color: rgba(13, 51, 63, 0.3);
}

.abf-chip.is-active {
	border-color: var(--abf-teal);
	background: var(--abf-teal);
	color: #fff;
}

.abf-search {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 71px;
	padding: 8px 8px 8px 24px;
	border: 1px solid rgba(13, 51, 63, 0.1);
	border-radius: 16px;
	background: #fff;
}

.abf-search::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: none;
	background: url("../icons/search.svg") center / contain no-repeat;
}

.abf-search input {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--abf-ink);
	font: inherit;
	font-size: 16px;
	line-height: 25px;
	letter-spacing: -0.01em;
	outline: 0;
}

.abf-search input::placeholder {
	color: #94a3b8;
	opacity: 1;
}

.abf-search input::-webkit-search-cancel-button {
	cursor: pointer;
}

.abf-search:focus-within {
	border-color: var(--abf-green);
	box-shadow: 0 0 0 3px rgba(3, 168, 78, 0.12);
}

.abf-search__button {
	flex: none;
	min-height: 53px;
	padding: 14px 24px;
	border: 0;
	border-radius: 12px;
	background: var(--abf-green);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 25px;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: background-color var(--abf-transition);
}

.abf-search__button:hover,
.abf-search__button:focus-visible {
	background: var(--abf-green-dark);
}

/* ---------- Blog hero (Resources, category, search) ---------- */

.abf-blog-hero {
	padding-block: 104px 88px;
	background: var(--abf-ice);
	text-align: center;
}

.abf-blog-hero > .abf-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
}

.abf-blog-hero__eyebrow {
	font-weight: 600;
	letter-spacing: 0.08em;
}

.abf-blog-hero__title {
	max-width: 1100px;
	color: var(--abf-ink);
	font-size: 60px;
	font-weight: 800;
	line-height: 66px;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.abf-blog-hero__text {
	max-width: 940px;
	color: var(--abf-muted);
	font-size: 16px;
	line-height: 25px;
	letter-spacing: -0.01em;
}

.abf-blog-hero--archive {
	padding-bottom: 96px;
}

.abf-blog-hero .wp-block-html {
	display: contents;
}

.abf-search--hero {
	width: min(720px, 100%);
	text-align: left;
}

.abf-blog-hero .abf-chips ul {
	justify-content: center;
}

/* ---------- Tax calculator ---------- */

.abf-taxcalc {
	padding-block: 96px;
}

.abf-taxcalc > .abf-container {
	display: grid;
	grid-template-columns: minmax(0, 480px) minmax(0, 1020px);
	justify-content: space-between;
	align-items: center;
	gap: 80px;
}

.abf-taxcalc__message {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.abf-taxcalc__message .abf-pill {
	align-self: flex-start;
	padding: 7px 14px;
}

.abf-taxcalc__title {
	color: var(--abf-ink);
	font-size: 48px;
	font-weight: 800;
	line-height: 54px;
	letter-spacing: -0.01em;
}

.abf-taxcalc__text {
	color: var(--abf-muted);
	font-size: 18px;
	line-height: 28px;
	letter-spacing: -0.01em;
}

.abf-taxcalc__points {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.abf-taxcalc__points li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--abf-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 25px;
	letter-spacing: -0.01em;
}

.abf-taxcalc__points li::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: none;
	background: url("../icons/tick-calc.svg") center / contain no-repeat;
}

.abf-calc {
	display: grid;
	grid-template-columns: minmax(0, 598fr) minmax(0, 420fr);
	overflow: hidden;
	border: 1px solid rgba(13, 51, 63, 0.08);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 28px 60px -16px rgba(13, 51, 63, 0.1);
}

.abf-calc__inputs {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 36px;
}

.abf-calc__title {
	color: var(--abf-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: -0.01em;
}

.abf-calc__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.abf-calc__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.abf-calc__field label {
	color: var(--abf-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: -0.01em;
}

.abf-calc__input {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 55px;
	padding: 0 16px;
	border: 1px solid rgba(9, 36, 45, 0.12);
	border-radius: 12px;
	background: var(--abf-ice);
	transition: border-color var(--abf-transition), box-shadow var(--abf-transition);
}

.abf-calc__input:focus-within {
	border-color: var(--abf-green);
	box-shadow: 0 0 0 3px rgba(3, 168, 78, 0.12);
}

.abf-calc__affix {
	flex: none;
	color: var(--abf-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 25px;
}

.abf-calc__input input,
.abf-calc__input select {
	flex: 1;
	width: 100%;
	min-width: 0;
	min-height: 53px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--abf-ink);
	font: inherit;
	font-size: 16px;
	line-height: 25px;
	letter-spacing: -0.01em;
	outline: 0;
}

.abf-calc__input input::placeholder {
	color: #94a3b8;
	opacity: 1;
}

.abf-calc__input input[aria-invalid="true"] {
	color: #b42318;
}

.abf-calc__input--select select {
	padding-right: 24px;
	font-weight: 600;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.abf-calc__input--select::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: url("../icons/select-chevron.svg") center / contain no-repeat;
	pointer-events: none;
}

.abf-calc__error {
	color: #b42318;
	font-size: 13px;
	line-height: 18px;
}

.abf-calc__submit {
	min-height: 57px;
	padding: 16px;
	border: 0;
	border-radius: 12px;
	background: var(--abf-green);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 25px;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: background-color var(--abf-transition);
}

.abf-calc__submit:hover,
.abf-calc__submit:focus-visible {
	background: var(--abf-green-dark);
}

.abf-calc__results {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 36px;
	background: var(--abf-teal);
	color: #fff;
}

.abf-calc__eyebrow {
	color: var(--abf-bright);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.abf-calc__net {
	color: #fff;
	font-size: 44px;
	font-weight: 800;
	line-height: 48px;
	letter-spacing: -0.01em;
}

.abf-calc__periods {
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	line-height: 21px;
	letter-spacing: -0.01em;
	white-space: pre-wrap;
}

.abf-calc__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

.abf-calc__row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding-block: 9px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
	line-height: 21px;
	letter-spacing: -0.01em;
}

.abf-calc__row dt {
	color: rgba(255, 255, 255, 0.75);
	font-weight: 500;
}

.abf-calc__row dd {
	margin: 0;
	color: #fff;
	font-weight: 700;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.abf-calc__row--total dt {
	color: #fff;
	font-weight: 700;
}

.abf-calc__row--rate {
	padding: 0;
	border: 0;
}

.abf-calc__row--rate dt {
	font-weight: 400;
}

.abf-calc__note {
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	line-height: 21px;
	letter-spacing: -0.01em;
}

.abf-calc__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 25px;
	letter-spacing: -0.01em;
	text-decoration: none;
	transition: background-color var(--abf-transition), border-color var(--abf-transition);
}

.abf-calc__cta:hover,
.abf-calc__cta:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* ---------- Featured article ---------- */

.abf-blog-featured {
	padding-block: 96px;
}

.abf-blog-featured > .abf-container {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.abf-blog-featured .wp-block-html {
	min-width: 0;
}

.abf-blog-filters {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.abf-search--filters {
	width: min(720px, 100%);
	max-width: 100%;
	flex: none;
}

.abf-featured-query .wp-block-post-template,
.abf-featured-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.abf-featured {
	display: grid;
	grid-template-columns: minmax(0, 820fr) minmax(0, 758fr);
	align-items: center;
	min-height: 480px;
	overflow: hidden;
	border: 1px solid rgba(13, 51, 63, 0.07);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 20px 48px -14px rgba(13, 51, 63, 0.08);
}

.abf-featured__image {
	align-self: stretch;
	height: 100%;
	min-height: 478px;
	margin: 0;
}

.abf-featured__image a,
.abf-featured__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.abf-featured__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 48px 64px;
}

.abf-featured__cat a,
.abf-cat-chip {
	display: inline-flex;
	padding: 6px 14px;
	border: 1px solid rgba(13, 51, 63, 0.08);
	border-radius: 999px;
	background: var(--abf-ice);
	color: var(--abf-green);
	font-size: 12px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.abf-featured__cat .wp-block-post-terms__separator {
	display: none;
}

.abf-featured__cat {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.abf-featured__title {
	color: var(--abf-ink);
	font-size: 34px;
	font-weight: 800;
	line-height: 40px;
	letter-spacing: -0.01em;
}

.abf-featured__title a,
.abf-card__title a {
	color: inherit;
	text-decoration: none;
}

.abf-featured__title a:hover,
.abf-card__title a:hover {
	color: var(--abf-green);
}

.abf-featured__excerpt,
.abf-card__excerpt {
	color: var(--abf-muted);
	font-size: 16px;
	line-height: 25px;
	letter-spacing: -0.01em;
}

.abf-featured__excerpt p,
.abf-card__excerpt p,
.abf-post-hero__lead p {
	margin: 0;
}

.abf-featured__excerpt .wp-block-post-excerpt__more-text,
.abf-card__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.abf-featured__meta,
.abf-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	color: var(--abf-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 21px;
	letter-spacing: -0.01em;
}

.abf-featured__meta .abf-meta-author::before {
	content: "By ";
}

.abf-meta-author + .abf-meta-date::before {
	content: "\00a0·\00a0";
}

.abf-read-more.wp-block-read-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 15px 26px;
	border-radius: 12px;
	background: var(--abf-green);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-decoration: none;
	transition: background-color var(--abf-transition);
}

.abf-read-more.wp-block-read-more::after {
	content: "";
	width: 18px;
	height: 18px;
	background: url("../icons/arrow-white.svg") center / contain no-repeat;
}

.abf-read-more.wp-block-read-more:hover,
.abf-read-more.wp-block-read-more:focus-visible {
	background: var(--abf-green-dark);
	color: #fff;
}

/* ---------- Article grid and cards ---------- */

.abf-blog-grid {
	padding-block: 0 96px;
}

.abf-blog-grid > .abf-container,
.abf-grid-query {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.abf-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.abf-cards > li {
	display: flex;
	margin: 0;
}

.abf-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(13, 51, 63, 0.07);
	border-radius: 24px;
	background: #fff;
	transition: box-shadow var(--abf-transition), transform var(--abf-transition);
}

.abf-card:hover {
	box-shadow: 0 20px 48px -14px rgba(13, 51, 63, 0.12);
}

.abf-card__image {
	height: 260px;
	margin: 0;
}

.abf-card__image a,
.abf-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.abf-card__copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
}

.abf-card__cat {
	color: var(--abf-green);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.abf-card__cat a {
	color: inherit;
	text-decoration: none;
}

.abf-card__title {
	color: var(--abf-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: -0.01em;
}

.abf-card__meta {
	margin-top: auto;
	color: var(--abf-muted);
	font-size: 14px;
	line-height: 21px;
	letter-spacing: -0.01em;
}

.abf-readtime__sep {
	white-space: pre;
}

.abf-pagination {
	gap: 10px;
	margin: 0;
}

.abf-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: 10px;
}

.abf-pagination .page-numbers,
.abf-pagination .wp-block-query-pagination-next,
.abf-pagination .wp-block-query-pagination-previous {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 43px;
	min-height: 43px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid rgba(13, 51, 63, 0.1);
	border-radius: 10px;
	background: #fff;
	color: var(--abf-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.abf-pagination .wp-block-query-pagination-next,
.abf-pagination .wp-block-query-pagination-previous {
	padding-inline: 20px;
}

.abf-pagination .page-numbers.current {
	border-color: var(--abf-teal);
	background: var(--abf-teal);
	color: #fff;
}

.abf-pagination .page-numbers.dots {
	border: 0;
}

.abf-pagination a:hover {
	border-color: rgba(13, 51, 63, 0.3);
}

.abf-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 40px;
	border-radius: 24px;
	background: var(--abf-ice);
}

.abf-empty__title {
	color: var(--abf-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
}

.abf-empty__text {
	color: var(--abf-muted);
	font-size: 16px;
	line-height: 22px;
}

.abf-empty__actions .wp-block-button__link {
	padding: 14px 24px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
}

/* ---------- Article ---------- */

.abf-post-hero {
	padding-block: 88px 0;
	background: linear-gradient(180deg, var(--abf-ice) 0%, #fff 100%);
}

.abf-post-hero > .abf-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.abf-post-hero .wp-block-html {
	display: contents;
}

.abf-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--abf-muted);
	font-size: 14px;
	line-height: 21px;
	letter-spacing: -0.01em;
}

.abf-breadcrumb a {
	color: var(--abf-muted);
	font-weight: 600;
	text-decoration: none;
}

.abf-breadcrumb a[aria-current] {
	color: var(--abf-green);
	font-weight: 700;
}

.abf-breadcrumb a:hover {
	color: var(--abf-green);
}

.abf-post-hero .abf-cat-chip {
	border-color: rgba(13, 51, 63, 0.1);
	background: #fff;
}

.abf-post-hero__title {
	max-width: 1200px;
	color: var(--abf-ink);
	font-size: 56px;
	font-weight: 800;
	line-height: 62px;
	letter-spacing: -0.02em;
}

.abf-post-hero__lead {
	max-width: 900px;
	color: var(--abf-muted);
	font-size: 18px;
	line-height: 28px;
	letter-spacing: -0.01em;
}

.abf-post-hero__lead .wp-block-post-excerpt__more-text {
	display: none;
}

.abf-post-meta {
	gap: 0;
}

.abf-post-meta__avatar {
	margin-right: 14px;
}

.abf-post-meta__avatar img {
	display: block;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(13, 51, 63, 0.1);
	border-radius: 50%;
	background: var(--abf-ice);
}

.abf-post-hero__image {
	width: 100%;
	height: 560px;
	margin: 0;
	overflow: hidden;
	border-radius: 28px;
}

.abf-post-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.abf-post-hero--narrow > .abf-container {
	align-items: center;
	text-align: center;
}

.abf-post-hero--narrow .abf-post-meta {
	justify-content: center;
}

.abf-post-hero--narrow .abf-post-hero__image {
	max-width: 1200px;
	height: 520px;
}

.abf-post-body {
	padding-block: 80px 96px;
}

.abf-post-body > .abf-container {
	display: grid;
	grid-template-columns: minmax(0, 1064fr) minmax(0, 420fr);
	align-items: start;
	gap: 96px;
}

.abf-post-body--narrow > .abf-container {
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
}

/* Article content from the editor. */
.abf-prose {
	color: var(--abf-muted);
	font-size: 18px;
	line-height: 31px;
	letter-spacing: -0.01em;
}

.abf-prose > * + * {
	margin-block-start: 20px;
}

.abf-prose > h2,
.abf-prose > h3 {
	color: var(--abf-ink);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.abf-prose > h2 {
	font-size: 30px;
	line-height: 38px;
}

.abf-prose > h3 {
	font-size: 22px;
	line-height: 30px;
}

.abf-prose > * + h2,
.abf-prose > * + h3,
.abf-prose > * + .abf-inline-cta,
.abf-prose > .abf-inline-cta + *,
.abf-prose > * + .abf-key-point + h2 {
	margin-block-start: 36px;
}

.abf-prose > h2:first-child {
	margin-top: 0;
}

.abf-prose a {
	color: var(--abf-green);
	font-weight: 600;
}

.abf-prose strong {
	color: var(--abf-ink);
}

.abf-prose ul,
.abf-prose ol {
	display: grid;
	gap: 10px;
	margin-bottom: 0;
	padding-left: 0;
	line-height: 28px;
}

.abf-prose ul {
	list-style: none;
}

.abf-prose ul > li {
	position: relative;
	padding-left: 20px;
}

.abf-prose ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--abf-green);
}

.abf-prose ol {
	padding-left: 22px;
}

.abf-prose ol > li::marker {
	color: var(--abf-green);
	font-weight: 700;
}

.abf-prose blockquote {
	margin-inline: 0;
	padding-left: 24px;
	border-left: 4px solid var(--abf-green);
	color: var(--abf-ink);
	font-weight: 600;
}

.abf-prose .wp-block-image img {
	border-radius: 18px;
}

.abf-key-point {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 28px;
	border-left: 4px solid var(--abf-green);
	border-radius: 18px;
	background: var(--abf-ice);
}

.abf-key-point__label {
	color: var(--abf-green);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.abf-key-point__text {
	color: var(--abf-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: -0.01em;
}

.abf-inline-cta {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 28px 32px;
	border-radius: 22px;
	background: var(--abf-teal);
}

.abf-inline-cta__copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
}

.abf-inline-cta__eyebrow {
	color: var(--abf-bright);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.abf-inline-cta__title {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
	letter-spacing: -0.01em;
}

.abf-inline-cta__actions {
	flex: none;
}

.abf-inline-cta__actions .wp-block-button__link {
	padding: 15px 24px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 25px;
	text-decoration: none;
}

.abf-prose .abf-inline-cta a {
	color: #fff;
}

/* Sidebar */
.abf-post-sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.abf-side-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border: 1px solid rgba(13, 51, 63, 0.07);
	border-radius: 22px;
	background: #fff;
}

.abf-side-card__title {
	margin: 0;
	color: var(--abf-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 25px;
	letter-spacing: -0.01em;
}

.abf-search--side {
	min-height: 53px;
	padding: 0 16px;
	border-radius: 12px;
	background: var(--abf-ice);
	gap: 10px;
}

.abf-search--side::before {
	width: 18px;
	height: 18px;
}

.abf-search--side .abf-search__button {
	position: absolute;
	width: 1px;
	height: 1px;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
}

.abf-search--side:focus-within .abf-search__button {
	position: static;
	width: auto;
	height: auto;
	min-height: 37px;
	padding: 6px 14px;
	clip-path: none;
	font-size: 14px;
	line-height: 21px;
	border-radius: 10px;
}

.abf-side-cats,
.abf-recent {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.abf-side-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-block: 6px;
	color: var(--abf-muted);
	font-size: 16px;
	font-weight: 600;
	line-height: 25px;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.abf-side-cats a::after {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: url("../icons/arrow-navy.svg") center / contain no-repeat;
	transition: transform var(--abf-transition);
}

.abf-side-cats a:hover {
	color: var(--abf-ink);
}

.abf-side-cats a:hover::after {
	transform: translateX(3px);
}

.abf-recent a {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.abf-recent__thumb {
	width: 84px;
	height: 64px;
	flex: none;
	overflow: hidden;
	border-radius: 12px;
}

.abf-recent__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.abf-recent__copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.abf-recent__title {
	color: var(--abf-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: -0.01em;
}

.abf-recent a:hover .abf-recent__title {
	color: var(--abf-green);
}

.abf-recent__date {
	color: var(--abf-muted);
	font-size: 12px;
	line-height: 21px;
}

/* Related */
.abf-post-related {
	padding-block: 96px;
	background: var(--abf-ice);
}

.abf-post-related > .abf-container {
	display: flex;
	flex-direction: column;
}

.abf-post-related .abf-eyebrow {
	font-weight: 600;
	letter-spacing: 0.08em;
}

.abf-post-related__title {
	margin-top: 40px !important;
	color: var(--abf-ink);
	font-size: 48px;
	font-weight: 800;
	line-height: 54px;
	letter-spacing: -0.01em;
}

.abf-related-query {
	margin-top: 40px;
}

/* ---------- Legal ---------- */

.abf-legal-hero {
	padding-block: 96px 72px;
	background: var(--abf-ice);
	text-align: center;
}

.abf-legal-hero > .abf-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.abf-legal-hero__eyebrow {
	font-weight: 600;
	letter-spacing: 0.08em;
}

.abf-legal-hero__title {
	color: var(--abf-ink);
	font-size: 56px;
	font-weight: 800;
	line-height: 62px;
	letter-spacing: -0.02em;
}

.abf-legal-hero__updated {
	color: var(--abf-muted);
	font-size: 16px;
	line-height: 25px;
	letter-spacing: -0.01em;
}

.abf-legal {
	padding-block: 80px 96px;
}

.abf-legal__article {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 880px;
	margin-inline: auto;
}

.abf-legal__heading {
	color: var(--abf-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
	letter-spacing: -0.01em;
}

.abf-legal__text + .abf-legal__heading {
	margin-top: 36px !important;
}

.abf-legal__text {
	color: var(--abf-muted);
	font-size: 16px;
	line-height: 27px;
	letter-spacing: -0.01em;
}

.abf-legal__text a {
	color: var(--abf-green);
	font-weight: 600;
}

/* ---------- Tablet ---------- */

@media (max-width: 1439px) {
	.abf-taxcalc > .abf-container {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.abf-taxcalc__message {
		max-width: 720px;
	}

	.abf-featured__copy {
		padding: 40px 48px;
	}

	.abf-post-body > .abf-container {
		gap: 56px;
	}
}

@media (max-width: 1199px) {
	.abf-blog-hero {
		padding-block: 80px 72px;
	}

	.abf-blog-hero > .abf-container {
		gap: 32px;
	}

	.abf-blog-hero__title {
		font-size: 48px;
		line-height: 54px;
	}

	.abf-taxcalc,
	.abf-blog-featured,
	.abf-post-related {
		padding-block: 80px;
	}

	.abf-blog-grid {
		padding-bottom: 80px;
	}

	.abf-blog-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.abf-search--filters {
		width: 100%;
	}

	.abf-featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.abf-featured__image {
		height: 380px;
		min-height: 0;
	}

	.abf-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.abf-post-hero {
		padding-top: 64px;
	}

	.abf-post-hero__title {
		font-size: 44px;
		line-height: 52px;
	}

	.abf-post-hero__image,
	.abf-post-hero--narrow .abf-post-hero__image {
		height: 420px;
	}

	.abf-post-body {
		padding-block: 64px 80px;
	}

	.abf-post-body > .abf-container {
		grid-template-columns: minmax(0, 1fr);
		gap: 56px;
	}

	.abf-post-sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.abf-post-sidebar .abf-side-card:first-child {
		grid-column: 1 / -1;
	}

	.abf-post-related__title {
		font-size: 40px;
		line-height: 46px;
	}

	.abf-legal-hero {
		padding-block: 80px 64px;
	}

	.abf-legal-hero__title {
		font-size: 44px;
		line-height: 52px;
	}

	.abf-legal {
		padding-block: 64px 80px;
	}
}

@media (max-width: 991px) {
	.abf-calc {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.abf-blog-hero {
		padding-block: 56px;
	}

	.abf-blog-hero > .abf-container {
		gap: 24px;
	}

	.abf-blog-hero__title {
		font-size: 34px;
		line-height: 40px;
	}

	.abf-blog-hero .abf-chips ul,
	.abf-blog-filters .abf-chips ul {
		justify-content: flex-start;
		flex-wrap: nowrap;
		margin-inline: calc(-1 * var(--abf-gutter));
		padding-inline: var(--abf-gutter);
		padding-bottom: 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.abf-blog-hero .abf-chips,
	.abf-blog-filters .abf-chips {
		width: 100%;
		min-width: 0;
	}

	.abf-chips ul::-webkit-scrollbar {
		display: none;
	}

	.abf-search {
		min-height: 60px;
		padding: 6px 6px 6px 16px;
		gap: 10px;
	}

	.abf-search__button {
		min-height: 46px;
		padding: 10px 16px;
	}

	.abf-search--side {
		min-height: 53px;
		padding: 0 16px;
	}

	.abf-taxcalc,
	.abf-blog-featured,
	.abf-post-related {
		padding-block: 64px;
	}

	.abf-blog-featured > .abf-container,
	.abf-blog-grid > .abf-container,
	.abf-grid-query {
		gap: 32px;
	}

	.abf-blog-grid {
		padding-bottom: 64px;
	}

	.abf-taxcalc__title {
		font-size: 36px;
		line-height: 42px;
	}

	.abf-taxcalc__text {
		font-size: 16px;
		line-height: 25px;
	}

	.abf-taxcalc__points {
		gap: 14px;
	}

	.abf-calc {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 22px;
	}

	.abf-calc__inputs,
	.abf-calc__results {
		padding: 24px 20px;
	}

	.abf-calc__pair {
		grid-template-columns: minmax(0, 1fr);
	}

	.abf-calc__net {
		font-size: 36px;
		line-height: 42px;
	}

	.abf-blog-subtitle {
		font-size: 24px;
		line-height: 30px;
	}

	.abf-featured {
		border-radius: 22px;
	}

	.abf-featured__image {
		height: 220px;
	}

	.abf-featured__copy {
		gap: 14px;
		padding: 24px 20px 28px;
	}

	.abf-featured__title {
		font-size: 26px;
		line-height: 32px;
	}

	.abf-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.abf-card__image {
		height: 210px;
	}

	.abf-card__copy {
		padding: 22px 20px 24px;
	}

	.abf-card__title {
		font-size: 20px;
		line-height: 26px;
	}

	.abf-pagination,
	.abf-pagination .wp-block-query-pagination-numbers {
		gap: 8px;
	}

	.abf-empty {
		padding: 28px 20px;
	}

	.abf-post-hero {
		padding-top: 40px;
	}

	.abf-post-hero > .abf-container {
		gap: 16px;
	}

	.abf-post-hero__title {
		font-size: 32px;
		line-height: 38px;
		letter-spacing: -0.01em;
	}

	.abf-post-hero__lead {
		font-size: 16px;
		line-height: 25px;
	}

	.abf-post-hero__image,
	.abf-post-hero--narrow .abf-post-hero__image {
		height: 230px;
		border-radius: 20px;
	}

	.abf-post-body {
		padding-block: 48px 64px;
	}

	.abf-post-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.abf-prose {
		font-size: 16px;
		line-height: 27px;
	}

	.abf-prose > h2 {
		font-size: 24px;
		line-height: 30px;
	}

	.abf-prose > * + h2,
	.abf-prose > * + h3,
	.abf-prose > * + .abf-inline-cta,
	.abf-prose > .abf-inline-cta + * {
		margin-block-start: 28px;
	}

	.abf-prose ul,
	.abf-prose ol {
		line-height: 25px;
	}

	.abf-prose ul > li::before {
		top: 9px;
	}

	.abf-key-point {
		padding: 20px;
	}

	.abf-key-point__text {
		font-size: 16px;
		line-height: 25px;
	}

	.abf-inline-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 20px;
	}

	.abf-inline-cta__title {
		font-size: 20px;
		line-height: 27px;
	}

	.abf-post-related__title {
		margin-top: 16px !important;
		font-size: 32px;
		line-height: 38px;
	}

	.abf-related-query {
		margin-top: 28px;
	}

	.abf-legal-hero {
		padding-block: 56px 48px;
	}

	.abf-legal-hero__title {
		font-size: 34px;
		line-height: 40px;
	}

	.abf-legal {
		padding-block: 48px 64px;
	}

	.abf-legal__heading {
		font-size: 20px;
		line-height: 27px;
	}

	.abf-legal__text + .abf-legal__heading {
		margin-top: 24px !important;
	}
}

/* ---------- Legal text from the client's site: sub-headings, lists, tables, boxes ---------- */

.abf-legal__article > * + .abf-legal__heading {
	margin-top: 36px !important;
}

.abf-legal__subheading {
	margin-top: 10px !important;
	color: var(--abf-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	letter-spacing: -0.01em;
}

.abf-legal__list,
.abf-legal__list ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding-left: 22px;
	color: var(--abf-muted);
	font-size: 16px;
	line-height: 27px;
	letter-spacing: -0.01em;
}

.abf-legal__list ul {
	margin-top: 8px;
}

.abf-legal__list li::marker {
	color: var(--abf-green);
}

.abf-legal__list strong,
.abf-legal__text strong {
	color: var(--abf-ink);
}

.abf-legal a {
	color: var(--abf-green);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.abf-legal__table {
	margin: 4px 0;
	overflow-x: auto;
	border: 1px solid var(--abf-line);
	border-radius: 14px;
}

.abf-legal__table table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 24px;
	letter-spacing: -0.01em;
}

.abf-legal__table th,
.abf-legal__table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--abf-line);
	text-align: left;
	vertical-align: top;
}

.abf-legal__table th {
	background: var(--abf-ice);
	color: var(--abf-ink);
	font-weight: 700;
}

.abf-legal__table td {
	color: var(--abf-muted);
}

.abf-legal__table tr:last-child td {
	border-bottom: 0;
}

.abf-legal__table td:first-child {
	color: var(--abf-ink);
	font-weight: 600;
}

.abf-legal__box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 24px;
	border-radius: 16px;
	background: var(--abf-ice);
}

.abf-legal__box > .abf-legal__heading,
.abf-legal__box > .abf-legal__subheading {
	margin-top: 0 !important;
}

@media (max-width: 767px) {
	.abf-legal__subheading {
		font-size: 17px;
		line-height: 25px;
	}

	.abf-legal__box {
		padding: 16px 18px;
	}
}

.abf-legal__table thead,
.abf-legal__table tfoot {
	border: 0;
}

@media (max-width: 767px) {
	.abf-legal__table table {
		min-width: 0;
		font-size: 14px;
		line-height: 21px;
	}

	.abf-legal__table th,
	.abf-legal__table td {
		padding: 10px 12px;
		overflow-wrap: anywhere;
	}
}

/* ---------- Article grid, tablet + mobile (Figma "Section / Blog / Article Grid") ---------- */
@media (max-width: 1199px) {
	.abf-blog-grid > .abf-container,
	.abf-grid-query {
		gap: 32px;
	}

	.abf-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.abf-card__image {
		height: 260px;
	}

	.abf-card__title {
		font-size: 20px;
		line-height: 25px;
	}

	.abf-card__excerpt {
		font-size: 16px;
		line-height: 25px;
	}

	.abf-blog-subtitle {
		font-size: 24px;
		line-height: 29px;
	}
}

@media (max-width: 767px) {
	.abf-blog-grid > .abf-container,
	.abf-grid-query {
		gap: 24px;
	}

	.abf-cards {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.abf-blog-subtitle {
		font-size: 22px;
		line-height: 27px;
	}
}

/* ---------- Featured article + filters, tablet + mobile (Figma "Section / Blog / Featured Article") ----------
   Chips, then the search bar (full width), then the card: photo on top, copy below. */
@media (max-width: 1199px) {
	.abf-blog-featured {
		padding-block: 96px;
	}

	.abf-blog-featured > .abf-container {
		gap: 32px;
	}

	.abf-blog-filters {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.abf-search--filters {
		width: 100%;
	}

	.abf-featured {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.abf-featured__image {
		height: 425px;
		min-height: 0;
	}

	.abf-featured__copy {
		gap: 18px;
		padding: 48px 40px;
	}

	.abf-featured__title {
		font-size: 30px;
		line-height: 35px;
	}
}

@media (max-width: 767px) {
	.abf-blog-featured {
		padding-block: 96px;
	}

	.abf-blog-featured > .abf-container {
		gap: 24px;
	}

	.abf-featured__image {
		height: 230px;
	}

	.abf-featured__copy {
		gap: 14px;
		padding: 32px 24px;
	}

	.abf-featured__title {
		font-size: 24px;
		line-height: 29px;
	}

	.abf-card__image {
		height: 230px;
	}

	.abf-card__copy {
		padding: 24px;
	}
}

/* ---------- Post hero, body, sidebar, tablet + mobile (Figma "Section / Post / ...") ---------- */
@media (max-width: 1199px) {
	.abf-post-hero__title {
		font-size: 44px;
		line-height: 49px;
	}

	.abf-post-hero__image {
		height: 427px;
	}

	.abf-post-hero--narrow .abf-post-hero__image {
		height: 427px;
	}

	.abf-post-body {
		padding-block: 80px 96px;
	}

	.abf-post-body > .abf-container {
		gap: 28px;
	}

	/* Inline CTA: copy, then a full-width button (Figma "Inline CTA / Need accounting support"). */
	.abf-inline-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.abf-inline-cta__title {
		font-size: 20px;
		line-height: 27px;
	}

	.abf-inline-cta__actions,
	.abf-inline-cta__actions .wp-block-button,
	.abf-inline-cta__actions .wp-block-button__link {
		width: 100%;
	}

	/* Sidebar cards stacked at full width. */
	.abf-post-sidebar {
		display: flex !important;
		flex-direction: column;
		gap: 28px;
	}

	.abf-post-sidebar .abf-side-card:first-child {
		grid-column: auto;
	}
}

@media (max-width: 767px) {
	.abf-post-hero__title {
		font-size: 34px;
		line-height: 38px;
	}

	.abf-post-hero__lead {
		font-size: 16px;
		line-height: 25px;
	}

	.abf-post-hero__image,
	.abf-post-hero--narrow .abf-post-hero__image {
		height: 217px;
	}
}

@media (max-width: 1199px) {
	.abf-post-hero--narrow .abf-post-hero__image {
		height: 298px;
	}

	.abf-post-related__title {
		font-size: 36px;
		line-height: 41px;
	}
}

@media (max-width: 767px) {
	.abf-post-hero--narrow .abf-post-hero__image {
		height: 217px;
	}

	.abf-post-related__title {
		font-size: 30px;
		line-height: 34px;
	}
}

/* Legal hero, tablet + mobile (Figma "Section / Legal / Hero"): 96/72 padding at every size. */
@media (max-width: 1199px) {
	.abf-legal-hero {
		padding-block: 96px 72px;
	}

	.abf-legal-hero__title {
		font-size: 44px;
		line-height: 49px;
	}
}

@media (max-width: 767px) {
	.abf-legal-hero {
		padding-block: 96px 72px;
	}

	.abf-legal-hero__title {
		font-size: 34px;
		line-height: 38px;
	}
}

/* ---------- QA fixes ---------- */

/* Featured post card: thin border, no shadow (Figma "Featured post"). */
.abf-featured {
	box-shadow: none;
}

/* Sidebar category arrows are green in Figma. */
.abf-side-cats a::after {
	background-image: url("../icons/arrow-right.svg");
}

/* Resources hero and tax calculator headings, tablet + mobile. */
@media (max-width: 1199px) {
	.abf-blog-hero .abf-page-title,
	.abf-blog-hero__title {
		font-size: 44px;
		line-height: 48px;
	}

	.abf-taxcalc__title {
		font-size: 36px;
		line-height: 41px;
	}
}

@media (max-width: 767px) {
	.abf-blog-hero .abf-page-title,
	.abf-blog-hero__title {
		font-size: 34px;
		line-height: 37px;
	}

	.abf-taxcalc__title {
		font-size: 30px;
		line-height: 34px;
	}

	/* Post meta stays on one line (Figma "Meta"). */
	.abf-post-meta {
		flex-wrap: nowrap;
		white-space: nowrap;
	}
}

/* Post meta: one line from 375px; on the narrowest phones it may wrap. The byline logo keeps its shape. */
@media (max-width: 374px) {
	.abf-post-meta {
		flex-wrap: wrap;
		white-space: normal;
	}
}

.abf-post-meta__avatar img {
	object-fit: contain;
}

/* Tables inside articles (from the client's blog document). */
.abf-prose .abf-post-table,
.abf-prose .wp-block-table {
	margin-inline: 0;
	overflow-x: auto;
	border: 1px solid var(--abf-line);
	border-radius: 14px;
}

.abf-prose .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 25px;
}

.abf-prose .wp-block-table th,
.abf-prose .wp-block-table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--abf-line);
	text-align: left;
	vertical-align: top;
}

.abf-prose .wp-block-table thead {
	border: 0;
}

.abf-prose .wp-block-table th {
	background: var(--abf-ice);
	color: var(--abf-ink);
	font-weight: 700;
}

.abf-prose .wp-block-table tr:last-child td {
	border-bottom: 0;
}

.abf-prose .wp-block-table td:first-child {
	color: var(--abf-ink);
	font-weight: 600;
}

@media (max-width: 767px) {
	.abf-prose .wp-block-table table {
		font-size: 14px;
		line-height: 21px;
	}

	.abf-prose .wp-block-table th,
	.abf-prose .wp-block-table td {
		padding: 10px 12px;
	}
}

/* "Read article" matches the Search button: 53px high, 14px 24px, 16/25 bold, 12px radius
   (it was 82px high: min-height without border-box, plus padding). */
.abf-read-more.wp-block-read-more {
	box-sizing: border-box;
	min-height: 53px;
	padding: 14px 24px;
	line-height: 25px;
}

@media (max-width: 767px) {
	.abf-read-more.wp-block-read-more {
		min-height: 46px;
		padding: 10px 16px;
	}
}
