/* TOP only. Native scrolling remains usable without JavaScript. */
#home-records-title>span{display:inline-block}
.records-carousel{--record-gap:20px;--record-width:calc((100% - 3 * var(--record-gap))/4)}
.records-carousel__toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;min-height:44px}
.records-carousel__sort{font-size:var(--read-13);font-weight:500;color:var(--omoio-charcoal);margin:0;white-space:nowrap}
.records-carousel__sort::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--omoio-green);margin-right:9px;vertical-align:3px}
.records-carousel__controls{display:flex;align-items:center;gap:10px}
.records-carousel__controls[hidden]{display:none}
.records-carousel__position{font:500 13px/1.5 var(--ff-sans);font-variant-numeric:tabular-nums;color:#625e58;min-width:54px;text-align:center;margin:0 4px 0 0}
.records-carousel__controls button{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:1px solid var(--omoio-green);border-radius:50%;background:transparent;color:var(--omoio-charcoal);cursor:pointer}
@media (hover: hover) {
  .records-carousel__controls button:not([aria-disabled="true"]):hover {
    background: var(--omoio-green);
    border-color: var(--omoio-green);
    color: #fff;
  }
}
.records-carousel__controls button[aria-disabled="true"]{background:transparent;border-color:#d7cec2;color:#625e58;cursor:default}
.records-carousel__controls .icon{width:21px;height:21px}
.records-carousel__previous .icon{transform:rotate(180deg)}
.home-page .records-carousel .records-carousel__track{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:var(--record-width);gap:var(--record-gap);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#8aa397 #eae2d7;padding:0 0 12px}
.records-carousel__track::-webkit-scrollbar{height:4px}
.records-carousel__track::-webkit-scrollbar-thumb{background:#8aa397;border-radius:4px}
.records-carousel__track::-webkit-scrollbar-track{background:var(--omoio-green-tint)}
.home-page .records-carousel .home-record{display:flex;flex-direction:column;scroll-snap-align:start;min-width:0;background:#fdfcf9;border:1px solid #e3ded6;border-radius:6px;overflow:hidden}
.home-page .records-carousel .home-record__photo{aspect-ratio:4/3;flex:none;background:var(--omoio-ivory);padding:8px;border-color:#e3ded6}
.home-page .records-carousel .home-record__photo img{width:100%;height:100%;object-fit:contain}
.home-page .records-carousel .home-record__body{display:flex;flex:1;flex-direction:column;padding:20px 18px}
.home-page .records-carousel .home-record__category{align-self:flex-start;max-width:100%;padding:4px 11px;border:1px solid #e3ded6;border-radius:999px;background:var(--omoio-green-tint);color:var(--omoio-charcoal);font-size:var(--read-12);line-height:1.6;margin-bottom:12px}
.home-page .records-carousel .home-record__body h3{font-size:var(--read-14);line-height:1.8;min-height:0;margin-bottom:16px;color:var(--omoio-charcoal);overflow-wrap:anywhere}
.home-page .records-carousel .home-record__price{margin-top:auto;padding-top:12px;border-color:#e3ded6}
.home-page .records-carousel .home-record__price small{font-size:var(--read-11);color:#625e58}
.home-page .records-carousel .home-record__price strong{font-size:clamp(21px,2vw,28px);font-weight:600;line-height:1.55;color:#B33B32;letter-spacing:0;white-space:nowrap}
.home-page .records-carousel .home-record__date{font-size:var(--read-12);margin-top:10px}
/* Keep the source URL in the card markup for record updates. */
.home-page #records .records-carousel .home-record__body > a.home-textlink {
  display: none;
}
.records-carousel__hint{font-size:var(--read-12);line-height:1.8;color:#625e58;text-align:right;margin-top:10px}
.records-carousel__hint>span{font-size:var(--read-16);margin-right:6px}
.records-carousel :is(button,a):focus-visible,.records-carousel__track:focus-visible{outline:3px solid var(--omoio-green);outline-offset:3px}
.records-carousel__track a:focus-visible{outline-offset:0}
@media(min-width:640px) and (max-width:1023px){.records-carousel{--record-width:calc((100% - var(--record-gap))/2);--record-gap:18px}}
@media(max-width:639px){
  .records-carousel{--record-width:calc((100% - var(--record-gap))/1.2);--record-gap:14px}
  .records-carousel__toolbar{gap:8px;margin-bottom:16px}
  .records-carousel__sort{font-size:var(--read-12)}
  .records-carousel__sort::before{margin-right:6px}
  .records-carousel__controls{gap:7px}
  .records-carousel__position{min-width:40px;font-size:var(--read-12);margin-right:0}
  .home-page .records-carousel .home-record__body{padding:20px}
  .home-page .records-carousel .home-record__body h3{font-size:var(--read-15);line-height:1.8;margin-bottom:20px}
  .home-page .records-carousel .home-record__price strong{font-size:26px}
  .records-carousel__hint{text-align:left;font-size:var(--read-11)}
}
@media(prefers-reduced-motion:reduce){.records-carousel__track{scroll-behavior:auto}}

.record-tags{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;margin-bottom:12px}
.home-page .records-carousel .record-tags .record-detail-tag{max-width:100%;padding:4px 11px;margin:0;border:1px solid #e3ded6;border-radius:999px;background:#fff;color:var(--omoio-charcoal);font-size:var(--read-12);line-height:1.6;overflow-wrap:anywhere}
.home-page .records-carousel .record-tags .home-record__category{margin:0}


.home-page .records-carousel .home-record__body h3 a {
  color: var(--omoio-charcoal);
  text-underline-offset: 3px;
}
.home-page #records > .home-container > .home-centered .home-btn--outline {
  background: var(--omoio-ivory);
  border-color: #79736b;
  color: var(--omoio-charcoal);
  border-radius: 999px;
  font-weight: 500;
}
.home-page #records > .home-container > .home-centered .home-btn--outline:hover {
  background: #eae2d7;
  transform: none;
}
.home-page #records > .home-container > .home-centered .home-btn--outline:focus-visible {
  outline: 2px solid var(--omoio-green);
  outline-offset: 4px;
}

.home-page #records :is(.home-section__title,.home-eyebrow) {
  color: var(--omoio-charcoal);
}
.home-page #records :is(.home-section__lead,.home-small-note) {
  color: #625e58;
}

#records .records-mobile-copy { display: none; }

/* Mobile cards keep the next result visible while using native horizontal scrolling. */
@media (max-width: 767px) {
  .home-page #records .records-carousel {
    --record-gap: 10px;
    --record-width: calc(100% - 30px);
  }

  .home-page #records .records-carousel__track {
    align-items: stretch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .home-page #records .records-carousel__track::-webkit-scrollbar {
    display: none;
  }

  .home-page #records .records-carousel__hint {
    display: none;
  }

  .home-page #records .records-carousel .home-record {
    min-height: 300px;
  }

  .home-page #records .records-carousel .home-record__photo {
    height: auto;
    aspect-ratio: auto;
    padding: 0;
  }

  .home-page #records .records-carousel .home-record__photo img {
    display: block;
    width: 100%;
    height: auto;
  }

  #records .records-mobile-copy { display: inline; }
  #records .records-desktop-copy { display: none; }

  .home-page #records .records-carousel .home-record .home-record__body {
    padding: 9px 10px;
    min-width: 0;
  }

  .home-page #records .records-carousel .home-record__category {
    padding: 1px 7px;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
  }

  .home-page #records .records-carousel .home-record .home-record__body h3 {
    margin-bottom: 5px;
    line-height: 1.45;
  }

  .home-page #records .records-carousel .home-record__price {
    padding-top: 4px;
    gap: 0;
  }

  .home-page #records .records-carousel .home-record__price strong {
    font-size: 1.4375rem;
    line-height: 1.3;
  }
}
