/*
 * Fallback templates — index, archive, search, 404, page.
 *
 * Layered on top of etbl-taxonomy.css, which already supplies the shared tokens
 * (.wrap, .crumb, .lhero, .lsec, .eyebrow, .btn, .etbl-pagination). Everything
 * here is only what those pages need beyond that: an article card, a search
 * form, and the not-found layout.
 *
 * @since 2026-08-26
 */

/* ── Page head ──────────────────────────────────────────────────────────── */

.etbl-fb-head {
	padding: 54px 0 8px;
}

.etbl-fb-head h1 {
	font-size: clamp(28px, 4.4vw, 44px);
	line-height: 1.2;
	margin: 6px 0 10px;
	text-wrap: balance;
}

.etbl-fb-head .etbl-fb-lede {
	max-width: 62ch;
	color: #4b5a6b;
	font-size: 17px;
	line-height: 1.75;
	margin: 0;
}

/* ── Article cards ──────────────────────────────────────────────────────── */

.acard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
	gap: 26px;
	margin: 34px 0 10px;
}

.acard {
	background: #fff;
	border: 1px solid #e7e0d2;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(11, 28, 51, .04), 0 10px 30px rgba(11, 28, 51, .05);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.acard:hover {
	transform: translateY(-3px);
	border-color: #d7c9ab;
	box-shadow: 0 2px 4px rgba(11, 28, 51, .06), 0 18px 42px rgba(11, 28, 51, .10);
}

.acard-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.acard-m {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f2ece1;
}

.acard-m img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.acard:hover .acard-m img {
	transform: scale(1.04);
}

.acard-b {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 20px 20px 18px;
	flex: 1 1 auto;
}

.acard-kicker {
	font: 700 10.5px/1 Montserrat, system-ui, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #a8813f;
}

.acard-t {
	font: 700 18.5px/1.35 Montserrat, system-ui, sans-serif;
	color: #0b1c33;
	margin: 0;
	text-wrap: balance;
}

.acard-x {
	font-size: 14.5px;
	line-height: 1.7;
	color: #5b6b7c;
	margin: 0;
	flex: 1 1 auto;
}

.acard-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid #f0e9db;
	font-size: 12.5px;
	color: #7c8a99;
}

.acard-cta {
	font-weight: 700;
	color: #e85a18;
	white-space: nowrap;
}

/* ── Search form ────────────────────────────────────────────────────────── */

.etbl-searchform {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 22px 0 0;
}

.etbl-searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 13px 16px;
	font: 400 15px/1.4 inherit;
	color: #0b1c33;
	background: #fff;
	border: 1px solid #ddd3c0;
	border-radius: 10px;
}

.etbl-searchform input[type="search"]:focus {
	outline: 2px solid #e85a18;
	outline-offset: 1px;
	border-color: #e85a18;
}

.etbl-searchform button {
	padding: 13px 22px;
	font: 700 14px/1 Montserrat, system-ui, sans-serif;
	color: #fff;
	background: #e85a18;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.etbl-searchform button:hover {
	background: #d04f13;
}

/* ── Empty states and 404 ───────────────────────────────────────────────── */

.etbl-fb-empty {
	background: #fff;
	border: 1px solid #e7e0d2;
	border-radius: 14px;
	padding: 30px 28px;
	margin: 30px 0;
	max-width: 70ch;
}

.etbl-fb-empty p {
	margin: 0 0 12px;
	color: #4b5a6b;
	line-height: 1.75;
}

.etbl-fb-empty p:last-child {
	margin-bottom: 0;
}

.etbl-fb-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
	padding: 0;
	list-style: none;
}

.etbl-fb-links a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid #ddd3c0;
	border-radius: 99px;
	font: 600 13.5px/1 Montserrat, system-ui, sans-serif;
	color: #0b1c33;
	text-decoration: none;
	background: #fff;
}

.etbl-fb-links a:hover {
	border-color: #0b1c33;
	background: #0b1c33;
	color: #fff;
}

/* ── Editorial page body (page.php fallback) ────────────────────────────── */

.etbl-fb-prose {
	max-width: 72ch;
	margin: 30px 0 60px;
	font-size: 16.5px;
	line-height: 1.85;
	color: #33414f;
}

