
/* Jesse Griffith: locally sourced guidance and private calculator */
.resource-page{--resource-accent:#577442}
.resource-page .nav{gap:18px}
.resource-page .nav a{white-space:nowrap}
.resource-hero{padding:64px 0 72px;background:linear-gradient(145deg,#edf1e8,#f7f7f0);border-bottom:1px solid var(--line)}
.resource-hero .eyebrow{margin:0 0 17px}
.resource-hero h1{max-width:880px;margin:0 0 22px;font-size:clamp(42px,6vw,74px)}
.resource-hero .lead{max-width:790px;color:var(--muted);font-size:clamp(16px,1.65vw,19px);line-height:1.65}
.resource-hero .actions{margin-top:25px}
.resource-hero .breadcrumb{margin-bottom:26px}
.resource-hero .hero-detail{display:flex;flex-wrap:wrap;gap:9px 22px;font-size:12px;margin-top:20px;color:var(--muted)}
.resource-hero .hero-detail strong{color:var(--ink)}
.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.resource-tile{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;padding:29px;min-height:246px;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.resource-tile:hover{transform:translateY(-3px);border-color:#7e9b78;box-shadow:0 12px 25px #112a2910}
.resource-tile .tile-tag{color:#577442;text-transform:uppercase;letter-spacing:.13em;font:700 11px 'Courier New',monospace}
.resource-tile h3{font-size:clamp(22px,2.3vw,29px);margin:25px 0 12px}
.resource-tile p{color:var(--muted);font-size:14px;margin-bottom:24px}
.resource-tile .tile-link{margin-top:auto;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.resource-tile.featured{background:var(--deep);color:var(--paper);border-color:var(--deep)}
.resource-tile.featured .tile-tag,.resource-tile.featured .tile-link{color:var(--lime)}
.resource-tile.featured p{color:#c5d7cd}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:58px;align-items:start}
.article-content{min-width:0}
.article-content h2{font-size:clamp(28px,3.4vw,42px);margin:42px 0 17px}
.article-content h2:first-child{margin-top:0}
.article-content h3{font-size:21px;margin:27px 0 10px}
.article-content p,.article-content li{color:#415348;font-size:16px;line-height:1.75}
.article-content p{margin-bottom:18px}
.article-content ul,.article-content ol{padding-left:24px;margin-bottom:23px}
.article-content li{padding:5px 0}
.article-content a,.sources a,.article-aside a{color:#294d3c;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.article-content a:hover,.sources a:hover,.article-aside a:hover{color:#567a37}
.article-content .info-note{background:var(--sage);border-left:4px solid #779668;border-radius:4px;padding:22px;margin:25px 0}
.article-content .info-note p{margin:0;font-size:14px}
.article-content .info-note strong{color:var(--ink)}
.article-aside{position:sticky;top:105px;background:#e9eee4;border:1px solid var(--line);border-radius:13px;padding:26px}
.article-aside .eyebrow{color:var(--olive)}
.article-aside h3{margin:10px 0 14px}
.article-aside p{color:var(--muted);font-size:13px}
.article-aside .button{width:100%;margin-top:16px}
.article-aside ul{list-style:none;margin:15px 0 0;padding:0}
.article-aside li{padding:10px 0;border-top:1px solid #c8d4c3;font-size:13px}
.sources{padding:55px 0;background:#f0f3ea;border-top:1px solid var(--line)}
.sources h2{font-size:30px;margin:0 0 14px}
.sources p{font-size:14px;color:var(--muted);max-width:770px}
.sources ul{padding-left:19px}
.sources li{padding:7px 0;font-size:14px}
.article-faq{padding:66px 0;background:#edf0e8}
.article-faq h2{margin-bottom:24px}
.article-faq details{border-top:1px solid #b6c5af;padding:18px 0}
.article-faq details:last-child{border-bottom:1px solid #b6c5af}
.article-faq summary{cursor:pointer;font-size:16px;font-weight:700}
.article-faq details p{color:var(--muted);font-size:15px;margin:14px 0 0}
.guide-callout{padding:32px;margin-top:37px;border-radius:12px;background:var(--deep);color:var(--paper)}
.guide-callout h2{font-size:28px;margin:0 0 12px}
.guide-callout p{color:#d4e0d4}
.guide-callout .button{background:var(--lime);border-color:var(--lime);color:var(--deep)}
.related-links{padding:65px 0}
.related-links h2{margin-bottom:24px}
.related-links .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.related-links .resource-tile{min-height:200px}
.related-links .resource-tile h3{font-size:22px}
.payment-intro{color:var(--muted);max-width:780px;margin-bottom:32px}
.payment-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:22px;align-items:start}
.payment-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:30px}
.payment-card h2{font-size:clamp(28px,3vw,37px);margin:0 0 6px}
.payment-card .help{color:var(--muted);font-size:13px;margin:0 0 24px}
.payment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 15px}
.payment-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.payment-field label{font-size:12px;font-weight:700;line-height:1.4;color:var(--ink)}
.payment-field input,.payment-field select{border:1px solid #93aa99;border-radius:6px;min-height:46px;padding:10px 11px;background:#fff;color:var(--ink);width:100%;font:600 16px Arial,Helvetica,sans-serif}
.payment-field input:focus-visible,.payment-field select:focus-visible{outline:3px solid #72904a;outline-offset:2px}
.payment-field .field-note{font-size:11px;color:var(--muted);line-height:1.4}
.payment-form-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:23px}
.payment-form-actions button{font:700 13px Arial,Helvetica,sans-serif;min-height:45px;border:1px solid #779469;border-radius:6px;padding:10px 17px;cursor:pointer;color:var(--ink);background:transparent}
.payment-form-actions button:hover{background:var(--sage)}
.payment-result{background:var(--deep);color:var(--paper);border-color:var(--deep)}
.payment-result h2{color:var(--paper)}
.payment-result .help,.payment-result .estimate-note{color:#cbdbcd}
.payment-error{color:#a32622;background:#fff3f1;border-radius:7px;padding:10px 12px;font-size:13px;margin:18px 0 0}
.payment-primary{background:#234538;border-radius:10px;padding:23px;margin-top:25px}
.payment-primary small{color:#d4e2d3;text-transform:uppercase;letter-spacing:.09em;font-size:11px;font-weight:700}
.payment-primary output{display:block;font-weight:700;font-size:clamp(36px,4vw,54px);letter-spacing:-.05em;line-height:1.1;margin-top:6px}
.payment-primary p{margin:11px 0 0;font-size:12px;color:#d6e3d3}
.payment-breakdown{margin:22px 0 0}
.payment-breakdown div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #395b4b;font-size:13px}
.payment-breakdown dt{color:#d6e1d5}
.payment-breakdown dd{margin:0;font-weight:700}
.payment-bar{display:flex;height:15px;border-radius:99px;overflow:hidden;background:#395247;margin:21px 0}
.payment-bar span{display:block;min-width:0;height:100%}
.payment-bar span:nth-child(1){background:var(--lime)}
.payment-bar span:nth-child(2){background:#8cbeb0}
.payment-bar span:nth-child(3){background:#d5ac6a}
.payment-legend{display:flex;flex-wrap:wrap;gap:9px 19px;color:#d5e2d3;font-size:11px}
.payment-legend span:before{content:'';width:9px;height:9px;background:var(--lime);display:inline-block;border-radius:3px;margin-right:6px}
.payment-legend span:nth-child(2):before{background:#8cbeb0}
.payment-legend span:nth-child(3):before{background:#d5ac6a}
.payment-result .button{width:100%;margin-top:25px}
.payment-result .button.lime{background:var(--lime);color:var(--deep)}
.payment-result button.copy{font-weight:700;cursor:pointer;background:transparent;border:1px solid #81a08b;color:var(--paper);border-radius:6px;padding:12px 15px;width:100%;margin-top:12px}
.payment-result button.copy:hover{background:#2d4d3e}
.payment-result .estimate-note{font-size:12px;margin:16px 0 0}
.payment-summary-status{font-size:12px;color:var(--lime);min-height:20px;margin:8px 0 0}
.payment-guide-note{padding:25px;background:var(--sage);border-radius:10px;margin-top:25px}
.payment-guide-note p{font-size:14px;color:var(--muted);margin:10px 0 0}
@media(max-width:950px){
 .resource-page .nav{gap:12px}
 .article-layout{grid-template-columns:minmax(0,1fr) 255px;gap:26px}
 .payment-grid{gap:15px}
 .payment-card{padding:23px}
}
@media(max-width:760px){
 .resource-hero{padding:44px 0 52px}
 .resource-grid,.payment-grid,.article-layout,.related-links .resource-grid{grid-template-columns:1fr}
 .resource-tile{min-height:0;padding:25px}
 .resource-tile h3{margin:17px 0 10px}
 .article-aside{position:static;margin-top:20px}
 .article-content h2{margin-top:34px}
 .resource-page .nav{flex-wrap:wrap;gap:8px 15px;justify-content:space-between}
 .resource-page .nav a{font-size:11px}
 .related-links{padding:52px 0}
}
@media(max-width:450px){.payment-fields{grid-template-columns:1fr}.payment-card{padding:21px}.resource-hero h1{font-size:44px}.resource-page .nav{gap:7px}}
@media(prefers-reduced-motion:reduce){.resource-tile{transition:none!important}}

/* Seller proceeds worksheet: no assumptions about commission or closing fees. */
.seller-fields{align-items:start}
.seller-fields .seller-wide{grid-column:1/-1}
.seller-fields .field-note{max-width:420px}
.seller-grid .payment-primary{overflow-wrap:anywhere}
.seller-grid .payment-primary p{line-height:1.6}
.seller-grid .payment-breakdown dd{text-align:right;min-width:85px}
.seller-grid #seller-copy:disabled{cursor:not-allowed;opacity:.52}
@media(max-width:760px){.seller-grid .payment-breakdown div{align-items:flex-start}.seller-grid .payment-breakdown dt{max-width:62%}}
@media print{
 .resource-page:has(#seller-worksheet) .header,
 .resource-page:has(#seller-worksheet) .mobile-actions,
 .resource-page:has(#seller-worksheet) .breadcrumb,
 .resource-page:has(#seller-worksheet) .steps,
 .resource-page:has(#seller-worksheet) .article-faq,
 .resource-page:has(#seller-worksheet) .end-cta,
 .resource-page:has(#seller-worksheet) .footer,
 .resource-page:has(#seller-worksheet) #seller-reset,
 .resource-page:has(#seller-worksheet) #seller-copy,
 .resource-page:has(#seller-worksheet) .payment-result .button{display:none!important}
 .resource-page:has(#seller-worksheet) .resource-hero{padding:10px 0;border:0}
 .resource-page:has(#seller-worksheet) .section{padding:10px 0}
 .resource-page:has(#seller-worksheet) .payment-grid{display:block}
 .resource-page:has(#seller-worksheet) .payment-card{break-inside:avoid;box-shadow:none;margin-bottom:18px;padding:15px}
 .resource-page:has(#seller-worksheet) .payment-result{background:#fff!important;color:#112a29!important;border:2px solid #112a29}
 .resource-page:has(#seller-worksheet) .payment-result h2,
 .resource-page:has(#seller-worksheet) .payment-result .help,
 .resource-page:has(#seller-worksheet) .payment-result .estimate-note,
 .resource-page:has(#seller-worksheet) .payment-breakdown dt,
 .resource-page:has(#seller-worksheet) .payment-primary small,
 .resource-page:has(#seller-worksheet) .payment-primary p{color:#112a29!important}
 .resource-page:has(#seller-worksheet) .payment-primary{background:#fff;padding:0}
 .resource-page:has(#seller-worksheet) .payment-breakdown div{border-color:#ddd}
}
