/* Demo-only sponsor concepts; existing advertising slots are unchanged. */
.tf-placement{min-width:0;padding:22px;background:var(--surface);border:1px solid var(--line);box-shadow:inset 0 3px 0 var(--accent);color:var(--ink)}
.tf-brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:20px}
/* Keep the supplied PNG intact. Only its white wordmark follows the theme's ink. */
.tf-logo-wrap{display:block;position:relative;width:190px;max-width:100%;background:transparent}
.tf-logo{display:block;width:100%;height:auto}
.tf-logo-ink{position:absolute;inset:0;background:var(--ink);-webkit-mask:url('/public/cjr-pilot-20261123/truthfinder-logo.png') center/contain no-repeat;mask:url('/public/cjr-pilot-20261123/truthfinder-logo.png') center/contain no-repeat;clip-path:inset(0 0 0 20%);pointer-events:none}
.tf-placement h2,.tf-placement h3{font-size:22px;font-weight:500;line-height:1.2;margin:0 0 10px;color:var(--ink)}
.tf-description{font-size:14px;line-height:1.5;color:var(--record-copy);margin:0 0 18px}
.tf-offer-copy{min-width:0}
.tf-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;font-size:14px;line-height:1.3}
.tf-cta svg,.tf-submit svg{width:17px;height:17px;flex:none}
.tf-cta:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}
.tf-disclosure{margin:10px 0 0;font-size:11px;line-height:1.4;color:var(--record-copy)}
.tf-legal{margin-top:12px;padding:0;border:0;font-size:11px;line-height:1.4;color:var(--record-copy);overflow-wrap:anywhere;text-transform:none;letter-spacing:0}
.tf-legal p{margin:0;font-size:inherit;line-height:inherit;color:inherit}
.tf-form{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;min-width:0}
.tf-field{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;line-height:1.25;color:var(--ink);font-weight:500}
.tf-field small{font:inherit;color:var(--muted);font-weight:400}
.tf-field input,.tf-field select,.tf-field .demo-select-trigger{width:100%;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);padding:8px 11px;font-size:16px;line-height:1.3}
.tf-field .demo-select{display:block;min-width:0;width:100%}
.tf-field .demo-select-trigger{display:flex;justify-content:space-between;gap:8px;text-align:left}
.tf-field input:focus-visible,.tf-field select:focus-visible,.tf-field .demo-select-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tf-submit{width:100%;margin-top:3px;grid-column:1/-1}
.tf-noresult .tf-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.tf-noresult .tf-brand{flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:12px}
.tf-noresult .tf-reset{display:flex;align-items:center;justify-content:center;gap:6px;margin:15px auto 0;padding:5px;background:transparent;color:var(--interactive-ink);font-size:13px;line-height:1.4}
.tf-noresult .tf-reset svg{width:16px;height:16px}
.tf-hub{width:100%}
.tf-hub .tf-brand{flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:18px}
.tf-hub .tf-offer{display:flex;align-items:center;justify-content:space-between;gap:24px}
.tf-hub .tf-description{margin:0}
.tf-hub .tf-cta{width:auto;flex:none;white-space:nowrap}
/* Continue facility content beside the sidebar instead of stretching the help area. */
.county-page .county-sidebar{justify-content:flex-start;align-self:start}
.county-page .county-related-placement{margin-top:0}
.county-main>#facility{margin-top:24px}
.county-sidebar-primary{display:flex;flex-direction:column;gap:24px;min-width:0}
.county-sidebar .tf-hub .tf-brand{flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:20px}
.county-sidebar .tf-hub .tf-offer{flex-direction:column;align-items:stretch;gap:0}
.county-sidebar .tf-hub .tf-description{margin-bottom:18px}
.county-sidebar .tf-hub .tf-cta{width:100%;white-space:normal}
@media(max-width:700px){
 .county-sidebar-primary{gap:16px}
 .county-page .county-main{display:contents}
 .county-page .county-sidebar{order:1}
 .county-main>#facility{order:2;margin-top:8px}
 .tf-placement{padding:16px}
 .tf-placement h2{font-size:20px}
 .tf-noresult .tf-brand{flex-direction:column;align-items:flex-start;gap:10px}
 .tf-noresult .tf-form{grid-template-columns:minmax(0,1fr);gap:8px}
 .tf-field{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:10px}
 .tf-noresult .tf-reset{margin-top:8px;padding:0;font-size:12px}
 .tf-noresult .tf-legal{margin-top:10px}
}

/* Pair the two desktop columns by content row, including wrapped facility headings. */
.county-sidebar-details{display:flex;flex-direction:column;gap:24px;min-width:0}
@media(min-width:701px){
 .county-page .county-layout{row-gap:24px;align-items:start}
 .county-page .county-main,.county-page .county-sidebar{display:contents}
 .county-sidebar-primary{grid-column:2;grid-row:2/span 2;align-self:start;display:flex;flex-direction:column;justify-content:flex-start;gap:24px}
 .county-layout>.county-section-head{grid-column:1/-1;grid-row:1}
 .county-tiles{grid-column:1;grid-row:2}
 .county-sidebar-primary>.tf-hub{flex:none}
 .county-main>.county-related-placement{grid-column:1;grid-row:3;align-self:start}
 .county-main>#facility{display:grid;grid-template-rows:subgrid;grid-column:1;grid-row:4/span 2;row-gap:24px;margin-top:24px}
 #facility>.county-section-head{grid-row:1}
 #facility>.county-facility{grid-row:2;align-self:stretch}
 .county-sidebar-details{grid-column:2;grid-row:5;align-self:stretch;justify-content:space-between}
}
@media(max-width:700px){.county-sidebar-details{gap:16px}}

