/*
 * Bpers Forms. Direction and reasons: docs/DESIGN-RESEARCH-2026-11-26.md.
 * "Fill in the paper": a warm desk, a white sheet, and what you type in pen-blue ink.
 * Interface: Public Sans (US Web Design System). Document: Source Serif 4. Both self-hosted (OFL).
 */

@font-face {
	font-family: "Public Sans";
	src: url("../fonts/public-sans-latin-wght.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4-latin-wght.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--desk: #EFEDE7;
	--desk-2: #E6E2D8;
	--paper: #FFFFFF;
	--ink: #14181F;
	--ink-2: #4A4F59;
	--ink-3: #5C6068;
	--pen: #1D4ED8;
	--pen-dark: #1A3FB0;
	--pen-soft: #E8EEFC;
	--rule: #B9B3A5;
	--line: #DCD7CB;
	--stamp: #15803D;
	--sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body.bpf {
	margin: 0;
	background: var(--desk);
	color: var(--ink);
	font: 400 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.bpf a { color: var(--pen); text-underline-offset: 3px; }
.bpf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.bpf-icon { width: 22px; height: 22px; flex: none; }
.bpf-icon-s { width: 18px; height: 18px; }

.bpf-skip { position: absolute; left: -9999px; }
.bpf-skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }

/* ---------- Header: quiet, out of the way ---------- */
.bpf-header { border-bottom: 1px solid var(--line); background: var(--desk); }
.bpf-header-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.bpf-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.bpf-logo em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 1px; }
.bpf-nav { display: flex; gap: 2px; }
.bpf-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
@media (max-width: 420px) { .bpf-nav a { padding: 8px 8px; font-size: .88rem; } .bpf-logo { font-size: 1.05rem; } }
.bpf-nav a:hover { background: var(--desk-2); }

.bpf-main { padding-bottom: 64px; }
.bpf-draft-note { display: inline-block; background: #FFF4CC; border: 1px solid #E8C547; border-radius: 8px; padding: 4px 10px; font-size: .85rem; margin: 0 0 12px; }

/* ---------- Tool head: one line, then straight to work ---------- */
.bpf-tool-head { padding-top: 22px; }
.bpf-tool-head h1 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 4px; }
.bpf-tool-head .bpf-lede { font-size: .98rem; }
.bpf-lede { font-size: 1.05rem; color: var(--ink-2); max-width: 680px; margin: 0; }

/* ---------- The big chooser ---------- */
.bpf-chooser { border: 0; padding: 0; margin: 16px 0 16px; min-width: 0; }
.bpf-chooser legend { font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: 8px; }
.bpf-chooser-grid { display: grid; grid-template-columns: repeat(6, minmax(132px, 1fr)); gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: -2px -2px 0; }
.bpf-chooser-grid::-webkit-scrollbar { display: none; }
.bpf-choice { position: relative; cursor: pointer; }
.bpf-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bpf-choice > span {
	display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px;
	min-height: 52px; padding: 8px 14px; text-align: left; font-weight: 600; font-size: .92rem; line-height: 1.2; white-space: nowrap;
	background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink-2);
	transition: border-color .12s, box-shadow .12s, color .12s;
}
.bpf-choice .bpf-icon { width: 26px; height: 26px; }
.bpf-choice:hover > span { border-color: var(--rule); color: var(--ink); }
.bpf-choice input:checked + span { border-color: var(--pen); color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
.bpf-choice input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 2px; }

/* ---------- Desk: paper + action rail ---------- */
.bpf-desk { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .bpf-desk { grid-template-columns: minmax(0, 1fr) 280px; } .bpf-rail { position: sticky; top: 16px; } }
.bpf-hint { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: .88rem; margin: 0 0 10px; }

/* The paper */
.bpf-paper {
	background: var(--paper); color: var(--ink);
	padding: clamp(22px, 5vw, 56px) clamp(18px, 6vw, 72px);
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(40, 30, 10, .08), 0 12px 32px -8px rgba(40, 30, 10, .18);
	font: 400 16.5px/1.75 var(--serif);
	max-width: 860px;
}
.bpf-doc-title { font: 700 clamp(1.3rem, 3vw, 1.75rem)/1.2 var(--serif); text-align: center; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 28px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.bpf-doc-p { margin: 0 0 16px; }
.bpf-doc-p.is-empty .bpf-area { min-height: 2.4em; }
.bpf-doc-kv { margin: 22px 0 18px; }
.bpf-doc-kv h3, .bpf-doc-notary h3 { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.bpf-doc-kv dl { margin: 0; }
.bpf-kv-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); align-items: end; gap: 12px; min-height: 44px; }
.bpf-kv-row dt { font-weight: 600; padding-bottom: 7px; }
.bpf-kv-row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
@media (max-width: 520px) { .bpf-kv-row { grid-template-columns: 1fr; gap: 0; } .bpf-kv-row dt { padding: 8px 0 0; font-size: .9rem; color: var(--ink-2); } }

