/* Custom page articles share these typography and layout fixes. */
.cbt-theme #main-content .cbt-guide > .cbt-section.cbt-hero::after {
  content: none;
}

.cbt-theme #main-content .cbt-guide > .cbt-section.cbt-process {
  display: block;
}

.cbt-theme #main-content :is(.cbt-guide, .rf-factory) a[href]::before,
.cbt-theme #main-content :is(.cbt-guide, .rf-factory) a[href]::after {
  content: none;
}

/* Text links have one underline. Structured links use their row or card. */
.cbt-theme #main-content :is(.cbt-guide, .rf-factory) a[href]:not(:is(.cbt-action, .rf-cta)) {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  text-decoration-skip-ink: auto;
}

.cbt-theme #main-content .cbt-guide :is(.cbt-directory a[href], .cbt-guide-jumps a[href], a.cbt-card-link, .cbt-factory-topic-list a[href]) {
  text-decoration-line: none;
}

.cbt-theme #main-content .cbt-guide :is(.cbt-directory a[href], .cbt-guide-jumps a[href], a.cbt-card-link, .cbt-factory-topic-list a[href]):is(:hover, :focus-visible) {
  text-decoration-line: underline;
}

.cbt-theme #main-content :is(.cbt-guide, .rf-factory) a[href]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.cbt-theme #main-content :is(.cbt-guide a.cbt-action, .rf-factory a.rf-cta) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: 10px 16px;
  border-radius: 5px;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.cbt-theme #main-content .cbt-guide a.cbt-action {
  border-style: solid;
  border-width: 1px;
}
