/* Nevo Legal – free legal templates. Uses the theme's colour tokens (with fallbacks). */

/* ---------- Document box ---------- */
.nvt { --t-line: var(--line, #e6dfd5); margin: 2em 0 2.4em; border: 1px solid var(--t-line); border-radius: var(--radius-lg, 24px); background: var(--cream, #fbf8f4); box-shadow: var(--shadow, 0 14px 34px -16px rgba(14, 23, 34, .22)); overflow: hidden; scroll-margin-top: calc(var(--header-h, 78px) + 24px); }
.nvt__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px clamp(16px, 3vw, 26px); background: var(--navy, #1f3044); }
.nvt__label { font: 700 .76rem/1 var(--sans, system-ui, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #cb935d); }
.nvt__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nvt__btn { min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: #fff; font: 600 .88rem/1 var(--sans, system-ui, sans-serif); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.nvt__btn:hover, .nvt__btn:focus-visible { border-color: var(--gold, #cb935d); color: var(--gold, #cb935d); }
.nvt__btn:focus-visible { outline: 2px solid var(--gold, #cb935d); outline-offset: 2px; }
.nvt__btn.is-done { background: var(--gold, #cb935d); border-color: var(--gold, #cb935d); color: var(--navy, #1f3044); }
.nvt__doc { margin: clamp(14px, 2.6vw, 24px); padding: clamp(22px, 4vw, 44px) clamp(18px, 4vw, 48px); max-height: 640px; overflow: auto; background: #fff; border: 1px solid var(--t-line); border-radius: 12px; font: 400 .98rem/1.7 Georgia, "Times New Roman", serif; color: var(--ink, #18212c); }
.nvt__doc p { margin: 0 0 .8em; }
.nvt__doc .nvt__title { text-align: center; font-weight: 700; font-size: 1.12rem; letter-spacing: .04em; margin: 0 0 1.4em; }
.nvt__doc .nvt__h { font-weight: 700; margin: 1.3em 0 .5em; }
.nvt__doc .nvt__sub { padding-left: 1.6em; }
.nvt__ph { background: #fdf1c9; color: #6b4a0c; padding: 0 .2em; border-radius: 3px; font-family: var(--sans, system-ui, sans-serif); font-size: .86em; font-weight: 600; }
.nvt__note { margin: 0; padding: 0 clamp(16px, 3vw, 26px) 16px; font-size: .9rem; color: var(--muted, #687384); }
.nvt__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px clamp(16px, 3vw, 26px); border-top: 1px solid var(--t-line); background: #fff; }
.nvt__cta p { margin: 0; font-weight: 600; color: var(--ink, #18212c); }
.nvt__cta .btn { text-decoration: none; }
@media (max-width: 560px) { .nvt__doc { max-height: 520px; font-size: .94rem; } .nvt__btn { flex: 1 1 auto; } .nvt__actions { width: 100%; } }

/* ---------- Hub: cards by category ---------- */
.nvt-hub { margin: 1.4em 0 2em; display: grid; gap: 2em; }
.prose .nvt-hub__cat { display: flex; align-items: center; gap: 10px; margin: 0 0 .8em; font-size: 1.5rem; }
.nvt-hub__cat span { font: 700 .78rem/1 var(--sans, system-ui, sans-serif); padding: 4px 9px; border-radius: 999px; background: var(--gold-100, #f7eee4); color: var(--gold-700, #8c5b2c); }
.prose .nvt-cards, .nvt-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prose .nvt-cards li.nvt-card { margin: 0; padding: 0; }
.prose .nvt-cards li::marker { content: none; }
.nvt-card a { display: flex; gap: 14px; height: 100%; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line, #e6dfd5); border-radius: var(--radius, 16px); text-decoration: none; color: inherit; transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease), border-color .25s; }
.nvt-card a:hover, .nvt-card a:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow, 0 14px 34px -16px rgba(14, 23, 34, .22)); border-color: var(--gold-200, #ecd4bb); color: inherit; }
.nvt-card a:focus-visible { outline: 2px solid var(--gold, #cb935d); outline-offset: 3px; }
.nvt-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy, #1f3044); color: var(--gold, #cb935d); }
.nvt-card__icon svg { width: 24px; height: 24px; }
.nvt-hub__group[data-cat="notices-complaints"] .nvt-card__icon { background: #5b2f2a; }
.nvt-hub__group[data-cat="personal-family"] .nvt-card__icon { background: #2f4a3c; }
.nvt-hub__group[data-cat="business"] .nvt-card__icon { background: var(--navy-700, #2b405a); }
.nvt-hub__group[data-cat="employment"] .nvt-card__icon { background: #4a3d5c; }
.nvt-card__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nvt-card__title { font: 600 1.16rem/1.25 var(--serif, Georgia, serif); color: var(--ink, #18212c); }
.nvt-card__text { font-size: .9rem; line-height: 1.5; color: var(--body, #3d4856); }
.nvt-card__go { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: .88rem; color: var(--navy, #1f3044); }
.nvt-card a:hover .nvt-card__go { color: var(--gold-700, #8c5b2c); }
@media (max-width: 640px) { .prose .nvt-cards, .nvt-cards { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .nvt-card a { transition: none; } .nvt-card a:hover { transform: none; } }

/* ---------- Hub: featured template (Rent Agreement Format) ---------- */
.nvt-feature { margin: 0 0 .4em; }
.nvt-feature > a { display: flex; background: #fff; border: 1px solid var(--line, #e6dfd5); border-radius: var(--radius-lg, 24px); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm, 0 1px 2px rgba(14, 23, 34, .06)); transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease), border-color .3s; }
.nvt-feature > a:hover, .nvt-feature > 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; }
.nvt-feature > a:focus-visible { outline: 2px solid var(--gold, #cb935d); outline-offset: 3px; }
.nvt-feature__img { flex: 0 0 48%; min-height: 280px; overflow: hidden; background: var(--sand, #f4eee6); }
.nvt-feature__img img, .prose .nvt-feature__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); }
.nvt-feature > a:hover .nvt-feature__img img { transform: scale(1.04); }
.nvt-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px 30px; }
.nvt-feature__tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--navy, #1f3044); color: var(--gold, #cb935d); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nvt-feature__title { font: 600 1.7rem/1.15 var(--serif, Georgia, serif); color: var(--ink, #18212c); letter-spacing: -.01em; }
.nvt-feature__text { font-size: .98rem; line-height: 1.55; color: var(--body, #3d4856); }
.nvt-feature__list { display: flex; flex-wrap: wrap; gap: 6px; }
.nvt-feature__list span { padding: 4px 10px; border-radius: 8px; background: var(--gold-100, #f7eee4); color: var(--gold-700, #8c5b2c); font-size: .82rem; font-weight: 600; }
.nvt-feature__go { padding-top: 4px; font-weight: 700; font-size: .98rem; color: var(--navy, #1f3044); }
.nvt-feature > a:hover .nvt-feature__go { color: var(--gold-700, #8c5b2c); }
.prose .nvt-feature__credit { margin: 6px 0 0; font-size: .78rem; color: var(--muted, #687384); }
@media (max-width: 680px) {
	.nvt-feature > a { flex-direction: column; }
	.nvt-feature__img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
	.nvt-feature__body { padding: 20px 22px 22px; }
	.nvt-feature__title { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .nvt-feature > a, .nvt-feature__img img { transition: none; } .nvt-feature > a:hover { transform: none; } .nvt-feature > a:hover .nvt-feature__img img { transform: none; } }
