/* Roots & Fruit â€” shared UI components.
   Load after tokens.css (and fonts.css when Knile is not already available). */

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

body {
  margin: 0;
  font-family: var(--rf-font-sans);
  font-size: var(--rf-text-md);
  line-height: var(--rf-leading-body);
  color: var(--rf-ink);
  background: var(--rf-cream);
}

/* Prose utilities (brand-level counterparts to the docs chrome .ds-lede .ds-type-meta) */
.rf-lede {
  box-sizing: content-box;
  max-inline-size: var(--rf-measure);
  font-size: var(--rf-text-lg); /* 22px short lead / intro emphasis */
  line-height: var(--rf-leading-callout);
  color: var(--rf-ink-muted);
  margin: 0;
}

/* Floor. Labels, helper text, table cells. An eyebrow is .rf-meta, not this. */
.rf-small {
  margin: 0;
  font-size: var(--rf-text-sm);
  line-height: var(--rf-leading-ui);
  color: var(--rf-ink-muted);
}

.rf-meta,
.rf-disclosure__label,
.rf-toggle__state,
.rf-offer__eyebrow,
.ds-sidebar__subtitle,
.ds-nav__page--group,
.ds-type-meta {
  font-weight: var(--rf-weight-bold);
  letter-spacing: var(--rf-tracking-meta);
  text-transform: uppercase;
}

.rf-meta {
  font-size: var(--rf-text-sm);
  color: var(--rf-ink-muted);
  margin: 0;
}

/* Knile display. Always pair the base with a size. xl is a full-column
   page title, lg is a title inside a split, md is a section, sm is a subhead. */
.rf-display,
.ds-section > h2:not(.ds-h2),
.ds-panel > h2:not(.ds-h2),
.ds-hero h1 {
  margin: 0;
  font-family: var(--rf-font-serif);
  font-weight: var(--rf-weight-bold);
  letter-spacing: var(--rf-tracking-display);
  line-height: var(--rf-leading-display);
  color: var(--rf-ink-deep);
}

.rf-display--xl,
.ds-hero h1 { font-size: var(--rf-text-4xl); }
.rf-display--lg,
.ds-panel > h2:not(.ds-h2) { font-size: var(--rf-text-3xl); }
.rf-display--md,
.ds-section > h2:not(.ds-h2) { font-size: var(--rf-text-2xl); }

.rf-display--sm {
  font-size: var(--rf-text-xl);
  font-weight: var(--rf-weight-semibold);
  line-height: var(--rf-leading-snug);
}

/* Long-form reading: measure + lead size + paragraph rhythm.
   content-box so --rf-measure (ch) describes text width, not padding+text
   (Every Layout: measure the content, suggest max size, donâ€™t prescribe). */
.rf-prose {
  box-sizing: content-box;
  max-inline-size: var(--rf-measure);
  font-size: var(--rf-text-md); /* 18px long-form; sm (16) is the floor */
  line-height: var(--rf-leading-body);
}

/* Analytical reports: keep a real measure, but widen slightly and bump type
   so the reading column fills more of the shell next to full-width tables.
   Default .rf-prose stays at 65ch / body-md for articles and marketing. */
.rf-prose--wide {
  box-sizing: content-box;
  max-inline-size: var(--rf-measure-report); /* 64ch */
  font-size: var(--rf-text-lg); /* 22px â€” larger ch â†’ wider physical column */
  line-height: var(--rf-leading-body);
}

/* Every direct child gets the paragraph gap. Headings keep a little more
   air above them. Margins on the children are cleared so a div, a figure,
   a list, or a card cannot sit flush against its neighbor. */
.rf-prose > * {
  margin-block: 0;
  margin-inline: 0;
}

.rf-prose > * + * {
  margin-block-start: var(--rf-space-5);
}

.rf-prose > * + :is(h1, h2, h3, h4) {
  margin-block-start: var(--rf-space-6);
}

