/**
 * The two pages made for people OUTSIDE the site: the data report (quoted by
 * reporters) and the badge page (used by listed businesses).
 *
 * Loaded only when one of their filters answers. Quiet on purpose, like the
 * ranking explainer: a page asking to be trusted as a source should look like a
 * reference, not a campaign.
 */
.rg-out .rg-out-narrow{max-width:820px}
.rg-out-hero{padding:46px 0 26px;text-align:center}
.rg-out-eyebrow{margin:0 0 9px;font-size:12.5px;font-weight:700;letter-spacing:.08em;
   text-transform:uppercase;color:var(--brand,#1d4ed8)}
.rg-out-hero h1{margin:0 0 12px;font-size:clamp(28px,4.6vw,42px);line-height:1.12;letter-spacing:-.022em}
.rg-out-lede{margin:0 auto;max-width:62ch;font-size:17px;line-height:1.62;color:var(--muted,#62707f)}
.rg-out-meta{margin:14px auto 0;max-width:62ch;font-size:13.5px;color:var(--muted,#62707f)}
.rg-out-band{padding:34px 0}
.rg-out-band--tint{background:var(--wash,#f4f6f8)}
.rg-out-band h2{margin:0 0 12px;font-size:clamp(19px,2.4vw,23px);letter-spacing:-.012em}
.rg-out-body{margin:0 0 14px;font-size:16px;line-height:1.62}
.rg-out-small{margin:10px 0 0;font-size:13.5px;line-height:1.5;color:var(--muted,#62707f)}
.rg-out-btn{display:inline-block;padding:10px 16px;border:1px solid var(--brand,#1d4ed8);border-radius:10px;
   background:#fff;color:var(--brand,#1d4ed8);font:inherit;font-size:14.5px;font-weight:600;
   text-decoration:none;cursor:pointer;white-space:nowrap}
.rg-out-btn:hover,.rg-out-btn:focus-visible{background:var(--brand,#1d4ed8);color:#fff}
.rg-out-btn--solid{background:var(--brand,#1d4ed8);color:#fff}
.rg-out-btn--solid:hover{background:var(--brand-dark,#1740a8)}

/* ── report: the strip of figures ── */
.rg-report-figs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:0}
.rg-report-figs div{background:#fff;border:1px solid var(--line,#e7eaf0);border-radius:14px;padding:16px}
.rg-report-figs dt{font-size:clamp(24px,3.2vw,32px);font-weight:700;letter-spacing:-.02em;
   font-variant-numeric:tabular-nums}
.rg-report-figs dd{margin:4px 0 0;font-size:13.5px;line-height:1.4;color:var(--muted,#62707f)}

/* ── report: the three short lists ── */
.rg-report-lists{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.rg-report-list{background:#fff;border:1px solid var(--line,#e7eaf0);border-radius:14px;padding:18px}
.rg-report-list h2{font-size:16px;line-height:1.35;margin:0 0 10px}
.rg-report-list ol{margin:0;padding:0;list-style:none;counter-reset:rgr}
.rg-report-list li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;
   border-top:1px solid var(--line,#e7eaf0);font-size:15px;counter-increment:rgr}
.rg-report-list li::before{content:counter(rgr);flex:0 0 1.2em;color:var(--muted,#62707f);
   font-variant-numeric:tabular-nums}
.rg-report-list li a,.rg-report-list li span{flex:1}
.rg-report-list li b{font-variant-numeric:tabular-nums}

/* ── report: the table ── */
.rg-report-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.rg-report-head h2{margin:0}
.rg-report-scroll{overflow-x:auto;border:1px solid var(--line,#e7eaf0);border-radius:14px;background:#fff}
.rg-report-table{width:100%;border-collapse:collapse;font-size:14.5px}
.rg-report-table th,.rg-report-table td{padding:9px 14px;border-bottom:1px solid var(--line,#e7eaf0);
   text-align:left;white-space:nowrap}
.rg-report-table tbody tr:last-child th,.rg-report-table tbody tr:last-child td{border-bottom:0}
.rg-report-table .is-num{text-align:right;font-variant-numeric:tabular-nums}
.rg-report-table thead th{background:var(--wash,#f4f6f8);font-size:12.5px;white-space:normal;
   vertical-align:bottom;min-width:92px}
.rg-report-table thead button{all:unset;cursor:pointer;font-weight:700;color:var(--ink,#1a2230)}
.rg-report-table thead button:focus-visible{outline:2px solid var(--brand,#1d4ed8);outline-offset:3px}
.rg-report-table th[aria-sort="descending"] button::after{content:" \2193"}
.rg-report-table th[aria-sort="ascending"] button::after{content:" \2191"}
.rg-report-table tbody th{position:sticky;left:0;background:#fff;font-weight:600}
.rg-report-table tbody tr:hover th,.rg-report-table tbody tr:hover td{background:#fafbfd}

/* ── report: method, caveats, sources ── */
.rg-report-notes{display:grid;grid-template-columns:1fr 1fr;gap:34px}
@media(max-width:760px){.rg-report-notes{grid-template-columns:1fr}}
.rg-report-method dt{font-weight:700;margin-top:12px}
.rg-report-method dd{margin:3px 0 0;line-height:1.58;color:var(--muted,#62707f)}
.rg-report-caveats,.rg-report-sources{margin:0 0 22px;padding-left:1.15em;line-height:1.58}
.rg-report-caveats li,.rg-report-sources li{margin-bottom:8px}
.rg-report-cite{padding:12px 14px;border:1px dashed var(--line,#d5dbe5);border-radius:10px;
   font-size:14.5px;overflow-wrap:anywhere;background:var(--wash,#f4f6f8)}

/* ── badge page ── */
.rg-badge-who{margin:0 0 16px;font-size:15.5px}
.rg-badge-card{display:grid;grid-template-columns:minmax(0,300px) 1fr;gap:18px;align-items:start;
   padding:18px;margin-bottom:16px;border:1px solid var(--line,#e7eaf0);border-radius:14px;background:#fff}
@media(max-width:680px){.rg-badge-card{grid-template-columns:1fr}}
.rg-badge-show{display:flex;flex-direction:column;gap:12px;align-items:flex-start;padding:18px;border-radius:10px;
   background:var(--wash,#f4f6f8)}
.rg-badge-card--dark .rg-badge-show{background:#dfe5ee}
.rg-badge-show img{max-width:100%;height:auto}
.rg-badge-show .rg-out-small{margin:0}
.rg-badge-code label,.rg-badge-find label{display:block;margin-bottom:6px;font-size:14px;font-weight:700}
.rg-badge-code textarea{width:100%;padding:10px;border:1px solid var(--line,#d5dbe5);border-radius:10px;
   font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical;background:#fbfcfe}
.rg-badge-code .rg-out-btn{margin-top:10px}
.rg-badge-find__row{display:flex;gap:10px;flex-wrap:wrap}
.rg-badge-find input{flex:1 1 260px;min-width:0;padding:11px 12px;border:1px solid var(--line,#d5dbe5);
   border-radius:10px;font:inherit;font-size:16px}
.rg-badge-missed{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#fdecec;color:#8f1f1f;font-size:14.5px}
.rg-badge-steps{margin:0 0 6px;padding:0;list-style:none;counter-reset:rgb;display:grid;
   grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.rg-badge-steps li{counter-increment:rgb;background:#fff;border:1px solid var(--line,#e7eaf0);border-radius:14px;padding:16px}
.rg-badge-steps li::before{content:counter(rgb);display:inline-grid;place-items:center;width:26px;height:26px;
   margin-bottom:8px;border-radius:50%;background:var(--brand,#1d4ed8);color:#fff;font-size:13.5px;font-weight:700}
.rg-badge-steps h2{font-size:16px;margin:0 0 5px}
.rg-badge-steps p{margin:0;font-size:14.5px;line-height:1.55;color:var(--muted,#62707f)}

/* ── site map page ── */
.rg-sitemap-group{margin:0 0 30px}
.rg-sitemap-group h2{padding-bottom:8px;border-bottom:1px solid var(--line,#e7eaf0)}
.rg-sitemap-list{margin:0;padding:0;list-style:none;columns:3 240px;column-gap:28px}
.rg-sitemap-list--wide{columns:4 190px}
.rg-sitemap-list li{break-inside:avoid;padding:4px 0;font-size:15px;line-height:1.4}

/* ── loan calculator page ── */
.rg-calc-band{padding-top:6px}
.rg-calc-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:22px;align-items:start}
@media(max-width:820px){.rg-calc-grid{grid-template-columns:1fr}}
.rg-calc-form,.rg-calc-result{background:#fff;border:1px solid var(--rg-line,#e7eaf0);border-radius:16px;padding:22px}
.rg-calc-result{position:sticky;top:calc(var(--rg-nav-h,64px) + 14px);background:var(--rg-surface,#f7f9fc)}
@media(max-width:820px){.rg-calc-result{position:static}}
.rg-calc-h{margin:0 0 14px;font-size:18px}
.rg-calc-h3{margin:20px 0 8px;font-size:15px}
.rg-calc-field{display:block;margin:0 0 16px;border:0;padding:0}
.rg-calc-field>span:first-child,.rg-calc-field legend{display:block;margin-bottom:6px;font-size:14px;font-weight:700}
.rg-calc-input{display:flex;align-items:center;border:1px solid var(--rg-line,#d5dbe5);border-radius:10px;background:#fff;
   padding:0 12px}
.rg-calc-input:focus-within{border-color:var(--rg-brand,#1d4ed8);box-shadow:0 0 0 3px rgba(29,78,216,.14)}
.rg-calc-input b{color:var(--rg-muted,#62707f);font-weight:600}
.rg-calc-input input{flex:1;min-width:0;border:0;outline:0;padding:11px 6px;font:inherit;font-size:17px;
   font-variant-numeric:tabular-nums;background:transparent}
.rg-calc-field input[type=range]{width:100%;margin:10px 0 0;accent-color:var(--rg-brand,#1d4ed8)}
.rg-calc-terms div{display:flex;flex-wrap:wrap;gap:6px}
.rg-calc-terms label{position:relative}
.rg-calc-terms input{position:absolute;opacity:0;inset:0;cursor:pointer}
.rg-calc-terms span{display:inline-block;min-width:44px;padding:8px 10px;border:1px solid var(--rg-line,#d5dbe5);
   border-radius:9px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums;background:#fff}
.rg-calc-terms input:checked+span{background:var(--rg-brand,#1d4ed8);border-color:var(--rg-brand,#1d4ed8);color:#fff}
.rg-calc-terms input:focus-visible+span{outline:2px solid var(--rg-brand,#1d4ed8);outline-offset:2px}
.rg-calc-routes>p:first-child{margin:4px 0 8px;font-size:14px;font-weight:700}
.rg-calc-routes>div{display:flex;flex-wrap:wrap;gap:6px}
.rg-calc-chip{padding:7px 11px;border:1px solid var(--rg-line,#d5dbe5);border-radius:999px;background:#fff;
   font:inherit;font-size:13.5px;cursor:pointer;color:var(--rg-ink,#1a2230)}
.rg-calc-chip small{color:var(--rg-muted,#62707f);font-variant-numeric:tabular-nums}
.rg-calc-chip:hover,.rg-calc-chip.is-on{border-color:var(--rg-brand,#1d4ed8);color:var(--rg-brand,#1d4ed8)}
.rg-calc-k{margin:0;font-size:14px;font-weight:700;color:var(--rg-muted,#62707f)}
.rg-calc-big{margin:2px 0 14px;font-size:clamp(38px,6vw,52px);font-weight:800;letter-spacing:-.03em;
   line-height:1.05;font-variant-numeric:tabular-nums;color:var(--rg-deep,#0f2a4a)}
.rg-calc-dl{margin:0;display:grid;gap:8px}
.rg-calc-dl div{display:flex;justify-content:space-between;gap:12px;padding-bottom:8px;
   border-bottom:1px solid var(--rg-line,#e7eaf0);font-size:15px}
.rg-calc-dl dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}
.rg-calc-bar{height:10px;margin:14px 0 6px;border-radius:99px;background:#f2b24c;overflow:hidden}
.rg-calc-bar span{display:block;height:100%;background:var(--rg-brand,#1d4ed8);transition:width .2s}
.rg-calc-legend{margin:0;font-size:12.5px;color:var(--rg-muted,#62707f)}
.rg-calc-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin:0 4px 0 10px;vertical-align:-1px}
.rg-calc-legend i:first-child{margin-left:0}
.rg-calc-legend .is-p{background:var(--rg-brand,#1d4ed8)}.rg-calc-legend .is-i{background:#f2b24c}
.rg-calc-mini{width:100%;border-collapse:collapse;font-size:14px}
.rg-calc-mini th,.rg-calc-mini td{padding:6px 4px;border-bottom:1px solid var(--rg-line,#e7eaf0);text-align:left}
.rg-calc-mini .is-num{text-align:right;font-variant-numeric:tabular-nums}
.rg-calc-mini tr.is-on td{font-weight:700;color:var(--rg-brand,#1d4ed8)}
.rg-calc-cta{display:block;margin-top:18px;text-align:center}
.rg-calc-sched{margin-top:18px}
.rg-calc-sched summary{cursor:pointer;font-weight:700;padding:8px 0}
.rg-calc-sched .rg-report-scroll{max-height:420px;overflow:auto}
.rg-calc-prose{font-size:16px;line-height:1.65}
.rg-calc-prose+.rg-report-scroll,.rg-report-scroll+.rg-calc-prose{margin-top:16px}
.rg-calc-table td{white-space:normal;min-width:110px;vertical-align:top}
.rg-calc-table tbody th{white-space:normal;min-width:150px}
.rg-calc-cards{margin:16px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.rg-calc-cards li{background:#fff;border:1px solid var(--rg-line,#e7eaf0);border-radius:12px;padding:12px 14px}
.rg-calc-cards a{display:block;font-weight:700}
.rg-calc-cards span{display:block;margin-top:3px;font-size:13.5px;line-height:1.45;color:var(--rg-muted,#62707f)}
.rg-calc-faq details{border-bottom:1px solid var(--rg-line,#e7eaf0);padding:4px 0}
.rg-calc-faq summary{cursor:pointer;padding:12px 0;font-size:16.5px;font-weight:700}
.rg-calc-faq .rg-prose{padding:0 0 10px;line-height:1.62}

/* ── lender directory + lender profiles ── */
.rg-lend-crumb{margin:0 0 14px;font-size:13.5px;color:var(--rg-muted,#62707f)}
.rg-lend-crumb a{color:inherit}
.rg-lend-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:20px 0 0}
.rg-lend-center{text-align:center}
.rg-lend-grid{margin:16px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.rg-lend-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--rg-line,#e7eaf0);border-radius:14px;padding:18px}
.rg-lend-card h3{margin:0;font-size:18px}
.rg-lend-kind{margin:2px 0 8px;font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--rg-brand,#1d4ed8)}
.rg-lend-sum{margin:0 0 10px;font-size:14.5px;line-height:1.55;color:var(--rg-muted,#62707f)}
.rg-lend-mini{margin:0 0 10px;display:grid;gap:5px;font-size:14px}
.rg-lend-mini div{display:flex;justify-content:space-between;gap:10px}
.rg-lend-mini dt{color:var(--rg-muted,#62707f)}
.rg-lend-mini dd{margin:0;text-align:right;font-weight:600}
.rg-lend-count{margin:auto 0 0;padding-top:10px;border-top:1px solid var(--rg-line,#e7eaf0);font-size:14px}
.rg-lend-two{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.rg-lend-three{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:860px){.rg-lend-two,.rg-lend-three{grid-template-columns:1fr}}
.rg-lend-facts{margin:0;background:#fff;border:1px solid var(--rg-line,#e7eaf0);border-radius:14px;padding:6px 16px}
.rg-lend-facts div{display:grid;grid-template-columns:minmax(120px,40%) 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--rg-line,#e7eaf0);font-size:15px}
.rg-lend-facts div:last-child{border-bottom:0}
.rg-lend-facts dt{color:var(--rg-muted,#62707f)}
.rg-lend-facts dd{margin:0;font-weight:600}
.rg-lend-block{margin-bottom:22px}
.rg-lend-block ul{margin:0;padding-left:1.15em;line-height:1.6}
.rg-lend-block li{margin-bottom:7px}
.rg-lend-block.is-pro h2::before{content:"+ ";color:#15803d}
.rg-lend-block.is-watch h2::before{content:"! ";color:#b45309}
.rg-lend-notice{margin:16px auto 0;max-width:62ch;padding:10px 14px;border-radius:10px;background:#fff4e5;color:#8a4b0a;font-size:14.5px;line-height:1.5}
.rg-lend-notice--sm{margin:0 0 10px;font-size:13px;padding:7px 10px}
.rg-lend-logo{display:inline-flex;align-items:center;justify-content:center;height:58px;padding:8px 12px;margin-bottom:10px;
   border-radius:10px;background:#fff;border:1px solid var(--rg-line,#e7eaf0)}
.rg-lend-logo img{max-height:40px;max-width:180px;width:auto;height:auto;display:block}
.rg-lend-logo--hero{height:84px;padding:12px 20px;margin:0 0 14px}
.rg-lend-logo--hero img{max-height:58px;max-width:240px}
.rg-lend-card .rg-lend-logo{align-self:flex-start}
.rg-lend-logo--sm{height:40px;padding:5px 8px;margin:0 0 6px}
.rg-lend-logo--sm img{max-height:28px;max-width:120px}
.rg-lend-other{display:flex;flex-direction:column;align-items:flex-start}
.rg-lend-contact dd a{text-decoration:underline;text-underline-offset:2px}
.rg-lend-contact-side{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
