/* ==========================================================================
   Financo blog
   Loaded on the blog index, archives, search and single posts only.
   Prefix: .fb- (financo blog)
   ========================================================================== */

:root {
	--fb-green: #004443;
	--fb-green-dark: #002e33;
	--fb-mint: #8ad0c5;
	--fb-mint-soft: #e6efee;
	--fb-cream: #f9f8f6;
	--fb-sand: #f4efe5;
	--fb-sand-soft: #f7f2e8;
	--fb-yellow: #fde688;
	--fb-muted: #496b6e;
	--fb-text: #272324;
	--fb-line: rgba(0, 68, 67, .12);
	--fb-radius: 20px;
	--fb-radius-sm: 12px;
	--fb-shadow: 0 12px 30px -18px rgba(0, 46, 51, .35);
	--fb-shadow-lg: 0 26px 50px -30px rgba(0, 46, 51, .5);
}

body.blog-layout {
	background-color: var(--fb-cream);
}

.blog-layout img {
	max-width: 100%;
	height: auto;
}

.blog-layout .container--narrow {
	max-width: 780px;
}

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

/* Reduce the theme-wide transition on everything to what actually needs it. */
.blog-layout .fb-main *,
.blog-layout .fb-footer * {
	transition: none;
}

.blog-layout a,
.blog-layout button,
.blog-layout .fb-card,
.blog-layout .fb-pill {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease,
		box-shadow .25s ease, transform .25s ease, opacity .2s ease;
}

/* --------------------------------------------------------------------------
   Header / footer navigation
   The blog header repeats the markup of the site header (see header-blog.php),
   so its styling comes from style.css. Nothing is redefined here.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.fb-hero {
	position: relative;
	overflow: hidden;
	padding: 40px 0 32px;
	background-color: var(--fb-cream);
	text-align: center;
}

.fb-hero > .container {
	position: relative;
	z-index: 1;
}

.fb-hero__title {
	margin: 0;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--fb-green-dark);
}

/* Mint accent under the title, matching the article header. */
.fb-hero__title:after {
	display: block;
	width: 56px;
	height: 4px;
	margin: 18px auto 0;
	border-radius: 999px;
	background-color: var(--fb-mint);
	content: "";
}

.fb-hero__title span {
	color: var(--fb-green);
}

.fb-hero__intro {
	max-width: 620px;
	margin: 12px auto 0;
	color: var(--fb-muted);
}

.fb-hero__intro p {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.6;
}

.fb-filter {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 24px -20px 0;
	padding: 2px 20px 6px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.fb-filter::-webkit-scrollbar {
	display: none;
}

.fb-filter .fb-pill {
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Pills, buttons, links, search
   -------------------------------------------------------------------------- */

.fb-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--fb-line);
	background-color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--fb-green);
	white-space: nowrap;
}

.fb-pill:hover {
	border-color: var(--fb-green);
	color: var(--fb-green);
}

.fb-pill.is-active {
	background-color: var(--fb-green);
	border-color: var(--fb-green);
	color: #fff;
}

.fb-pill--light {
	background-color: var(--fb-mint-soft);
	border-color: transparent;
	color: var(--fb-green);
}

.fb-button {
	display: inline-block;
	padding: 0 28px;
	height: 48px;
	line-height: 46px;
	border: 1px solid var(--fb-green);
	border-radius: 14px;
	background-color: var(--fb-green);
	font-size: 16px;
	font-weight: 500;
	color: #fff !important;
	cursor: pointer;
}

.fb-button:hover {
	background-color: var(--fb-green-dark);
	border-color: var(--fb-green-dark);
}

.fb-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 15px;
	font-weight: 500;
	color: var(--fb-green);
}

.fb-link svg {
	transition: transform .25s ease;
}

.fb-card:hover .fb-link svg {
	transform: translateX(4px);
}

.fb-search {
	position: relative;
	max-width: 420px;
	margin-top: 20px;
}

.fb-search__field {
	width: 100%;
	height: 50px;
	padding: 0 52px 0 18px;
	border: 1px solid var(--fb-line);
	border-radius: 14px;
	background-color: #fff;
	font-family: inherit;
	font-size: 15px;
	color: var(--fb-text);
	-webkit-appearance: none;
	appearance: none;
}