.rf-prose > :is(h1, h2, h3, h4) {
  font-family: var(--rf-font-serif);
  font-weight: var(--rf-weight-bold);
  line-height: var(--rf-leading-display);
  letter-spacing: var(--rf-tracking-display);
  color: var(--rf-ink-deep);
}

.rf-prose em {
  font-style: italic;
  font-family: var(--rf-font-sans);
}

.rf-prose strong {
  font-weight: var(--rf-weight-semibold);
}

.rf-prose > :is(h1, h2, h3, h4):first-child {
  margin-block-start: 0;
}

.rf-prose > .rf-card {
  max-inline-size: none;
}

a {
  color: var(--rf-green);
}

a:hover {
  color: var(--rf-green-deep);
}

:focus-visible {
  outline: none;
  box-shadow: var(--rf-focus);
}


/* Portable elements live in elements.css (imported via rf.css). */

/* â€”â€” Atmosphere (thin CDS primitives; PDS adds slide positioning) â€”â€” */
.rf-atmosphere {
  opacity: var(--rf-atmosphere);
  pointer-events: none;
  user-select: none;
}

.rf-atmosphere--quiet {
  opacity: var(--rf-atmosphere-quiet);
}

.rf-atmosphere--spot {
  opacity: var(--rf-atmosphere-spot);
}

/* Supporting copy sitting on roots / line art â€” weight before frosting */
.rf-lede-over-atmosphere {
  font-family: var(--rf-font-sans);
  font-weight: 600;
  color: var(--rf-ink-muted);
}

/* â€”â€” Forms â€”â€” */
.field {
  display: grid;
  gap: var(--rf-space-1);
}

.field label {
  font-size: var(--rf-text-sm);
  font-weight: 600;
  color: var(--rf-ink);
}

.field .hint,
.field .error {
  font-size: var(--rf-text-sm);
  color: var(--rf-ink-soft);
}

.field .error {
  color: var(--rf-danger);
}

.input,
.select,
.textarea {
  font: inherit;
  color: var(--rf-ink);
  background: var(--rf-white);
  border: 1.5px solid color-mix(in srgb, var(--rf-ink) 18%, transparent);
  border-radius: var(--rf-radius-sm);
  padding-block: 0.65rem;
  padding-inline: 0.8rem;
  display: block;
  inline-size: 100%; /* form fields: fill the field column (suggestion to parent width) */
}

.textarea {
  min-block-size: 6rem;
  resize: vertical;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: color-mix(in srgb, var(--rf-ink) 32%, transparent);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--rf-green);
  box-shadow: var(--rf-focus);
}

.field--error .input {
  border-color: var(--rf-danger);
}

.check,
.radio {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: var(--rf-text-sm);
  color: var(--rf-ink-muted);
}

.check input,
.radio input {
  margin-top: 0.2rem;
  accent-color: var(--rf-green);
}


/* â€”â€” Feedback motion â€”â€” */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2.5px solid var(--rf-green-soft);
  border-top-color: var(--rf-green);
  border-radius: 50%;
  animation: rf-spin 0.7s linear infinite;
}

@keyframes rf-spin {
  to {
    transform: rotate(360deg);
  }
}

.progress {
  height: 0.4rem;
  background: var(--rf-panel);
  border-radius: var(--rf-radius-pill);
  overflow: hidden;
  max-width: 16rem;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--rf-green);
  border-radius: inherit;
}

/* Quote. One attribution. Omit the avatar, the role, or both.
   White card, the same 4px cream-deep edge as a white surface.
   The Knile mark sits in the top corner. The words start beside it. */
.rf-quote {
  margin: 0;
  max-inline-size: none;
  padding: var(--rf-space-5);
}

.rf-quote blockquote {
  margin: 0;
  padding: 0;
}

.rf-quote blockquote::before,
.rf-quote blockquote::after {
  content: none;
}

.rf-quote blockquote p {
  position: relative;
  margin: 0;
  padding-inline-start: 5.75rem;
  font-family: var(--rf-font-serif);
  font-size: var(--rf-text-lg);
  line-height: var(--rf-leading-callout);
  color: var(--rf-ink);
}

