/* BatFi's two guides (/batfi/charge-limit-below-80/ and the others), by
 * build_batfi_guides.py. The page is /batfi's: the same shell, body class,
 * ground, header, footer and type roles, from batfi.css, which the page
 * links first. This file only turns /batfi's centred bands into an article
 * you read from top to bottom: one left-aligned column at a reading
 * measure, the h1 in DIN as /batfi's, the h2s in the mono face at /batfi's
 * section-heading size, and body copy in the second ink (9.3:1).
 *
 * Scoped under .bf-guide so none of it reaches /batfi itself.
 */

.bf-guide .bfg {
  text-align: left;
}

.bf-guide .bfg-article {
  max-width: calc(42rem + 2 * var(--bf-edge));
  margin-inline: auto;
  padding: clamp(3rem, 1.5rem + 5vw, 6rem) var(--bf-edge) clamp(4.5rem, 2.5rem + 6vw, 7rem);
}

.bf-page .bf.bfg h1 {
  margin: 0;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.5rem);
  line-height: 1.05;
  text-wrap: balance;
}

.bf-page .bf.bfg h2 {
  margin: 3rem 0 0;
  max-width: none;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bf-ink);
  text-wrap: balance;
}

.bf-page .bf.bfg p,
.bf-page .bf.bfg li {
  color: var(--bf-ink-2);
}

.bf-page .bf.bfg p {
  margin: 1rem 0 0;
  max-width: none;
}

/* the first paragraph under the h1 */
.bf-page .bf.bfg h1 + p {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--bf-ink);
}

.bf-page .bf.bfg ol,
.bf-page .bf.bfg ul {
  margin: 1rem 0 0;
  padding-left: 1.75em;
}

.bf-page .bf.bfg li + li {
  margin-top: 0.75rem;
}

.bf-page .bf.bfg ol li::marker {
  color: var(--bf-accent);
  font-weight: 700;
}

.bf-page .bf.bfg ul li::marker {
  color: var(--bf-accent);
}

.bf-page .bf.bfg code {
  font-family: var(--bf-mono);
  font-size: 0.9em;
  letter-spacing: -0.04em;
  color: var(--bf-ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

/* "Read more about BatFi at ...", the article's last line */
.bf-page .bf.bfg .bfg-more {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
}
