/* Thrive Merchant Funding — the poster.
 *
 * Six lines at display size, each a programme and its ceiling, and then a
 * hard drop to a small quiet measure for everything else. The scale jump IS
 * the design: loudest possible, then quiet, where every other site here sets
 * an even grey.
 *
 * What it is recognisable by in greyscale: six enormous dollar figures ranged
 * right against six programme names ranged left, and the same six lines
 * printed at a quarter of the size at the head of every other page.
 *
 * Anton over Jost. The navy is the logo's own #203960 at 11.26:1 on this
 * paper. The logo's green (#74992d, 3.23:1) and orange (#ff9933, 2.07:1) are
 * both under AA and are used for rules and marks only; anything green that is
 * read takes --green-deep at 5.99:1.
 */

@font-face {
  font-family: "Anton";
  src: url("display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("text.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #fcfcfa;
  --tint: #f1f3f6;
  --ink: #1b1d22;
  --text: #2c2f36;
  /* 6.63:1 on paper. */
  --muted: #575b63;
  /* 5.20:1 on paper. Captions and the publisher's line, nothing smaller. */
  --faint: #676b74;
  --rule: #dfe1e6;
  --rule-firm: #bcbfc6;
  /* 11.26:1 on paper, and white on it is 11.57:1. */
  --navy: #203960;
  --navy-deep: #16294a;
  /* Rules and marks only: 3.23:1 is under AA. */
  --green: #74992d;
  /* 5.99:1, for anything green that is read. */
  --green-deep: #4f6a1c;

  --shell: 1180px;
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 26px;
}

img {
  max-width: 100%;
}

a {
  color: var(--navy);
}

a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--paper);
  padding: 10px 16px;
  border: 2px solid var(--navy);
}

/* ---------- masthead ----------
 *
 * IT STAYS, on a screen with room for it. The masthead carries the poster
 * strip, and the strip is both this site’s navigation and its argument: six
 * ceilings, all different. Keeping them on screen while you read one of the
 * six is the design doing its job.
 *
 * Not on a phone. The bar, the publisher’s line and six stacked entries come
 * to most of a handset, and a navigation that covers the thing it is
 * navigating is worse than one you scroll to — the same call rightbusiness
 * loans.com’s rail makes at the same width. */
.mast {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .mast {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--paper);
  }
}

.mast__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  flex-wrap: wrap;
}

.mast__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.mast__logo img {
  height: var(--logo-h, 46px);
  width: auto;
}

.mast__acts {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  flex-wrap: wrap;
}

.mast__tel {
  font-weight: 600;
  color: var(--ink) !important;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mast__cta {
  background: var(--navy);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 24px;
  white-space: nowrap;
}

.mast__cta:hover {
  background: var(--navy-deep);
}

/* ---------- the publisher's line ----------
 *
 * Every page the poster does not carry, and deliberately the smallest type on
 * the front page: a poster has a publisher's line, and this is it. */
.line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 9px;
  padding: 9px 0 10px;
  font-size: 0.76rem;
}

.line a {
  color: var(--faint);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.line a:hover {
  color: var(--navy);
}

.line a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.line span {
  color: var(--rule-firm);
}

/* ---------- the poster ----------
 *
 * The navigation model: the same six lines at two sizes. On the front page
 * they are the page; everywhere else they are a strip a quarter the height,
 * in the same order with the same links. The navigation does not change
 * shape between pages, only how loud it is. */
.poster ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.poster a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  text-decoration: none;
  color: var(--ink);
}

.poster__name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1;
}

.poster__fig {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The front page: the poster IS the page. */
.poster--big {
  padding: 42px 0 10px;
  border-top: 4px solid var(--navy);
}

.poster--big li {
  border-bottom: 1px solid var(--rule);
}

.poster--big a {
  padding: 14px 0;
}

.poster--big .poster__name {
  font-size: clamp(1.7rem, 0.6rem + 4.4vw, 4rem);
}

.poster--big .poster__fig {
  font-size: clamp(1.7rem, 0.6rem + 4.4vw, 4rem);
}

.poster--big a:hover .poster__name,
.poster--big a:hover .poster__fig {
  color: var(--green-deep);
}

/* Every other page: the same six, a quarter the size -- AND IT STAYS.
 *
 * The strip is the navigation and it is also this brand’s argument: six
 * ceilings, all different. Keeping it on screen while you read one of the six
 * is the design doing its job rather than furniture for its own sake, and it
 * is what separates this site from nexusbusinessfinancing.com, whose wall of
 * plates stands in the same place between masthead and content and scored
 * 0.79 against it when neither had anything standing. */
.poster--strip {
  background: var(--paper);
  padding: 12px 0 4px;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--rule);
}

.poster--strip ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 26px;
}