.rf-quote blockquote p::before {
  content: "\201C";
  position: absolute;
  inset-inline-start: 0;
  top: var(--rf-space-2);
  display: block;
  margin: 0;
  font-family: var(--rf-font-serif);
  font-size: 9.5rem;
  font-weight: var(--rf-weight-bold);
  line-height: 0.8;
  color: var(--rf-cream-deep);
}

.rf-quote figcaption {
  margin-block-start: var(--rf-space-5);
  padding-inline-start: 5.75rem;
  font-style: normal;
}

.rf-quote__who {
  display: flex;
  align-items: center;
  gap: var(--rf-space-3);
}

.rf-quote__id {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.rf-quote__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--rf-cream-deep);
}

.rf-quote__name,
.rf-review__name {
  font-weight: var(--rf-weight-bold);
  color: var(--rf-ink);
}

.rf-quote__role,
.rf-review__role,
.rf-review__date {
  font-size: var(--rf-text-sm);
  color: var(--rf-ink-muted);
  text-decoration: none;
}

a.rf-quote__role:hover {
  text-decoration: underline;
}

/* Citation. A document excerpt, not a person. The rule hangs left of the words. */
.rf-cite {
  position: relative;
  left: -38px;
  overflow: visible;
  max-width: 40rem;
  margin: 0;
  background: transparent;
  border: 0;
  border-left: 4px solid var(--rf-orange);
  border-radius: 0;
  padding: var(--rf-space-6);
}

.rf-cite::after {
  content: "\201D";
  position: absolute;
  z-index: 1;
  inset-inline-start: calc(100% + var(--rf-space-3));
  inset-block-start: 50%;
  transform: translateY(-50%);
  font-family: var(--rf-font-serif);
  font-size: 32rem;
  line-height: 0.7;
  color: var(--rf-orange);
  opacity: 0.28;
  pointer-events: none;
}

.rf-cite p,
.rf-cite cite {
  position: relative;
  z-index: 1;
}

.rf-cite p {
  margin: 0;
  color: var(--rf-ink);
  font-family: var(--rf-font-serif);
  font-size: var(--rf-text-lg);
  font-weight: var(--rf-weight-regular);
  line-height: var(--rf-leading-callout);
}

.rf-cite cite,
.rf-cite cite a {
  font-size: var(--rf-text-md);
}

.rf-cite cite {
  display: block;
  margin-block-start: var(--rf-space-5);
  font-family: var(--rf-font-sans);
  font-style: normal;
  line-height: var(--rf-leading-body);
}

/* Review card. Sits in the card grid. Role line is optional. */
.rf-review {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  margin: 0;
  padding: var(--rf-space-5);
}

.rf-review > * + * {
  margin-block-start: var(--rf-space-3);
}

.rf-review__rating + .rf-review__title {
  margin-block-start: var(--rf-space-2);
}

.rf-review__rating {
  position: relative;
  margin: 0;
}

.rf-review__stars {
  display: flex;
  gap: 0.2rem;
}