.etbl-fb-prose h2 {
	font-size: 25px;
	line-height: 1.3;
	margin: 34px 0 10px;
	color: #0b1c33;
}

.etbl-fb-prose h3 {
	font-size: 19px;
	margin: 26px 0 8px;
	color: #0b1c33;
}

.etbl-fb-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.etbl-fb-prose ul,
.etbl-fb-prose ol {
	padding-left: 22px;
}

.etbl-fb-prose li {
	margin-bottom: 7px;
}

@media (prefers-reduced-motion: reduce) {
	.acard,
	.acard-m img {
		transition: none;
	}

	.acard:hover {
		transform: none;
	}

	.acard:hover .acard-m img {
		transform: none;
	}
}

@media (max-width: 640px) {
	.etbl-fb-head {
		padding-top: 34px;
	}

	.acard-grid {
		gap: 20px;
		margin-top: 26px;
	}
}

/* ── Payment page ───────────────────────────────────────────────────────── */

.pay-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin: 30px 0 70px;
}

.pay-due {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 24px 26px;
	border-radius: 14px;
	background: #0b1c33;
	color: #fff;
	margin-bottom: 26px;
}

.pay-due-l {
	font: 700 11.5px/1.4 Montserrat, system-ui, sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #c9a96e;
}

.pay-due-v {
	font: 800 40px/1.1 Montserrat, system-ui, sans-serif;
	font-variant-numeric: tabular-nums;
}

.pay-due-by {
	font-size: 13px;
	color: rgba(255, 255, 255, .7);
}

.pay-method {
	padding: 22px 24px;
	border: 1px solid #e7e0d2;
	border-radius: 12px;
	background: #fff;
	margin-bottom: 16px;
}

.pay-method h2 {
	font: 800 17px/1.3 Montserrat, system-ui, sans-serif;
	color: #0b1c33;
	margin: 0 0 6px;
}

.pay-blurb {
	font-size: 14px;
	color: #5b6b7c;
	margin: 0 0 14px;
}

.pay-bank {
	padding: 14px 16px;
	background: #f7f4ee;
	border-radius: 9px;
	font-size: 14.5px;
	line-height: 1.75;
	margin-bottom: 12px;
}

.pay-ref {
	font-size: 13.5px;
	color: #5b6b7c;
	margin: 0 0 14px;
}

.pay-paid {
	padding: 26px 28px;
	border-radius: 14px;
	background: #e4f0ea;
	border: 1px solid #bcdccc;
}

.pay-paid h2 {
	font: 800 20px/1.3 Montserrat, system-ui, sans-serif;
	color: #16523a;
	margin: 0 0 8px;
}

.pay-paid p {
	margin: 0;
	color: #2b5344;
	line-height: 1.7;
}

.pay-side {
	padding: 22px 24px;
	border: 1px solid #e7e0d2;
	border-radius: 12px;
	background: #fbf9f5;
}

.pay-side h2 {
	font: 800 15px/1.3 Montserrat, system-ui, sans-serif;
	color: #0b1c33;
	margin: 0 0 14px;
}

.pay-lines {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.pay-lines th,
.pay-lines td {
	padding: 8px 0;
	text-align: left;
	font-weight: 400;
	color: #4b5a6b;
	border-bottom: 1px solid #ece5d6;
	vertical-align: top;
}

.pay-lines td {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	color: #0b1c33;
}

.pay-lines tfoot th,
.pay-lines tfoot td {
	border-bottom: 0;
}

.pay-lines .pay-total th,
.pay-lines .pay-total td {
	font-weight: 700;
	color: #0b1c33;
	border-top: 2px solid #0b1c33;
	padding-top: 11px;
}

.pay-lines .pay-out th,
.pay-lines .pay-out td {
	font: 800 16px/1.3 Montserrat, system-ui, sans-serif;
	color: #e85a18;
	padding-top: 8px;
}

.pay-note {
	margin: 14px 0 0;
	font-size: 12.5px;
	color: #7c8a99;
}

@media (max-width: 860px) {
	.pay-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.pay-fx {
	margin: -4px 0 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fdf3e3;
	border: 1px solid #edd9b4;
	font-size: 13.5px;
	line-height: 1.65;
	color: #8a6314;
}
