/* competitors.css: the named field. #u12 = the section on the home page; .cmpx = the /field/ page.
   Colours come from site.css :root variables; fonts --body --mono; radius --r. No new colours.
   Every size on the declared scale (11 12 13 14 15 17 20), px line-heights from the
   declared pairs, weights 500/600 only. Phone tap targets on the company-name links and the source links. */

/* shared: the dated tag, states, cell marks, scroll boxes */
:where(#u12,.cmpx) .cmp-asof{margin-left:14px;padding-left:14px;border-left:1px solid var(--line);color:var(--ink-3)}
:where(#u12,.cmpx) .state{font:500 11px/16px var(--mono);letter-spacing:.08em;text-transform:uppercase;display:inline-flex;align-items:center;gap:7px}
:where(#u12,.cmpx) .state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
:where(#u12,.cmpx) .cmp-m{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none;vertical-align:0;margin-right:8px}
:where(#u12,.cmpx) .cmp-m.cmp-y{background:var(--pos)}
:where(#u12,.cmpx) .cmp-m.cmp-p{background:linear-gradient(90deg,var(--pos) 50%,var(--surface) 50%);box-shadow:inset 0 0 0 1px var(--pos)}
:where(#u12,.cmpx) .cmp-m.cmp-n{width:6px;height:6px;margin-inline:1px 9px;background:var(--line)}
:where(#u12,.cmpx) .cmp-m.cmp-u{background:none;box-shadow:inset 0 0 0 1.5px var(--ink-3)}
:where(#u12,.cmpx) .cmp-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);max-width:100%}
:where(#u12,.cmpx) .cmp-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:where(#u12,.cmpx) .cmp-key{display:flex;flex-wrap:wrap;gap:8px 22px;margin:16px 0 12px;padding:0;list-style:none;font:500 12px/16px var(--mono);color:var(--ink-2)}
:where(#u12,.cmpx) .cmp-key li{display:inline-flex;align-items:center}

/* first page: intro, lane cards */
#u12 .cmp-intro{color:var(--ink-2);max-width:64ch;margin:16px 0 0;font-size:17px;line-height:26px}
#u12 .cmp-lanes{list-style:none;padding:0;margin:36px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
#u12 .cmp-lane{background:var(--surface);padding:24px;min-width:0;display:flex;flex-direction:column;gap:12px}
#u12 .cmp-lane h3{font:600 20px/30px var(--body);letter-spacing:-.01em;margin:0}
#u12 .cmp-vs{font:500 11px/16px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin:0}
#u12 .cmp-verdict{margin:0;color:var(--ink);font-size:15px;line-height:24px}
#u12 .cmp-names{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:2px 0;font-size:14px;line-height:22px}
#u12 .cmp-names li{min-width:0}
#u12 .cmp-names li+li::before{content:"·";color:var(--ink-3);margin:0 8px}
#u12 .cmp-names .cmp-also{color:var(--ink-3)}
#u12 .cmp-diff{margin:0;color:var(--ink-2);font-size:14px;line-height:22px}
#u12 .cmp-diff b{color:var(--ink);font-weight:600}
#u12 .cmp-st{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}
@media (max-width:760px){#u12 .cmp-lanes{grid-template-columns:1fr}#u12 .cmp-lane{padding:20px}}

/* first page: the positioning strip */
#u12 .cmp-pos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin:56px 0 0}
#u12 .cmp-chain{background:var(--surface);padding:24px;min-width:0}
#u12 .cmp-chain h3{font:600 17px/26px var(--body);margin:0 0 12px;letter-spacing:-.01em}
#u12 .cmp-chain .flow{margin:0}
#u12 .cmp-chain .flow li span::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:7px;vertical-align:1px;box-shadow:inset 0 0 0 1px var(--ink-3)}
#u12 .cmp-chain .flow li.cmp-tr span::before{background:var(--pos);box-shadow:none}
#u12 .cmp-chain .note{margin-top:14px}
#u12 .cmp-chain .cmp-lbl{margin:12px 0 0}
#u12 .cmp-pos+.note{margin-top:14px}
@media (max-width:760px){#u12 .cmp-pos{grid-template-columns:1fr}#u12 .cmp-chain{padding:20px}}

/* first page: the cross-check */
#u12 .cmp-sub{font:600 20px/30px var(--body);margin:64px 0 0;letter-spacing:-.015em}
#u12 .cmp-ps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px 40px;margin:20px 0 0}
#u12 .cmp-ps div{min-width:0}
#u12 .cmp-ps dt{font:500 12px/16px var(--mono);color:var(--ink);margin:0 0 4px}
#u12 .cmp-ps dd{margin:0;color:var(--ink-2);font-size:14px;line-height:22px}
:where(#u12,.cmpx) .cmp-xc{border-collapse:separate;border-spacing:0;width:100%;min-width:760px;font:500 12px/16px var(--mono);color:var(--ink-2)}
:where(#u12,.cmpx) .cmp-xc caption{text-align:left;padding:14px 16px 10px;font:500 11px/16px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
:where(#u12,.cmpx) .cmp-xc th,:where(#u12,.cmpx) .cmp-xc td{padding:9px 12px;border-top:1px solid var(--line);text-align:left;vertical-align:top;white-space:nowrap}
:where(#u12,.cmpx) .cmp-xc thead th{font-weight:500;color:var(--ink);white-space:normal;min-width:96px;vertical-align:bottom}
:where(#u12,.cmpx) .cmp-xc thead th small{display:block;color:var(--ink-3);font-size:11px;letter-spacing:.02em}
:where(#u12,.cmpx) .cmp-xc tbody th[scope="row"]{position:sticky;left:0;z-index:1;background:var(--surface);color:var(--ink);font:500 13px/20px var(--body);box-shadow:inset -1px 0 0 var(--line)}
:where(#u12,.cmpx) .cmp-xc thead th:first-child{position:sticky;left:0;z-index:2;background:var(--surface);box-shadow:inset -1px 0 0 var(--line)}
:where(#u12,.cmpx) .cmp-xc th[scope="rowgroup"]{font:500 11px/16px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);background:var(--bg);padding-top:12px}
:where(#u12,.cmpx) .cmp-xc th[scope="rowgroup"] span{position:sticky;left:12px}
:where(#u12,.cmpx) .cmp-xc td{display:table-cell}
:where(#u12,.cmpx) .cmp-xc td span{display:inline-flex;align-items:center}
#u12 .cmp-behind{margin:64px 0 0;max-width:72ch}
#u12 .cmp-behind h3{font:600 20px/30px var(--body);margin:0 0 12px;letter-spacing:-.015em}
#u12 .cmp-behind p{margin:0;color:var(--ink-2);font-size:17px;line-height:26px}
#u12 .more+.more{margin-top:0}

/* the /field/ page */
.cmpx .cmpx-toc{list-style:none;padding:0;margin:28px 0 0;display:flex;flex-wrap:wrap;gap:4px 18px}
.cmpx .cmpx-toc a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;line-height:24px}
.cmpx .cmpx-state{display:flex;flex-wrap:wrap;gap:6px 18px;margin:18px 0 0}
.cmpx .cmpx-sum{color:var(--ink-2);max-width:72ch;margin:20px 0 0;font-size:17px;line-height:26px}
.cmpx .cmp-scroll{margin-top:28px}
.cmpx .cmpx-t{border-collapse:separate;border-spacing:0;width:100%;min-width:1080px;font-size:14px;line-height:22px;color:var(--ink-2)}
.cmpx .cmpx-t th,.cmpx .cmpx-t td{padding:12px 14px;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.cmpx .cmpx-t thead th{font:500 11px/16px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);border-top:0;white-space:nowrap}
.cmpx .cmpx-t tbody th[scope="row"]{position:sticky;left:0;z-index:1;background:var(--surface);color:var(--ink);font-weight:600;min-width:132px;box-shadow:inset -1px 0 0 var(--line)}
.cmpx .cmpx-t thead th:first-child{position:sticky;left:0;z-index:2;background:var(--surface);box-shadow:inset -1px 0 0 var(--line)}
.cmpx .cmpx-t td:nth-child(6){color:var(--ink)}
.cmpx .cmpx-t .cmpx-tag{font:500 11px/16px var(--mono);color:var(--ink-3);letter-spacing:.02em}
.cmpx .cmpx-fn{font:500 12px/16px var(--mono);white-space:nowrap}
/* the source links in table cells: a 44 px tap box on both sides at every width, one link to a line, each cell's
   top label where it sat; the box reaches up into the cell's top padding and the last box down into its bottom padding, so a row
   grows where its cell has no room and nowhere else. These rules outrank the phone padding further down. */
.cmpx td .cmpx-fn{display:flex;align-items:flex-start;min-width:44px;min-height:44px;padding:16px 0 0;margin:-12px 0 12px}
.cmpx td .cmpx-fn:last-child{margin-bottom:-12px}
.cmpx .cmp-xc td .cmpx-fn{padding-top:10px;margin-top:-10px;margin-bottom:10px}
.cmpx .cmp-xc td .cmpx-fn:last-child{margin-bottom:-9px}
.cmpx .cmp-xc{min-width:980px}
.cmpx .cmp-xc td{white-space:normal;min-width:110px}
.cmpx .cmp-xc td em{display:block;font-style:normal;color:var(--ink-3);font-size:11px;margin-top:4px;max-width:22ch}
.cmpx .cmp-ps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px 40px;margin:24px 0 0}
.cmpx .cmp-ps dt{font:500 12px/16px var(--mono);color:var(--ink);margin:0 0 4px}
.cmpx .cmp-ps dd{margin:0;color:var(--ink-2);font-size:14px;line-height:22px}
.cmpx .cmpx-src{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:10px;font-size:14px;line-height:22px;color:var(--ink-2);max-width:96ch}
.cmpx .cmpx-src li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;scroll-margin-top:72px}
.cmpx .cmpx-src b{font:500 12px/16px var(--mono);color:var(--ink-3);font-weight:500}
.cmpx .cmpx-src a{overflow-wrap:anywhere}
.cmpx .cmpx-src li:target{background:var(--raised);border-radius:4px}
#u12 .cmp-xc .cmp-pn{font-style:normal;color:var(--ink-3)}
#u12 .cmp-xc td .cmp-pn{display:block;white-space:normal;max-width:24ch;margin-top:4px;font-size:11px}
.cmpx .cmpx-t td:nth-child(3),.cmpx .cmpx-t td:nth-child(4),.cmpx .cmpx-t td:nth-child(6){min-width:205px}
.cmpx .cmpx-t td:nth-child(2),.cmpx .cmpx-t td:nth-child(5){min-width:125px}
.cmpx .cmpx-t td:nth-child(7){min-width:150px}
.cmpx .cmpx-t td:last-child{min-width:84px}
.cmpx .cmpx-t td:nth-child(7) .state{display:flex;margin-bottom:6px}
.cmpx .cmpx-cap{text-align:left;padding:14px 14px 10px;font:500 11px/16px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}

/* 600 px and below: the company-name links and the source links get a 32 px hit box
   from vertical padding on the inline link, so the line-height does not change; the name rows gain row-gap so the boxes tile. */
@media (max-width:600px){
  #u12 .cmp-names{row-gap:10px}
  #u12 .cmp-names a{padding-block:7px}
  .cmpx .cmpx-fn{padding-block:8px}
}

/* site tokens only. */
:where(#u12,.cmpx) .cmp-scroll{border-radius:var(--r)}
:where(#u12,.cmpx) .cmp-key{color:var(--ink-3)}
:where(#u12,.cmpx) .cmp-xc caption,.cmpx .cmpx-cap,.cmpx .cmpx-t thead th,:where(#u12,.cmpx) .cmp-xc th[scope="rowgroup"]{color:var(--ink-3)}
/* the servicer side's dated gap observation, under its own table */
.cmpx .cmpx-gap{margin:1.5rem 0 0;max-width:72ch;color:var(--ink-2)}
/* phones: each company stacks as its own short block, the overlap column second, each cell
   labelled with its column's own heading, so nothing is cut off and nothing needs a sideways swipe. From 768 up the table is unchanged. */
@media (max-width:767px){
  .cmpx .cmp-scroll{overflow:visible;border:0;background:none}
  .cmpx .cmpx-t,.cmpx .cmpx-t tbody{display:block;min-width:0;width:auto}
  .cmpx .cmpx-t caption{display:block;padding-inline:0}
  .cmpx .cmpx-t thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .cmpx .cmpx-t tr{display:flex;flex-direction:column;gap:.625rem;padding:1.25rem 0;border-top:1px solid var(--line)}
  .cmpx .cmpx-t tbody th[scope="row"]{order:-2;position:static;min-width:0;padding:0;border:0;box-shadow:none;background:none;font-size:1.0625rem}
  .cmpx .cmpx-t td{display:block;min-width:0!important;padding:0;border:0}
  .cmpx .cmpx-t td:nth-child(4){order:-1}
  .cmpx .cmpx-t td::before{display:block;margin-bottom:.125rem;font:500 .6875rem/1rem var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-4)}
  .cmpx .cmpx-t td:nth-child(2)::before{content:"What it does"}
  .cmpx .cmpx-t td:nth-child(3)::before{content:"Buyer"}
  .cmpx .cmpx-t td:nth-child(4)::before{content:"Where it overlaps, and where not"}
  .cmpx .cmpx-t td:nth-child(5)::before{content:"Funding and backers"}
  .cmpx .cmpx-t td:nth-child(6)::before{content:"Security and customers"}
  .cmpx .cmpx-t td:nth-child(7)::before{content:"Source"}
  .cmpx .cmpx-t td a{display:inline-flex;align-items:center;min-height:2.75rem;min-width:2.75rem} /* phones: each source link a 44 px tap target */
}