.rf-review__star {
  width: 1rem;
  height: 1rem;
  background: color-mix(in srgb, var(--rf-orange) 28%, var(--rf-cream));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rf-review__star--on {
  background: var(--rf-orange);
}

.rf-review__score {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rf-review__title {
  margin: 0;
  font-family: var(--rf-font-serif);
  font-size: var(--rf-text-xl);
  font-weight: var(--rf-weight-semibold);
  letter-spacing: var(--rf-tracking-display);
  line-height: var(--rf-leading-snug);
  color: var(--rf-ink);
}

.rf-review__title + .rf-review__body {
  margin-block-start: var(--rf-space-3);
}

.rf-review__body {
  margin-block-end: 0;
  margin-inline: 0;
  color: var(--rf-ink);
  font-size: var(--rf-text-md);
}

.rf-review__by {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--rf-space-3);
  margin-block-start: var(--rf-space-5);
}

.rf-review__who {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

a.rf-review__role:hover {
  text-decoration: underline;
}

/* Gallery. The stage and the thumbs are white surfaces. The picture
   keeps a steady height. Gaps use the footer panel. */
.rf-gallery__frame {
  position: relative;
  overflow: hidden;
}

.rf-gallery__stage {
  margin: 0;
}

.rf-gallery__stage.surface,
.rf-gallery__thumb.surface {
  padding: 0;
  overflow: hidden;
}

.rf-gallery__open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(12rem, 46vw, 28rem);
  padding: 0;
  border: 0;
  background: var(--rf-panel);
  cursor: zoom-in;
}

.rf-gallery__open:focus-visible,
.rf-gallery__thumb:focus-visible,
.rf-gallery__float:focus-visible,
.rf-gallery__step:focus-visible,
.rf-gallery__close:focus-visible,
.rf-gallery__expand:focus-visible {
  outline: none;
  box-shadow: var(--rf-focus);
}

.rf-gallery__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rf-gallery__caption {
  margin: 0;
  font-style: normal;
  color: var(--rf-ink);
}

.rf-gallery__count {
  font-size: var(--rf-text-sm);
  font-weight: var(--rf-weight-bold);
  color: var(--rf-ink-muted);
}

.rf-gallery__strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rf-space-3);
  margin: var(--rf-space-5) 0 0;
  padding: 2px;
  list-style: none;
}

.rf-gallery__item {
  flex: 1 1 0;
  min-width: 0;
}

.rf-gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.rf-gallery__thumb[aria-current="true"] {
  border-color: var(--rf-green);
}

.rf-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.rf-gallery:not(:has(.rf-gallery__item + .rf-gallery__item)) .rf-gallery__strip,
.rf-gallery:not(:has(.rf-gallery__item + .rf-gallery__item)) .rf-gallery__count {
  display: none;
}

.rf-gallery__dialog {
  width: fit-content;
  max-width: min(72rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  color: var(--rf-ink);
  overflow: hidden;
}

.rf-gallery__dialog[open] {
  display: flex;
  flex-direction: column;
}

.rf-gallery__dialog::backdrop {
  background: color-mix(in srgb, var(--rf-ink) 62%, transparent);
}

.rf-gallery__dialog-stage {
  position: relative;
  min-height: 0;
  background: var(--rf-white);
}

.rf-gallery__dialog-scroll img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(72rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 8rem);
}

.rf-gallery__float {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rf-white);
  color: var(--rf-ink);
  box-shadow: var(--rf-shadow-md);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 500ms ease, transform 500ms ease;
}

.rf-gallery__float[hidden] {
  display: none;
}

.rf-gallery__float.rf-gallery__prev {
  inset-inline-start: 0;
  transform: translateY(-50%) translateX(-100%);
}

.rf-gallery__float.rf-gallery__next {
  inset-inline-end: 0;
  transform: translateY(-50%) translateX(100%);
}

.rf-gallery__dialog-stage:hover .rf-gallery__float,
.rf-gallery__frame:hover > .rf-gallery__float,
.rf-gallery__frame:focus-within > .rf-gallery__float {
  opacity: 1;
  pointer-events: auto;
}

.rf-gallery__dialog-stage:hover .rf-gallery__float.rf-gallery__prev,
.rf-gallery__frame:hover > .rf-gallery__float.rf-gallery__prev,
.rf-gallery__frame:focus-within > .rf-gallery__float.rf-gallery__prev {
  transform: translateY(-50%) translateX(var(--rf-space-4));
}

.rf-gallery__dialog-stage:hover .rf-gallery__float.rf-gallery__next,
.rf-gallery__frame:hover > .rf-gallery__float.rf-gallery__next,
.rf-gallery__frame:focus-within > .rf-gallery__float.rf-gallery__next {
  transform: translateY(-50%) translateX(calc(var(--rf-space-4) * -1));
}

@media (prefers-reduced-motion: reduce) {
  .rf-gallery__float {
    transition: none;
  }
}

.rf-gallery__dialog-foot,
.rf-gallery__caption,
.rf-gallery__head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--rf-space-3);
  padding: 0.7rem var(--rf-space-4);
  background: var(--rf-panel);
}

