:root {
    --bg: #0b0f17;
    --bg-alt: #111826;
    --surface: #151d2c;
    --surface-2: #1b2537;
    --border: #253049;
    --text: #e6ebf5;
    --text-muted: #9aa6bd;
    --primary: #d4af37;
    --primary-hover: #e6c25a;
    --primary-ink: #0b0f17;
    --accent: #4f8cff;
    --danger: #ef4444;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: var(--primary-ink);
    font-weight: 600;
    border-radius: 0 0 8px 0;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    color: var(--text);
    text-decoration: none;
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 15, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #b9932a);
    color: var(--primary-ink);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.brand-name {
    font-size: 0.98rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
}

/* Hero */
.hero {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.12), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(79, 140, 255, 0.10), transparent 45%),
        linear-gradient(180deg, #0d121c 0%, var(--bg) 100%);
}

.hero--home {
    background:
        linear-gradient(180deg, rgba(11, 15, 23, 0.55) 0%, rgba(11, 15, 23, 0.75) 70%, var(--bg) 100%),
        url('/images/hero.jpg') center/cover no-repeat,
        linear-gradient(180deg, #0d121c 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero--casinos {
    background:
        linear-gradient(180deg, rgba(11, 15, 23, 0.55) 0%, rgba(11, 15, 23, 0.75) 70%, var(--bg) 100%),
        url('/images/casinos-hero.jpg') center/cover no-repeat,
        linear-gradient(180deg, #0d121c 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero--sports {
    background:
        linear-gradient(180deg, rgba(11, 15, 23, 0.55) 0%, rgba(11, 15, 23, 0.75) 70%, var(--bg) 100%),
        url('/images/sports-hero.jpg') center/cover no-repeat,
        linear-gradient(180deg, #0d121c 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero--provinces {
    background:
        linear-gradient(180deg, rgba(11, 15, 23, 0.55) 0%, rgba(11, 15, 23, 0.75) 70%, var(--bg) 100%),
        url('/images/provinces-hero.jpg') center/cover no-repeat,
        linear-gradient(180deg, #0d121c 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero--responsible {
    background:
        linear-gradient(180deg, rgba(11, 15, 23, 0.55) 0%, rgba(11, 15, 23, 0.75) 70%, var(--bg) 100%),
        url('/images/responsible-hero.jpg') center/cover no-repeat,
        linear-gradient(180deg, #0d121c 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    text-align: center;
    max-width: 780px;
}

.hero-inner,
.section .container {
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.06);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.cta-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-ink);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-quiet {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-quiet:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.85rem;
    margin: 0 0 1.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-meta time {
    color: var(--text);
    font-weight: 500;
}

.hero-meta-sep {
    opacity: 0.5;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-alt + .section-alt {
    border-top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-head h2,
.legal-note h2,
.responsible h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
}

.lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
    background: var(--surface-2);
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.card:hover .card-link {
    color: var(--primary-hover);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card h2,
.card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card--static {
    cursor: default;
}

.card--static:hover {
    transform: none;
    border-color: var(--border);
    background: var(--surface);
}

.card-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-list li {
    margin: 0 0 0.55rem;
    line-height: 1.5;
}

.card-list li:last-child {
    margin-bottom: 0;
}

.card-list strong {
    color: var(--text);
    font-weight: 600;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.faq-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--text);
}

.faq-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Legal note */
.legal-note {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    max-width: 880px;
    margin: 0 auto;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
}

.legal-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--primary-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.legal-note h2 {
    margin-top: 0;
}

.legal-note p {
    margin: 0;
    color: var(--text-muted);
}

/* Responsible gambling */
.responsible {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.age-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.35rem 0.9rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: left;
}

.resource-list--standalone {
    max-width: 820px;
    margin: 2rem auto 0;
}

.resource-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "name link"
        "desc link";
    gap: 0.1rem 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.resource-name {
    grid-area: name;
    font-weight: 600;
}

.resource-desc {
    grid-area: desc;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.resource-link {
    grid-area: link;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.resource-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
}

.breadcrumb span[aria-hidden] {
    margin: 0 0.4rem;
    opacity: 0.6;
}

/* Provinces table of contents */
.toc {
    max-width: 880px;
    margin: 2.5rem auto 0;
    padding: 1.5rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.toc-title {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.4rem 0.75rem;
}

.toc-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    color: var(--text);
    border-radius: 8px;
    font-size: 0.93rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.toc-list a:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.toc-list .province-code {
    flex-shrink: 0;
}

/* Jurisdiction sections */
.jurisdiction-list {
    display: grid;
    gap: 1.25rem;
    max-width: 880px;
    margin: 2.5rem auto 0;
}

.jurisdiction-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    scroll-margin-top: 80px;
}

.jurisdiction-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.jurisdiction-head h2 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: -0.005em;
}

.jurisdiction-facts {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.jurisdiction-facts > div {
    display: grid;
    grid-template-columns: 11.5rem 1fr;
    gap: 1rem;
    align-items: baseline;
}

.jurisdiction-facts dt {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

.jurisdiction-facts dd {
    margin: 0;
    color: var(--text);
    font-size: 0.97rem;
    line-height: 1.55;
}

.jurisdiction-note {
    margin: 1.1rem 0 0;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .toc {
        padding: 1.15rem 1.15rem;
    }

    .jurisdiction-section {
        padding: 1.25rem;
    }

    .jurisdiction-facts > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* Prose (informational text) */
.prose {
    max-width: 780px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.3rem;
    margin: 1.75rem 0 0.6rem;
    letter-spacing: -0.005em;
    color: var(--text);
}

.prose h3 {
    font-size: 1.15rem;
    margin: 1.75rem 0 0.6rem;
    letter-spacing: -0.005em;
    color: var(--text);
}

.prose p {
    color: var(--text-muted);
    margin: 0 0 1rem;
    font-size: 1.02rem;
}

.prose-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem !important;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.35);
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--primary-hover);
    text-decoration-color: var(--primary-hover);
}

.section-foot {
    max-width: 780px;
    margin: 1.75rem auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Provinces comparison table */
.province-table-wrap {
    max-width: 960px;
    margin: 2.25rem auto 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.province-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.province-table thead th {
    text-align: left;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    padding: 1rem 1.1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.province-table tbody th,
.province-table tbody td {
    padding: 0.95rem 1.1rem;
    border-top: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
    line-height: 1.4;
}

.province-table tbody tr:first-child th,
.province-table tbody tr:first-child td {
    border-top: 0;
}

.province-table tbody th {
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.province-table tbody th a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.province-table tbody th a:hover {
    color: var(--primary);
    text-decoration-color: rgba(212, 175, 55, 0.5);
}

.province-table tbody td {
    color: var(--text-muted);
}

.province-table td[data-label="Min. age"] {
    font-variant-numeric: tabular-nums;
    color: var(--text);
    font-weight: 600;
    width: 1%;
    white-space: nowrap;
}

.province-table .cell-empty {
    color: var(--text-muted);
    opacity: 0.5;
}

@media (max-width: 720px) {
    .province-table-wrap {
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .province-table,
    .province-table thead,
    .province-table tbody,
    .province-table tr,
    .province-table th,
    .province-table td {
        display: block;
    }

    .province-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .province-table tbody tr {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 0.85rem 1rem 1rem;
        margin-bottom: 0.65rem;
    }

    .province-table tbody th,
    .province-table tbody td {
        padding: 0.3rem 0;
        border: 0;
    }

    .province-table tbody tr:first-child th,
    .province-table tbody tr:first-child td {
        border-top: 0;
    }

    .province-table tbody th {
        font-size: 1.02rem;
        padding-bottom: 0.55rem;
        margin-bottom: 0.4rem;
        border-bottom: 1px solid var(--border) !important;
    }

    .province-table tbody td {
        display: grid;
        grid-template-columns: 7rem 1fr;
        gap: 0.75rem;
        align-items: baseline;
    }

    .province-table tbody td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        font-weight: 600;
    }

    .province-table td[data-label="Min. age"] {
        width: auto;
    }
}

.province-code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    min-width: 34px;
    text-align: center;
}

/* Operator directory (online-casinos.html) */
.operator-directory {
    max-width: 960px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.operator-directory-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    padding: 1.05rem 1.5rem;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border-bottom: 1px solid var(--border);
    position: relative;
}

.operator-directory-head::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--primary) 70%, transparent);
    opacity: 0.55;
}

.operator-directory-title {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.operator-directory-label {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.005em;
}

.operator-directory-count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 999px;
}

.operator-directory-asof {
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.operator-table-wrap {
    overflow-x: auto;
}

.operator-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.operator-table thead th {
    text-align: left;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.operator-table tbody th,
.operator-table tbody td {
    padding: 0.78rem 1.5rem;
    border-top: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
    line-height: 1.4;
}

.operator-table tbody tr:first-child th,
.operator-table tbody tr:first-child td {
    border-top: 0;
}

.operator-table tbody tr {
    transition: background 0.15s ease;
}

.operator-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.operator-table tbody th {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.operator-table tbody td {
    color: var(--text-muted);
}

.operator-table tbody td a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.35);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
    word-break: break-word;
}

.operator-table tbody td a:hover {
    color: var(--primary-hover);
    text-decoration-color: var(--primary-hover);
}

.operator-directory-footnote {
    padding: 0.95rem 1.5rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.55;
}

.operator-directory-footnote p {
    margin: 0;
}

.operator-directory-footnote a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.4);
    text-underline-offset: 3px;
}

.operator-directory-footnote a:hover {
    color: var(--primary-hover);
}

@media (max-width: 720px) {
    .operator-directory {
        border-radius: var(--radius-sm);
    }

    .operator-directory-head {
        padding: 0.85rem 1.05rem;
    }

    .operator-table-wrap {
        padding: 0.65rem 0.75rem 0.25rem;
        background: var(--bg-alt);
    }

    .operator-table,
    .operator-table thead,
    .operator-table tbody,
    .operator-table tr,
    .operator-table th,
    .operator-table td {
        display: block;
    }

    .operator-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .operator-table tbody tr {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 0.85rem 1rem 1rem;
        margin-bottom: 0.6rem;
    }

    .operator-table tbody tr:hover {
        background: var(--surface);
    }

    .operator-table tbody th,
    .operator-table tbody td {
        padding: 0.3rem 0;
        border: 0;
    }

    .operator-table tbody tr:first-child th,
    .operator-table tbody tr:first-child td {
        border-top: 0;
    }

    .operator-table tbody th {
        font-size: 1.05rem;
        padding-bottom: 0.55rem;
        margin-bottom: 0.4rem;
        border-bottom: 1px solid var(--border) !important;
        white-space: normal;
    }

    .operator-table tbody td {
        display: grid;
        grid-template-columns: 8.5rem 1fr;
        gap: 0.75rem;
        align-items: baseline;
    }

    .operator-table tbody td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        font-weight: 600;
    }

    .operator-directory-footnote {
        padding: 0.85rem 1.05rem;
    }
}

/* Operator standards (online-casinos.html) */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.standards-card {
    padding: 1.4rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.standards-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.55rem;
}

.standards-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.005em;
}

.standards-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Game library (online-casinos.html) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    padding: 1.5rem 1.4rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.game-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.game-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--primary);
}

.game-card-icon svg {
    width: 22px;
    height: 22px;
}

.game-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.005em;
}

