/**
 * Non GamStop Casinos UK — page + component styles.
 * Responsive, framework-free, namespaced under .abp5-ngc-*.
 */

/* Standalone page: full-width, light background, no dark theme showing through.
   This stylesheet only loads on the non-gamstop-casinos-uk page, so these
   html/body rules never affect any other page. */
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: #eef1f5 !important;
}
body::before, body::after { content: none !important; display: none !important; }

.abp5-ngc-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    color: #1a1d24;
    font-size: 17px;
    line-height: 1.7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Inner container carries the readable content width (not the full-width wrapper) */
.abp5-ngc-article {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}
/* Readability on the theme's (otherwise white-on-dark) link colours */
.abp5-ngc-wrap a { color: #1f6feb; }
.abp5-ngc-wrap a:hover { color: #0a58c2; }
.abp5-ngc-wrap a.abp5-ngc-btn { color: #ffffff; }
.abp5-ngc-wrap h1,
.abp5-ngc-wrap h2,
.abp5-ngc-wrap h3,
.abp5-ngc-wrap h4 {
    line-height: 1.25;
    color: #10131a;
}
.abp5-ngc-wrap h1 { font-size: 2.1rem; margin: 0 0 .4em; }
.abp5-ngc-wrap h2 { font-size: 1.55rem; margin: 1.9em 0 .5em; padding-top: .4em; border-top: 1px solid #eceef2; }
.abp5-ngc-wrap h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.abp5-ngc-wrap h4 { font-size: 1rem; margin: .8em 0 .3em; }
.abp5-ngc-wrap p { margin: 0 0 1em; }
.abp5-ngc-wrap section { scroll-margin-top: 90px; }

/* --- Screen-reader-only utility --- */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* --- Development notice + placeholders --- */
.abp5-ngc-devnotice {
    background: #fff4e5;
    border: 1px solid #f0b429;
    border-left: 6px solid #f0b429;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 28px;
    font-size: .95rem;
}
.abp5-ngc-ph {
    display: inline-block;
    background: repeating-linear-gradient(45deg, #ffe8e8, #ffe8e8 6px, #ffdada 6px, #ffdada 12px);
    color: #a11414;
    border: 1px dashed #d33;
    border-radius: 4px;
    padding: 0 6px;
    font-size: .82em;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* --- Hero / meta --- */
.abp5-ngc-hero { margin-bottom: 1.5em; }
.abp5-ngc-meta {
    font-size: .9rem;
    color: #5b6270;
    margin: 0 0 .6em;
}
.abp5-ngc-disclosure {
    font-size: .82rem;
    color: #5b6270;
    background: #f6f8fb;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 10px 14px;
}
.abp5-ngc-disclosure a { color: #1f6feb; }

/* --- Tables (comparison + spec), responsive --- */
.abp5-ngc-tablewrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1.2em;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
}
.abp5-ngc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    min-width: 640px;
}
.abp5-ngc-table th,
.abp5-ngc-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eceef2;
    vertical-align: middle;
}
/* Comparison table: fits page width, NO horizontal scroll */
.abp5-ngc-compare {
    min-width: 0;
    table-layout: fixed;
    font-size: .84rem;
}
.abp5-ngc-compare th,
.abp5-ngc-compare td {
    padding: 9px 9px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.abp5-ngc-compare thead th {
    background: #10131a;
    color: #fff;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: normal;
    line-height: 1.2;
    vertical-align: middle;
}
.abp5-ngc-compare tbody tr:nth-child(even) { background: #f8fafc; }
.abp5-ngc-compare tbody td,
.abp5-ngc-compare tbody th { vertical-align: top; }
/* Column widths (desktop-first, sum = 100%) */
.abp5-ngc-compare thead th:nth-child(1) { width: 4%; }
.abp5-ngc-compare thead th:nth-child(2) { width: 15%; }
.abp5-ngc-compare thead th:nth-child(3) { width: 9%; }
.abp5-ngc-compare thead th:nth-child(4) { width: 22%; }
.abp5-ngc-compare thead th:nth-child(5) { width: 13%; }
.abp5-ngc-compare thead th:nth-child(6) { width: 13%; }
.abp5-ngc-compare thead th:nth-child(7) { width: 12%; }
.abp5-ngc-compare thead th:nth-child(8) { width: 12%; }
/* Let placeholders + CTA wrap inside narrow columns */
.abp5-ngc-compare .abp5-ngc-ph { white-space: normal; }
.abp5-ngc-compare .abp5-ngc-cta-cell { white-space: normal; }
.abp5-ngc-compare .abp5-ngc-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 8px;
    font-size: .76rem;
    text-align: center;
}
.abp5-ngc-rank { font-weight: 700; color: #5b6270; }
.abp5-ngc-cname { font-weight: 700; }
.abp5-ngc-cbrand { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.abp5-ngc-logo { max-width: 100%; max-height: 30px; width: auto; height: auto; display: block; }
.abp5-ngc-ph-logo { font-size: .66em; }
.abp5-ngc-rating { font-weight: 800; color: #0a7d33; }
.abp5-ngc-rating-max { font-weight: 500; color: #7a828f; font-size: .8em; }

/* Spec table (inside cards) — label column emphasised */
.abp5-ngc-spec { min-width: 480px; }
.abp5-ngc-spec th[scope="row"] {
    width: 38%;
    background: #f6f8fb;
    font-weight: 600;
    color: #3a4150;
}

/* --- Casino review cards --- */
.abp5-ngc-cards { display: grid; gap: 22px; }
.abp5-ngc-card {
    border: 1px solid #e4e8ef;
    border-radius: 14px;
    padding: 20px 20px 22px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,19,26,.04);
}
.abp5-ngc-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.abp5-ngc-card-title { margin: 0 0 .6em; }
.abp5-ngc-card-rating { font-size: 1.15rem; white-space: nowrap; }
.abp5-ngc-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 4px 0 2px;
}
.abp5-ngc-pros h4 { color: #0a7d33; }
.abp5-ngc-cons h4 { color: #c02626; }
.abp5-ngc-proscons ul { margin: .2em 0 0; padding-left: 1.1em; }
.abp5-ngc-proscons li { margin: .25em 0; }
.abp5-ngc-suits { background: #f6f8fb; border-radius: 8px; padding: 10px 14px; margin: 14px 0; }
.abp5-ngc-proscons--single { grid-template-columns: 1fr; }
.abp5-ngc-rating-na { color: #7a828f; }

/* --- Buttons / CTAs --- */
.abp5-ngc-btn {
    display: inline-block;
    background: #0a7d33;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 8px;
    transition: background .15s ease;
}
.abp5-ngc-btn:hover { background: #086628; }
.abp5-ngc-btn--ph { background: #9aa1ad; cursor: not-allowed; }
.abp5-ngc-cta-cell { white-space: nowrap; }
.abp5-ngc-card-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.abp5-ngc-cta-note { font-size: .78rem; color: #7a828f; }

/* --- Small comparison table (slots) --- */
.abp5-ngc-mini th { background: #f6f8fb; }

/* --- FAQ (native details) --- */
.abp5-ngc-faq { border: 1px solid #e4e8ef; border-radius: 12px; overflow: hidden; }
.abp5-ngc-faq-item { border-bottom: 1px solid #eceef2; }
.abp5-ngc-faq-item:last-child { border-bottom: 0; }
.abp5-ngc-faq-q {
    cursor: pointer;
    padding: 15px 18px;
    font-weight: 700;
    list-style: none;
    position: relative;
    padding-right: 44px;
}
.abp5-ngc-faq-q::-webkit-details-marker { display: none; }
.abp5-ngc-faq-q::after {
    content: "+";
    position: absolute;
    right: 18px; top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem; color: #0a7d33;
}
details[open] > .abp5-ngc-faq-q::after { content: "\2212"; }
.abp5-ngc-faq-a { padding: 0 18px 16px; color: #3a4150; }

/* --- Registration steps --- */
.abp5-ngc-steps { list-style: none; counter-reset: ngc; padding: 0; margin: 0; display: grid; gap: 12px; }
.abp5-ngc-step {
    counter-increment: ngc;
    position: relative;
    padding: 12px 16px 12px 58px;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    background: #fff;
}
.abp5-ngc-step::before {
    content: counter(ngc);
    position: absolute;
    left: 14px; top: 12px;
    width: 30px; height: 30px;
    background: #0a7d33; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.abp5-ngc-step-title { display: block; font-weight: 700; }
.abp5-ngc-step-text { display: block; color: #3a4150; font-size: .95rem; }

/* --- Responsible gambling + disclaimer --- */
.abp5-ngc-rg {
    background: #eef6ff;
    border: 1px solid #b6d4fb;
    border-left: 6px solid #1f6feb;
    border-radius: 10px;
    padding: 18px 20px;
}
.abp5-ngc-rg a { color: #1f6feb; }
.abp5-ngc-disclaimer {
    margin-top: 34px;
    padding: 16px 18px;
    border-top: 2px solid #eceef2;
    font-size: .82rem;
    color: #5b6270;
}

/* --- Section intro paragraphs --- */
.abp5-ngc-lead { font-size: 1.05rem; }

/* ===== Responsive =====
   Two clean tiers:
   - <=768px (tablet-portrait & phones): reflow the 8-column comparison table into
     stacked, labelled rows (uses the cells' data-label attributes) so it never needs
     horizontal scrolling, and let all content tables shrink to fit.
   - <=640px (phones): typographic + spacing tweaks, single-column pros/cons,
     full-width CTAs and comfortable touch targets.
   Desktop (>=769px) is unchanged. */
@media (max-width: 768px) {
    .abp5-ngc-table { min-width: 0; }
    .abp5-ngc-spec { min-width: 0; }
    .abp5-ngc-card,
    .abp5-ngc-cards > * { min-width: 0; }
    .abp5-ngc-mini { table-layout: fixed; }
    .abp5-ngc-mini th,
    .abp5-ngc-mini td { word-break: break-word; overflow-wrap: anywhere; vertical-align: top; }

    /* Comparison table -> stacked, labelled rows (no horizontal scroll) */
    .abp5-ngc-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .abp5-ngc-compare,
    .abp5-ngc-compare tbody,
    .abp5-ngc-compare tr,
    .abp5-ngc-compare td,
    .abp5-ngc-compare th { display: block; width: auto; }
    .abp5-ngc-compare tr { border: 1px solid #e4e8ef; border-radius: 12px; margin: 0 0 14px; overflow: hidden; background: #fff; }
    .abp5-ngc-compare tbody tr:nth-child(even) { background: #fff; }
    .abp5-ngc-compare td,
    .abp5-ngc-compare th[scope="row"] {
        display: flex; justify-content: space-between; align-items: center; gap: 14px;
        padding: 11px 16px; border-bottom: 1px solid #eef0f3; text-align: right; font-size: .95rem; width: auto;
    }
    .abp5-ngc-compare td::before { content: attr(data-label); font-weight: 700; color: #3a4150; text-align: left; }
    .abp5-ngc-compare .abp5-ngc-cname { text-align: left; font-size: 1.05rem; }
    .abp5-ngc-compare .abp5-ngc-cbrand { flex-direction: row; align-items: center; gap: 8px; }
    .abp5-ngc-compare .abp5-ngc-rank { display: none; }
    .abp5-ngc-compare .abp5-ngc-cta-cell { padding: 12px 16px; border-bottom: 0; }
    .abp5-ngc-compare .abp5-ngc-cta-cell::before { content: none; }
    .abp5-ngc-compare .abp5-ngc-btn { width: 100%; display: block; padding: 12px; font-size: .95rem; }
    .abp5-ngc-btn { min-height: 44px; box-sizing: border-box; }
}

@media (max-width: 640px) {
    .abp5-ngc-wrap { font-size: 16px; }
    .abp5-ngc-article { padding: 16px 14px 40px; }
    .abp5-ngc-wrap h1 { font-size: 1.55rem; }
    .abp5-ngc-wrap h2 { font-size: 1.3rem; }
    .abp5-ngc-wrap h3 { font-size: 1.1rem; }
    .abp5-ngc-card { padding: 16px 14px 18px; }
    .abp5-ngc-card-head { flex-direction: column; }
    .abp5-ngc-proscons { grid-template-columns: 1fr; }
    .abp5-ngc-tablewrap { border: 0; }
    .abp5-ngc-mini th, .abp5-ngc-mini td { padding: 8px 9px; font-size: .8rem; }
    .abp5-ngc-spec th, .abp5-ngc-spec td { padding: 9px 11px; }
    .abp5-ngc-spec th[scope="row"] { width: 42%; }
    .abp5-ngc-card-cta { flex-direction: column; align-items: stretch; }
    .abp5-ngc-card-cta .abp5-ngc-btn { width: 100%; }
    .abp5-ngc-card-cta .abp5-ngc-cta-note { text-align: center; }
    .abp5-ngc-btn { display: inline-flex; align-items: center; justify-content: center; }
    .abp5-ngc-faq-q { padding: 16px 44px 16px 16px; }
}