.rf-gallery__head,
.rf-gallery__caption {
  block-size: 3.25rem;
}

.rf-gallery__stage.surface .rf-gallery__name {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--rf-font-serif);
  font-size: var(--rf-text-lg);
  font-weight: var(--rf-weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--rf-tracking-display);
  color: var(--rf-green);
}

.rf-gallery__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rf-gallery__dialog-foot {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  flex: none;
}

.rf-gallery__dialog-actions {
  display: flex;
  grid-column: 1;
  justify-self: start;
  gap: 0.4rem;
}

.rf-gallery__step,
.rf-gallery__close,
.rf-gallery__expand {
  font-family: var(--rf-font-sans);
  font-size: var(--rf-text-sm);
  font-weight: 500;
  color: var(--rf-ink);
  cursor: pointer;
}

.rf-gallery__step {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--rf-rule);
  border-radius: 0.3rem;
  background: var(--rf-white);
}

.rf-gallery__step[hidden] {
  display: none;
}

.rf-gallery__step:hover {
  border-color: var(--rf-green-2);
}

.rf-gallery__close,
.rf-gallery__expand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
  padding: 0.3rem 0.15rem;
  border: 0;
  background: transparent;
}

.rf-gallery__dialog-foot > .rf-gallery__close {
  grid-column: 3;
}

.rf-gallery__close-icon {
  flex: none;
}

.rf-gallery__close:hover,
.rf-gallery__expand:hover {
  color: var(--rf-green);
}

.rf-gallery__dialog-caption {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-family: var(--rf-font-serif);
  font-size: var(--rf-text-sm);
  font-weight: var(--rf-weight-bold);
  line-height: 1.4;
  color: var(--rf-ink);
}

