/* De Alva — Service guide (page-templates/guide.php). v1.0.0
   Ported from the client's page package (scoped to .dav-tm) and mapped onto
   the site tokens: Lato via --sans, --navy/--blue/--red/--ink/--muted/--line/
   --paper from theme.css, 8px radius like the site's cards. The H1 and kicker
   live in the shared page hero; the FAQ uses the site accordion (faq.css).
   Tokens: --navy, --blue, --red, --ink, --muted, --line, --paper, --white, --maxw, --sans
*/

.dealva-guide__body {
	background: var(--white);
	padding: 40px 0 24px;
}

/* ── Ported package styles ───────────────────────────────── */
.dav-tm{--dav-deep:#0f1b39;--dav-red-d:#7e1a2b;--dav-blue-soft:#eef3fa;--dav-blue-line:#d8e3f3;--dav-quote:#aec5e6;max-width:var(--maxw);margin:0 auto;padding:0 24px 8px;font-family:var(--sans);color:var(--ink);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
.dav-tm *,.dav-tm *::before,.dav-tm *::after{box-sizing:border-box}
.dav-tm p,.dav-tm ul,.dav-tm ol,.dav-tm dl,.dav-tm figure,.dav-tm blockquote,.dav-tm h1,.dav-tm h2,.dav-tm h3{margin:0;padding:0}
.dav-tm p{margin:0 0 16px;max-width:72ch}
.dav-tm a{color:var(--blue);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.dav-tm a:hover{color:var(--red)}
.dav-tm a:focus-visible,.dav-tm summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.dav-tm strong{font-weight:700;color:var(--navy)}
.dav-tm .dav-crumbs{font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 28px}
.dav-tm .dav-crumbs a{color:var(--muted);text-decoration:none}
.dav-tm .dav-crumbs a:hover{color:var(--red)}
.dav-tm .dav-hero{margin-bottom:40px}
.dav-tm .dav-hero>p:not(.dav-byline){font-size:19px;line-height:1.6;max-width:68ch}
.dav-tm .dav-byline{font-size:14px;color:var(--muted);border-left:3px solid var(--red);padding-left:12px;margin:-4px 0 24px}
.dav-tm .dav-byline strong{color:var(--navy)}
.dav-tm .dav-answer{background:var(--dav-blue-soft);border:1px solid var(--dav-blue-line);border-radius:8px;padding:22px 26px;margin:8px 0 28px}
.dav-tm .dav-answer p{margin:0;max-width:none;color:var(--navy);font-size:17.5px}
.dav-tm .dav-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.dav-tm .dav-stat{padding:22px 22px 20px;border-left:1px solid var(--line)}
.dav-tm .dav-stat:first-child{background:var(--navy);border-left:0}
.dav-tm .dav-stat dt{font-size:36px;line-height:1.05;font-weight:900;color:var(--red);margin-bottom:8px;letter-spacing:-.01em}
.dav-tm .dav-stat dd{margin:0;font-size:14px;line-height:1.4;color:var(--muted)}
.dav-tm .dav-stat:first-child dt{color:#fff}
.dav-tm .dav-stat:first-child dd{color:#CDD5E6}
.dav-tm .dav-toc{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:22px 26px;margin:0 0 56px}
.dav-tm .dav-toc-title{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--red);margin-bottom:10px}
.dav-tm .dav-toc ol{list-style:none;columns:2;column-gap:40px;counter-reset:toc}
.dav-tm .dav-toc li{counter-increment:toc;break-inside:avoid;padding:5px 0;font-size:15.5px;line-height:1.4;display:flex;gap:10px}
.dav-tm .dav-toc li::before{content:counter(toc,decimal-leading-zero);font-weight:700;color:var(--blue);font-size:13px;padding-top:2px}
.dav-tm .dav-toc a{color:var(--navy);text-decoration:none}
.dav-tm .dav-toc a:hover{color:var(--red);text-decoration:underline}
.dav-tm .dav-sec{margin:0 0 64px;scroll-margin-top:24px}
.dav-tm .dav-h2{font-size:clamp(26px,3.2vw,36px);line-height:1.15;font-weight:900;color:var(--navy);letter-spacing:-.01em;margin-bottom:22px;padding-bottom:16px;position:relative}
.dav-tm .dav-h2::after{content:"";position:absolute;left:0;bottom:0;width:56px;height:3px;background:var(--red)}
.dav-tm .dav-h3{font-size:21px;line-height:1.3;font-weight:700;color:var(--navy);margin:32px 0 10px}
.dav-tm .dav-step{display:flex;gap:16px;align-items:flex-start}
.dav-tm .dav-stepnum{flex:0 0 auto;width:44px;height:44px;border-radius:2px;background:var(--navy);color:#fff;font-weight:900;font-size:16px;display:flex;align-items:center;justify-content:center;margin-top:-6px}
.dav-tm .dav-steplabel{display:block;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--red);margin-bottom:2px}
.dav-tm .dav-step+p,.dav-tm .dav-step+p+ul,.dav-tm .dav-step+p+ul+p{margin-left:60px}
.dav-tm .dav-list{list-style:none;margin:0 0 22px;max-width:76ch}
.dav-tm .dav-list li{position:relative;padding-left:24px;margin-bottom:10px}
.dav-tm .dav-list li::before{content:"";position:absolute;left:2px;top:.62em;width:8px;height:8px;background:var(--red)}
.dav-tm .dav-adv{list-style:none;counter-reset:adv;display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:8px 0 24px}
.dav-tm .dav-adv li{counter-increment:adv;position:relative;background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px 20px 18px 70px;min-height:76px}
.dav-tm .dav-adv li::before{content:counter(adv);position:absolute;left:0;top:0;bottom:0;width:52px;background:var(--navy);color:#fff;font-weight:900;font-size:18px;display:flex;align-items:center;justify-content:center;border-radius:8px 0 0 8px}
.dav-tm .dav-fig{margin:28px 0 36px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
.dav-tm .dav-fig-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.dav-tm .dav-fig svg{display:block;width:100%;height:auto;max-width:none}
.dav-tm .dav-swipe{display:none;font-size:12.5px;color:var(--muted);padding:8px 14px;border-top:1px solid var(--line);background:var(--paper)}
.dav-tm .dav-table-wrap{overflow-x:auto;margin:20px 0 28px;border:1px solid var(--line);border-radius:8px}
.dav-tm .dav-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5;margin:0}
.dav-tm .dav-table thead th{background:var(--navy);color:#fff;text-align:left;font-weight:700;padding:12px 16px;font-size:14px;letter-spacing:.02em;border:0}
.dav-tm .dav-table tbody th{text-align:left;color:var(--navy);font-weight:700;padding:12px 16px;vertical-align:top;border:0;border-top:1px solid var(--line);min-width:150px}
.dav-tm .dav-table td{padding:12px 16px;vertical-align:top;border:0;border-top:1px solid var(--line)}
.dav-tm .dav-table tbody tr:nth-child(even){background:var(--paper)}
.dav-tm .dav-people{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:8px 0 18px}
.dav-tm .dav-person{border:1px solid var(--line);border-top:3px solid var(--navy);border-radius:8px;padding:22px 24px}
.dav-tm .dav-person-name{font-size:20px;font-weight:700;color:var(--navy);margin:0 0 2px}
.dav-tm .dav-person-role{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);margin-bottom:12px}
.dav-tm .dav-person p:last-child{font-size:15.5px;margin:0}
.dav-tm .dav-more{font-weight:700;margin-top:8px}
.dav-tm .dav-more a{text-decoration:none}
.dav-tm .dav-quotes{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.dav-tm .dav-quote{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:26px 26px 22px;position:relative;display:flex;flex-direction:column}
.dav-tm .dav-quote::before{content:"\201C";position:absolute;top:6px;left:20px;font-size:64px;line-height:1;color:var(--dav-quote);font-weight:900}
.dav-tm .dav-quote blockquote{margin:22px 0 14px}
.dav-tm .dav-quote blockquote p{font-style:italic;font-size:15.5px;max-width:none;margin:0}
.dav-tm .dav-quote .dav-quote-title{font-style:normal;font-weight:700;color:var(--navy);font-size:17px;margin-bottom:8px}
.dav-tm .dav-quote figcaption{margin-top:auto;font-size:14px;color:var(--muted)}
.dav-tm .dav-quote figcaption strong{display:block;font-size:15px}
.dav-tm .dav-tr{margin-top:14px;border-top:1px solid var(--line);padding-top:10px;font-size:15px}
.dav-tm .dav-tr summary{cursor:pointer;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
.dav-tm .dav-tr .dav-tr-title{font-weight:700;color:var(--navy);margin:10px 0 6px}
.dav-tm .dav-tr p{margin-bottom:6px;max-width:none}
.dav-tm .dav-cta{background:radial-gradient(120% 140% at 85% -20%,rgba(33,98,172,.55) 0%,rgba(33,98,172,0) 60%),linear-gradient(120deg,var(--navy) 0%,var(--dav-deep) 100%);color:#fff;border-radius:8px;padding:48px 40px;text-align:center;margin:8px 0 64px}
.dav-tm .dav-cta-title{color:#fff;font-size:clamp(26px,3vw,34px);font-weight:700;line-height:1.2;margin:0 0 14px}
.dav-tm .dav-cta p{color:#CDD5E6;margin:0 auto 22px;max-width:60ch}
.dav-tm .dav-btn{display:inline-block;background:var(--red);color:#fff!important;text-decoration:none!important;font-weight:700;font-size:16px;padding:15px 28px;border-radius:2px;letter-spacing:.02em}
.dav-tm .dav-btn:hover{background:var(--dav-red-d)}
.dav-tm .dav-cta .dav-cta-phone{font-size:14px;margin:0 auto}
.dav-tm .dav-sec-sources .dav-h2{font-size:22px}
.dav-tm .dav-sec-sources .dav-list{font-size:14.5px;color:var(--muted)}
.dav-tm .dav-disclaimer{font-size:13.5px;font-style:italic;color:var(--muted)}
@media (max-width:900px){
	.dav-tm .dav-stats{grid-template-columns:1fr 1fr}
	.dav-tm .dav-stat:nth-child(3){border-left:0}
	.dav-tm .dav-stat:nth-child(n+3){border-top:1px solid var(--line)}
	.dav-tm .dav-toc ol{columns:1}
	.dav-tm .dav-adv,.dav-tm .dav-people,.dav-tm .dav-quotes{grid-template-columns:1fr}
}
@media (max-width:640px){
	.dav-tm{font-size:16px;padding:0 16px 8px}
	.dav-tm .dav-fig svg{min-width:760px}
	.dav-tm .dav-swipe{display:block}
	.dav-tm .dav-step+p,.dav-tm .dav-step+p+ul,.dav-tm .dav-step+p+ul+p{margin-left:0}
	.dav-tm .dav-stat dt{font-size:28px}
	.dav-tm .dav-cta{padding:36px 22px}
	.dav-tm .dav-answer,.dav-tm .dav-toc{padding:18px}
	.dav-tm .dav-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
	.dav-tm .dav-table,.dav-tm .dav-table tbody,.dav-tm .dav-table tr,.dav-tm .dav-table th,.dav-tm .dav-table td{display:block;width:100%}
	.dav-tm .dav-table tbody tr{border-top:1px solid var(--line);padding:12px 16px}
	.dav-tm .dav-table tbody tr:first-child{border-top:0}
	.dav-tm .dav-table tbody th{border:0;padding:0 0 6px;min-width:0;font-size:16px}
	.dav-tm .dav-table td{border:0;padding:4px 0}
	.dav-tm .dav-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--red);margin-bottom:2px}
}
@media print{
	.dav-tm{max-width:none;padding:0;font-size:12pt}
	.dav-tm .dav-fig,.dav-tm .dav-quote,.dav-tm .dav-person,.dav-tm .dav-table-wrap,.dav-tm .dav-h2,.dav-tm .dav-h3{break-after:avoid;break-inside:avoid;page-break-after:avoid}
	.dav-tm .dav-step{display:block}
	.dav-tm .dav-stepnum{display:inline-flex;width:32px;height:32px;margin:0 10px 0 0;vertical-align:middle}
	.dav-tm .dav-step>span:last-child{display:inline}
	.dav-tm .dav-steplabel{display:inline;margin-right:6px}
	.dav-tm .dav-step+p,.dav-tm .dav-step+p+ul,.dav-tm .dav-step+p+ul+p{margin-left:0}
	.dav-tm .dav-swipe,.dav-tm .dav-crumbs{display:none}
	.dav-tm .dav-fig svg{min-width:0}
	.dav-tm .dav-cta{-webkit-print-color-adjust:exact;print-color-adjust:exact}
	.dav-tm .dav-stat:first-child,.dav-tm .dav-table thead th,.dav-tm .dav-adv li::before,.dav-tm .dav-stepnum{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ── Site integration ────────────────────────────────────── */

/* Attorney names link to their bios. */
.dav-tm .dav-person-name a {
	color: inherit;
	text-decoration: none;
}
.dav-tm .dav-person-name a:hover {
	color: var(--red);
	text-decoration: underline;
}

/* Recognitions: the same ranking badges as the homepage. */
.dav-tm .dav-badges {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px 40px;
	margin: 20px 0 0;
	padding: 0;
}
.dav-tm .dav-badges li {
	margin: 0;
}
.dav-tm .dav-badges img {
	display: block;
	width: auto;
	height: 64px;
	max-width: 180px;
	object-fit: contain;
}

/* FAQ: the site accordion inside the guide's narrower prose column. */
.dav-tm .dealva-faq__list {
	max-width: 880px;
}
.dav-tm .dealva-faq__answer p {
	max-width: none;
	margin: 0 0 12px;
}
.dav-tm .dealva-faq__answer p:last-child {
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.dealva-guide__body {
		padding-top: 28px;
	}
	.dav-tm .dav-badges {
		gap: 20px 28px;
	}
	.dav-tm .dav-badges img {
		height: 48px;
	}
}

@media print {
	.dav-tm .dealva-faq__panel {
		display: block !important;
	}
	.dav-tm .dealva-faq__icon {
		display: none;
	}
}