.fb-search__field:focus {
	outline: 0;
	border-color: var(--fb-mint);
	box-shadow: 0 0 0 3px rgba(138, 208, 197, .3);
}

.fb-search__submit {
	position: absolute;
	right: 6px;
	top: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background-color: var(--fb-green);
	color: #fff;
	cursor: pointer;
}

.fb-search__submit:hover {
	background-color: var(--fb-green-dark);
}

/* --------------------------------------------------------------------------
   Listing
   -------------------------------------------------------------------------- */

.fb-list,
.fb-content,
.fb-card__body {
	text-align: left;
}

.fb-list {
	padding: 32px 0 48px;
}

.fb-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.fb-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #fff;
	border: 1px solid rgba(0, 68, 67, .08);
	border-radius: var(--fb-radius);
	box-shadow: var(--fb-shadow);
}

.fb-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--fb-shadow-lg);
}

.fb-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background-color: var(--fb-mint-soft);
}

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

.fb-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--fb-mint-soft), var(--fb-sand));
}

.fb-card__placeholder img {
	width: 120px;
	height: auto;
	opacity: .45;
}

.fb-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 22px;
}

.fb-card__body .fb-pill {
	align-self: flex-start;
	margin-bottom: 12px;
}

.fb-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 600;
	color: var(--fb-green-dark);
}

.fb-card__title a {
	color: inherit;
}

.fb-card:hover .fb-card__title a {
	color: var(--fb-green);
}

.fb-card__excerpt {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--fb-muted);
}

.fb-card .fb-meta {
	margin-top: 14px;
}

.fb-card .fb-link {
	margin-top: auto;
	padding-top: 14px;
}

.fb-card--featured {
	margin-bottom: 32px;
}

.fb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--fb-muted);
}

.fb-meta__dot {
	opacity: .5;
}

.fb-empty {
	padding: 40px 0 20px;
	text-align: center;
	color: var(--fb-muted);
}

.fb-empty .fb-search {
	margin: 20px auto 0;
}

/* Pagination */

.fb-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
}

.fb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--fb-line);
	border-radius: 12px;
	background-color: #fff;
	font-size: 15px;
	font-weight: 500;
	color: var(--fb-green);
}

.fb-pagination .page-numbers:hover {
	border-color: var(--fb-green);
}

.fb-pagination .page-numbers.current {
	background-color: var(--fb-green);
	border-color: var(--fb-green);
	color: #fff;
}

.fb-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */

.fb-single__header {
	position: relative;
	overflow: hidden;
	padding: 36px 0 32px;
	background-color: var(--fb-cream);
	text-align: center;
}

.fb-single__header > .container {
	position: relative;
	z-index: 1;
}

/*
 * Brand decoration: the beige shape and the hand-drawn arrow the marketing
 * pages use in their sub-page hero. Desktop only — below that the header is
 * too narrow for them to sit next to the text.
 */
.fb-single__header:before,
.fb-single__header:after {
	display: none;
	position: absolute;
	content: "";
	pointer-events: none;
}

.fb-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--fb-muted);
}

.fb-breadcrumb a {
	color: var(--fb-muted);
}

.fb-breadcrumb a:hover {
	color: var(--fb-green);
}

.fb-single__title {
	max-width: 820px;
	margin: 16px auto 0;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--fb-green-dark);
}

/* Mint accent under the title. */
.fb-single__title:after {
	display: block;
	width: 56px;
	height: 4px;
	margin: 18px auto 0;
	border-radius: 999px;
	background-color: var(--fb-mint);
	content: "";
}

.fb-single__lead {
	max-width: 640px;
	margin: 18px auto 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--fb-muted);
}

.fb-meta--single {
	justify-content: center;
	margin-top: 20px;
	font-size: 14px;
}

.fb-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 16px;
	border-radius: 999px;
	background-color: var(--fb-mint-soft);
	font-size: 13px;
	font-weight: 500;
	color: var(--fb-green);
}

.fb-single__cover {
	margin: 28px 0 0;
	padding: 0;
	overflow: hidden;
	border-radius: var(--fb-radius);
	box-shadow: var(--fb-shadow);
	background-color: var(--fb-mint-soft);
}

.fb-single__cover img {
	display: block;
	width: 100%;
	height: auto;
}

.fb-single__cover figcaption {
	padding: 10px 16px;
	background-color: #fff;
	font-size: 13px;
	color: var(--fb-muted);
}