.rf-gallery__dialog-count {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 40rem) {
  .rf-gallery__item {
    flex: 1 0 calc((100% - 2 * var(--rf-space-3)) / 3);
  }

  .rf-gallery__dialog-foot:has(.rf-gallery__dialog-actions) {
    grid-template-columns: 1fr auto;
  }

  .rf-gallery__dialog-foot:has(.rf-gallery__dialog-actions) .rf-gallery__close {
    grid-column: 2;
    grid-row: 1;
  }

  .rf-gallery__dialog-foot:has(.rf-gallery__dialog-actions) .rf-gallery__dialog-caption {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* —— Atoms: number, slider, card, divider, badge, avatar, time —— */

.rf-number {
  display: flex;
  align-items: stretch;
  max-inline-size: 12rem;
}

.rf-number .input {
  text-align: center;
  border-radius: 0;
  -moz-appearance: textfield;
}

.rf-number .input::-webkit-outer-spin-button,
.rf-number .input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rf-number__step {
  font: inherit;
  font-size: var(--rf-text-sm);
  font-weight: var(--rf-weight-semibold);
  inline-size: 2.6rem;
  background: var(--rf-panel);
  color: var(--rf-ink);
  border: 1.5px solid color-mix(in srgb, var(--rf-ink) 18%, transparent);
  cursor: pointer;
}

.rf-number__step:first-child {
  border-start-start-radius: var(--rf-radius-sm);
  border-end-start-radius: var(--rf-radius-sm);
  border-inline-end: 0;
}

.rf-number__step:last-child {
  border-start-end-radius: var(--rf-radius-sm);
  border-end-end-radius: var(--rf-radius-sm);
  border-inline-start: 0;
}

.rf-number__step:hover {
  background: var(--rf-cream);
}

.rf-number__step:focus-visible {
  outline: none;
  box-shadow: var(--rf-focus);
  position: relative;
  z-index: 1;
}

.rf-slider {
  appearance: none;
  display: block;
  inline-size: 100%;
  block-size: 0.4rem;
  margin: 0.65rem 0 0;
  border-radius: var(--rf-radius-pill);
  background: var(--rf-panel);
  accent-color: var(--rf-green);
  cursor: pointer;
}

.rf-slider:focus-visible {
  outline: none;
  box-shadow: var(--rf-focus);
}

.rf-slider__value {
  font-variant-numeric: tabular-nums;
  color: var(--rf-ink-muted);
}

.rf-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-inline-size: 22rem;
  padding: var(--rf-space-5);
}

.rf-card > * + * {
  margin-block-start: var(--rf-space-3);
}

.rf-card__title {
  font-family: var(--rf-font-serif);
  font-size: var(--rf-text-xl);
  font-weight: var(--rf-weight-semibold);
  letter-spacing: var(--rf-tracking-display);
  line-height: var(--rf-leading-snug);
  margin: 0;
}

.rf-card > .rf-card__title + p {
  margin-block-start: var(--rf-space-3);
}

.rf-card p {
  margin-block-end: 0;
  margin-inline: 0;
  color: var(--rf-ink-muted);
  font-size: var(--rf-text-sm);
}

.rf-card > .rf-card__foot {
  margin-block-start: var(--rf-space-5);
  padding-top: var(--rf-space-3);
  border-top: 1px solid var(--rf-rule);
}

.rf-divider {
  border: 0;
  block-size: 1px;
  margin: var(--rf-space-4) 0;
  background: var(--rf-rule);
}

.rf-divider--vertical {
  inline-size: 1px;
  block-size: 1.25rem;
  margin: 0;
  align-self: center;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 1.75rem;
  min-block-size: 1.75rem;
  padding-inline: 0.35rem;
  border-radius: var(--rf-radius-pill);
  background: var(--rf-green);
  color: var(--rf-on-primary);
  font-size: var(--rf-text-sm);
  font-weight: var(--rf-weight-semibold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rf-badge--danger {
  background: var(--rf-danger-bg);
  color: var(--rf-danger);
}

.rf-badge--dot {
  min-inline-size: 0.7rem;
  min-block-size: 0.7rem;
  padding: 0;
  background: var(--rf-green);
}

.rf-badge-host {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--rf-text-sm);
  font-weight: var(--rf-weight-semibold);
}

.rf-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: var(--rf-radius-pill);
  background: var(--rf-green-soft);
  color: var(--rf-green-deep);
  font-size: var(--rf-text-sm);
  font-weight: var(--rf-weight-semibold);
  overflow: hidden;
}

img.rf-avatar {
  object-fit: cover;
  background: var(--rf-panel);
}

.rf-avatar--mark {
  object-fit: contain;
  padding: 0.45rem;
  background: var(--rf-cream);
}

.rf-time {
  font-size: var(--rf-text-sm);
  color: var(--rf-ink-muted);
}

.rf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--rf-text-sm);
}

.rf-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rf-breadcrumb li + li::before {
  content: "";
  flex-shrink: 0;
  inline-size: 0.45rem;
  block-size: 0.45rem;
  box-sizing: border-box;
  border-radius: var(--rf-radius-pill);
  background: var(--rf-green-soft);
  border: 1.5px solid var(--rf-green-deep);
}

.rf-breadcrumb [aria-current="page"] {
  color: var(--rf-ink);
  font-weight: var(--rf-weight-semibold);
}

/* Primary nav. A row of links. The bar that holds it stays site chrome. */
.rf-nav {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.rf-nav a {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-inline: var(--rf-space-5);
  border-left: 1px solid var(--rf-rule);
  color: var(--rf-ink-deep);
  font-size: var(--rf-text-sm);
  font-weight: var(--rf-weight-regular);
  letter-spacing: var(--rf-tracking-meta);
  text-decoration: none;
  text-transform: uppercase;
  background-color: transparent;
  background-image: linear-gradient(var(--rf-panel), var(--rf-panel));
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 0%;
  transition: background-size 250ms ease, color 250ms ease;
}

.rf-nav a:hover,
.rf-nav a:focus-visible {
  background-size: 100% 100%;
  color: var(--rf-green-deep);
}

.rf-nav a[aria-current="page"],
.rf-nav a[aria-current="page"]:hover,
.rf-nav a[aria-current="page"]:focus-visible {
  background: var(--rf-cream);
  color: var(--rf-green-deep);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .rf-nav a {
    transition: none;
  }
}

/* Brand marks from Simple Icons (CC0), in icons/. They inherit the link color.
   The link is a fixed square. YouTube's artwork sits inside padding, so that
   mark is drawn larger to match the others. X is a letter, so it stays lighter. */
.rf-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--rf-ink);
  text-decoration: none;
}

