/* 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 2 */
.hero .lede{color:var(--ink)}
/* row 1: one line per row */
table.results td.y,table.results td.n{white-space:nowrap;min-width:4.5em}
/* row 7: every header cell on one baseline, Programs styled like its neighbours */
table.results thead th{vertical-align:bottom}
table.results thead th.progs{font-weight:700;color:var(--navy);text-transform:none;letter-spacing:normal;line-height:32px;padding-top:8px;padding-bottom:8px}
/* row 6: selects match the site's inputs and buttons */
.field select{-webkit-appearance:none;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A244B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;padding-right:34px;font-family:var(--sans);font-size:15px;color:var(--ink);border:1px solid var(--navy);border-radius:2px;min-height:44px;cursor:pointer}
.field select:hover{background-color:var(--paper-2)}
/* row 5: seven filters on one even row on desktop */
@media (min-width:1000px){.tool-form{grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}}
@media (min-width:641px) and (max-width:999px){
  .tool-form{grid-template-columns:repeat(12,minmax(0,1fr))}
  .tool-form .field{grid-column:span 3}
  .tool-form .field:nth-child(n+6){grid-column:span 4}
  .tool-form .field.wide{grid-column:1/-1}
}
/* row 4: phone result cards: name, type, then five jurisdiction dots */
.fxa-legend{display:none}
@media (max-width:640px){
  .tool-form .field.wide{grid-column:1/-1}
  .tool-form .field:last-child:nth-child(even){grid-column:1/-1}
  .fxa-legend{display:flex;gap:16px;align-items:center;font-family:var(--sans);font-size:13px;color:var(--ink-muted);margin:0 0 8px}
  .fxa-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:-1px;border:2px solid var(--navy);box-sizing:border-box}
  .fxa-legend i.y{background:var(--navy)}
  table.results thead{position:absolute;left:-9999px}
  table.results,table.results tbody{display:block;width:100%}
  table.results tr{display:grid;grid-template-columns:repeat(5,auto) 1fr;column-gap:14px;row-gap:4px;align-items:center;border-bottom:1px solid var(--rule);padding:10px 0}
  table.results th,table.results td{display:block;border:0;padding:0!important;font-size:13px}
  table.results tbody th{grid-column:1/-1;font-size:14px;overflow-wrap:anywhere}
  table.results td:nth-child(2){grid-column:1/-1;color:var(--ink-muted)}
  table.results td.progs{display:none}
  table.results td.y,table.results td.n{font-size:0;min-width:0;text-align:left;white-space:nowrap}
  table.results td.y::after,table.results td.n::after{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;border:2px solid var(--navy);box-sizing:border-box;margin-left:5px;vertical-align:-1px}
  table.results td.y::after{background:var(--navy)}
  table.results td.n::after{border-color:#8A97AD}
  table.results td.y::before,table.results td.n::before{font-size:12px;font-weight:700;font-family:var(--sans);color:var(--navy)}
  table.results td:nth-child(4)::before{content:"US"}
  table.results td:nth-child(5)::before{content:"UN"}
  table.results td:nth-child(6)::before{content:"EU"}
  table.results td:nth-child(7)::before{content:"UK"}
  table.results td:nth-child(8)::before{content:"CA"}
  table.results td:nth-child(9){text-align:right;color:var(--ink-muted);font-size:12px}
  table.results td:nth-child(9)::before{content:"Lists ";font-weight:600}
}
