/* Casino badge — sits between the date bubble and the title. Hidden by the shortcode
   itself on a narrowed gallery, or with badge="no". */
.sbox-badge { display: table; margin: 0 0 10px; padding: 3px 12px; background: #ffffff; border: 1px solid #dfe9e0; border-radius: 30px; font-family: 'Raleway', sans-serif; font-size: 12px; line-height: 1.4; font-weight: 700; color: #2a8c4b; }
.sbox-badge a { color: inherit; text-decoration: none; }
.sbox-badge a:hover, .sbox-badge a:focus { color: #0a6e2c; text-decoration: underline; }
/* Centred on both date elements, which centre their date and title; left on the
   recurring cards, which do not. */
.info-boxes-dates-v2 .sbox-badge, .info-boxes-dates .sbox-badge { margin-left: auto; margin-right: auto; }
.info-boxes-v2.site-events-gallery .sbox { box-sizing: border-box; display: flex; flex-direction: column; }
.info-boxes-v2.site-events-gallery .sbox-tags { margin-top: auto; }
.info-boxes-v2 .sbox-tags { padding-top: 14px; }
.info-boxes-v2 .sbox-tag { display: inline-block; padding: 4px 11px; background: #f4f7f4; border: 1px solid #dfe9e0; border-radius: 30px; font-family: 'Raleway', sans-serif; font-size: 11px; line-height: 1.45; font-weight: 700; letter-spacing: 0.3px; color: #4f6b55; }

/* Same height:100% trap on the unframed date element. It already flexes and pins its
   pill, so border-box is all it is missing. */
.info-boxes-dates.site-events-gallery .sbox { box-sizing: border-box; }

/* show= on the poker table hides the rows past the count, the same way
   info-boxes-shown.css hides the boxes past it on a gallery. Two class names deep so it
   beats .table-stats-v3 tr, which is what turns a row into the flex card and would
   otherwise keep a hidden row on screen. */
.site-events-table tr.hidden { display: none; }

/* The toggle .ib-total injects is styled by info-boxes-shown.css, but its spacing is
   set for a card grid standing on the page. Here it sits inside the tinted tray, under
   a row that already carries its own bottom margin, so the gap is tightened to keep the
   button from floating in the middle of the padding. */
.site-events-table .ib-total { margin: 0; padding: 12px 0 6px; }

/* Shown instead of an empty special gallery. */
.site-events-empty { clear: both; margin: 25px 0 35px; padding: 22px 20px; background: #f7f9f7; border: 1px dashed #dfe9e0; border-radius: 12px; font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.5; color: #595959; text-align: center; }
@media (min-width: 1100px) {
  .site-events-gallery.site-events-cols-4 .ib-slider { grid-template-columns: repeat(4, 1fr); }
  .site-events-gallery.site-events-cols-4 .ib-slider:has(> li:last-child:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
}

/* group="casino": one box per casino, its events as list items. Three classes deep so
   it beats .info-boxes-v2 .sbox li whichever stylesheet loads last. */
.info-boxes-v2.site-events-grouped .sbox li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #eef5ed; }
.info-boxes-v2.site-events-grouped .sbox li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.site-events-grouped .site-events-ev-title { display: block; font-family: 'Raleway', sans-serif; font-size: 15px; line-height: 1.35; font-weight: 700; color: #1c1c1c; }
.site-events-grouped .site-events-ev-when { display: block; margin-top: 3px; }
.site-events-grouped .site-events-ev-meta { display: block; margin-top: 2px; font-size: 13px; color: #7a7a7a; }
.site-events-grouped .site-events-ev-desc { margin-top: 4px; }
.site-events-grouped .site-events-ev-desc p { margin: 0; }

/* group="casino" collapse (assets/js/site-events-collapse.js). Inert until the script adds
   .site-events-js, so without JavaScript every box stays fully open. The script sets each
   box's height inline: the closed height, or the row's longest list when the row is open. */
.info-boxes-v2.site-events-collapse.site-events-js .sbox { position: relative; box-sizing: border-box; overflow: hidden; transition: height 0.35s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.info-boxes-v2.site-events-collapse.site-events-measuring .sbox { height: auto !important; transition: none !important; }
.info-boxes-v2.site-events-collapse .sbox.site-events-has-more { padding-bottom: 60px; }
.site-events-collapse .site-events-more { display: none; position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 0 16px; background: #ffffff; text-align: center; }
.site-events-collapse .site-events-has-more > .site-events-more { display: block; }
.site-events-collapse .sbox:not(.is-open) > .site-events-more { padding-top: 56px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #ffffff 46px); }
.site-events-collapse .site-events-more button { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font-family: 'Raleway', sans-serif; font-size: 14px; line-height: 1; font-weight: 700; color: #42a653; cursor: pointer; }
.site-events-collapse .site-events-more button:after { content: ""; display: block; width: 38px; height: 22px; border-radius: 11px; background: #42a653 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat 50% 50% / 10px 7px; transition: background-color 0.2s ease, transform 0.2s ease; }
.site-events-collapse .site-events-more button[aria-expanded="true"]:after { transform: rotate(180deg); }
.site-events-collapse .site-events-more button:hover:after, .site-events-collapse .site-events-more button:focus-visible:after { background-color: #2a8c4b; }
.site-events-collapse .site-events-more button:focus-visible { outline: 2px solid #2a8c4b; outline-offset: 3px; border-radius: 3px; }
.site-events-collapse.site-events-v2 .site-events-more button { color: #2a8c4b; }
.site-events-collapse.site-events-v2 .site-events-more button:after { background-color: #2a8c4b; }
.site-events-collapse.site-events-v2 .site-events-more button:hover:after, .site-events-collapse.site-events-v2 .site-events-more button:focus-visible:after { background-color: #0a6e2c; }
@media (prefers-reduced-motion: reduce) {
  .info-boxes-v2.site-events-collapse.site-events-js .sbox, .site-events-collapse .site-events-more button:after { transition: none; }
}