.rf-icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.rf-icon--youtube {
  width: 1.9rem;
  height: 1.9rem;
}

.rf-icon-link:hover,
.rf-icon-link:focus-visible {
  color: var(--rf-green);
}

.rf-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rf-space-2);
  align-items: center;
}

.rf-skeleton-card {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--rf-space-3);
  max-inline-size: 22rem;
  align-items: center;
}

.rf-skeleton-card .rf-skeleton--line {
  grid-column: 2;
}

.rf-skeleton-card .rf-skeleton--avatar {
  grid-row: 1 / span 2;
}

.rf-skeleton {
  display: block;
  background: var(--rf-panel);
  border-radius: var(--rf-radius-sm);
  block-size: 1rem;
  animation: rf-skeleton 1.4s ease-in-out infinite;
}

.rf-skeleton--short {
  inline-size: 60%;
}

.rf-skeleton--avatar {
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: var(--rf-radius-pill);
}

@keyframes rf-skeleton {
  50% {
    opacity: 0.5;
  }
}

.rf-tooltip {
  position: relative;
  display: inline-flex;
}

.rf-tooltip__bubble {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + 0.45rem);
  inset-inline-start: 0;
  inline-size: max-content;
  max-inline-size: 16rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--rf-radius-sm);
  background: var(--rf-ink);
  color: var(--rf-cream);
  font-size: var(--rf-text-sm);
  line-height: var(--rf-leading-snug);
  opacity: 0;
  pointer-events: none;
}

.rf-tooltip:hover .rf-tooltip__bubble,
.rf-tooltip:focus-within .rf-tooltip__bubble {
  opacity: 1;
}

.rf-dialog {
  border: 0;
  padding: var(--rf-space-5);
  border-radius: var(--rf-radius);
  background: var(--rf-white);
  color: var(--rf-ink);
  box-shadow: var(--rf-shadow-md);
  max-inline-size: min(28rem, calc(100% - 2rem));
}

.rf-dialog::backdrop {
  background: color-mix(in srgb, var(--rf-ink) 45%, transparent);
}

.rf-dialog p {
  margin: 0;
}

.rf-dialog form {
  display: flex;
  flex-direction: column;
}

.rf-dialog form > * {
  margin-block: 0;
}

.rf-dialog form > * + * {
  margin-block-start: var(--rf-space-3);
}

.rf-dialog form > .rf-cluster {
  margin-block-start: var(--rf-space-5);
}

.rf-dialog form :is(h2, h3, .ds-h2, .ds-h3) {
  margin-block: 0;
}

.rf-toast-stage {
  position: relative;
  min-block-size: 8rem;
  padding: var(--rf-space-4);
  border: 1px solid var(--rf-rule);
  border-radius: var(--rf-radius);
  background: var(--rf-cream);
}

.rf-toast {
  position: absolute;
  inset-block-start: var(--rf-space-3);
  inset-inline-end: var(--rf-space-3);
  display: flex;
  align-items: center;
  gap: var(--rf-space-3);
  max-inline-size: min(22rem, calc(100% - 1.5rem));
  padding: 0.7rem 0.85rem;
  background: var(--rf-white);
  border: 1px solid color-mix(in srgb, var(--rf-green) 35%, var(--rf-rule));
  border-inline-start: 3px solid var(--rf-green);
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow);
}

.rf-toast[hidden] {
  display: none;
}

.rf-toast p {
  margin: 0;
  font-size: var(--rf-text-sm);
}

/* Service offer. One full-width card: copy and price, then a quote band.
   White, beige, and dark moss. The edge matches .surface. */
