/* United Business Capital (unitedmerchantfunds.com).
 *
 * On the ADR-0011 skeleton -- `tools/sitegen/page.css` is the layout. What is
 * here is the palette, the two typefaces, and one band the skeleton does not
 * have: the grid.
 *
 * DM SERIF OVER DM SANS, near-black on white with the brand's red as the only
 * colour in type. The grid has three states and each has its own ink --
 * green for "holds", red for "does not", grey for "this site does not say" --
 * all at 6:1 or better on their washes.
 */

@font-face {
  font-family: "DMSerif";
  src: url("display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DMSans";
  src: url("text.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --ink-soft: #000000;
  --text: #3d3d3d;
  --muted: #5a5a5a;

  --accent: #b3261e;
  --accent-deep: #8c1c16;
  --accent-wash: #fbeeed;
  --accent-line: #ecc3c0;

  --good: #0b6b36;
  --good-wash: #eef7f1;
  --warn: #b3261e;

  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f7f7f6;
  --rule: #e2e2e0;
  --rule-firm: #b5b5b2;

  --ask-ink: #b2aaa9;
  --ask-accent: #ff8a80;

  --shadow: 11, 11, 11;

  --display: "DMSerif", Georgia, "Times New Roman", serif;
  --body: "DMSans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* DM Serif has one weight, and it is already heavy. */
  --display-weight: 400;
  --display-track: -0.005em;

  --shell: 1200px;
  --radius: 4px;
  --radius-sm: 3px;
}

/* ------------------------------------------------------------------ *
 * THE GRID -- the one band this site has and the skeleton does not.
 *
 * Six criteria down, six programmes across, and in every cell what this
 * site's own product pages say. Three states, and the third -- "this site
 * does not say" -- is printed rather than left blank. On a phone the table
 * scrolls inside its own frame rather than widening the page.
 * ------------------------------------------------------------------ */
.grid-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  -webkit-overflow-scrolling: touch;
}

.grid {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.grid th,
.grid td {
  padding: 14px 12px;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.grid thead th {
  border-top: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.2;
}

.grid thead th a {
  color: var(--ink);
  text-decoration: none;
}

.grid thead th a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.grid tbody th {
  width: 20%;
  font-weight: 700;
  color: var(--ink);
}

.grid tbody th span {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.grid td.is-yes {
  background: var(--good-wash);
  color: var(--good);
}

.grid td.is-no {
  background: var(--accent-wash);
  color: var(--accent-deep);
}

.grid td.is-none {
  background: #f3f3f2;
  color: #555555;
  font-style: italic;
}

.grid .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.grid [aria-current] {
  box-shadow: inset 0 3px 0 var(--accent);
}

/* ---- the shared chrome, painted in this brand's colours ---- */
:root {
  --nav-bg: #ffffff;
  --nav-ink: #0b0b0b;
  --nav-ink-soft: #5a5a5a;
  --nav-rule: #e2e2e0;
  --nav-hover: #b3261e;
  --nav-panel: #ffffff;
  --nav-cta-bg: #b3261e;
  --nav-cta-ink: #ffffff;
  --nav-font: var(--display);
  --nav-size: 1rem;
  --nav-weight: 400;
  --nav-track: 0;
  --nav-case: none;

  --foot-bg: #1a0b0a;
  --foot-ink: #a79f9e;
  --foot-head: #e4e1e1;
  --foot-rule: #3d2c2b;
  --foot-link: #f4f2f2;
}
