/* ============================================================
   Blog content-block constructor — visual layer
   Casino lists reuse the global .top-list styles from main.css.
   Legacy/prose HTML lives inside .post-block__body, so its
   typography rules in main.css no longer pollute structured blocks.
   ============================================================ */

.post-block__body {
    margin-bottom: 16px;
}

.post-block__casinos {
    margin: 8px 0 24px;
    background: transparent;
}

.post-block__body + .post-block__casinos,
.post-block__casinos + .post-block__body {
    margin-top: 0;
}

/* main.css gives .top-list a 36px margin-top (room for the section heading
   that other pages render above it). In the blog block there's no heading
   above the list, so the gap reads as dead space — drop it. */
.post-block__casinos .top-list {
    margin-top: 0;
}

/* Widen the dark left zone slightly so the brand name + bonus copy
   breathe; right zone (payments + PLAY) compensates. */
.post-block__casinos .top-list__item-left {
    grid-column: span 8;
}
.post-block__casinos .top-list__item-right {
    grid-column: span 4;
}

/* Hide the dropdown-expand arrow inside the article block. Without it
   the PLAY button collapses left, so push it back to the right edge. */
.post-block__casinos .top-list__item-ctrl .open_top {
    display: none;
}
.post-block__casinos .top-list__item-ctrl .btn {
    margin-left: auto;
}

/* When the offer-type badge is swapped for the .rh-rating block: drop the
   inherited left border / padding (designed for inline meta rows), bring
   it close to the name, scale stars + value down so the rating reads as
   meta, not a hero element. The block sits on the dark left zone, keep
   text light. */
.post-block__casinos .top-list__item-title {
    margin-bottom: 4px;
}
.post-block__casinos .top-list__name-holder .rh-rating {
    margin: 0;
    padding: 0;
    border-left: 0;
    grid-column: auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    color: var(--shades-white);
}
.post-block__casinos .top-list__name-holder .rh-stars .reviews-slider__stars-row,
.post-block__casinos .top-list__name-holder .rh-stars img {
    width: 68px;
    height: 12px;
}
.post-block__casinos .top-list__name-holder .rh-rating__val {
    color: var(--shades-white);
    font-size: 12px;
    font-weight: 700;
    margin-left: 0;
}

/* Smaller "Payment methods" label in the article block. The label must
   stay on one line — with a single payment icon the parent flex column
   otherwise collapses to the icon's 38px width and the label wraps. */
.post-block__casinos .top-list__item-payments-title {
    font-size: 10px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ============================================================
   Cascade reset inside .post-block__body
   blog-single wraps the rendered RichEditor HTML in
   <div class="post-block__body"> so prose text gets article typography
   from main.css (.post-block__body p { color: text-secondary; ... },
   .post-block__body a { display: contents }). When a casino block
   lives inside that wrapper, those rules turn the white deposit text
   grey and collapse the PLAY button. Restore the .top-list visuals
   with higher-specificity rules scoped to the article casino block.
   ============================================================ */

.post-block__casinos .top-list__item-deposit span {
    font-family: var(--second-family);
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 136%;
    text-transform: uppercase;
    color: var(--text-light-secondary);
}

.post-block__casinos .top-list__item-deposit p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0.02em;
    color: var(--shades-white);
    margin-top: 8px;
}

.post-block__casinos .top-list__item-deposit-snoska {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 7px;
    line-height: 132%;
    letter-spacing: 0.02em;
    color: #a1c2ec;
    margin-top: 5px;
}

/* ------------------------------------------------------------------
   Compact row blocks (casinos-row / slots-row) live inside
   .post-block__body, so main.css clobbers every <p> and <a> in them:
     .post-block__body p { color: gray; font-size: 16px; weight: 500 }
     .post-block__body a { display: contents; color: blue; underline }
   Each override below is scoped under its .post-block__*-row parent
   (specificity 0,2,x) so it beats the main.css rules (0,1,1).
   ------------------------------------------------------------------ */