.rf-offer {
  --rf-surface-fill: var(--rf-white);
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.rf-offer--panel {
  --rf-surface-fill: var(--rf-panel);
}

.rf-offer--dark {
  --rf-surface-fill: var(--rf-surface-dark);
  color: var(--rf-on-dark);
}

.rf-offer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16.25rem;
  column-gap: var(--rf-space-6);
  align-items: start;
  padding: var(--rf-space-6) var(--rf-space-7) var(--rf-space-5);
}

.rf-offer__eyebrow {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin: 0 0 var(--rf-space-3);
  padding: var(--rf-space-3) var(--rf-space-6);
  border-radius: var(--rf-radius-pill);
  background: var(--rf-panel);
  color: var(--rf-brown);
  font-size: 0.875rem;
  line-height: 1;
}

.rf-offer--panel .rf-offer__eyebrow {
  background: var(--rf-surface-dark);
  color: var(--rf-on-dark);
}

.rf-offer--dark .rf-offer__eyebrow {
  background: var(--rf-panel);
  color: var(--rf-brown);
}

.rf-offer__copy {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.rf-offer__title,
.rf-offer__amount {
  margin: 0;
  font-family: var(--rf-font-serif);
  font-weight: var(--rf-weight-bold);
  letter-spacing: var(--rf-tracking-display);
  color: var(--rf-green-logo);
}

.rf-offer__title {
  font-size: var(--rf-text-xl);
  line-height: var(--rf-leading-snug);
}

.rf-offer__lede,
.rf-offer__copy li {
  margin: 0;
  font-size: var(--rf-text-lg);
  line-height: var(--rf-leading-callout);
  color: var(--rf-brown);
}

.rf-offer__lede {
  margin-top: var(--rf-space-4);
}

.rf-offer__copy ul {
  margin: var(--rf-space-4) 0 0;
  padding-inline-start: var(--rf-space-5);
}

.rf-offer__copy li + li {
  margin-top: var(--rf-space-2);
}

.rf-offer__price {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rf-space-2);
}

.rf-offer__amount {
  font-size: var(--rf-text-lg);
  line-height: 1.2;
  letter-spacing: 0;
}

.rf-offer__cadence {
  margin: 0 0 var(--rf-space-3);
  font-size: var(--rf-text-sm);
  line-height: var(--rf-leading-ui);
  color: var(--rf-brown);
}

.rf-offer--dark .rf-offer__title,
.rf-offer--dark .rf-offer__amount {
  color: var(--rf-on-dark);
}

.rf-offer--dark .rf-offer__lede,
.rf-offer--dark .rf-offer__copy li,
.rf-offer--dark .rf-offer__cadence {
  color: var(--rf-on-dark-muted);
}

.rf-offer__band {
  display: flex;
  align-items: center;
  gap: var(--rf-space-6);
  padding: var(--rf-space-5) var(--rf-space-7);
  background: var(--rf-green-soft);
  color: var(--rf-brown);
}

.rf-offer__portrait {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--rf-radius-pill);
  object-fit: cover;
  flex: none;
}

.rf-offer__words {
  margin: 0;
  min-width: 0;
}

.rf-offer__quote,
.rf-offer__by {
  margin: 0;
  font-size: var(--rf-text-sm);
  line-height: var(--rf-leading-callout);
  color: var(--rf-brown);
}

.rf-offer__quote {
  font-style: italic;
}

.rf-offer__by {
  margin-top: var(--rf-space-3);
}

.rf-offer__name {
  font-weight: var(--rf-weight-bold);
}

@media (max-width: 40rem) {
  .rf-offer__main {
    grid-template-columns: 1fr;
    padding: var(--rf-space-5);
  }

  .rf-offer__eyebrow {
    padding-inline: var(--rf-space-4);
  }

  .rf-offer__price {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--rf-space-4);
  }

  .rf-offer__band {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rf-space-4);
    padding: var(--rf-space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-skeleton {
    animation: none;
  }
}