/* What the visitor types: pen-blue ink on a ruled line */
.bpf-ink {
	font: 500 1em/1.4 var(--serif); color: var(--pen);
	background: transparent; border: 0; border-bottom: 1.5px solid var(--rule); border-radius: 0;
	padding: 2px 2px 3px; min-width: 0;
	transition: border-color .12s, background .12s;
	-webkit-appearance: none; appearance: none;
}
.bpf-ink::placeholder { color: #7A7466; font-style: italic; font-weight: 400; }
.bpf-ink:hover { border-bottom-color: var(--ink-3); }
.bpf-ink:focus { outline: none; border-bottom-color: var(--pen); background: var(--pen-soft); }
.bpf-row { width: 100%; }
.bpf-inline { width: 9em; }
.bpf-iw-s { width: 6.5em; }
.bpf-iw-m { width: 9.5em; }
.bpf-iw-l { width: 15em; }
.bpf-iw-date { width: 10.5em; }
select.bpf-ink { cursor: pointer; padding-right: 22px; text-overflow: ellipsis; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 14px 14px; }
select.bpf-ink:focus { background-color: var(--pen-soft); }
select.bpf-ink option { color: var(--ink); font-family: var(--sans); }
.bpf-upper { text-transform: uppercase; letter-spacing: .04em; }
.bpf-area { width: 100%; resize: vertical; min-height: 4.2em; line-height: 1.6; display: block; margin-top: 4px; background-image: repeating-linear-gradient(transparent, transparent calc(1.6em - 1px), var(--line) calc(1.6em - 1px), var(--line) 1.6em); border-bottom: 0; }
.bpf-money { display: inline-flex; align-items: flex-end; color: var(--pen); font-weight: 500; }
.bpf-money > span { padding-bottom: 4px; }
.bpf-rule { display: inline-block; min-width: 7em; border-bottom: 1px solid var(--ink); height: 1em; }
.bpf-rule-l { min-width: 11em; }

/* Signatures */
.bpf-doc-sigs { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 640px) { .bpf-doc-sigs { grid-template-columns: 1fr 1fr; gap: 40px; } }
.bpf-sig-who { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.bpf-sig-line { position: relative; border-bottom: 1px solid var(--ink); height: 46px; margin-bottom: 26px; }
.bpf-sig-line > span { position: absolute; left: 0; top: 100%; margin-top: 3px; font: 500 .75rem/1 var(--sans); color: var(--ink-3); }
.bpf-sig-short { width: 55%; }
.bpf-mirror { position: absolute; left: 0; bottom: 4px; font-weight: 500; color: var(--pen); }
.bpf-doc-notary { margin-top: 32px; padding-top: 20px; border-top: 1px dashed var(--rule); font-size: .95em; }

/* The action rail */
.bpf-rail { display: flex; flex-direction: column; gap: 10px; }
.bpf-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 58px; padding: 0 24px; border: 0; border-radius: 12px;
	background: var(--pen); color: #fff; font: 700 1.08rem/1 var(--sans); cursor: pointer;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 18px -6px rgba(29, 78, 216, .6);
	transition: background .12s, transform .06s;
}
.bpf-cta:hover { background: var(--pen-dark); }
.bpf-cta:active { transform: translateY(1px); }
.bpf-cta[disabled] { opacity: .75; cursor: progress; }
.bpf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line);
	background: var(--paper); color: var(--ink); font: 600 1rem/1 var(--sans); cursor: pointer;
}
.bpf-btn:hover { border-color: var(--ink-3); }
.bpf-status { min-height: 1em; margin: 0; font-size: .88rem; color: var(--ink-2); }
.bpf-status:empty { display: none; }
.bpf-rail-box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 6px; margin-top: 6px; }
.bpf-rail-title { font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.bpf-opt { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .92rem; font-weight: 600; line-height: 1.35; cursor: pointer; }
.bpf-opt input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--pen); flex: none; }
.bpf-opt small { display: block; font-weight: 400; color: var(--ink-3); font-size: .82rem; margin-top: 3px; }
.bpf-opt-select { flex-direction: column; align-items: stretch; gap: 6px; cursor: default; }
.bpf-opt-select select, .bpf-opt-select .bpf-dd { width: 100%; }
.bpf-promises { list-style: none; padding: 4px 2px 0; margin: 0; font-size: .86rem; color: var(--ink-2); }
.bpf-promises li { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.bpf-promises .bpf-icon { color: var(--stamp); }
.bpf-link-btn { align-self: flex-start; background: none; border: 0; padding: 4px 2px; color: var(--ink-3); font: 500 .85rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Phone: the rail's two buttons stick to the bottom */
.bpf-mobilebar { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(239, 237, 231, .94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); margin-top: 20px; }
@media (min-width: 1000px) { .bpf-mobilebar { display: none; } }
@media (max-width: 999px) { .bpf-rail > .bpf-cta, .bpf-rail > .bpf-btn { display: none; } }

/* ---------- Article under the tool ---------- */
.bpf-article-wrap { margin-top: 64px; }
.bpf-article-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .bpf-article-grid { grid-template-columns: 240px minmax(0, 760px); gap: 56px; } .bpf-article-side { position: sticky; top: 20px; align-self: start; } }
.bpf-article-grid .bpf-article > section:first-child h2 { margin-top: 0; }
.bpf-side-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--ink) !important; font-weight: 600; font-size: .9rem; text-decoration: none; }
.bpf-side-cta:hover { border-color: var(--pen); color: var(--pen) !important; }
@media (max-width: 999px) { .bpf-side-cta { display: none; } }
.bpf-article { max-width: 760px; font-size: 1.02rem; }
.bpf-article section { scroll-margin-top: 20px; }
.bpf-article h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 44px 0 12px; }
.bpf-article p, .bpf-article li { color: #2A2E36; }
.bpf-article li { margin-bottom: 8px; }
.bpf-toc { border-left: 3px solid var(--pen); padding: 2px 0 2px 16px; font-size: .93rem; }
.bpf-toc li { margin-bottom: 6px; }
.bpf-toc p { font-weight: 700; margin: 0 0 4px; }
.bpf-toc ol { margin: 0; padding-left: 18px; }
.bpf-toc a { text-decoration: none; }
.bpf-steps { padding-left: 22px; }
.bpf-sources li { font-size: .93rem; }
.bpf-small { color: var(--ink-3); font-size: .85rem; }

/* ---------- Footer ---------- */

/* ---------- Homepage ---------- */
.bpf-hero { display: grid; gap: 36px; align-items: start; padding-top: 28px; padding-bottom: 40px; }
@media (min-width: 1000px) { .bpf-hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; padding-top: 36px; padding-bottom: 56px; align-items: center; } }
.bpf-kicker { font-size: .85rem; font-weight: 600; color: var(--stamp); margin: 0 0 10px; letter-spacing: .01em; }
.bpf-hero h1 { font-size: clamp(2rem, 3.9vw, 3.05rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; margin: 0 0 10px; max-width: 15ch; }
.bpf-hero .bpf-lede { font-size: 1.1rem; max-width: 560px; }
.bpf-start { margin-top: 4px; }
.bpf-start .bpf-chooser { margin: 18px 0 12px; }
.bpf-start .bpf-choice > span { min-height: 52px; }
.bpf-start .bpf-chooser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.bpf-start .bpf-choice > span { white-space: normal; }
@media (max-width: 520px) { .bpf-start .bpf-chooser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bpf-start-row { display: grid; gap: 10px; margin-top: 2px; }
@media (min-width: 560px) { .bpf-start-row { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; } }
.bpf-start-row .bpf-select { min-height: 60px; }
.bpf-cta-xl { min-height: 60px; padding: 0 28px; font-size: 1.1rem; }
.bpf-hero-sheet { position: relative; max-height: 500px; overflow: hidden; padding: 8px 12px 0; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.bpf-sheet { transform: rotate(1.2deg); font-size: 12.5px; padding: 34px 34px 18px; max-width: 460px; margin: 0 auto; pointer-events: none; user-select: none; }
.bpf-sheet .bpf-doc-title { margin-bottom: 16px; padding-bottom: 10px; }
.bpf-sheet .bpf-doc-kv { margin: 12px 0 8px; }
.bpf-sheet .bpf-kv-row { min-height: 26px; grid-template-columns: 9em 1fr; }
.bpf-sheet .bpf-kv-row dd { border-bottom: 1px solid var(--line); }
.bpf-sheet .bpf-doc-sigs { margin-top: 18px; grid-template-columns: 1fr 1fr; gap: 20px; }
.bpf-typed { color: var(--pen); font-weight: 500; }
.bpf-scribble { position: absolute; left: 6px; bottom: 4px; width: 70%; height: 30px; background: no-repeat left bottom / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40'%3E%3Cpath d='M4 30c10-22 18-24 20-8s8 14 16-6 10-8 12 6 10 6 18-10 12 4 16 10 12-2 20-4 24 8' fill='none' stroke='%231D4ED8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (max-width: 999px) { .bpf-hero-sheet { order: 2; } .bpf-sheet { transform: none; } }

/* ---------- Trust pages, contact, 404 ---------- */
.bpf-page { padding-top: 40px; }
.bpf-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; }
.bpf-page .bpf-lede { margin-bottom: 8px; }
.bpf-contact { margin-top: 24px; max-width: 520px; }
.bpf-contact label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.bpf-contact input, .bpf-contact textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font: 400 1rem var(--sans); color: var(--ink); }
.bpf-contact textarea { min-height: 150px; resize: vertical; }
.bpf-contact input:focus, .bpf-contact textarea:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
.bpf-hp { position: absolute; left: -9999px; }
.bpf-alert { padding: 12px 16px; border-radius: 12px; background: #FDECEC; border: 1px solid #F3B4B4; }
.bpf-alert-ok { background: #E8F5EC; border-color: #A9D8B8; }
a.bpf-cta { text-decoration: none; color: #fff; }

/* ---------- Print: the sheet only, as it would come out of a printer ---------- */
@media print {
	body.bpf { background: #fff; }
	body.bpf * { visibility: hidden; }
	.bpf-paper, .bpf-paper * { visibility: visible; }
	.bpf-paper { position: absolute; left: 0; top: 0; width: 100%; max-width: none; box-shadow: none; padding: 0; font-size: 12pt; }
	.bpf-rail { position: static !important; }
	.bpf-ink { color: #000; border-bottom-color: #000; }
	select.bpf-ink { background-image: none; }
	.bpf-ink::placeholder { color: transparent; }
	[hidden], .bpf-doc-p.is-empty { display: none !important; }
	@page { margin: 0.7in; }
}

/* ---------- One dropdown style for the whole site ---------- */
.bpf-select {
	-webkit-appearance: none; appearance: none; width: 100%; min-height: 56px; padding: 0 44px 0 16px;
	border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer;
	font: 500 1rem var(--sans); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px;
	transition: border-color .12s, box-shadow .12s;
}
.bpf-select:hover { border-color: var(--rule); }
.bpf-select:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
.bpf-select-wrap { display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Homepage sections ---------- */
.bpf-hero-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 14px 0 0; font-size: .86rem; color: var(--ink-2); }
.bpf-hero-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.bpf-hero-ticks .bpf-icon { color: var(--stamp); }

.bpf-h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 8px; }
.bpf-section { padding-top: 72px; }
.bpf-section-lede { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 26px; max-width: 620px; }

.bpf-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.bpf-band .bpf-h2 { margin-bottom: 28px; }
.bpf-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 800px) { .bpf-how { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.bpf-how-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pen-soft); color: var(--pen); font: 800 1.1rem var(--sans); margin-bottom: 14px; }
.bpf-how h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.bpf-how p { margin: 0; color: var(--ink-2); }

.bpf-kinds { display: grid; gap: 12px; }
@media (min-width: 640px) { .bpf-kinds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bpf-kinds { grid-template-columns: repeat(4, 1fr); } }
.bpf-kind { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink) !important; text-decoration: none; transition: border-color .12s, transform .12s, box-shadow .12s; }
.bpf-kind:hover { border-color: var(--pen); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(29, 78, 216, .55); }
.bpf-kind-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--desk); color: var(--ink); }
.bpf-kind-icon .bpf-icon { width: 28px; height: 28px; }
.bpf-kind-text strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.bpf-kind-text span { display: block; color: var(--ink-3); font-size: .9rem; line-height: 1.4; }
.bpf-kind-arrow { color: var(--ink-3); }
.bpf-kind:hover .bpf-kind-arrow { color: var(--pen); }

.bpf-why-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 800px) { .bpf-why-grid { grid-template-columns: repeat(3, 1fr); } }
.bpf-why-card { background: var(--paper); border-radius: 16px; padding: 26px 24px; box-shadow: 0 1px 2px rgba(40, 30, 10, .06); }
.bpf-why-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--pen); color: #fff; margin-bottom: 16px; }
.bpf-why-card h3 { font-size: 1.12rem; margin: 0 0 6px; }
.bpf-why-card p { margin: 0; color: var(--ink-2); font-size: .98rem; }

