.home-editorial {
    margin-top: 48px;
}

.home-editorial .prose {
    max-width: 960px;
}

.home-editorial .prose p {
    max-width: none;
}

.home-intro p {
    margin-bottom: 0;
    color: var(--color-text);
}

.home-intro {
    padding: 8px 0;
}

.home-intro strong {
    color: var(--color-text);
}

.home-contents {
    max-width: 960px;
    margin: 32px auto 48px;
    padding-block: 24px;
    border-block: 1px solid var(--color-border);
    font-size: 16px;
    line-height: 24px;
}

.home-contents__title {
    font-weight: 600;
    margin-bottom: 16px;
}

.home-contents ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 32px;
    margin: 0;
    padding-left: 24px;
}

.home-contents li {
    margin: 0;
    min-width: 0;
}

.home-contents a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.home-contents.is-docked {
    position: static;
    width: 100%;
    margin: 0 auto 32px;
    padding: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
}

.home-reading {
    min-width: 0;
    max-width: 960px;
    margin-inline: auto;
}

.home-contents.is-docked .home-contents__title {
    display: none;
}

.home-contents__toolbar {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 4px;
    gap: 4px;
}

.home-contents__toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--color-text);
    font: inherit;
    cursor: pointer;
}

.home-contents__toolbar button:hover {
    background: var(--color-surface-hover);
}

.home-contents__toggle {
    flex: 1;
    gap: 8px;
    min-width: 0;
}

.home-contents__label {
    font-weight: 600;
}

.home-contents__count {
    margin-left: auto;
    white-space: nowrap;
    color: var(--color-light);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.home-contents__icon,
.home-contents__toggle::after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: currentColor;
    mask: url('icons/book.svg') center / contain no-repeat;
}

.home-contents__icon {
    color: var(--color-light);
}

.home-contents__toggle::after {
    mask-image: url('icons/arrow.svg');
    transform: rotate(90deg);
}

.home-contents.is-open .home-contents__toggle::after {
    transform: rotate(-90deg);
}