/* Post content typography */

.fb-content {
	padding: 28px 0 8px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--fb-text);
}

.fb-content > *:first-child {
	margin-top: 0;
}

.fb-content p {
	margin: 0 0 20px;
}

.fb-content h2,
.fb-content h3,
.fb-content h4 {
	margin: 36px 0 14px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--fb-green-dark);
}

.fb-content h2 {
	font-size: 23px;
}

.fb-content h3 {
	font-size: 19px;
}

.fb-content h4 {
	font-size: 17px;
}

.fb-content a {
	color: var(--fb-green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fb-content a:hover {
	color: var(--fb-mint);
}

.fb-content ul,
.fb-content ol {
	margin: 0 0 20px;
	padding-left: 22px;
}

.fb-content li {
	margin-bottom: 8px;
}

.fb-content ul li::marker {
	color: var(--fb-mint);
}

.fb-content img,
.fb-content iframe,
.fb-content video {
	max-width: 100%;
	height: auto;
	border-radius: var(--fb-radius-sm);
}

.fb-content figure {
	margin: 28px 0;
}

.fb-content figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--fb-muted);
}

.fb-content blockquote {
	margin: 28px 0;
	padding: 18px 20px;
	border-left: 4px solid var(--fb-mint);
	border-radius: 0 var(--fb-radius-sm) var(--fb-radius-sm) 0;
	background-color: var(--fb-mint-soft);
	font-size: 17px;
	color: var(--fb-green-dark);
}

.fb-content blockquote p:last-child {
	margin-bottom: 0;
}

.fb-content table {
	width: 100%;
	margin: 24px 0;
	border-collapse: collapse;
	font-size: 15px;
}

.fb-content table th,
.fb-content table td {
	padding: 10px 12px;
	border: 1px solid var(--fb-line);
	text-align: left;
}

.fb-content table th {
	background-color: var(--fb-mint-soft);
	color: var(--fb-green-dark);
}

.fb-content pre {
	padding: 16px;
	overflow-x: auto;
	border-radius: var(--fb-radius-sm);
	background-color: var(--fb-green-dark);
	color: #fff;
	font-size: 14px;
}

.fb-content hr {
	margin: 32px 0;
	border: 0;
	border-top: 1px solid var(--fb-line);
}

.fb-content .wp-caption,
.fb-content .alignwide,
.fb-content .alignfull {
	max-width: 100%;
}

.fb-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.fb-link-pages {
	display: flex;
	gap: 8px;
	margin: 24px 0;
	font-weight: 500;
}

/* Tags, share */

.fb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0;
}

.fb-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 28px 0 8px;
	padding: 18px 0 0;
	border-top: 1px solid var(--fb-line);
}

.fb-share__label {
	margin-right: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fb-green-dark);
}

.fb-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--fb-line);
	background-color: #fff;
	color: var(--fb-green);
}

.fb-share__btn:hover {
	background-color: var(--fb-green);
	border-color: var(--fb-green);
	color: #fff;
}

/* Prev / next */

.fb-postnav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 36px auto 0;
}

.fb-postnav__item {
	display: block;
	padding: 18px 20px;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	background-color: #fff;
}

.fb-postnav__item:hover {
	border-color: var(--fb-green);
}

.fb-postnav__item--next {
	text-align: right;
}

.fb-postnav__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--fb-muted);
}

.fb-postnav__title {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: var(--fb-green-dark);
}

/* Related */

.fb-related {
	margin-top: 48px;
	padding: 40px 0 48px;
	background-color: var(--fb-mint-soft);
}

.fb-section-title {
	margin: 0 0 24px;
	font-size: 22px;
	font-weight: 600;
	color: var(--fb-green-dark);
}

.fb-related__more {
	margin: 28px 0 0;
	text-align: center;
}

/* Comments */

.fb-comments {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--fb-line);
}

.fb-comments__list {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.fb-comments__list .children {
	list-style: none;
	padding-left: 20px;
}

.fb-comments__list li.comment {
	margin-bottom: 20px;
	padding: 18px 20px;
	background-color: #fff;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
}

.fb-comments .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fb-green-dark);
}

