.s6fi-shell,
.s6fi-shell * {
  box-sizing: border-box;
}

.s6fi-shell {
  width: 100%;
  background: var(--s6fi-bg, #000);
  color: var(--s6fi-ui, #fff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 1.8vw, 30px) clamp(18px, 2.6vw, 44px) clamp(48px, 4.5vw, 66px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* Each live specimen stripe has only two permanent rules.
   Dark stripes use white rules; light stripes use black rules. */
.s6fi-shell::before,
.s6fi-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--s6fi-rule, var(--s6fi-ui, #fff));
  z-index: 5;
  pointer-events: none;
}

.s6fi-shell::before { top: 0; }
.s6fi-shell::after { bottom: 0; }

.s6fi-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.s6fi-family {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: clamp(16px, 1.1vw, 22px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--s6fi-ui, #fff);
}

.s6fi-family a,
.s6fi-family a:visited {
  color: inherit !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.s6fi-classification {
  color: var(--s6fi-ui, #fff);
  opacity: var(--s6fi-classification-opacity, .68);
  font-size: clamp(12px, .82vw, 16px);
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.s6fi-sample-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.4vw, 24px) 0;
  position: relative;
  z-index: 1;
}

.s6fi-sample {
  display: block;
  width: 100%;
  color: var(--s6fi-specimen, var(--s6fi-ui, #fff));
  caret-color: var(--s6fi-specimen, var(--s6fi-ui, #fff));
  -webkit-text-fill-color: currentColor;
  line-height: .94;
  font-weight: 400;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  cursor: text;
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform, color;
}

@keyframes s6fi-specimen-pulse {
  0% {
    transform: scale(1);
    color: var(--s6fi-specimen, var(--s6fi-ui, #fff));
    caret-color: var(--s6fi-specimen, var(--s6fi-ui, #fff));
  }
  46% {
    transform: scale(var(--s6fi-specimen-hover-scale, 1.07));
    color: var(--s6fi-specimen-hover, #97FF7F);
    caret-color: var(--s6fi-specimen-hover, #97FF7F);
  }
  100% {
    transform: scale(1);
    color: var(--s6fi-specimen, var(--s6fi-ui, #fff));
    caret-color: var(--s6fi-specimen, var(--s6fi-ui, #fff));
  }
}

@media (hover: hover) and (pointer: fine) {
  .s6fi-shell:hover .s6fi-sample {
    animation: s6fi-specimen-pulse var(--s6fi-pulse-duration, 1700ms) cubic-bezier(.45, 0, .2, 1) 1 both;
  }
}

.s6fi-sample:focus,
.s6fi-sample:focus-visible,
.s6fi-sample:active {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.s6fi-footer {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: clamp(18px, 2.6vw, 44px);
  right: clamp(18px, 2.6vw, 44px);
  bottom: clamp(14px, 1.5vw, 24px);
  z-index: 3;
  pointer-events: none;
}

.s6fi-footer .s6fi-cta {
  pointer-events: auto;
}

.s6fi-cta,
.s6fi-cta:visited {
  position: relative;
  color: var(--s6fi-ui, #fff) !important;
  text-decoration: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: clamp(13px, .82vw, 16px);
  line-height: 1.2;
  padding: 2px 0 6px;
}

.s6fi-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms ease;
}

.s6fi-cta:hover::after,
.s6fi-cta:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.s6fi-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .s6fi-shell {
    padding: 14px 16px 48px;
  }

  .s6fi-meta {
    gap: 12px;
  }

  .s6fi-family {
    font-size: 14px;
  }

  .s6fi-classification {
    max-width: 55%;
    white-space: normal;
  }

  .s6fi-sample-wrap {
    padding: 10px 0;
  }

  /* Elementor's editor and public page can load different generated CSS.
     The inline variable preserves each widget's chosen mobile size and this
     rule makes the real phone match the editor preview. */
  .s6fi-shell .s6fi-sample {
    font-size: var(--s6fi-mobile-specimen-size, 44px) !important;
  }
}

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

  .s6fi-cta::after {
    transition: none;
  }
}

/* Index category filter -------------------------------------------------- */
.s6fi-filter,
.s6fi-filter * {
  box-sizing: border-box;
}

.s6fi-filter {
  --s6fi-filter-color: #000;
  --s6fi-filter-active: var(--s6fi-filter-color);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  color: var(--s6fi-filter-color);
  padding: 0;
  margin: 0;
}

.s6fi-filter-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative;
  display: inline-block;
  margin: 0 !important;
  padding: 3px 0 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--s6fi-filter-color) !important;
  font: inherit;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.s6fi-filter-button[hidden] {
  display: none !important;
}

.s6fi-filter-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--s6fi-filter-active, var(--s6fi-filter-color));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms ease;
}

.s6fi-filter-button:hover::after,
.s6fi-filter-button:focus-visible::after,
.s6fi-filter-button.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.s6fi-filter-button:focus,
.s6fi-filter-button:focus-visible,
.s6fi-filter-button:active {
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--s6fi-filter-color) !important;
}

.s6fi-filter-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.s6fi-filtered-out {
  display: none !important;
}

@media (max-width: 767px) {
  .s6fi-filter {
    row-gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s6fi-filter-button::after {
    transition: none;
  }
}

/* Make the CTA resilient against Elementor/theme link rules. */
.s6fi-shell .s6fi-footer .s6fi-cta,
.s6fi-shell .s6fi-footer .s6fi-cta:link,
.s6fi-shell .s6fi-footer .s6fi-cta:visited,
.s6fi-shell .s6fi-footer .s6fi-cta:hover,
.s6fi-shell .s6fi-footer .s6fi-cta:active {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--s6fi-ui, #fff) !important;
}

/* Elementor-only configuration warnings. These are emitted only in edit mode
   when a new entry is blank or a duplicate family is detected. */
.s6fi-editor-message {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid currentColor;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.s6fi-duplicate-out {
  display: none !important;
}
