/* Pioneer Business Finance.
 *
 * On the ADR-0011 skeleton -- `tools/sitegen/page.css` is the layout. What is
 * here is the palette, the two typefaces, and the one band this site has
 * that the skeleton does not: THE TRAIL.
 *
 * RED HAT DISPLAY OVER UBUNTU SANS: the heavy geometric capitals of the logo
 * (chosen 12 October 2026, a rust P tile beside PIONEER) carried into every
 * heading, over a plain, open sans. It was Rokkitt, a slab, until the logo
 * changed and the operator asked for the site to match it. Terracotta on white with a sand tint and a pine
 * ink. The terracotta (#a3401f) is 6.3:1 on white and 5.6:1 on the sand, so
 * it carries eyebrows and links; fills with white text use #7f2f15. On the
 * pine of the application band the eyebrow is a light clay, because the
 * terracotta itself is too dark to read there. Corners are small: this is a
 * site of markers and posts, not of cushions.
 */

@font-face {
  font-family: "Red Hat Display";
  src: url("display.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu Sans";
  src: url("text.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #1d2a22;
  --ink-soft: #2b3a30;
  --text: #3d4a42;
  --muted: #5d6961;

  --accent: #a3401f;
  --accent-deep: #7f2f15;
  --accent-wash: #f9ede6;
  --accent-line: #ecc7b5;

  --good: #2f5d3a;
  --good-wash: #e8f0e9;
  --warn: #8a4a10;

  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f6f1e8;
  --rule: #e7dfd2;
  --rule-firm: #d4c8b6;

  --ask-ink: #d3d8cf;
  --ask-accent: #f0a07c;

  --shadow: 29, 42, 34;

  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --body: "Ubuntu Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --display-weight: 700;
  --display-track: -0.005em;

  --radius: 6px;
  --radius-sm: 4px;

  --hero-bg: linear-gradient(175deg, var(--tint) 0%, var(--paper) 62%);
  --head-bg: linear-gradient(175deg, var(--tint) 0%, var(--paper) 72%);
}

/* ------------------------------------------------------------------ *
 * THE TRAIL -- the band this site has and the skeleton does not,
 * directly under the front door.
 *
 * The application's five time-in-business answers, as five markers across
 * the page. A dashed trail runs through the pins at the top of each column;
 * under each pin is a business of that age, what lenders lean on by then,
 * the programmes usually within reach (as chips that link to them) and one
 * thing to do before applying. Under 1000px the trail turns to run down the
 * left edge and the markers stack along it.
 * ------------------------------------------------------------------ */
.trail {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}

/* The path itself, through the middle of the pins. */
.trail::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 9px;
  border-top: 3px dashed var(--accent-line);
}

.trail__stop {
  position: relative;
  display: flex;
  flex-direction: column;
}

.trail__bucket {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-deep);
  letter-spacing: 0.01em;
}

.trail__name {
  background: var(--paper);
  padding-right: 10px;
}

.trail__pin {
  flex: none;
  position: relative;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--paper);
}

.trail__pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--paper);
}

.trail__shot {
  margin: 0 0 16px;
}

.trail__shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.trail__stop h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
}

.trail__stop > p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.trail__label {
  margin: 4px 0 8px !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.trail__reach {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.trail__reach a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  padding: 3px 8px;
  text-decoration: none;
}

.trail__reach a:hover {
  border-color: var(--accent);
}

.trail__tip {
  margin: 0 !important;
  padding: 12px 14px;
  background: var(--tint);
  border-left: 3px solid var(--good);
  font-size: 0.875rem !important;
}

.trail__tip b {
  color: var(--good);
}

.trail__note {
  max-width: 64ch;
  margin: 40px auto 0;
  text-align: center;
  color: var(--muted);
}

/* On a programme page the bucket sits under the eyebrow, pin and all. */
.row__say .trail__bucket {
  margin-bottom: 6px;
}

@media (max-width: 1000px) {
  .trail {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 40px;
  }
  .trail::before {
    left: 9px;
    right: auto;
    top: 10px;
    bottom: 10px;
    border-top: 0;
    border-left: 3px dashed var(--accent-line);
  }
  .trail__bucket {
    margin-left: -40px;
  }
  .trail__bucket .trail__name {
  background: var(--paper);
  padding-right: 10px;
}

.trail__pin {
    margin-right: 9px;
  }
  .trail__shot img {
    max-width: 420px;
  }
}

/* ---- the shared chrome, painted in this brand's colours ---- */
:root {
  --nav-bg: #ffffff;
  --nav-ink: #1d2a22;
  --nav-ink-soft: #5d6961;
  --nav-rule: #e7dfd2;
  --nav-hover: #a3401f;
  --nav-panel: #ffffff;
  --nav-cta-bg: #7f2f15;
  --nav-cta-ink: #ffffff;
  --nav-font: var(--display);
  --nav-size: 1.05rem;
  --nav-weight: 700;
  --nav-track: 0.01em;
  --nav-case: none;
  --nav-radius: 4px;
  --foot-bg: #1d2a22;
  --foot-ink: #c5ccc6;
  --foot-head: #f6f1e8;
  --foot-rule: #34443a;
  --foot-link: #fbf8f2;
}

/* The legal pages: numbered heads inside the prose, set smaller than a
   band's h2 so a long document reads as one document. */
.legal h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 2em 0 0.5em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 0.5em;
}

@media (max-width: 760px) {
  .head--form {
    padding-top: 18px;
  }
  .head--form .frame {
    padding: 6px;
  }
}