.game-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Two regulatory models */
.model-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.model-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.model-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.model-headline {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.model-tagline {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

.model-flow {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.model-flow > li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0.85rem;
    align-items: start;
}

.model-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.model-step-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.model-step-body {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .model-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 760px;
    border-left: 2px solid var(--border);
}

.timeline > li {
    position: relative;
    padding: 0.15rem 0 1.5rem 1.75rem;
}

.timeline > li:last-child {
    padding-bottom: 0;
}

.timeline > li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.55rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-alt);
}

.timeline-year {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.timeline-event {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
}

/* Pre-signup checklist */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 820px;
    display: grid;
    gap: 0.75rem;
}

.check-list > li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.check-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--primary);
    flex-shrink: 0;
}

.check-list-icon svg {
    width: 18px;
    height: 18px;
}

.check-list-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
    letter-spacing: -0.005em;
}

.check-list-body {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background: #080b12;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.disclaimer {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-links span {
    opacity: 0.5;
}

.copyright {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 4rem 0 3.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .legal-note {
        flex-direction: column;
        padding: 1.25rem;
    }

    .resource-list li {
        grid-template-columns: 1fr;
        grid-template-areas:
            "name"
            "desc"
            "link";
    }

    .resource-link {
        justify-self: start;
    }
}

/* Focus styles */
a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
