/* Testimonials wall (section #testimonials). Pictures are added in the owner editor (Replace image).
   Empty slots (img/testi-slot.svg) never show on the live page. Text stories remain visible independently of images.
   testimonials.js turns the image list into rows that scroll in a loop; without it, one swipeable row. */
.ob-testi { padding-block: 72px 56px; overflow: hidden; }
.ob-testi .ob-sec-head { justify-items: center; text-align: center; }
.ob-testi-card:has(img[src*="testi-slot"]), .ob-testi-card:not(:has(img)) { display: none; }
.ob-testi:not(:has(.ob-testi-card img:not([src*="testi-slot"]), .ob-member-quote)) { display: none; }
.ob-testi-wall:not(:has(img:not([src*="testi-slot"]))) { display: none; }

/* Text stories share the site's navy, gold and condensed headings. Quotes stay selectable and readable. */
.ob-member-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.ob-member-quote { display: flex; flex-direction: column; margin: 0; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--deep); box-shadow: 0 16px 40px -30px #071d4540; }
.ob-member-topic { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; margin-bottom: 18px; }
.ob .ob-member-topic h3 { margin: 0; font: 900 26px/1.1 var(--f-head); color: inherit; text-transform: uppercase; letter-spacing: .005em; }
.ob-member-mark { font: 900 68px/.7 Georgia, serif; color: #be912e; transform: translateY(12px); }
.ob-member-quote blockquote { margin: 0 0 30px; }
.ob-member-quote blockquote p { margin: 0; font: 500 16px/1.7 var(--f-body); }
.ob-member-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.ob-member-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #edf2fa; color: var(--deep); font: 900 19px/1 var(--f-head); letter-spacing: .04em; }
.ob-member-name { font: 800 17px/1.3 var(--f-body); }
.ob-member-name small { display: block; margin-top: 3px; font: 500 12px/1.5 var(--f-body); color: var(--muted); }
.ob-member-featured { background: var(--deep); color: #fff; border-color: var(--deep); }
.ob-member-featured .ob-member-topic { color: #f5c451; }
.ob-member-featured .ob-member-mark { color: #f5c451; }
.ob-member-featured figcaption { border-color: #ffffff26; }
.ob-member-featured .ob-member-avatar { background: #f5c451; }
.ob-member-featured .ob-member-name small { color: #c5d2e6; }
.ob-member-photo { display: block; flex: none; width: 56px; height: 60px; object-fit: cover; border-radius: 10px; background: #edf2fa; }
.ob-member-photo-group { object-fit: contain; }
.ob-member-verified { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #276748; font: 700 11px/1.5 var(--f-body); }
.ob-member-verified>span { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #e7f4ec; color: #276748; font-size: 10px; }
.ob-member-featured .ob-member-verified { color: #cdeedb; }
/* Phones and tablets: the stories glide sideways in one continuous line (testimonials.js adds .is-moving and a
   repeated copy), so visitors see straight away there are several. Touching or hovering pauses it for reading.
   Without JS or with reduced motion it is a plain row people can swipe. Desktop keeps the three side by side. */
@media (max-width: 979px) {
  .ob-member-stories { position: relative; display: flex; gap: 14px; max-width: none; margin-top: 28px; padding-block: 4px 10px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ob-member-stories::-webkit-scrollbar { display: none; }
  .ob-member-quote { flex: 0 0 min(82%, 400px); padding: 24px; scroll-snap-align: center; box-shadow: 0 10px 24px rgba(10, 31, 68, .08); }
  .ob .ob-member-topic h3 { font-size: 22px; }
  .ob-member-topic { margin-bottom: 14px; }
  .ob-member-quote blockquote { margin-bottom: 18px; }
  .ob-member-quote blockquote p { font-size: 15px; line-height: 1.6; }
  .ob-member-stories.is-moving { display: block; overflow: hidden; scroll-snap-type: none; padding-inline: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .ob-member-track { display: flex; gap: 14px; width: max-content; padding-inline: 16px; animation: ob-member-glide var(--glide, 60s) linear infinite; }
  .ob-member-track .ob-member-quote { flex-basis: min(78vw, 360px); }
  .ob-member-stories.is-paused .ob-member-track { animation-play-state: paused; }
}
/* The track holds the stories twice; moving it by half (one set plus one gap) loops without a jump. */
@keyframes ob-member-glide { to { transform: translateX(calc(-50% - 7px)); } }

.ob-testi-wall { display: grid; gap: 16px; margin-top: 32px; padding: 4px 16px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ob-testi-row { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 16px; width: max-content; }
.ob-testi-card { flex: none; scroll-snap-align: center; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; overflow: hidden;
  box-shadow: 0 18px 36px -24px rgba(7,29,69,.35); }
.ob-testi-card img { display: block; height: 320px; width: auto; max-width: min(440px, 80vw); object-fit: contain; }
.ob-testi-note { margin: 20px auto 0; padding-inline: 16px; max-width: 60ch; text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }

/* Moving rows (set by testimonials.js) */
.ob-testi-wall.is-moving { overflow: hidden; padding-inline: 0; scroll-snap-type: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.is-moving .ob-testi-row { margin: 0; animation: ob-testi-mq var(--dur, 60s) linear infinite; }
.is-moving .ob-testi-rev { animation-direction: reverse; }
.is-moving:hover .ob-testi-row, .is-moving:focus-within .ob-testi-row { animation-play-state: paused; }
@keyframes ob-testi-mq { to { transform: translateX(calc(-50% - 8px)); } }

@media (min-width: 980px) {
  .ob-testi { padding-block: 96px 72px; }
  .ob-testi-wall { margin-top: 40px; }
  .ob-testi-card img { height: 340px; }
}
@media (prefers-reduced-motion: reduce) { .is-moving .ob-testi-row { animation: none; } }

/* Sportsbooks strip, moved above pricing */
.ob-books-strip { padding-block: 48px; }
.ob-books-strip .ob-marquee { margin-top: 20px; }
.ob-books-lead { margin: 0; text-align: center; font-weight: 800; color: var(--deep); }
