/*
 * circularity.ID product page (dragons/layout.html): the legacy look on top
 * of the Loop UI kit stylesheet.
 *
 * The page is styled by css/styles.css (frontend-templates) and, loaded
 * after it, css/cf-loop-ui.css for the kit's fonts, the cookie consent and
 * the passport additions. The kit redesigns a few class names the legacy
 * markup uses, and its rules win because they come last. Production
 * (styles.css + the old cf-storybook.css, whose copies of these rules were
 * identical to styles.css) keeps the styles.css look; the rules below
 * restore it. Every value is the styles.css value; the `.cf-plib` scope
 * outranks the kit's selectors.
 */

/* FooterSmall: the kit turns .cf-footer__small into one flex bar with a
   "・" separator before every list item after the first. The legacy
   footer is a .row of two columns with 40px between the links. */
.cf-plib .cf-footer__small {
  display: block;
  gap: 0;
  padding: 0 8px;
  font-size: inherit;
  line-height: inherit;
}

@media print, screen and (min-width: 48em) {
  .cf-plib .cf-footer__small {
    padding: 0 24px;
  }
}

@media print, screen and (min-width: 64em) {
  .cf-plib .cf-footer__small {
    padding: 0 32px;
  }
}

.cf-plib .cf-footer__small .cf-footer__list {
  align-items: stretch;
  gap: 1rem 1.5rem;
}

.cf-plib .cf-footer__small .cf-footer__list-item {
  display: block;
  gap: 0;
}

/* styles.css uses this pseudo-element as a zero-height line-box trim. */
.cf-plib .cf-footer__small .cf-footer__list-item + .cf-footer__list-item::before {
  display: block;
  height: 0;
  margin-top: -1px;
  font-size: inherit;
  line-height: inherit;
  content: "";
}

.cf-plib .cf-footer__small .cf-logo--inline {
  margin: 0 15px;
}

/* The kit's .cf-small takes the Loop UI font stack (Inter); the page is set
   in KlarheitGrotesk like every other legacy text style. */
.cf-plib .cf-small {
  font-family: KlarheitGrotesk-Book, sans-serif;
}