/* One card DOM: move the mobile roster creative above records, never inside a record. */
@media(max-width:700px){
 .roster-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .roster-grid>.roster-column,.roster-grid>.roster-sidebar{display:contents}
 .roster-column>.roster-toolbar{order:1}
 .roster-column>.roster-public-notice{order:2}
 .roster-sidebar>.tf-sidebar{order:3}
 .roster-column>.sponsor-card{order:4}
 .roster-column>.record-list,.roster-column>.tf-noresult{order:5}
 .roster-column>#roster-pagination{order:6}
 .roster-grid>.roster-bottom-preview{order:7}
 .roster-sidebar>:not(.tf-sidebar){order:8}
 /* Keep the county creative immediately after quick help, before the related preview. */
 .county-page .county-layout{row-gap:16px}
 .county-page .county-sidebar,.county-page .county-sidebar-primary{display:contents}
 .county-layout>.county-section-head{order:-1}
 .county-main>.county-tiles{order:0}
 .county-sidebar-primary>.tf-hub{order:1}
 .county-main>.county-related-placement{order:2}
 .county-sidebar-primary>.record-corrections{order:3}
 .county-sidebar-details{order:4}
 .county-main>#facility{order:5}
}

/* Pair desktop help rows with the two sponsor/resource cards by their real edges. */
@media(min-width:931px){
 .county-page .county-layout{row-gap:12px}
 .county-layout>.county-section-head{margin-bottom:12px}
 .county-main>.county-tiles{grid-row:2/span 3;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:subgrid;row-gap:12px}
 .county-tiles>[data-county-tile="roster"],.county-tiles>[data-county-tile="call"]{grid-row:1}
 .county-tiles>[data-county-tile="visitation"],.county-tiles>[data-county-tile="money"]{grid-row:2}
 .county-tiles>[data-county-tile="mail"],.county-tiles>[data-county-tile="bail"]{grid-row:3}
 .county-tiles>[data-county-tile="roster"],.county-tiles>[data-county-tile="visitation"],.county-tiles>[data-county-tile="mail"]{grid-column:1}
 .county-tiles>[data-county-tile="call"],.county-tiles>[data-county-tile="money"],.county-tiles>[data-county-tile="bail"]{grid-column:2}
 .county-sidebar-primary{display:contents}
 .county-sidebar-primary>.tf-hub{grid-column:2;grid-row:2/span 2;align-self:stretch}
 .county-sidebar-primary>.record-corrections{grid-column:2;grid-row:4/span 2;align-self:stretch;display:flex;flex-direction:column}
 .county-sidebar-primary>.record-corrections>.corrections-actions{margin-top:auto;padding-top:22px}
 .county-main>.county-related-placement{grid-row:5;margin-top:12px}
 .county-main>#facility{grid-row:6/span 2}
 .county-sidebar-details{grid-row:7}
}

/* Fill the expanded desktop corrections card with a useful request hint. */
.record-corrections>.corrections-request-note{display:none}
@media(min-width:931px){
 .county-sidebar-primary>.record-corrections>.corrections-request-note{display:block;margin-top:12px;color:#c9c8c1}
}

/* Shared county corrections layout: stretch with the help/ad rows and distribute content spacing. */
.record-corrections.corrections-balanced .corrections-checklist{margin-top:16px}
.record-corrections.corrections-balanced .corrections-checklist h3{margin:0 0 8px;font-size:14px;font-weight:500;line-height:1.4;color:#fff}
.record-corrections.corrections-balanced .corrections-checklist ul{list-style:none;padding:0;margin:0;display:grid;gap:5px;color:#c9c8c1;font-size:13px;line-height:1.5}
.record-corrections.corrections-balanced .corrections-checklist li{display:flex;align-items:baseline;gap:9px;margin:0}
.record-corrections.corrections-balanced .corrections-checklist li::before{content:"";display:block;width:4px;height:4px;flex-shrink:0;border-radius:50%;background:currentColor;align-self:center}
@media(min-width:931px){
 .county-sidebar-primary>.record-corrections.corrections-balanced{justify-content:space-between;gap:8px}
 .county-sidebar-primary>.record-corrections.corrections-balanced>.corrections-description,
 .county-sidebar-primary>.record-corrections.corrections-balanced>.corrections-checklist,
 .county-sidebar-primary>.record-corrections.corrections-balanced>.corrections-actions{margin-top:0;padding-top:0}
}

@media(min-width:931px){
 .county-sidebar-primary>.record-corrections.corrections-balanced{container:corrections-card / size;min-height:0}
}
@container corrections-card (max-height:386px){
 .corrections-heading>.corrections-timing{font-size:12px;line-height:1.45}
 .record-corrections>.corrections-description{font-size:13px;line-height:1.45}
 .record-corrections .corrections-checklist h3{margin-bottom:6px}
 .record-corrections .corrections-checklist ul{font-size:12px;line-height:1.4;gap:3px}
}