.home-contents.is-docked ol {
    display: block;
    max-height: min(55vh, 520px, calc(100vh - 96px));
    max-height: min(55dvh, 520px, calc(100dvh - 96px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--color-text-muted) transparent;
    border-top: 1px solid var(--color-border);
    margin: 0;
    padding: 8px;
    list-style: none;
    counter-reset: contents-section;
}

.home-contents.is-docked li + li {
    margin-top: 2px;
}

.home-contents.is-docked a {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border-left: 2px solid transparent;
    border-radius: 4px;
    color: var(--color-text-muted);
    text-decoration: none;
    counter-increment: contents-section;
}

.home-contents.is-docked a::before {
    content: counter(contents-section, decimal-leading-zero);
    flex: 0 0 20px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.home-contents.is-docked a:hover,
.home-contents.is-docked a[aria-current="location"] {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.home-contents.is-docked a[aria-current="location"] {
    border-left-color: var(--color-light);
    font-weight: 600;
}

@media print {
    .home-contents.is-docked {
        display: none;
    }
}

.home-section {
    --section-accent: var(--color-light);
    --section-icon: url('icons/book.svg');
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.home-section h2,
.home-latest h2 {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--color-light);
    font-size: 32px;
    line-height: 42px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
}

.home-section h2::before,
.home-latest h2::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    margin-top: 5px;
    background: var(--section-accent, var(--color-light));
    mask: var(--section-icon, url('icons/book.svg')) center / contain no-repeat;
}

.home-section[aria-labelledby="what-are-casino-alternatives"],
.home-section[aria-labelledby="games-and-mobile"] {
    --section-icon: url('icons/casino.svg');
}

.home-section[aria-labelledby="why-compare-casinos"] {
    --section-icon: url('icons/grid.svg');
}

.home-section[aria-labelledby="choose-a-casino-alternative"] {
    --section-icon: url('icons/search.svg');
}

.home-section[aria-labelledby="casino-licence-and-operator"] {
    --section-icon: url('icons/license.svg');
}

.home-section[aria-labelledby="casino-bonus-terms"] {
    --section-icon: url('icons/gift.svg');
}

.home-section[aria-labelledby="casino-payments-and-withdrawals"] {
    --section-icon: url('icons/clock.svg');
}

.home-section[aria-labelledby="different-casino-companies"] {
    --section-icon: url('icons/grid.svg');
}

.home-section[aria-labelledby="our-comparison-method"] {
    --section-icon: url('icons/shield.svg');
}

.home-section[aria-labelledby="brand-alternatives"] {
    --section-icon: url('icons/casino.svg');
}

.home-section[aria-labelledby="homepage-faq"] {
    --section-icon: url('icons/help.svg');
}

.home-editorial .author-box {
    max-width: 960px;
    margin: 32px auto 0;
    border-radius: 8px;
}

.home-editorial .author-box > div {
    min-width: 0;
}

.home-section[aria-labelledby="take-a-break"] {
    --section-icon: url('icons/shield.svg');
    padding: 20px 24px;
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.home-section[aria-labelledby="take-a-break"] h2 {
    font-size: 22px;
    line-height: 30px;
    gap: 10px;
    margin-bottom: 12px;
}

.home-section[aria-labelledby="take-a-break"] h2::before {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    margin-top: 4px;
}

.home-section[aria-labelledby="take-a-break"] p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 12px;
}

.home-section[aria-labelledby="take-a-break"] p:last-child {
    margin-bottom: 0;
}

.home-section h3 {
    font-size: 20px;
    line-height: 28px;
    margin-top: 32px;
}

.home-section .prose > h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    margin: 40px 0 16px;
}

.home-section p {
    margin-bottom: 1em;
    color: var(--color-text);
}

.home-section h2 + p,
.home-section strong {
    color: var(--color-text);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-block: 32px;
}

.home-feature-grid > div {
    min-width: 0;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.home-feature-grid h3 {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 28px;
}

.home-feature-grid p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 27px;
}

.home-reasons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-reasons-grid > div {
    padding: 24px 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.home-reasons-grid h3 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    margin-bottom: 16px;
    color: var(--color-light);
    font-size: 18px;
    line-height: 26px;
}

.home-reasons-grid h3::before {
    content: "";
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    background: currentColor;
    mask: var(--reason-icon) center / contain no-repeat;
}

.home-reason-games {
    --reason-icon: url('icons/casino.svg');
}

.home-reason-conditions {
    --reason-icon: url('icons/license.svg');
}

.home-reason-payments {
    --reason-icon: url('icons/clock.svg');
}

.home-reasons-grid p {
    line-height: 26px;
}

.home-reasons-grid .home-reason-break {
    display: none;
}

.home-reasons-grid .home-reason-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

@media (min-width: 960px) {
    .home-reasons-grid .home-reason-break {
        display: initial;
    }

    .home-reasons-grid {
        row-gap: 0;
    }

    .home-reasons-grid > div {
        display: grid;
        grid-row: span 3;
        grid-template-rows: subgrid;
        row-gap: 0;
    }

    .home-reasons-grid > div > p {
        align-self: start;
    }
}

@media (max-width: 959px) {
    .home-reasons-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.home-section .home-callout {
    margin-block: 28px;
    padding: 20px 24px;
    background: var(--color-surface);
    font-size: 16px;
    line-height: 27px;
}

.home-section > :last-child,
.home-section .prose > :last-child {
    margin-bottom: 0;
}

.home-comparison {
    max-width: 960px;
    margin: 24px auto 32px;
    border-radius: 8px;
    border-color: var(--color-border);
    background: var(--color-surface);
}

.home-comparison table {
    width: 100%;
    min-width: 958px;
    table-layout: fixed;
    font-size: 15px;
    line-height: 24px;
}

.home-comparison col {
    width: 38%;
}

.home-comparison .comparison-column-check {
    width: 24%;
}

.home-comparison caption {
    max-width: none;
    padding: 24px;
    background: var(--color-surface-hover);
    color: var(--color-text);
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    border-bottom: 1px solid var(--color-border);
}

.comparison-caption,
.comparison-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comparison-caption::before,
.comparison-check::before {
    content: "";
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: var(--color-light);
    mask: var(--check-icon, url('icons/grid.svg')) center / contain no-repeat;
}

.comparison-caption::before {
    margin-top: 4px;
}

.comparison-row-licence {
    --check-icon: url('icons/license.svg');
}

.comparison-row-bonus {
    --check-icon: url('icons/gift.svg');
}

.comparison-row-payments {
    --check-icon: url('icons/clock.svg');
}

.comparison-row-controls {
    --check-icon: url('icons/shield.svg');
}

.comparison-row-evidence {
    --check-icon: url('icons/search.svg');
}

.home-comparison th,
.home-comparison td {
    padding: 22px 24px;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.home-comparison thead th {
    padding-block: 16px;
    font-size: 14px;
    line-height: 22px;
    background: var(--color-bg);
}

.home-comparison thead th:nth-child(2) {
    color: var(--color-light);
}

.home-comparison th + th,
.home-comparison td {
    border-left: 1px solid var(--color-border);
}

.home-comparison tbody tr:nth-child(even) {
    background: var(--color-surface-hover);
}

.home-comparison tbody tr:hover {
    background: var(--color-surface-hover);
}

.home-comparison tbody td {
    color: var(--color-text);
}

.home-comparison thead th:last-child,
.home-comparison tbody td:last-child {
    color: var(--color-text-muted);
}

.home-comparison tbody tr:last-child > * {
    border-bottom: 0;
}

.comparison-mobile-label {
    display: none;
}

.home-latest {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.home-blog-intro {
    margin: 0 0 24px;
}

.home-brand-guides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    padding: 0;
    list-style: none;
    margin-bottom: 0;
}

.home-brand-guides li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-content: start;
    gap: 4px 16px;
    padding-block: 24px;
    border-bottom: 1px solid var(--color-border);
    margin: 0;
}

.home-brand-guides li + li {
    margin-top: 0;
}

.home-brand-guides a {
    grid-column: 2;
    font-weight: 600;
    align-content: center;
    min-height: 44px;
}

.home-brand-guides .brand-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 8px;
    object-fit: contain;
}

.home-brand-guides li > span {
    grid-column: 2;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 26px;
}

.home-faq .faq-list {
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.home-faq .faq-list details {
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
}

.home-faq .faq-list details[open] {
    background: var(--color-surface);
}

.home-faq .faq-list summary {
    padding: 20px 16px;
}

.home-faq .faq-answer {
    border-top: 0;
    padding: 0 16px 24px;
}

.home-faq summary h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    font: inherit;
}

.home-faq summary h3::after {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: url('icons/arrow.svg') center / contain no-repeat;
    transform: rotate(90deg);
    transition: transform 150ms ease;
}

.home-faq details[open] summary h3::after {
    transform: rotate(270deg);
}

@media (max-width: 1024px) {
    .home-contents ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .home-editorial {
        margin-top: 32px;
    }

    .home-contents ol {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 767px) {
    .home-feature-grid,
    .home-reasons-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-brand-guides {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    .home-brand-guides li {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 56px 48px auto;
        row-gap: 12px;
        min-width: 0;
        padding-block: 20px;
    }

    .home-brand-guides .brand-image {
        grid-column: 1;
        grid-row: 1;
    }

    .home-brand-guides a {
        grid-column: 1;
        grid-row: 2;
        font-size: 16px;
        line-height: 24px;
        overflow-wrap: anywhere;
    }

    .home-brand-guides li > span {
        grid-column: 1;
        grid-row: 3;
        font-size: 14px;
        line-height: 22px;
    }

    .home-reasons-grid h3 {
        min-height: 0;
    }

    .home-section {
        margin-top: 48px;
        padding-top: 24px;
    }

    .home-section h2,
    .home-latest h2 {
        font-size: 28px;
        line-height: 36px;
        gap: 12px;
    }

    .home-section h2::before,
    .home-latest h2::before {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        margin-top: 6px;
    }

    .home-section .home-callout {
        padding: 16px;
    }

    .home-section[aria-labelledby="take-a-break"] {
        padding: 16px;
    }
}
