/* Navegação horizontal dos exemplos, sem avanço automático. */
.demo-carousel-ready .demo-window { min-width: 0; overflow: hidden; }
.demo-carousel-ready .demo-tabs { min-width: 0; max-width: 100%; }
.demo-carousel-ready .table-scroll { overscroll-behavior-x: contain; }
.demo-carousel-ready .demo-panel:focus-visible { outline-offset: -4px; }
.demo-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid #e0e3d9;
}
.demo-position { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; min-width: 0; }
.demo-position > span { font-size: 14px; color: #596b4c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-position > strong { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--forest); }
.demo-navigation-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.demo-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #b8c5ab;
  border-radius: 4px;
  background: var(--white);
  color: var(--forest);
  cursor: pointer;
}
.demo-arrow svg { width: 22px; height: 22px; }
.demo-arrow-previous svg { transform: rotate(180deg); }
.demo-arrow:hover:not(:disabled) { background: #e8eedf; border-color: #8c9f7a; }
.demo-arrow:disabled { color: #8b9583; background: #f3f4ed; border-color: #dfe3d7; cursor: default; }

.demo-carousel-ready .demo-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  transition: height 220ms ease;
  overflow-anchor: none;
}
.demo-carousel-ready .demo-viewport::-webkit-scrollbar { display: none; }
.demo-carousel-ready .demo-track { display: flex; align-items: flex-start; width: 100%; }
.demo-carousel-ready .demo-panel {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.demo-swipe-hint { display: none; }

@media (max-width: 850px) {
  .demo-carousel-ready .demo-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #a8b696 transparent;
  }
  .demo-carousel-ready .demo-tabs button {
    flex: 0 0 auto;
    min-height: 68px;
    padding-inline: 16px;
    white-space: nowrap;
  }
  .demo-carousel-ready .demo-tabs button:first-child { padding-left: 8px; }
  .demo-carousel-ready .demo-swipe-hint {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
    color: #526545;
  }
}
@media (max-width: 640px) {
  .demo-navigation { padding: 16px; gap: 12px; align-items: flex-start; }
  .demo-position { display: block; }
  .demo-position > span { display: block; margin-bottom: 3px; }
  .demo-navigation-buttons { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-carousel-ready .demo-viewport { transition: none; }
}
@media print {
  .demo-navigation, .demo-swipe-hint { display: none !important; }
  .demo-carousel-ready .demo-viewport { height: auto !important; overflow: visible; }
  .demo-carousel-ready .demo-track { display: block; }
  .demo-carousel-ready .demo-panel { width: 100%; }
}