.fb-comments .comment-form input[type="text"],
.fb-comments .comment-form input[type="email"],
.fb-comments .comment-form input[type="url"],
.fb-comments .comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	background-color: #fff;
	font-family: inherit;
	font-size: 15px;
	color: var(--fb-text);
}

.fb-comments .comment-form textarea:focus,
.fb-comments .comment-form input:focus {
	outline: 0;
	border-color: var(--fb-mint);
	box-shadow: 0 0 0 3px rgba(138, 208, 197, .25);
}

.fb-comments .comment-form p {
	margin-bottom: 16px;
}

.fb-comments .form-submit input[type="submit"] {
	display: inline-block;
	padding: 0 28px;
	height: 48px;
	border: 0;
	border-radius: 14px;
	background-color: var(--fb-green);
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.fb-footer {
	padding: 32px 0;
	background-color: var(--fb-green);
	color: rgba(255, 255, 255, .75);
}

.fb-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.fb-footer__logo img {
	width: 130px;
	height: auto;
}

.fb-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fb-footer__menu a {
	font-size: 14px;
	color: rgba(255, 255, 255, .85);
}

.fb-footer__menu a:hover {
	color: var(--fb-mint);
}

.fb-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 20px;
	font-size: 13px;
	color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   Tablet and up
   -------------------------------------------------------------------------- */

@media (min-width: 770px) {

	.fb-hero {
		padding: 56px 0 44px;
	}

	.fb-hero:after {
		right: -120px;
		top: -180px;
		width: 460px;
		height: 460px;
	}

	.fb-hero__title {
		font-size: 42px;
	}

	.fb-hero__intro p {
		font-size: 17px;
	}

	.fb-filter {
		flex-wrap: wrap;
		justify-content: center;
		margin: 28px 0 0;
		padding: 0;
		overflow: visible;
	}

	.fb-list {
		padding: 48px 0 64px;
	}

	.fb-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}

	.fb-card--featured {
		flex-direction: row;
		align-items: stretch;
		margin-bottom: 44px;
	}

	.fb-card--featured .fb-card__media {
		flex: 0 0 52%;
		aspect-ratio: auto;
		min-height: 340px;
	}

	.fb-card--featured .fb-card__body {
		justify-content: center;
		padding: 36px;
	}

	.fb-card--featured .fb-card__title {
		font-size: 28px;
	}

	.fb-card--featured .fb-card__excerpt {
		font-size: 16px;
	}

	.fb-single__header {
		padding: 56px 0 44px;
	}

	.fb-single__title {
		font-size: 40px;
	}

	.fb-single__lead {
		font-size: 17px;
	}

	.fb-single__cover {
		margin-top: 40px;
	}

	.fb-content {
		padding: 40px 0 8px;
		font-size: 17px;
	}

	.fb-content h2 {
		font-size: 28px;
	}

	.fb-content h3 {
		font-size: 22px;
	}

	.fb-postnav {
		grid-template-columns: repeat(2, 1fr);
	}

	.fb-related {
		padding: 56px 0 64px;
	}

	.fb-section-title {
		font-size: 26px;
	}

	.fb-footer__inner {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}

	.fb-footer__menu {
		justify-content: flex-end;
	}

	.fb-footer__legal {
		justify-content: flex-end;
		text-align: right;
	}
}

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media (min-width: 1040px) {

	.fb-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.fb-hero__title {
		font-size: 48px;
	}

	.fb-single__title {
		font-size: 44px;
	}
}

/* --------------------------------------------------------------------------
   Wide desktop: brand decoration beside the article header
   -------------------------------------------------------------------------- */

@media (min-width: 1300px) {

	.fb-single__header:before {
		display: block;
		left: -30px;
		bottom: -110px;
		width: 220px;
		height: 280px;
		background: url(../images/hero-shape.svg) no-repeat center / contain;
		opacity: .85;
	}

	.fb-single__header:after {
		display: block;
		right: 60px;
		top: 50%;
		width: 180px;
		height: 155px;
		transform: translateY(-55%) rotate(-8deg);
		background: url(../images/subpage-hero-arrow.svg) no-repeat center / contain;
		opacity: .15;
	}
}

@media (prefers-reduced-motion: reduce) {

	.blog-layout * {
		transition: none !important;
		animation: none !important;
	}

	.fb-card:hover {
		transform: none;
	}
}

.fb-single__updated {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--fb-muted);
}