.poster--strip li {
  border-bottom: 1px solid var(--rule);
}

.poster--strip a {
  padding: 7px 0;
}

.poster--strip .poster__name {
  font-size: 0.86rem;
  color: var(--muted);
}

.poster--strip .poster__fig {
  font-size: 0.86rem;
}

.poster--strip li.is-here .poster__name {
  color: var(--ink);
}

.poster--strip li.is-here {
  border-bottom: 2px solid var(--green);
}

.poster--big li.is-here .poster__name {
  color: var(--navy);
}

.poster__stand {
  margin: 18px 0 0;
  max-width: 42rem;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ---------- openers ---------- */

.open {
  padding: 34px 0 6px;
  max-width: 44rem;
}

.open__ceiling {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.2rem + 4vw, 4rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.open__h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 1rem + 2.2vw, 2.5rem);
  line-height: 1.06;
  color: var(--ink);
  margin: 0 0 14px;
}

.open--prog .open__h1 {
  font-size: clamp(1.3rem, 0.95rem + 1.4vw, 1.9rem);
}

.open__stand {
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ---------- the band ----------
 *
 * The only photograph on this site: a programme's own page, once, under its
 * ceiling. Never on the poster. See photos.mjs. */
.band {
  margin: 24px 0 0;
}

.band img {
  display: block;
  width: 100%;
  height: auto;
  border-top: 4px solid var(--green);
}

.band figcaption {
  margin-top: 7px;
  font-size: 0.76rem;
  color: var(--faint);
}

/* ---------- sections ----------
 *
 * After the poster everything drops to a narrow measure and stays there. */
.sec {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  margin-top: 28px;
}

.h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.5rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 42rem;
}

.aside {
  margin: 20px 0 0;
  font-size: 0.86rem;
  color: var(--faint);
  max-width: 42rem;
}

.prose {
  max-width: 38rem;
}

.prose p {
  margin: 0 0 16px;
}

.prose .h2 {
  margin: 24px 0 10px;
}

/* ---------- keyed rows ---------- */

.rows {
  margin: 0;
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  border-top: 2px solid var(--navy);
}

.rows dt {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 15px 24px 15px 0;
  border-bottom: 1px solid var(--rule);
}

.rows dd {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

/* ---------- a programme's figures ---------- */

.figs {
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--rule-firm);
}

.figs dt {
  grid-row: 1;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 14px 16px 4px 0;
}

.figs dd {
  grid-row: 2;
  margin: 0;
  padding: 0 16px 16px 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.16rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- steps, network, marks ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  border-top: 2px solid var(--navy);
}

.steps li {
  counter-increment: step;
  padding: 18px 0 18px 3rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--green-deep);
}

.steps h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.04rem;
  color: var(--ink);
  margin: 0 0 6px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.net {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--navy);
}

.net li {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--rule);
}

.net strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.net span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
}

.marks {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.marks li {
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  color: var(--text);
}

.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 3px;
  background: var(--green);
}

/* ---------- the application ---------- */

.sec--apply {
  background: var(--tint);
  border-top: 4px solid var(--navy);
  margin-top: 32px;
  padding: 30px 26px;
}

.frame {
  margin-top: 20px;
  background: var(--paper);
  border: 1px solid var(--rule-firm);
}

.frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ---------- foot ---------- */

.foot {
  margin-top: 40px;
  border-top: 4px solid var(--navy);
  padding: 8px 0 34px;
}

.foot__where {
  margin: 10px 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.foot__tel {
  color: var(--muted) !important;
  text-decoration: none;
}

.foot__fine {
  margin: 0 0 14px;
  font-size: 0.79rem;
  line-height: 1.6;
  color: var(--faint);
  max-width: 62rem;
}

.foot__rule {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.79rem;
  color: var(--faint);
}

/* ---------- narrower ---------- */

@media (max-width: 900px) {
  .poster--strip ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .rows dt {
    padding: 15px 0 2px;
    border-bottom: 0;
  }

  .rows dd {
    padding: 0 0 15px;
  }

  .net {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  /* The poster stays a poster: the name over the figure rather than beside
   * it, because a $1,000,000 and a "Business Working Capital" on one line at
   * 390px is two words a line. */
  .poster--big a {
    display: block;
  }

  .poster--big .poster__fig {
    display: block;
    margin-top: 2px;
  }

  .poster--strip ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .figs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figs dt:nth-of-type(3),
  .figs dt:nth-of-type(4) {
    grid-row: 3;
  }

  .figs dd:nth-of-type(3),
  .figs dd:nth-of-type(4) {
    grid-row: 4;
  }

  .net {
    grid-template-columns: minmax(0, 1fr);
  }

  .sec--apply {
    padding: 26px 16px;
    margin-left: -26px;
    margin-right: -26px;
  }
}
