/*
 * TopBoss Stage 17.32C
 * Legacy two-column promotional grids.
 * Preserve A-Z indexes and other multi-column content.
 */

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) {
  margin: 1.5rem 0;
  border: 1px solid #e9dedb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(55 25 25 / 5%);
  overflow: hidden;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row {
  display: grid;
  grid-template-columns: minmax(100px, 155px) minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell {
  min-width: 0;
  padding: 18px;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:first-child {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:first-child img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 120px;
  height: auto;
  object-fit: contain;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:last-child :is(h2,h3) {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #eee3e0;
  border-radius: 0;
  background: transparent;
  color: #760b12;
  font-size: 1.3rem;
  line-height: 1.4;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:last-child p {
  margin: 0 0 12px;
  line-height: 1.75;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:last-child a {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .entry .tb-content-grid:not(.tb-navigation-grid):has(
    > .tb-content-row > .tb-content-cell:nth-child(2):last-child
  ) > .tb-content-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry .tb-content-grid:not(.tb-navigation-grid):has(
    > .tb-content-row > .tb-content-cell:nth-child(2):last-child
  ) > .tb-content-row > .tb-content-cell {
    padding: 14px;
  }

  .entry .tb-content-grid:not(.tb-navigation-grid):has(
    > .tb-content-row > .tb-content-cell:nth-child(2):last-child
  ) > .tb-content-row > .tb-content-cell:first-child {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .entry .tb-content-grid:not(.tb-navigation-grid):has(
    > .tb-content-row > .tb-content-cell:nth-child(2):last-child
  ) > .tb-content-row > .tb-content-cell:first-child img {
    max-height: 90px;
  }
}

/* ==========================================================
   Stage 17.32E — Premium casino promotional cards
   Applies to existing two-column promotional grids.
   ========================================================== */

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) {
  position: relative;
  border: 1px solid #e6d6bc;
  border-top: 4px solid #d5a12d;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf8 0%, #ffffff 55%, #fff9f2 100%);
  box-shadow: 0 5px 22px rgb(75 27 22 / 9%);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
):hover {
  border-color: #d6b778;
  box-shadow: 0 8px 28px rgb(75 27 22 / 13%);
}

/* Logo panel */

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:first-child {
  align-self: stretch;
  align-items: center;
  padding: 24px 18px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  border-right: 1px solid #f0e4d2;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:first-child img {
  max-height: 135px;
  transition: transform .2s ease;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
):hover > .tb-content-row > .tb-content-cell:first-child img {
  transform: scale(1.035);
}

/* Promotional content */

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:last-child {
  padding: 24px 26px;
}

/* Headline */

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:last-child :is(h2,h3) {
  margin: 0 0 16px;
  padding: 0 0 13px;
  border-bottom: 2px solid #ead6ac;
  background: transparent;
  color: #760b12;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.015em;
}

/* Description */

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:last-child p {
  color: #39312f;
  line-height: 1.85;
}

/* Promotional CTA — explicitly classified primary links */

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:last-child a.tb-promo-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 22px;
  border: 1px solid #650b12;
  border-radius: 7px;
  background: linear-gradient(135deg, #8d1420, #650b12);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 9px rgb(90 10 20 / 17%);
  transition: background .2s ease, box-shadow .2s ease;
}

.entry .tb-content-grid:not(.tb-navigation-grid):has(
  > .tb-content-row > .tb-content-cell:nth-child(2):last-child
) > .tb-content-row > .tb-content-cell:last-child a.tb-promo-primary:is(:hover,:focus-visible) {
  background: #a51c2a;
  color: #ffffff;
  box-shadow: 0 5px 13px rgb(90 10 20 / 23%);
}

@media (max-width: 600px) {
  .entry .tb-content-grid:not(.tb-navigation-grid):has(
    > .tb-content-row > .tb-content-cell:nth-child(2):last-child
  ) > .tb-content-row > .tb-content-cell:first-child {
    border-right: 0;
    border-bottom: 1px solid #f0e4d2;
    justify-content: center;
    padding: 20px;
  }

  .entry .tb-content-grid:not(.tb-navigation-grid):has(
    > .tb-content-row > .tb-content-cell:nth-child(2):last-child
  ) > .tb-content-row > .tb-content-cell:last-child {
    padding: 20px;
  }

  .entry .tb-content-grid:not(.tb-navigation-grid):has(
    > .tb-content-row > .tb-content-cell:nth-child(2):last-child
  ) > .tb-content-row > .tb-content-cell:last-child a.tb-promo-primary {
    width: 100%;
    box-sizing: border-box;
  }
}



/* Stage 17.32H: Secondary promotional actions */

.entry .tb-content-grid a.tb-promo-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 8px 8px 0;
  padding: 11px 19px;
  border: 1px solid #c39436;
  border-radius: 7px;
  background: #fffaf0;
  color: #760b12;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.entry .tb-content-grid a.tb-promo-secondary:is(:hover,:focus-visible) {
  background: #f6e9cd;
  border-color: #9c7424;
  color: #650b12;
}

@media (max-width: 600px) {
  .entry .tb-content-grid a.tb-promo-secondary {
    width: 100%;
    box-sizing: border-box;
  }
}


/* Stage 19.3L: Navigation grid layout */
/* Navigation is not a promotional card. */

.entry .tb-content-grid.tb-navigation-grid {
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.entry .tb-content-grid.tb-navigation-grid > .tb-content-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}

.entry .tb-content-grid.tb-navigation-grid > .tb-content-row > .tb-content-cell {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.entry .tb-content-grid.tb-navigation-grid > .tb-content-row > .tb-content-cell:first-child {
  text-align: left;
}

.entry .tb-content-grid.tb-navigation-grid > .tb-content-row > .tb-content-cell:last-child {
  text-align: right;
}

.entry .tb-navigation-grid a.tb-promo-secondary {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .entry .tb-content-grid.tb-navigation-grid > .tb-content-row {
    gap: 8px;
  }

  .entry .tb-navigation-grid a.tb-promo-secondary {
    padding: 9px 12px;
    font-size: 0.9rem;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .entry .tb-content-grid.tb-navigation-grid > .tb-content-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry .tb-content-grid.tb-navigation-grid > .tb-content-row > .tb-content-cell:last-child {
    text-align: left;
  }
}
