/* crusado-casino.uk.com - layout fixes for the theme1 shell.
   The home page reuses theme4 blocks (wi-*), which expect a padded main
   column. In the theme1 shell they ran edge to edge, so every block is
   held to the same centred column as the header and the text sections. */

body.theme1 main {
  --cc-col: 1200px;
  --cc-pad: 24px;
}

/* Hero: background stays full bleed, content sits in the centred column */
body.theme1 .wi-hero {
  margin: 0 0 8px;
  padding: 72px var(--cc-pad) 64px;
}
body.theme1 .wi-hero__inner {
  max-width: calc(var(--cc-col) - 2 * var(--cc-pad));
  margin: 0 auto;
}
body.theme1 .wi-hero__inner > * { max-width: 640px; }
body.theme1 .wi-hero__h1 { font-size: clamp(30px, 3.6vw, 46px); }
body.theme1 .wi-hero__sub { max-width: 620px; }

/* Every other wi-* block: centred column, never full width */
body.theme1 main > .wi-games-tabs,
body.theme1 main > .wi-banking-section,
body.theme1 main > .wi-rating-strip,
body.theme1 main > .wi-verdict,
body.theme1 main > .wi-seo,
body.theme1 main > .wi-faq-accordion,
body.theme1 main > .wi-offer-feed,
body.theme1 main > section > .wi-banking-section,
body.theme1 main .wi-banking-section {
  width: auto;
  max-width: calc(var(--cc-col) - 2 * var(--cc-pad));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
@media (max-width: 1248px) {
  body.theme1 main > .wi-games-tabs,
  body.theme1 main > .wi-banking-section,
  body.theme1 main > .wi-rating-strip,
  body.theme1 main > .wi-verdict,
  body.theme1 main > .wi-seo,
  body.theme1 main > .wi-faq-accordion,
  body.theme1 main > .wi-offer-feed,
  body.theme1 main .wi-banking-section {
    margin-left: var(--cc-pad);
    margin-right: var(--cc-pad);
  }
}
body.theme1 main > .wi-banking-section,
body.theme1 main > .wi-rating-strip,
body.theme1 main > .wi-verdict,
body.theme1 main > .wi-seo,
body.theme1 main > .wi-faq-accordion,
body.theme1 main > .wi-offer-feed { margin-top: 40px; margin-bottom: 40px; }
body.theme1 .wi-banking-table { width: 100%; }

/* Studio shelf: compact name tiles instead of large empty art boxes */
body.theme1 .wi-games-tabs { margin-top: 48px; margin-bottom: 40px; }
.wi-games-pane--names.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.wi-studio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 12px 14px;
  text-align: center;
  text-decoration: none;
  background: var(--color-surface, #161b22);
  border: 1px solid var(--color-border, #30363d);
  border-radius: 10px;
  transition: border-color 0.15s, transform 0.12s;
}
.wi-studio:hover { border-color: var(--color-accent, #f0a23a); transform: translateY(-1px); }
.wi-studio__name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: var(--color-text, #e6edf3);
}
.wi-studio__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-accent, #f0a23a);
}

@media (max-width: 900px) {
  body.theme1 .wi-hero { padding: 48px var(--cc-pad) 44px; }
  body.theme1 .wi-games-tabs__nav { margin-left: 0; }
}
@media (max-width: 560px) {
  body.theme1 main { --cc-pad: 16px; }
  .wi-games-pane--names.is-active { grid-template-columns: repeat(2, 1fr); }
  .wi-studio { min-height: 56px; padding: 10px; }
  .wi-studio__name { font-size: 14px; }
}

/* Mobile header and sticky bar: keep the wordmark on one line */
@media (max-width: 560px) {
  .site-header .container { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .site-header .site-logo { font-size: 18px; white-space: nowrap; letter-spacing: 0.3px; flex-shrink: 0; }
  .site-header .btn.btn--mobile-cta { padding: 8px 10px; font-size: 12.5px; white-space: nowrap; margin-left: auto; margin-right: 4px; }
  .site-header .nav-toggle { padding: 6px 2px; flex-shrink: 0; }
  .sticky-cta, .sticky-cta * { box-sizing: border-box; }
  .sticky-cta { max-width: 100vw; gap: 10px; }
  .sticky-cta .btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .sticky-cta__bonus { font-size: 13px; line-height: 1.25; }
  .sticky-cta__text { min-width: 0; }
}
