/* Carrousel by Foldline: unframed, editorial reader for WordPress articles.
 * Everything is scoped to .flc; no site/theme styles are overwritten.
 * Inherits the article's font and text colour, including dark themes.
 */
.flc {
  --flc-accent: #157a0a;
  --flc-focus: #157a0a;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: clamp(1.75rem, 4vw, 3rem) auto;
  padding: 0;
  color: inherit;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  isolation: isolate;
}
.flc, .flc * { box-sizing: border-box; }
.flc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: .72rem 0 .85rem;
  border-top: 1px solid;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
}
.flc__category {
  min-width: 0;
  font-size: .79em;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: inherit;
}
.flc__navigation { flex: 0 0 auto; display: flex; align-items: center; gap: .35rem; }
.flc__arrow {
  appearance: none;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.flc__arrow svg { width: 17px; height: 17px; }
.flc__arrow:hover:not(:disabled) {
  color: var(--flc-accent);
  border-color: var(--flc-accent);
  background: color-mix(in srgb, var(--flc-accent) 7%, transparent);
}
.flc__arrow:disabled { cursor: not-allowed; opacity: .27; }
.flc__counter {
  min-width: 3.7rem;
  text-align: center;
  font-size: .79em;
  font-weight: 550;
  letter-spacing: .035em;
  font-variant-numeric: tabular-nums;
  color: inherit;
}
/* No frame, faux card, paper-coloured border or drop shadow around the artwork. */
.flc__track {
  display: flex;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.flc__track::-webkit-scrollbar { display: none; }
.flc__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
  background: transparent;
}
.flc__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}
.flc__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.flc__caption {
  margin: 0;
  padding: .8rem 0 .25rem;
  font-size: .82em;
  font-weight: 400;
  line-height: 1.55;
  color: inherit;
  background: transparent;
  border: 0;
  opacity: .75;
}
/* Quiet editorial progress: small horizontal rules instead of large carousel dots. */
.flc__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: .35rem 0 .15rem;
}
.flc__dot {
  appearance: none;
  display: grid;
  place-items: center;
  min-width: 26px;
  width: 31px;
  height: 32px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}
.flc__dot span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  opacity: .2;
  transition: opacity .18s ease, background-color .18s ease;
}
.flc__dot:hover span { opacity: .6; }
.flc__dot[aria-current="true"] span { background: var(--flc-accent); opacity: 1; }
.flc__track:focus-visible, .flc__arrow:focus-visible, .flc__dot:focus-visible {
  outline: 2px solid var(--flc-focus);
  outline-offset: 2px;
}
.flc:not(.flc--ready) .flc__arrow,
.flc:not(.flc--ready) .flc__pagination { display: none; }
@media (max-width: 640px) {
  .flc { margin-block: 1.5rem; }
  .flc__header { gap: .5rem; padding-block: .58rem .7rem; }
  .flc__category { font-size: .75em; }
  .flc__navigation { gap: .1rem; }
  .flc__arrow { width: 32px; height: 32px; }
  .flc__counter { min-width: 3.2rem; font-size: .72em; }
  .flc__dot { width: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .flc__track { scroll-behavior: auto; }
  .flc__arrow, .flc__dot span { transition: none; }
}

/* Verified publication links are a quiet appendix, never part of slide artwork. */
.flc__social {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:.5rem 1.2rem;
  margin: .6rem 0 .2rem;
  padding: .85rem 0 .1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: .83em;
  line-height:1.5;
  background: transparent;
}
.flc__social-label {
  flex: 0 0 100%;
  letter-spacing:.065em;
  text-transform: uppercase;
  opacity:.7;
  font-size:.8em;
}
.flc__social-link {
  color:inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
}
.flc__social-link:hover, .flc__social-link:focus-visible { color:var(--flc-accent); }
/* Inherited paper-filter effects on the img element should not alter slide colours.
 * A theme-wide overlay above the content must still be corrected in the theme. */
.flc__image { filter: none; mix-blend-mode: normal; opacity: 1; }
