/* fxa core (group B): site header on phone, eyebrow wrapping, lede measure, back-to-top */
.lede{text-wrap:pretty}
@media (max-width:640px){
  header.site .wrap{padding-top:10px;padding-bottom:10px;row-gap:8px}
  header.site .brand{gap:10px;min-width:0}
  header.site .brand img{height:30px;width:auto}
  header.site .brand span{font-size:11px;letter-spacing:.07em;padding-left:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  header.site nav{display:flex;flex-wrap:nowrap;column-gap:18px;width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  header.site nav::-webkit-scrollbar{display:none}
  header.site nav a{flex:0 0 auto;white-space:nowrap;margin:0;font-size:14px;line-height:1.25;padding:6px 0}
  header.site nav a:last-child{margin-right:28px}
  header.site.fxa-more .wrap{position:relative}
  header.site.fxa-more .wrap::after{content:"\203A";position:absolute;right:0;bottom:10px;width:44px;height:29px;line-height:27px;
    text-align:right;padding-right:14px;box-sizing:border-box;background:#0A244B;color:#fff;font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:24px;font-weight:600;pointer-events:none}
  .eyebrow{font-size:12px;letter-spacing:.06em;text-wrap:balance}
  main .hero{padding-top:0}
  main .hero h1{margin-top:0}
}
.fxa-top{position:fixed;right:16px;bottom:16px;z-index:40;font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:14px;font-weight:600;
  color:#fff;background:#0A244B;border:1px solid #0A244B;border-radius:2px;padding:10px 14px;text-decoration:none;min-height:44px;box-sizing:border-box;
  display:inline-flex;align-items:center}
.fxa-top:hover{text-decoration:underline;color:#fff}
.fxa-top:focus-visible{outline:3px solid #B13630;outline-offset:2px}
.fxa-top[hidden]{display:none}
@media print{.fxa-top{display:none!important}}
.fxa-nw{white-space:nowrap}
.fxa-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* site */
/* row 6: standfirst at full ink contrast, same serif and size */
.hero .lede{color:var(--ink)}
/* row 1: filters on one aligned row on desktop */
@media (min-width:1000px){
  .filters{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.3fr) minmax(0,.95fr) minmax(0,.75fr) minmax(0,1.6fr) minmax(0,1.05fr) auto;gap:12px;align-items:end}
  .filters label{width:auto;min-width:0}
  .filters select,.filters input{min-width:0;width:100%;min-height:40px;box-sizing:border-box;text-overflow:ellipsis}
  .filters #reset{min-height:40px;white-space:nowrap;align-self:end}
}
/* rows 3 and 7: sort arrow stays on the label's line; sort note left aligned at full width */
#cases thead th{white-space:nowrap}
@media (min-width:601px){.table-wrap:has(> #cases){overflow:visible}}
#cases caption{text-align:left;caption-side:top;padding:0 0 8px;font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:14px;color:var(--ink-muted)}
@media (max-width:600px){
  #cases caption{display:block;width:100%}
  /* row 2: compact card per case: name on top, district, group, status and date in two columns */
  #cases tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:12px;row-gap:6px;padding:10px 12px}
  #cases td{width:auto;min-width:0}
  #cases td[data-label="Defendant(s)"]{grid-column:1/-1}
  #cases td[data-label="District"]{grid-column:1/-1}
  #cases td::before{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
  /* row 4: shorter phone hero, every word kept */
  .hero .lede{font-size:18px;line-height:1.45;margin-bottom:10px}
  .hero{padding-bottom:16px;margin-bottom:16px}
  .hero h1{margin-bottom:8px}
  .latest{margin:12px 0 16px}
  .filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px}
  .filters label{width:auto;min-width:0}
  .filters select,.filters input{min-width:0;width:100%;box-sizing:border-box}
  .filters label:first-child{grid-column:1/-1}
  .filters #reset{align-self:end;min-height:40px}
}
