/* 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 5: room for the full "Name, group or program" placeholder */
.logfilters label[for="f-q"]{flex:2 1 230px}
.logfilters input::placeholder{color:#5B6B85}
/* row 2: below 900px each action is a stacked, labelled card (no clipped Source column) */
@media (max-width:900px){
  table.log thead{position:absolute;left:-9999px}
  table.log,table.log tbody{display:block;width:100%}
  table.log tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;row-gap:4px;border-bottom:2px solid var(--rule);padding:12px 0}
  table.log td{display:block;border:0;padding:0;min-width:0}
  table.log td.t{grid-column:1/-1;order:-1;min-width:0}
  table.log td.d{grid-column:1/-1;order:-2;font-weight:700;color:var(--navy)}
  table.log td.n{text-align:left}
  table.log td:nth-child(2)::before,table.log td:nth-child(3)::before,table.log td:nth-child(5)::before,
  table.log td:nth-child(6):not(:empty)::before,table.log td:nth-child(7)::before{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5B6B85}
  table.log td:nth-child(2)::before{content:"Agency"}
  table.log td:nth-child(3)::before{content:"Type"}
  table.log td:nth-child(5)::before{content:"Countries and groups"}
  table.log td:nth-child(6):not(:empty)::before{content:"Entries"}
  table.log td:nth-child(7)::before{content:"Source"}
  table.log td:nth-child(5){grid-column:1/-1}
  table.log caption{display:block;width:100%;text-align:left}
}
.sort{white-space:nowrap}
/* row 7: sticky column labels above 900px (the wrapper no longer needs a sideways scroll) */
@media (min-width:901px){
  .table-wrap:has(> table.log){overflow:visible}
  table.log thead th{position:sticky;top:0;background:#fff;z-index:2;box-shadow:inset 0 -1px 0 var(--rule)}
}