/* --- Buttons: white text, restore flex (display:contents collapses them) --- */
.post-block__casinos .top-list__item-ctrl a.btn,
.post-block__casinos-row a.bb-casinos-row__cta.btn,
.post-block__slots-row a.bb-slots-row__cta.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light-primary, #fff);
}
.post-block__casinos .top-list__item-ctrl a.btn > span,
.post-block__casinos-row a.bb-casinos-row__cta.btn > span,
.post-block__slots-row a.bb-slots-row__cta.btn > span {
    color: var(--text-light-primary, #fff);
}

/* --- Casinos-row: bonus amount is a <p>, gets the gray article style --- */
.post-block__casinos-row .bb-casinos-row__bonus-value {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
    color: var(--text-primary, #102E65);
    margin: 0;
    padding: 0;
}
.post-block__casinos-row .bb-casinos-row__bonus-label {
    color: var(--text-secondary);
}

/* --- Slots-row: thumbnail + name are <a>, collapsed by display:contents --- */
.post-block__slots-row a.bb-slots-row__thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 2;
    background: rgba(16, 46, 101, 0.06);
}
.post-block__slots-row a.bb-slots-row__name {
    display: block;
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: var(--text-primary, #102E65);
}
.post-block__slots-row .bb-slots-row__provider {
    color: var(--text-secondary);
}
.post-block__slots-row .bb-slots-row__rtp {
    color: var(--system-colors-success, #33710a);
}

/* Pros / cons block lives inside post-block__body too — its <ul> would
   pick up the bullet pseudo-element and gray paragraph styling. */
.post-block__proscons .bb-proscons__list,
.post-block__proscons .bb-proscons__list li,
.post-block__proscons .bb-proscons__list li:before {
    list-style: none;
    background: none;
    content: normal;
}
.post-block__proscons .bb-proscons__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(16, 46, 101, 0.06);
    font-family: var(--second-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ============================================================
   Tables inside the article body. Header row uses a navy bg so it
   reads as distinct from the data rows; no zebra, no hover (no
   interactive elements in these tables).
   ============================================================ */

.post-block__body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    font-family: var(--second-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid #E1E5EB;
    border-radius: 12px;
    overflow: hidden;
    display: table;
}

/* Header row: either real <th> cells, or the first tbody row cells
   when the editor stored the table without a <thead>. Both selectors
   end up applying the same dark navy stripe. */
.post-block__body table th,
.post-block__body table tbody tr:first-child td {
    background: #102E65;
    color: #fff;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 14px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 18px;
    border: 0;
}

/* TipTap wraps cell contents in <p>, and main.css gives any <p> inside
   .post-block__body a gray colour. Force the cell text colour to win
   by also colouring nested paragraphs. */
.post-block__body table th,
.post-block__body table th p,
.post-block__body table tbody tr:first-child td,
.post-block__body table tbody tr:first-child td p {
    color: #fff;
}

.post-block__body table td {
    padding: 12px 18px;
    border: 0;
    border-top: 1px solid #E5E7EB;
    color: var(--text-primary);
    vertical-align: top;
    background: #fff;
}

.post-block__body table td p {
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    font-family: var(--second-family);
    font-size: 14px;
    line-height: 1.5;
}

.post-block__body table tbody tr:first-child td {
    border-top: 0;
}

.post-block__body table tbody td:first-child {
    font-weight: 600;
    color: #102E65;
}

/* Reset the header colours on the first cell of the first body row so
   the "first-column bold navy" rule above doesn't fight the navy stripe. */
.post-block__body table tbody tr:first-child td:first-child {
    color: #fff;
}

@media (max-width: 720px) {
    .post-block__body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .post-block__body table th,
    .post-block__body table td {
        padding: 10px 14px;
    }
}

/* ============================================================
   Compact horizontal casinos block (.post-block__casinos-row)
   — mini cards with logo + rating + bonus + CTA, max 5 per row,
   centred when fewer than max fit.
   ============================================================ */

.post-block__casinos-row {
    margin: 8px 0 24px;
}

.bb-casinos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.bb-casinos-row__item {
    --casino-color: #0273F7;
    flex: 0 1 calc((100% - 64px) / 5);
    min-width: 180px;
    background: var(--text-light-primary, #fff);
    border: 1px solid #c8d0db;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(14, 29, 58, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.bb-casinos-row__logo {
    height: 76px;
    border-radius: 12px;
    background: linear-gradient(90deg, #090e11 30.49%, #102e65 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
}
.bb-casinos-row__logo img {
    max-height: 44px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.bb-casinos-row__rating.rh-rating {
    margin: 0;
    padding: 0;
    border-left: 0;
    color: var(--text-primary, #102E65);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.bb-casinos-row__rating .rh-stars .reviews-slider__stars-row,
.bb-casinos-row__rating .rh-stars img {
    width: 72px;
    height: 14px;
}
.bb-casinos-row__rating .rh-rating__val {
    color: var(--text-primary, #102E65);
    font-size: 13px;
    font-weight: 700;
    margin-left: 0;
}

.bb-casinos-row__bonus {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 56px;
    justify-content: center;
}
.bb-casinos-row__bonus-label {
    font-family: var(--second-family);
    font-style: italic;
    font-weight: 600;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.bb-casinos-row__bonus-value {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

.bb-casinos-row__cta.btn {
    width: 100%;
    margin-top: auto;
    font-size: 16px;
    height: 42px;
}

@media (max-width: 1100px) {
    .bb-casinos-row__item {
        flex: 0 1 calc((100% - 32px) / 3);
    }
}
@media (max-width: 720px) {
    .bb-casinos-row__item {
        flex: 0 1 calc((100% - 16px) / 2);
    }
}
@media (max-width: 480px) {
    .bb-casinos-row__item {
        flex: 0 1 100%;
    }
}

/* ============================================================
   Compact horizontal slots block (.post-block__slots-row)
   — slot thumbnail + name + provider + demo/review CTA.
   Max 5 per row, centred when fewer fit.
   ============================================================ */

.post-block__slots-row {
    margin: 8px 0 24px;
}

.bb-slots-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.bb-slots-row__item {
    flex: 0 1 calc((100% - 64px) / 5);
    min-width: 180px;
    background: var(--text-light-primary, #fff);
    border: 1px solid #c8d0db;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(14, 29, 58, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-slots-row__thumb {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(16, 46, 101, 0.06);
}
.bb-slots-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.bb-slots-row__thumb:hover img {
    transform: scale(1.04);
}

.bb-slots-row__sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    font-family: var(--second-family);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
}
.bb-slots-row__dot {
    color: var(--text-light-secondary, #6c7c98);
    opacity: 0.6;
}
.bb-slots-row__rtp {
    color: var(--system-colors-success, #33710a);
    font-weight: 700;
}

.bb-slots-row__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    min-height: 36px;
}
.bb-slots-row__name {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: var(--text-primary);
    text-decoration: none;
}
.bb-slots-row__name:hover {
    color: var(--primary-blue);
}
.bb-slots-row__provider {
    font-family: var(--second-family);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.bb-slots-row__cta.btn {
    width: 100%;
    margin-top: auto;
    font-size: 16px;
    height: 42px;
}

@media (max-width: 1100px) {
    .bb-slots-row__item {
        flex: 0 1 calc((100% - 32px) / 3);
    }
}
@media (max-width: 720px) {
    .bb-slots-row__item {
        flex: 0 1 calc((100% - 16px) / 2);
    }
}
@media (max-width: 480px) {
    .bb-slots-row__item {
        flex: 0 1 100%;
    }
}

/* ============================================================
   Pros / Cons block (.post-block__proscons)
   Two-column ledger — pros card left, cons card right. Stacks on mobile.
   ============================================================ */

.post-block__proscons {
    margin: 8px 0 24px;
}

.bb-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bb-proscons__card {
    background: var(--text-light-primary, #fff);
    border: 1px solid #c8d0db;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(14, 29, 58, 0.06);
}

.bb-proscons__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 46, 101, 0.08);
}

.bb-proscons__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex: 0 0 30px;
}
.bb-proscons__card--pros .bb-proscons__icon {
    background: rgba(51, 113, 10, 0.12);
    color: var(--system-colors-success, #33710a);
}
.bb-proscons__card--cons .bb-proscons__icon {
    background: rgba(190, 39, 39, 0.10);
    color: var(--system-colors-error, #be2727);
}

.bb-proscons__title {
    margin: 0;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.bb-proscons__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bb-proscons__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(16, 46, 101, 0.06);
    font-family: var(--second-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.bb-proscons__list li:last-child {
    border-bottom: 0;
}

.bb-proscons__mark {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.4;
}
.bb-proscons__card--pros .bb-proscons__mark {
    color: var(--system-colors-success, #33710a);
}
.bb-proscons__card--cons .bb-proscons__mark {
    color: var(--system-colors-error, #be2727);
}

@media (max-width: 720px) {
    .bb-proscons {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Sticky TOC sidebar — main.css puts position:sticky on .post-toc
   (the aside) with top:0, but body { overflow-x: hidden } breaks
   sticky on a grid item in Chrome/Safari. Move the sticky to the
   inner .post-toc__box instead: the aside becomes a tall grid
   container (full row height), and the inner box sticks inside it.
   Provide an opt-out for long contents lists (≥13 entries).
   ============================================================ */

/* main.css adds `.post-section.section { overflow: hidden }` which makes
   the section a clipping ancestor and breaks position:sticky on every
   child. The other usages of .post-section need that clip, so override
   it only on the blog single page. */
body.blog-single-page .post-section.section {
    overflow: visible;
}

.post-toc {
    position: static;
    align-self: stretch;
    top: auto;
}

.post-toc__box {
    position: sticky;
    top: 24px;
}

@media (min-width: 1201px) {
    .post-toc__box {
        top: 110px;
    }
}

/* Cap height when sticky so the box doesn't run past the viewport when
   there are many entries — anchors scroll inside the box. */
.post-toc:not(.post-toc--no-sticky) .post-toc__nav {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

/* Long lists: drop the sticky behavior — the user can scroll past it. */
.post-toc--no-sticky .post-toc__box {
    position: static;
    top: auto;
}
