/* RAZIUN Tools: uses the RAZIUN theme's colours and fonts, with fallbacks. */
.rzt {
	--rzt-ink: var(--ink, #171916);
	--rzt-paper: var(--paper, #faf9f6);
	--rzt-stone: var(--stone, #e9e8e2);
	--rzt-rule: var(--rule, #d9d8d0);
	--rzt-sage: var(--sage, #879783);
	--rzt-sage-ink: var(--sage-ink, #56644f);
	--rzt-muted: #4a4c46;
	--rzt-clay: #9a5330;
	margin: 2.5rem 0;
	padding: clamp(20px, 4vw, 40px);
	background: #fff;
	border: 1px solid var(--rzt-rule);
	border-top: 4px solid var(--rzt-ink);
	color: var(--rzt-ink);
	font-family: var(--sans, system-ui, sans-serif);
}
.rzt *,
.rzt *::before,
.rzt *::after { box-sizing: border-box; }
.rzt-head { margin-bottom: 1.5rem; }
.rzt-kicker {
	display: block;
	margin: 0 0 .5rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rzt-sage-ink);
}
.rzt .rzt-title {
	margin: 0 0 .6rem;
	font-family: var(--display, Georgia, serif);
	font-weight: 400;
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	line-height: 1.08;
	letter-spacing: -.012em;
}
.rzt-lead { margin: 0; color: var(--rzt-muted); font-size: 1.0625rem; line-height: 1.6; }
.rzt-block { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.rzt-block legend { padding: 0; margin-bottom: .75rem; font-weight: 700; font-size: .9375rem; }
.rzt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px 20px;
	margin-bottom: 1.25rem;
}
.rzt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rzt-field label { font-size: .875rem; font-weight: 600; line-height: 1.35; }
.rzt-field input,
.rzt-field select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #8a8c85;
	border-radius: 2px;
	background: var(--rzt-paper);
	color: var(--rzt-ink);
	font: inherit;
	font-size: 1rem;
}
.rzt-field input:focus-visible,
.rzt-field select:focus-visible,
.rzt-btn:focus-visible,
.rzt-remove:focus-visible,
.rzt-list a:focus-visible {
	outline: 2px solid var(--rzt-ink);
	outline-offset: 2px;
}
.rzt-hint { font-size: .8125rem; color: var(--rzt-muted); line-height: 1.4; }
.rzt-trips { display: grid; gap: 12px; margin-bottom: 12px; }
.rzt-trip {
	display: grid;
	grid-template-columns: 1fr 1fr 48px;
	gap: 12px;
	align-items: end;
	padding: 14px;
	background: var(--rzt-paper);
	border: 1px solid var(--rzt-rule);
}
.rzt-remove {
	width: 48px;
	height: 48px;
	border: 1px solid var(--rzt-rule);
	background: #fff;
	color: var(--rzt-ink);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.rzt-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 1.25rem; }
.rzt-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
	padding: 14px;
	background: var(--rzt-paper);
	border: 1px solid var(--rzt-rule);
}
.rzt-product .rzt-field:last-child { grid-column: 1 / -1; }
.rzt-product__label { grid-column: 1 / -1; margin: 0; font-weight: 700; font-size: .9375rem; }
.rzt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border: 1px solid var(--rzt-ink);
	border-radius: 2px;
	background: var(--rzt-ink);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.rzt-btn:hover { background: var(--rzt-sage-ink); border-color: var(--rzt-sage-ink); }
.rzt-btn--ghost { background: transparent; color: var(--rzt-ink); min-height: 44px; padding: 10px 18px; }
.rzt-btn--ghost:hover { background: var(--rzt-stone); color: var(--rzt-ink); border-color: var(--rzt-ink); }
.rzt-result { display: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rzt-rule); }
.rzt-result.is-visible { display: block; }
.rzt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 1rem; }
.rzt-stat { padding: 16px 18px; background: var(--rzt-stone); }
.rzt-stat__label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rzt-sage-ink); }
.rzt-stat__value { display: block; margin: .3rem 0 .2rem; font-family: var(--display, Georgia, serif); font-weight: 400; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); line-height: 1.05; }
.rzt-stat__note { display: block; font-size: .875rem; color: var(--rzt-muted); line-height: 1.4; }
.rzt-msg { margin: .75rem 0 0; padding: 12px 16px; font-size: 1rem; border-left: 3px solid var(--rzt-sage); background: var(--rzt-paper); line-height: 1.5; }
.rzt-msg--ok { border-left-color: var(--rzt-sage-ink); }
.rzt-msg--error { border-left-color: var(--rzt-clay); }
.rzt-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.rzt-table th,
.rzt-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rzt-rule); }
.rzt-table th[scope="col"] { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rzt-muted); }
.rzt-table tr.is-best td { font-weight: 700; background: var(--rzt-stone); }
.rzt-bars { display: grid; gap: 14px; }
.rzt-bar { display: grid; grid-template-columns: minmax(150px, 190px) 1fr auto; gap: 14px; align-items: center; }
.rzt-bar__label { font-weight: 600; font-size: .9375rem; }
.rzt-bar__track { height: 14px; background: var(--rzt-stone); }
.rzt-bar__fill { display: block; height: 100%; background: var(--rzt-ink); }
.rzt-bar--wants .rzt-bar__fill { background: var(--rzt-sage); }
.rzt-bar--savings .rzt-bar__fill { background: var(--rzt-sage-ink); }
.rzt-bar strong { font-family: var(--display, Georgia, serif); font-weight: 400; font-size: 1.35rem; }
.rzt .rzt-note { margin: 1.5rem 0 0; font-size: .8125rem; color: var(--rzt-muted); line-height: 1.5; }
.rzt-list { list-style: none; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rzt-list a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--rule, #d9d8d0);
	border-top: 4px solid var(--ink, #171916);
	color: var(--ink, #171916);
	text-decoration: none;
	transition: border-color .2s;
}
.rzt-list a:hover { border-top-color: var(--sage, #879783); }
.rzt-list strong { font-family: var(--display, Georgia, serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.rzt-list span:last-child { color: #4a4c46; font-size: .9375rem; line-height: 1.5; }
@media (max-width: 560px) {
	.rzt-trip { grid-template-columns: 1fr 1fr; }
	.rzt-trip .rzt-remove { grid-column: 1 / -1; width: 100%; }
	.rzt-bar { grid-template-columns: 1fr auto; }
	.rzt-bar__track { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
	.rzt-btn, .rzt-list a { transition: none; }
}
/* Neutralise article list and link styles inside the tools grid. */
.entry-content ul.rzt-list,
ul.rzt-list { list-style: none; padding-left: 0; margin-left: 0; }
.entry-content ul.rzt-list > li,
ul.rzt-list > li { margin: 0; padding: 0; }
.entry-content ul.rzt-list > li::before,
ul.rzt-list > li::before { content: none; }
.entry-content .rzt-list a,
.rzt-list a,
.rzt-list a span,
.rzt-list a strong { text-decoration: none; background-image: none; }
