/* Westwood tithe calculator. Brand: navy #14293A, blue #2E7DB8, gold #F6C445, cream #F7F3EA. */
.ww-tithe {
	--tt-navy: var(--navy, #14293A); --tt-blue: var(--blue, #2E7DB8); --tt-gold: var(--gold, #F6C445);
	--tt-muted: #48606F; --tt-head: "Bricolage Grotesque", system-ui, sans-serif;
	box-sizing: border-box; width: 100%; padding: clamp(22px, 3.4vw, 32px); border-radius: 22px; background: #fff;
	box-shadow: 0 1px 2px rgba(20, 41, 58, .06), 0 12px 32px rgba(20, 41, 58, .08);
	font-family: Manrope, system-ui, sans-serif; color: var(--tt-navy);
}
.ww-tithe * { box-sizing: border-box; }
.ww-tithe__title { margin: 0 0 20px; font-family: var(--tt-head); font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: inherit; }
.ww-tithe__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.ww-tithe__field { display: flex; flex-direction: column; min-width: 0; }
.ww-tithe__label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; color: var(--tt-blue); }
.ww-tithe__money { position: relative; display: block; }
.ww-tithe__cur { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: 800; color: var(--tt-muted); pointer-events: none; }
.ww-tithe input.ww-tithe__income, .ww-tithe select.ww-tithe__period { width: 100%; height: 54px; margin: 0; padding: 0 16px; border: 2px solid var(--tt-navy); border-radius: 12px; background: #fff; color: var(--tt-navy); font: 700 16px/1.2 Manrope, system-ui, sans-serif; outline: none; box-shadow: none; }
.ww-tithe input.ww-tithe__income { padding-left: 32px; }
.ww-tithe select.ww-tithe__period { padding-right: 38px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314293A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.ww-tithe input.ww-tithe__income:focus, .ww-tithe select.ww-tithe__period:focus { border-color: var(--tt-blue); box-shadow: 0 0 0 3px rgba(46, 125, 184, .2); }
.ww-tithe__income::placeholder { color: #8796A1; font-weight: 600; }
.ww-tithe__hint { margin: 0 0 20px; font-size: 13px; line-height: 1.5; color: var(--tt-muted); }
.ww-tithe__pct { margin-bottom: 22px; }
.ww-tithe__pcthead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ww-tithe__pcthead .ww-tithe__label { margin-bottom: 8px; }
.ww-tithe__pctval { font-family: var(--tt-head); font-size: 17px; font-weight: 800; color: var(--tt-navy); }
.ww-tithe__range { display: block; width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--tt-blue); cursor: pointer; -webkit-appearance: none; appearance: none; }
.ww-tithe__range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--tt-blue) var(--fill, 47%), #E4DCC9 var(--fill, 47%)); }
.ww-tithe__range::-moz-range-track { height: 6px; border-radius: 999px; background: #E4DCC9; }
.ww-tithe__range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--tt-blue); }
.ww-tithe__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 3px solid #fff; border-radius: 50%; background: var(--tt-blue); box-shadow: 0 1px 4px rgba(20, 41, 58, .35); }
.ww-tithe__range::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--tt-blue); box-shadow: 0 1px 4px rgba(20, 41, 58, .35); }
.ww-tithe__range:focus-visible { outline: 2px solid var(--tt-blue); outline-offset: 4px; border-radius: 6px; }
.ww-tithe__scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--tt-muted); }
.ww-tithe__result { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 24px 28px; border-radius: 16px; background: var(--tt-navy); }
.ww-tithe__out { min-width: 0; }
.ww-tithe__rlabel { margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7FA8C5; }
.ww-tithe__amount { font-family: var(--tt-head); font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--tt-gold); overflow-wrap: anywhere; }
.ww-tithe__per { margin-left: 2px; font-size: .55em; font-weight: 700; letter-spacing: 0; }
.ww-tithe__sub { margin-top: 6px; font-size: 13px; line-height: 1.45; color: #B9CBD8; }
.ww-tithe__btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 999px; background: var(--tt-gold); color: var(--tt-navy); font: 800 16px/1.2 Manrope, system-ui, sans-serif; text-align: center; text-decoration: none; transition: background .15s, color .15s; }
.ww-tithe__btn:hover, .ww-tithe__btn:focus-visible { background: #fff; color: var(--tt-navy); }
.ww-tithe__btn:focus-visible { outline: 2px solid var(--tt-gold); outline-offset: 3px; }
@media (max-width: 560px) {
	.ww-tithe__row { grid-template-columns: minmax(0, 1fr); }
	.ww-tithe__result { flex-direction: column; align-items: stretch; padding: 22px; }
	.ww-tithe__btn { width: 100%; }
	.ww-tithe__scale span:nth-child(2) { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .ww-tithe__btn { transition: none; } }