.bpf-include { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .bpf-include { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.bpf-text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.bpf-checklist { list-style: none; margin: 0; padding: 8px 24px; background: var(--paper); border-radius: 16px; box-shadow: 0 1px 2px rgba(40, 30, 10, .06); }
.bpf-checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.bpf-checklist li:last-child { border-bottom: 0; }
.bpf-checklist .bpf-icon { color: var(--stamp); margin-top: 2px; }
.bpf-checklist strong { color: var(--ink); }

.bpf-home { padding-bottom: 0; }
.bpf-final { margin-top: 80px; background: var(--pen); color: #fff; padding: 52px 0; }
.bpf-final-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.bpf-final h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 4px; }
.bpf-final p { margin: 0; color: #DCE5FB; }
.bpf-cta-light { background: #fff; color: var(--ink) !important; box-shadow: none; }
.bpf-cta-light:hover { background: var(--pen-soft); }

/* ---------- Custom dropdown (assets/js/bpf-select.js) ---------- */
.bpf-dd { position: relative; display: block; }
.bpf-dd-inline { display: inline-block; vertical-align: bottom; }
.bpf-dd-native { position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.bpf-dd-btn { text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpf-dd-btn.bpf-select { display: block; line-height: 56px; padding-top: 0; padding-bottom: 0; }
.bpf-start-row .bpf-dd-btn.bpf-select { line-height: 58px; }
.bpf-dd-btn.bpf-select.is-placeholder { color: var(--ink-3); }
.bpf-dd-btn.bpf-ink { display: inline-block; height: 1.95em; vertical-align: bottom; padding-right: 22px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 14px 14px; }
.bpf-dd-btn.bpf-ink.is-placeholder { color: #7A7466; font-style: italic; font-weight: 400; }
.bpf-dd.is-open > .bpf-dd-btn.bpf-select { border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
.bpf-dd.is-open > .bpf-dd-btn.bpf-ink { border-bottom-color: var(--pen); background-color: var(--pen-soft); }

.bpf-dd-panel {
	position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
	min-width: 100%; width: max-content; max-width: min(340px, calc(100vw - 24px));
	padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
	box-shadow: 0 2px 6px rgba(20, 24, 31, .06), 0 22px 48px -14px rgba(20, 24, 31, .30);
	font: 500 .95rem/1.3 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; font-style: normal;
	animation: bpf-dd-in .12s ease-out;
}
.bpf-dd:not(.bpf-dd-inline) > .bpf-dd-panel { width: 100%; max-width: none; }
.bpf-dd-inline > .bpf-dd-panel { min-width: 220px; }
.bpf-dd-panel.is-up { top: auto; bottom: calc(100% + 6px); }
@keyframes bpf-dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bpf-dd-search {
	display: block; width: 100%; min-height: 44px; margin: 0 0 6px; padding: 0 12px 0 38px;
	border: 1.5px solid var(--line); border-radius: 10px; background: var(--desk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E727B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") no-repeat 12px center / 18px 18px;
	font: 500 .95rem var(--sans); color: var(--ink);
}
.bpf-dd-search:focus { outline: none; border-color: var(--pen); background-color: var(--paper); }
.bpf-dd-list { list-style: none; margin: 0; padding: 0; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.bpf-dd-list:focus { outline: none; }
.bpf-dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; padding: 9px 12px; border-radius: 9px; cursor: pointer; margin: 0; }
.bpf-dd-opt.is-active { background: var(--pen-soft); color: var(--pen); }
.bpf-dd-opt[aria-selected="true"] { font-weight: 700; }
.bpf-dd-opt[aria-selected="true"]::after { content: ""; flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center / contain; }
.bpf-dd-empty { padding: 12px; color: var(--ink-3); }
@media print { .bpf-dd-btn.bpf-ink { background-image: none; color: #000; } .bpf-dd-panel { display: none !important; } }

/* ---------- States band (homepage) ---------- */
.bpf-states-band { margin-top: 80px; padding: 64px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bpf-states-in { display: grid; gap: 32px; }
@media (min-width: 1000px) { .bpf-states-in { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; } .bpf-states-head { position: sticky; top: 24px; align-self: start; } }
.bpf-state-find input {
	width: 100%; min-height: 54px; padding: 0 16px 0 44px; border: 1.5px solid var(--line); border-radius: 12px;
	background: var(--desk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E727B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") no-repeat 14px center / 20px 20px; font: 500 1rem var(--sans); color: var(--ink);
}
.bpf-state-find input:focus { outline: none; border-color: var(--pen); background-color: var(--paper); box-shadow: 0 0 0 3px var(--pen-soft); }
.bpf-state-find input::-webkit-search-cancel-button { cursor: pointer; }
.bpf-popular-label { font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }
.bpf-popular { display: flex; flex-wrap: wrap; gap: 8px; }
.bpf-popular a { padding: 8px 14px; border-radius: 999px; background: var(--pen-soft); color: var(--pen); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .12s, color .12s; }
.bpf-popular a:hover { background: var(--pen); color: #fff; }
.bpf-state-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .bpf-state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .bpf-state-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bpf-state-grid li[hidden] { display: none; }
.bpf-state-grid a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; background: var(--paper); transition: border-color .12s, box-shadow .12s, color .12s; }
.bpf-state-grid b { display: grid; place-items: center; width: 36px; height: 34px; flex: none; border-radius: 7px; background: var(--desk); font: 700 .78rem/1 var(--sans); letter-spacing: .04em; color: var(--ink-2); transition: background .12s, color .12s; }
.bpf-state-grid span { line-height: 1.2; }
.bpf-state-grid a:hover { border-color: var(--pen); color: var(--pen); box-shadow: 0 6px 16px -10px rgba(29, 78, 216, .6); }
.bpf-state-grid a:hover b { background: var(--pen); color: #fff; }
.bpf-state-none { margin: 4px 0 0; color: var(--ink-3); }

/* ---------- FAQ: accordion cards (homepage + every form page) ---------- */
.bpf-home-faq { display: grid; gap: 28px; }
@media (min-width: 1000px) { .bpf-home-faq { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; } .bpf-faq-side { position: sticky; top: 24px; align-self: start; } }
.bpf-ask-card { margin-top: 8px; padding: 22px; background: var(--paper); border-radius: 16px; box-shadow: 0 1px 2px rgba(40, 30, 10, .06); }
.bpf-ask-card p { margin: 0 0 12px; color: var(--ink-2); font-size: .96rem; }
.bpf-ask-card strong { color: var(--ink); }
.bpf-faq-list { display: grid; gap: 10px; align-content: start; }
.bpf-faq { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.bpf-faq + .bpf-faq { margin-top: 10px; }
.bpf-faq-list .bpf-faq + .bpf-faq { margin-top: 0; }
.bpf-faq:hover { border-color: var(--rule); }
.bpf-faq[open] { border-color: var(--pen); box-shadow: 0 10px 26px -16px rgba(29, 78, 216, .55); }
.bpf-faq summary { position: relative; display: block; list-style: none; cursor: pointer; padding: 18px 60px 18px 20px; font-weight: 700; font-size: 1.04rem; line-height: 1.35; color: var(--ink); }
.bpf-faq summary::-webkit-details-marker { display: none; }
.bpf-faq summary::before, .bpf-faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--ink-2); transition: transform .18s, background .15s; }
.bpf-faq summary::after { transform: rotate(90deg); }
.bpf-faq[open] summary::after { transform: rotate(0deg); }
.bpf-faq[open] summary::before, .bpf-faq[open] summary::after { background: var(--pen); }
.bpf-faq summary:hover { color: var(--pen); }
.bpf-faq summary:focus-visible { outline: 3px solid var(--pen); outline-offset: -3px; border-radius: 14px; }
.bpf-faq > p { margin: -4px 0 0; padding: 0 24px 20px 20px; color: var(--ink-2); line-height: 1.65; }

/* ---------- Footer ---------- */
.bpf-footer { background: var(--ink); color: #B7BCC6; font-size: .93rem; margin-top: 0; }
.bpf-main + .bpf-footer, .bpf-footer { border-top: 0; }
.bpf-foot-grid { display: grid; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
@media (min-width: 760px) { .bpf-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
@media (min-width: 1000px) { .bpf-foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.bpf-logo-light { color: #fff !important; }
.bpf-logo-light em { color: #8F96A3; }
.bpf-logo-light img { border-radius: 8px; display: block; }
.bpf-foot-brand p { margin: 14px 0 0; max-width: 340px; }
.bpf-foot-promise { display: flex; gap: 8px; align-items: center; color: #DDE1E8; }
.bpf-foot-promise .bpf-icon { color: #7FA0F5; }
.bpf-foot-title { font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8F96A3; margin: 6px 0 14px; }
.bpf-foot-col ul { list-style: none; margin: 0; padding: 0; }
.bpf-foot-col li { margin-bottom: 10px; }
.bpf-footer a:not(.bpf-logo) { color: #E6E9EE; text-decoration: none; }
.bpf-footer a:not(.bpf-logo):hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bpf-foot-bottom { display: grid; gap: 10px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid #2A303B; font-size: .82rem; color: #8F96A3; }
@media (min-width: 760px) { .bpf-foot-bottom { grid-template-columns: 1fr auto; gap: 32px; align-items: start; } }
.bpf-foot-bottom p { margin: 0; }
.bpf-disclaimer { max-width: 760px; }
.bpf-main { padding-bottom: 72px; }
.bpf-home { padding-bottom: 0; }

/* ---------- Other bills of sale (on vehicle pages, in place of the chooser) ---------- */
.bpf-siblings { display: flex; gap: 8px; margin: 16px 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.bpf-siblings::-webkit-scrollbar { display: none; }
.bpf-sib { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 6px 14px 6px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2) !important; text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.bpf-sib .bpf-icon { width: 22px; height: 22px; }
.bpf-sib:hover { border-color: var(--rule); color: var(--ink) !important; }
.bpf-sib.is-current { border-color: var(--pen); color: var(--pen) !important; box-shadow: 0 0 0 3px var(--pen-soft); }
.bpf-link-list li { margin-bottom: 6px; }

/* ---------- Requirements by state ---------- */
.bpf-req { padding-top: 26px; }
.bpf-crumb { font-size: .88rem; color: var(--ink-3); margin: 0 0 8px; }
.bpf-crumb a { color: var(--ink-2); }
.bpf-req-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; }
.bpf-req-head .bpf-lede { max-width: 780px; }
.bpf-req-meta { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 8px 14px; border-radius: 999px; background: #E8F5EC; color: #1E5E37; font-size: .88rem; font-weight: 600; }
.bpf-req .bpf-h2 { margin-top: 48px; margin-bottom: 16px; }
.bpf-table-wrap { overflow-x: auto; background: var(--paper); border-radius: 14px; box-shadow: 0 1px 2px rgba(40, 30, 10, .06); }
.bpf-req-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .96rem; }
.bpf-req-table th, .bpf-req-table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.bpf-req-table thead th { font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--desk); }
.bpf-req-table tbody tr:last-child > * { border-bottom: 0; }
.bpf-req-table tbody th a { color: var(--ink); font-weight: 700; text-decoration: none; }
.bpf-req-table tbody th a:hover { color: var(--pen); }
.bpf-muted { color: var(--ink-3); }
.bpf-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.bpf-pill.is-yes { background: #FDEBD8; color: var(--warn); }
.bpf-pill.is-no { background: #E8F5EC; color: var(--stamp); }
.bpf-pill.is-na { background: var(--desk); color: var(--ink-2); }
.bpf-req-states { display: grid; gap: 14px; }
@media (min-width: 900px) { .bpf-req-states { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bpf-req-states > h2 { grid-column: 1 / -1; } }
.bpf-state-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; scroll-margin-top: 16px; display: flex; flex-direction: column; }
.bpf-state-card:target { border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
.bpf-state-card > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bpf-state-code { display: grid; place-items: center; width: 42px; height: 38px; border-radius: 9px; background: var(--ink); color: #fff; font: 800 .85rem var(--sans); letter-spacing: .04em; }
.bpf-state-card h3 { font-size: 1.25rem; margin: 0; }
.bpf-state-dl { margin: 0 0 12px; display: grid; gap: 8px; }
.bpf-state-dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; font-size: .95rem; }
.bpf-state-dl dt { font-weight: 700; color: var(--ink-2); }
.bpf-state-dl dd { margin: 0; }
.bpf-state-facts { margin: 0 0 14px; padding-left: 20px; color: #2A2E36; font-size: .95rem; }
.bpf-state-facts li { margin-bottom: 6px; }
.bpf-state-card > footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.bpf-state-card > footer .bpf-small { margin: 0; }
.bpf-req-how { margin-top: 40px; }
@media (max-width: 520px) { .bpf-state-dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Business documents: headings, letter lines, tick boxes, tables, totals ---------- */
.bpf-doc-h { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 8px; }
.bpf-doc-lines { margin: 0 0 18px; }
.bpf-doc-line { min-height: 36px; display: flex; align-items: flex-end; }
.bpf-doc-line .bpf-row { max-width: 360px; }
.bpf-doc-checks { margin: 14px 0 18px; }
.bpf-doc-checks h3 { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.bpf-ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.bpf-tick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.bpf-tick input { width: 19px; height: 19px; accent-color: var(--pen); margin: 0; }
.bpf-doc-table { margin: 22px 0 6px; }
.bpf-doc-table h3 { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.bpf-table-scroll { position: relative; overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.bpf-lines-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.bpf-lines-table th { font: 700 .72rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 6px 6px 8px 0; border-bottom: 2px solid var(--ink); }
.bpf-lines-table td { padding: 2px 6px 2px 0; border-bottom: 1px solid var(--line); vertical-align: bottom; height: 42px; }
.bpf-lines-table .bpf-num, .bpf-lines-table th.bpf-num { text-align: right; }
.bpf-lines-table .bpf-x-col { width: 34px; }
.bpf-cell { width: 100%; border-bottom-color: transparent; }
.bpf-cell:hover { border-bottom-color: var(--rule); }
.bpf-num .bpf-cell { text-align: right; }
.bpf-lines-table output { display: block; text-align: right; color: var(--pen); font-weight: 600; padding-bottom: 4px; }
.bpf-row-x-cell { text-align: center; }
.bpf-row-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.bpf-row-x:hover { background: #FDECEC; color: #B42318; }
.bpf-add-row { margin-top: 10px; padding: 8px 14px; border: 1.5px dashed var(--rule); border-radius: 10px; background: transparent; color: var(--pen); font: 600 .9rem var(--sans); cursor: pointer; }
.bpf-add-row:hover { border-color: var(--pen); background: var(--pen-soft); }
.bpf-doc-totals { margin: 10px 0 20px auto; max-width: 340px; }
.bpf-total-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 6px 0; }
.bpf-total-row dt { display: flex; align-items: flex-end; gap: 4px; color: var(--ink-2); }
.bpf-total-row dd { margin: 0; text-align: right; }
.bpf-total-row output { font-weight: 600; color: var(--ink); }
.bpf-total-row.is-strong { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 10px; }
.bpf-total-row.is-strong dt, .bpf-total-row.is-strong output { font-weight: 800; color: var(--ink); font-size: 1.08em; }
.bpf-total-row .bpf-iw-s { width: 4.5em; text-align: right; }
@media print { .bpf-add-row, .bpf-row-x { display: none !important; } .bpf-lines-table td { height: 30px; } }

/* Side-by-side label groups (buyer / vendor / ship to) */
.bpf-doc-cols { display: grid; gap: 4px 28px; margin: 18px 0 8px; }
@media (min-width: 760px) { .bpf-doc-cols.bpf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bpf-doc-cols.bpf-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bpf-doc-cols .bpf-doc-kv { margin: 0; }
.bpf-doc-kv-stack .bpf-kv-row { grid-template-columns: 1fr; gap: 0; min-height: 0; }
.bpf-doc-kv-stack .bpf-kv-row dt { padding: 8px 0 0; font: 600 .72rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* The sheet must never grow wider than the screen: wide tables scroll inside it instead. */
.bpf-desk { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .bpf-desk { grid-template-columns: minmax(0, 1fr) 280px; } }
.bpf-desk-paper, .bpf-paper { min-width: 0; }
.bpf-table-scroll { -webkit-overflow-scrolling: touch; }
/* Phones: tables become one card per line (see the end of this file), so no sideways swipe. */

/* ---------- Accessibility pass (audit 2026-11-26): 44 px touch targets on phones and tablets ---------- */
.bpf-logo { min-height: 44px; }
.bpf-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.bpf-popular a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
.bpf-text-link { min-height: 44px; }
.bpf-link-btn { min-height: 44px; padding: 10px 2px; color: var(--ink-2); }
.bpf-add-row { min-height: 44px; }
.bpf-skip:not(:focus) { width: 1px; height: 1px; overflow: hidden; }
@media (pointer: coarse), (max-width: 999px) {
	.bpf-ink { min-height: 40px; }
	.bpf-dd-btn.bpf-ink { height: 40px; }
	.bpf-row-x { width: 40px; height: 40px; }
	.bpf-tick { min-height: 44px; }
	.bpf-faq summary { min-height: 52px; }
	.bpf-state-grid a { min-height: 52px; }
	.bpf-foot-col a { display: inline-block; padding: 10px 0; min-height: 44px; }
}

/* ---------- UX pass (audit 2026-11-26) ---------- */
.bpf-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 6px; padding: 0; font-size: .85rem; color: var(--ink-3); }
.bpf-crumbs li + li::before { content: "\203A"; margin: 0 6px 0 2px; color: var(--rule); }
.bpf-crumbs a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: 6px 0; }
.bpf-crumbs a:hover { color: var(--pen); text-decoration: underline; }
.bpf-saved { margin: 4px 2px 0; font-size: .82rem; color: var(--stamp); }
.bpf-saved::before { content: "\2713  "; }
.bpf-ink.is-warn { border-bottom-color: var(--warn); background: #FFF6EC; }
.bpf-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 140%);
	display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 24px)); padding: 14px 16px 14px 18px;
	background: var(--ink); color: #fff; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(20, 24, 31, .45);
	font-size: .95rem; line-height: 1.4; opacity: 0; transition: transform .22s ease, opacity .22s ease; pointer-events: none;
}
.bpf-toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bpf-toast p { margin: 0; }
.bpf-toast-btn { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font: 700 .92rem var(--sans); cursor: pointer; }
@media (max-width: 999px) { .bpf-toast { bottom: calc(86px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .bpf-toast { transition: none; } }
.bpf-more { margin-top: 64px; }
.bpf-more .bpf-h2 { margin-bottom: 18px; }
@media print { .bpf-toast, .bpf-crumbs, .bpf-more { display: none !important; } }

/* ---------- Hub homepage (2026-11-26) ---------- */
.bpf-hub-hero { padding-top: 40px; padding-bottom: 8px; text-align: center; }
.bpf-hub-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 0 auto 14px; max-width: 18ch; }
.bpf-hub-hero .bpf-lede { margin: 0 auto 26px; max-width: 640px; font-size: 1.1rem; }
.bpf-tool-find { max-width: 640px; margin: 0 auto; }
.bpf-tool-find input {
	width: 100%; min-height: 62px; padding: 0 20px 0 54px; border: 1.5px solid var(--line); border-radius: 16px;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6068' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") no-repeat 20px center / 22px 22px; font: 500 1.05rem var(--sans); color: var(--ink);
	box-shadow: 0 10px 30px -18px rgba(20, 24, 31, .35);
}
.bpf-tool-find input::placeholder { color: #6A6E76; }
.bpf-tool-find input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 4px var(--pen-soft); }
.bpf-tool-count { margin: 12px 0 0; font-size: .86rem; color: var(--ink-3); }
#bpf-tools { padding-top: 34px; }
#bpf-tools [hidden] { display: none !important; }
.bpf-featured { display: grid; gap: 28px; align-items: center; padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(40, 30, 10, .06); overflow: hidden; }
@media (min-width: 1000px) { .bpf-featured { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding: 40px 44px; } }
.bpf-featured-tag { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px; background: var(--pen-soft); color: var(--pen); font: 700 .74rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.bpf-featured h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px; }
.bpf-featured-copy > p { color: var(--ink-2); margin: 0 0 18px; max-width: 520px; }
.bpf-featured-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.bpf-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink) !important; font-weight: 600; font-size: .9rem; text-decoration: none; }
.bpf-chip:hover { border-color: var(--pen); color: var(--pen) !important; }
.bpf-featured-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.bpf-featured-actions .bpf-cta { text-decoration: none; color: #fff; }
.bpf-featured-sheet { max-height: 330px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.bpf-featured-sheet .bpf-sheet { transform: rotate(1.5deg); margin-top: 6px; }
@media (max-width: 999px) { .bpf-featured-sheet { display: none; } }
.bpf-cat { padding-top: 56px; }
.bpf-find-none { margin: 30px 0 0; padding: 18px 20px; background: var(--paper); border: 1px dashed var(--rule); border-radius: 14px; text-align: center; }
.bpf-state-rules .bpf-popular { margin-bottom: 14px; }

@media (max-width: 560px) { .bpf-nav a:not(.bpf-nav-all) { display: none; } .bpf-nav-all { background: var(--paper); border: 1px solid var(--line); } }

/* Word + Print side by side, blank PDF below (2026-11-26) */
.bpf-rail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bpf-btn-quiet { border-style: dashed; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
@media (max-width: 999px) { .bpf-rail > .bpf-rail-row { display: none; } }

/* Guides */
.bpf-guide h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.bpf-answer { font-size: 1.15rem; color: var(--ink); border-left: 4px solid var(--pen); padding: 4px 0 4px 16px; }
.bpf-guide-cta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin: 22px 0 8px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.bpf-guide-cta p { margin: 0; color: var(--ink-2); }
.bpf-guide-cta .bpf-cta { grid-column: 1 / -1; justify-self: start; text-decoration: none; color: #fff; }
@media (min-width: 700px) { .bpf-guide-cta { grid-template-columns: auto 1fr auto; } .bpf-guide-cta .bpf-cta { grid-column: auto; } }

/* "See it filled in" (2026-11-26) */
.bpf-example-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
@media (max-width: 560px) { .bpf-example-grid { gap: 12px; } }
.bpf-example-grid figure { margin: 0; }
.bpf-example-grid img { display: block; width: 100%; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(40, 30, 10, .08), 0 12px 28px -12px rgba(40, 30, 10, .25); }
.bpf-example-grid figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.bpf-example-grid .bpf-link-btn { min-height: 36px; padding: 6px 0; color: var(--pen); font-weight: 600; }
@media print { .bpf-examples { display: none !important; } }


/* ---------- Fillable fields, easier to see and use (2026-11-26, his screenshots) ----------
   Every blank on the paper gets a faint tinted box above its rule, so it reads as "type here";
   labels line up with the middle of their box; single fields in label rows share one width. */
:root { --field: #F4F6FC; --field-hover: #ECF0FB; }
.bpf-paper .bpf-ink, .bpf-paper .bpf-dd-btn.bpf-ink, .bpf-paper select.bpf-ink { background-color: var(--field); border-radius: 5px 5px 0 0; padding-left: 8px; padding-right: 8px; }
.bpf-paper .bpf-dd-btn.bpf-ink, .bpf-paper select.bpf-ink { padding-right: 26px; background-position: right 6px center; }
.bpf-paper .bpf-ink:hover, .bpf-paper .bpf-dd-btn.bpf-ink:hover { background-color: var(--field-hover); border-bottom-color: var(--ink-3); }
.bpf-paper .bpf-ink:focus, .bpf-paper .bpf-dd.is-open > .bpf-dd-btn.bpf-ink { background-color: var(--pen-soft); border-bottom-color: var(--pen); box-shadow: 0 2px 0 -0.5px var(--pen); }
.bpf-paper .bpf-cell { border-bottom-color: transparent; }
.bpf-paper input[type="date"].bpf-ink { padding-right: 6px; }
.bpf-kv-row { align-items: center; }
.bpf-kv-row dt { padding-bottom: 0; }
.bpf-kv-row dd > [class*="bpf-iw-"]:only-child, .bpf-kv-row dd > .bpf-dd:only-child, .bpf-kv-row dd > .bpf-money:only-child { width: 15em; max-width: 100%; }
.bpf-kv-row dd > .bpf-dd:only-child > .bpf-dd-btn { width: 100%; }
.bpf-doc-kv-stack .bpf-kv-row { gap: 4px; }
.bpf-doc-kv-stack .bpf-kv-row dt { padding-top: 6px; }
.bpf-lines-table output.is-empty { color: #A9A398; font-weight: 400; }
.bpf-lines-table td { padding-right: 8px; }
@media print { .bpf-paper .bpf-ink, .bpf-paper .bpf-dd-btn.bpf-ink { background-color: transparent; } .bpf-lines-table output.is-empty { visibility: hidden; } }
.bpf-kv-row dd > .bpf-money:only-child > input { flex: 1; width: auto; min-width: 0; }
.bpf-lines-table td { vertical-align: middle; } .bpf-lines-table output { padding-bottom: 0; padding-right: 2px; }

/* Phones: each table line is a small card. The first column takes the full width; the others
   (qty, rate, amount...) sit side by side under it with their own small labels. */
@media (max-width: 600px) {
	.bpf-lines-table { min-width: 0; }
	.bpf-lines-table colgroup, .bpf-lines-table thead { display: none; }
	.bpf-lines-table, .bpf-lines-table tbody { display: block; }
	.bpf-lines-table tr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.bpf-lines-table td { display: block; flex: 1 1 0; min-width: 0; height: auto; padding: 0; border: 0; }
	.bpf-lines-table td:first-child { flex-basis: 100%; }
	.bpf-lines-table td[data-label]::before { content: attr(data-label); display: block; font: 700 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; text-align: left; }
	.bpf-lines-table td.bpf-row-x-cell { flex: 0 0 40px; }
	.bpf-lines-table output { min-height: 40px; line-height: 40px; }
	.bpf-table-scroll { overflow: visible; margin: 0; padding: 0; }
}
@media (max-width: 520px) {
	.bpf-kv-row dd > [class*="bpf-iw-"]:only-child, .bpf-kv-row dd > .bpf-dd:only-child, .bpf-kv-row dd > .bpf-money:only-child { width: 100%; }
	.bpf-doc-cols > .bpf-doc-kv-stack + .bpf-doc-kv-stack { margin-top: 26px; }
}
@media (max-width: 600px) { .bpf-lines-table .bpf-num .bpf-cell, .bpf-lines-table output { text-align: left; } }

/* ---------- Logo, next document, settings on phones (2026-11-26, his UX review) ---------- */
.bpf-doc-logo { margin: -6px 0 10px; min-height: 30px; display: flex; align-items: center; gap: 12px; }
.bpf-logo-add { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px dashed var(--rule); border-radius: 10px; background: var(--field); color: var(--pen); font: 600 .9rem/1.2 var(--sans); cursor: pointer; }
.bpf-logo-add span { font-size: 1.15rem; line-height: 1; }
.bpf-logo-add small { color: var(--ink-3); font-weight: 400; }
.bpf-logo-add:hover { border-color: var(--pen); background: var(--pen-soft); }
.bpf-logo-img { max-height: 72px; max-width: 240px; width: auto; height: auto; object-fit: contain; }
.bpf-logo-x { border: 0; background: none; color: var(--ink-3); font: 500 .82rem/1 var(--sans); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 6px; }
.bpf-logo-x:hover { color: #B42318; }
@media print { .bpf-logo-add, .bpf-logo-x { display: none !important; } .bpf-doc-logo:not(.has-logo) { display: none; } }
.bpf-rail-series { margin: 4px 0 8px; }
.bpf-rail-series .bpf-btn { width: 100%; }
.bpf-rail-series .bpf-small { margin: 6px 2px 0; color: var(--ink-3); font-size: .8rem; line-height: 1.4; }
.bpf-top-settings { display: none; }
@media (max-width: 999px) {
	.bpf-top-settings { display: block; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 2px; margin: 0 0 14px; }
	.bpf-rail-box.is-settings { display: none; }
}
.bpf-quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 16px auto 0; max-width: 640px; }
.bpf-quick span { font: 600 .82rem/1 var(--sans); color: var(--ink-3); margin-right: 2px; }
.bpf-quick a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .88rem/1 var(--sans); text-decoration: none; }
.bpf-quick a:hover { border-color: var(--pen); color: var(--pen); }
@media (max-width: 560px) { .bpf-quick a { min-height: 44px; } }
.bpf-doc-logo [hidden] { display: none !important; }
