/* Betöltött pozíciók — végtelenített sorok. Eredetileg a Weebly Embed Code blokkban élt. */
.ms-posmq { margin: 64px 0 0; }
.ms-posmq__head { max-width: 660px; margin: 0 0 28px; }
.ms-posmq__note { margin: 10px 0 0; }

.ms-posmq__rows { display: flex; flex-direction: column; gap: 12px; }

/* A sor kivágja a túllógó kártyákat, a két szélén pedig lágyan elhalványítja
   őket. A mask háttérfüggetlen — bármilyen szekciószínnel jól néz ki. */
.ms-posmq__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
}

.ms-posmq__track { display: flex; width: -webkit-max-content; width: max-content; will-change: transform; }
.ms-posmq__set   { display: flex; gap: 12px; padding-right: 12px; }

/* Az időtartamot a positions.js számolja a sor tényleges szélességéből (55 képpont/másodperc),
   így bármennyi pozíció kerül egy sorba, mindhárom azonos tempóval halad. Ez csak a tartalék érték. */
.ms-posmq__row--1 .ms-posmq__track,
.ms-posmq__row--3 .ms-posmq__track { animation: msPosmqL var(--ms-posmq-dur, 100s) linear infinite; }
.ms-posmq__row--2 .ms-posmq__track { animation: msPosmqR var(--ms-posmq-dur, 100s) linear infinite; }

.ms-posmq__row:hover .ms-posmq__track,
.ms-posmq__row:focus-within .ms-posmq__track { animation-play-state: paused; }

@keyframes msPosmqL { from { transform: translateX(0);    } to { transform: translateX(-50%); } }
@keyframes msPosmqR { from { transform: translateX(-50%); } to { transform: translateX(0);    } }

.ms-posmq__card {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  min-height: 62px;
  padding: 12px 20px;
  background: #FAFAF8;
  border: 1px solid rgba(74, 65, 58, .12);
  border-radius: 2px;
  transition: border-color 140ms cubic-bezier(.4, 0, .2, 1), box-shadow 140ms cubic-bezier(.4, 0, .2, 1);
}
.ms-posmq__card:hover {
  border-color: rgba(184, 130, 77, .55);
  box-shadow: 0 1px 2px rgba(46, 40, 35, .05), 0 2px 6px rgba(46, 40, 35, .05);
}
/* Off-White szekcióban a kártya Pale Cream lesz — lásd a felületmegfordítás szabályt. */
.ms-posmq--on-card .ms-posmq__card { background: #F5F0EA; }

.ms-posmq__cat {
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  color: #6E635A;
  white-space: nowrap;
}
.ms-posmq__name {
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: #2E2823;
  white-space: nowrap;
}

.ms-posmq__more {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 2px;
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #5E554D;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 130, 77, .5);
  transition: color 140ms cubic-bezier(.4, 0, .2, 1), border-color 140ms cubic-bezier(.4, 0, .2, 1);
}
.ms-posmq__more:hover { color: #2E2823; border-bottom-color: #B8824D; }
.ms-posmq__more:focus-visible { outline: 2px solid #2A5E4D; outline-offset: 3px; border-radius: 2px; }

@media (max-width: 767px) {
  .ms-posmq { margin-top: 48px; }
  .ms-posmq__card { min-height: 56px; padding: 10px 16px; }
  .ms-posmq__name { font-size: 14px; }
  .ms-posmq__cat  { font-size: 10px; }
  .ms-posmq__row {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
}

/* Csökkentett mozgás: nincs animáció, a pozíciók tördelt álló listaként állnak. */
@media (prefers-reduced-motion: reduce) {
  .ms-posmq__row {
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  /* Az `!important` itt kell: a fenti `.ms-posmq__row--1 .ms-posmq__track`
     szabályok specifikusabbak, nélküle nem kapcsolna ki az animáció. */
  .ms-posmq__track {
    display: block;
    width: auto;
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
  .ms-posmq__set   { flex-wrap: wrap; gap: 12px; padding-right: 0; }
  .ms-posmq__set[aria-hidden="true"] { display: none; }
}
