/* Nevo Legal – free calculators. Uses the theme's colour tokens (with fallbacks). */
.nvc { --c-navy: var(--navy, #1f3044); --c-gold: var(--gold, #cb935d); --c-line: var(--line, #e6dfd5); --c-cream: var(--cream, #fbf8f4); --c-ink: var(--ink, #18212c); --c-muted: var(--muted, #687384);
	margin: 0 0 2.4em; border: 1px solid var(--c-line); border-radius: var(--radius-lg, 24px); background: #fff; box-shadow: var(--shadow, 0 14px 34px -16px rgba(14, 23, 34, .22)); overflow: hidden; font-size: 1rem; }
.nvc__form { padding: clamp(20px, 3.4vw, 34px); background: var(--c-cream); border-bottom: 1px solid var(--c-line); }
.nvc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
@media (max-width: 640px) { .nvc__grid { grid-template-columns: minmax(0, 1fr); } }
.nvc__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.nvc__field > span, .nvc__field > legend { font-weight: 600; font-size: .95rem; color: var(--c-ink); line-height: 1.35; padding: 0; }
.nvc__field small { color: var(--c-muted); font-size: .84rem; line-height: 1.45; }
.nvc__field[hidden] { display: none; }
.nvc input[type="text"], .nvc input[type="number"], .nvc input[type="date"], .nvc input[type="month"], .nvc select {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #d6cdc0; border-radius: 12px; background: #fff; color: var(--c-ink); font: 500 1rem/1.3 var(--sans, system-ui, sans-serif); -webkit-appearance: none; appearance: none; }
.nvc select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3044' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px; }
.nvc input:focus, .nvc select:focus { outline: 2px solid var(--c-gold); outline-offset: 1px; border-color: var(--c-gold); }
.nvc__money { position: relative; display: block; }
.nvc__money i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--c-muted); pointer-events: none; }
.nvc .nvc__money input { padding-left: 32px; }
.nvc__radios label, .nvc__checks label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .96rem; color: var(--c-ink); cursor: pointer; line-height: 1.4; margin-top: 4px; }
.nvc__radios input, .nvc__checks input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-navy); flex: none; }
.nvc__checks { justify-content: flex-end; }

.nvc__result { padding: clamp(20px, 3.4vw, 34px); }
.nvc__hint { margin: 0; color: var(--c-muted); }
.nvc__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 18px 22px; border-radius: 16px; background: var(--c-navy); color: #c4cfdc; margin: 0 0 18px; }
.nvc__total b { font: 600 clamp(1.9rem, 4.2vw, 2.5rem)/1.1 var(--serif, Georgia, serif); color: #fff; letter-spacing: -.01em; }
.nvc__total span { font-weight: 600; font-size: .98rem; }
.nvc__rows { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: .97rem; }
.nvc__rows th, .nvc__rows td { padding: 10px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.nvc__rows td { text-align: right; font-weight: 600; color: var(--c-ink); white-space: nowrap; padding-left: 14px; }
.nvc__rows th { font-weight: 500; color: var(--body, #3d4856); }
.nvc__rows tr.is-key th, .nvc__rows tr.is-key td { color: var(--c-ink); font-weight: 700; }
.nvc__rows small { display: block; color: var(--c-muted); font-size: .84rem; font-weight: 400; }
.nvc__steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.nvc__steps li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 14px; margin: 0; }
.nvc__steps li::marker { content: none; }
.nvc__steps time { font-weight: 700; color: var(--c-navy); line-height: 1.35; }
.nvc__steps time small { display: block; font-weight: 500; color: var(--c-muted); font-size: .8rem; }
.nvc__steps p { margin: 0; font-size: .96rem; line-height: 1.5; }
.nvc__steps strong { color: var(--c-ink); }
.nvc__steps li.is-past { background: #f6f6f6; opacity: .8; }
.nvc__steps li.is-next { border-color: var(--c-gold); background: var(--gold-100, #f7eee4); }
@media (max-width: 480px) { .nvc__steps li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.nvc__msg { margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; font-size: .95rem; line-height: 1.5; }
.nvc__msg--warn { background: var(--warn-bg, #fdf4e2); color: #6b4a0c; }
.nvc__msg--ok { background: var(--success-bg, #e8f4ee); color: #1e5a40; }
.nvc__msg--err { background: var(--danger-bg, #fbecea); color: #8a2f21; }
.nvc__rule { margin: 0; font-size: .9rem; color: var(--c-muted); line-height: 1.55; }
.nvc__rule a { color: var(--gold-700, #8c5b2c); }
.nvc__note { margin: 0; padding: 0 clamp(20px, 3.4vw, 34px) 18px; font-size: .84rem; color: var(--c-muted); }
.nvc__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px clamp(20px, 3.4vw, 34px); border-top: 1px solid var(--c-line); background: var(--c-cream); }
.nvc__cta p { margin: 0; font-weight: 600; color: var(--c-ink); }
.nvc__cta .btn { text-decoration: none; }

/* Hub page: calculator cards */
.nvc-cards { --c-line: var(--line, #e6dfd5); list-style: none; margin: 1.6em 0 .6em; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.prose .nvc-cards { padding-left: 0; }
.prose .nvc-cards li.nvc-card { margin: 0; padding: 0; }
.prose .nvc-cards li::marker { content: none; }
.nvc-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius, 16px); overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease), border-color .3s; }
.nvc-card a:hover, .nvc-card a:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow, 0 14px 34px -16px rgba(14, 23, 34, .22)); border-color: var(--gold-200, #ecd4bb); color: inherit; }
.nvc-card a:focus-visible { outline: 2px solid var(--gold, #cb935d); outline-offset: 3px; }
.nvc-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand, #f4eee6); }
.nvc-card__img img, .prose .nvc-card__img img { width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; box-shadow: none; object-fit: cover; display: block; transition: transform .5s var(--ease, ease); }
.nvc-card a:hover .nvc-card__img img { transform: scale(1.04); }
.nvc-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.nvc-card__tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--gold-100, #f7eee4); color: var(--gold-700, #8c5b2c); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nvc-card__title { font: 600 1.38rem/1.2 var(--serif, Georgia, serif); color: var(--ink, #18212c); letter-spacing: -.01em; }
.nvc-card__text { font-size: .96rem; line-height: 1.55; color: var(--body, #3d4856); }
.nvc-card__go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .95rem; color: var(--navy, #1f3044); }
.nvc-card a:hover .nvc-card__go { color: var(--gold-700, #8c5b2c); }
/* First card: featured, image beside the text */
.nvc-card:first-child { grid-column: 1 / -1; }
.nvc-card:first-child a { flex-direction: row; }
.nvc-card:first-child .nvc-card__img { flex: 0 0 52%; aspect-ratio: auto; min-height: 250px; }
.nvc-card:first-child .nvc-card__body { justify-content: center; padding: 28px 30px; }
.nvc-card:first-child .nvc-card__title { font-size: 1.7rem; }
.nvc-cards__credit { margin: 0 0 2em; font-size: .8rem; color: var(--muted, #687384); }
@media (max-width: 680px) {
	.nvc-cards { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.nvc-card:first-child a { flex-direction: column; }
	.nvc-card:first-child .nvc-card__img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
	.nvc-card:first-child .nvc-card__body { padding: 20px 22px 22px; }
	.nvc-card:first-child .nvc-card__title { font-size: 1.38rem; }
}
@media (prefers-reduced-motion: reduce) { .nvc-card a, .nvc-card__img img { transition: none; } .nvc-card a:hover { transform: none; } .nvc-card a:hover .nvc-card__img img { transform: none; } }
