/*
Theme Name: Canadian Betting Sites
Theme URI: https://canadianbettingsites.org/
Author: Canadian Betting Sites
Description: Custom editorial theme for canadianbettingsites.org. Each public page is rendered through a dedicated page-{slug}.php template. The WP database holds only stub pages, the primary menu, and site options; the design, copy, and structured data live in the templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: canadianbettingsites
*/

:root {
    --paper: #F6F2EA;
    --cream: #ECE5D5;
    --cream-2: #E4DCC8;
    --ink: #14202C;
    --ink-soft: #1F2C3B;
    --slate: #4B5868;
    --slate-soft: #6B7585;
    --teal: #195B65;
    --teal-hover: #1F7280;
    --clay: #B26A3B;
    --border: #D8CFBE;
    --border-soft: #E6DFCF;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-soft: 0 1px 0 rgba(20, 32, 44, 0.04), 0 10px 24px rgba(20, 32, 44, 0.06);
    --max: 1120px;
    --max-narrow: 760px;
    --serif: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--teal);
    color: var(--paper);
}

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

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

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

.container.narrow {
    max-width: var(--max-narrow);
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--teal-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 2px;
}

abbr[title] {
    text-decoration: none;
    cursor: help;
    border-bottom: 1px dotted var(--slate-soft);
}

img, svg {
    max-width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 242, 234, 0.92);
    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;
    gap: 1rem;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
}

.brand:hover {
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--teal);
    color: var(--paper);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

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

.nav-links a {
    color: var(--slate);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.15s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Hero */
.hero {
    position: relative;
    padding: 5rem 0 3rem;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(1200px 400px at 50% -120px, rgba(25, 91, 101, 0.07), transparent 60%),
        var(--paper);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--paper) 0%,
        var(--paper) 30%,
        rgba(246, 242, 234, 0.94) 48%,
        rgba(246, 242, 234, 0.62) 68%,
        rgba(246, 242, 234, 0.12) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
}

.hero h1 {
    margin: 0 0 1.25rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.deck {
    margin: 0 0 1.75rem;
    font-size: 1.18rem;
    line-height: 1.55;
    color: var(--slate);
    max-width: 640px;
}

.hero-meta {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    color: var(--slate-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
    align-items: center;
}

.hero-meta .dot {
    color: var(--border);
}

/* Sections */
.section {
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--border);
}

.section:last-of-type {
    border-bottom: none;
}

.section-paper {
    background: var(--cream);
}

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

.section-eyebrow {
    margin: 0 0 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clay);
    font-variant-numeric: tabular-nums;
}

.section h2 {
    margin: 0 0 0.9rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.section h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    background: var(--teal);
    margin-top: 0.9rem;
}

.lead {
    margin: 0;
    font-size: 1.08rem;
    color: var(--slate);
    line-height: 1.6;
}

.prose p {
    margin: 0 0 1.1rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.7;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* On-this-page table of contents */
.toc {
    padding: 2.25rem 0 2.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}

.toc-inner {
    background: var(--cream);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.4rem 1.75rem 1.5rem;
}

.toc-eyebrow {
    margin: 0 0 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clay);
}

.toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.15rem 1.75rem;
}

.toc-list li {
    margin: 0;
    border-top: 1px solid var(--border-soft);
}

.toc-list li:first-child,
.toc-list li:nth-child(2) {
    border-top: none;
}

.toc-list a {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding: 0.55rem 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--teal);
    text-decoration: none;
}

.toc-num {
    font-family: var(--serif);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem;
    color: var(--teal);
    min-width: 1.7rem;
}

/* Key facts */
.fact-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.fact {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    position: relative;
}

.fact::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 3px;
    background: var(--teal);
    border-radius: 0 2px 2px 0;
}

.fact-figure {
    display: block;
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.fact-label {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Split (federal vs provincial) */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

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

.split-tag {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--teal);
    color: var(--teal);
    background: rgba(25, 91, 101, 0.05);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.split-panel h3 {
    margin: 0 0 0.85rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.32rem;
    color: var(--ink);
    line-height: 1.25;
}

.split-panel p {
    margin: 0 0 0.85rem;
    color: var(--ink-soft);
    font-size: 1rem;
}

.split-panel .split-note {
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
    color: var(--slate);
    font-size: 0.94rem;
}

/* Compare (regulated vs offshore) */
.compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.compare-panel {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.compare-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
}

.compare-panel--good::before {
    background: var(--teal);
}

.compare-panel--warn::before {
    background: var(--clay);
}

.compare-tag {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.compare-panel--good .compare-tag {
    border: 1px solid var(--teal);
    color: var(--teal);
    background: rgba(25, 91, 101, 0.05);
}

.compare-panel--warn .compare-tag {
    border: 1px solid var(--clay);
    color: var(--clay);
    background: rgba(178, 106, 59, 0.06);
}

.compare-panel h3 {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.22rem;
    color: var(--ink);
    line-height: 1.25;
}

.compare-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.compare-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

.compare-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.compare-panel--good .compare-list li::before {
    background: var(--teal);
}

.compare-panel--warn .compare-list li::before {
    background: var(--clay);
    opacity: 0.7;
}

/* Checklist (before-you-sign-up) */
.checklist {
    background: var(--paper);
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    padding: 1.6rem 1.75rem;
    box-shadow: var(--shadow-soft);
}

.checklist-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clay);
}

.checklist h3 {
    margin: 0 0 1.1rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.32rem;
    color: var(--ink);
    line-height: 1.25;
}

.checklist-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: checks;
    display: grid;
    gap: 0.75rem;
}

.checklist-list li {
    counter-increment: checks;
    position: relative;
    padding-left: 2.4rem;
    color: var(--ink-soft);
    font-size: 0.99rem;
    line-height: 1.55;
}

.checklist-list li::before {
    content: counter(checks);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--teal);
    color: var(--paper);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* Province / territory grid */
.prov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
}

.prov-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.prov-card:hover {
    border-color: var(--teal);
    transform: translateY(-1px);
}

.prov-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.prov-card h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--ink);
}

.prov-tag {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--clay);
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--cream);
    font-variant-numeric: tabular-nums;
}

.prov-meta {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    line-height: 1.4;
}

.prov-age {
    color: var(--teal);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.prov-sep {
    color: var(--border);
}

.prov-platform {
    color: var(--ink-soft);
    font-weight: 500;
}

.prov-note {
    margin: 0.1rem 0 0;
    color: var(--slate);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Safer gambling */
.safer {
    max-width: 820px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
}

.safer .section-eyebrow {
    margin-top: 0.25rem;
}

.safer h2 {
    margin: 0 0 0.9rem;
}

.safer .lead {
    margin-bottom: 1.5rem;
}

.age-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}

.resource-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.resource-name {
    grid-column: 1;
    font-weight: 600;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.05rem;
}

.resource-desc {
    grid-column: 1 / -1;
    color: var(--slate);
    font-size: 0.94rem;
    line-height: 1.5;
}

.resource-link {
    grid-column: 2;
    grid-row: 1;
    color: var(--teal);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}

.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.faq-item h3 {
    margin: 0 0 0.55rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.18rem;
    color: var(--ink);
    line-height: 1.3;
}

.faq-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.65;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: var(--cream-2);
    padding: 3rem 0 2rem;
}

.site-footer a {
    color: var(--cream-2);
}

.site-footer a:hover {
    color: var(--paper);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    column-gap: 3rem;
    row-gap: 1.5rem;
    align-items: start;
}

.footer-inner > .footer-brand {
    grid-column: 1 / -1;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

@media (min-width: 769px) {
    .footer-col--utility {
        align-items: flex-end;
        text-align: right;
    }
}

.footer-brand,
.site-footer a.footer-brand,
.footer-brand:hover {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--serif);
    font-weight: 600;
    color: var(--paper);
    text-decoration: none;
}

.footer-brand .brand-mark {
    background: var(--paper);
    color: var(--ink);
}

.disclaimer {
    margin: 0;
    max-width: 720px;
    color: var(--cream-2);
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.85;
}

.footer-meta {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(228, 220, 200, 0.65);
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-meta span {
    color: rgba(228, 220, 200, 0.4);
}

.copyright {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(228, 220, 200, 0.12);
    font-size: 0.85rem;
    color: rgba(228, 220, 200, 0.55);
    text-align: center;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav {
        height: auto;
        padding-top: 0.75rem;
        padding-bottom: 0.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .nav-links {
        gap: 0.25rem;
        font-size: 0.95rem;
        justify-content: space-between;
        border-top: 1px solid var(--border-soft);
        padding-top: 0.5rem;
    }

    .nav-links a {
        flex: 1;
        text-align: center;
        padding: 0.65rem 0.4rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links a::after {
        display: none;
    }

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

    .hero-bg {
        display: none;
    }

    .section {
        padding: 3.25rem 0;
    }

    .section-head {
        margin-bottom: 2rem;
    }

    .toc {
        padding: 1.75rem 0 2rem;
    }

    .toc-inner {
        padding: 1.2rem 1.25rem 1.3rem;
    }

    .toc-list {
        gap: 0;
    }

    .toc-list li,
    .toc-list li:first-child,
    .toc-list li:nth-child(2) {
        border-top: 1px solid var(--border-soft);
    }

    .toc-list li:first-child {
        border-top: none;
    }

    .safer {
        padding: 1.5rem;
    }

    .resource-list li {
        grid-template-columns: 1fr;
    }

    .resource-link {
        grid-column: 1;
        grid-row: auto;
    }

    .fact-figure {
        font-size: 2rem;
    }

    .footer-meta {
        font-size: 0.88rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        row-gap: 1.25rem;
    }

    .copyright {
        text-align: left;
        padding-top: 1.25rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero {
        padding: 2.75rem 0 2rem;
    }

    .hero-meta {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================================
   Provinces and Territories page
   Components added for /provinces.html. Homepage is unaffected.
   ============================================================ */

/* Active nav state across pages */
.nav-links a[aria-current="page"] {
    color: var(--ink);
}

.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
    background: var(--teal);
}

/* Breadcrumb */
.breadcrumb {
    padding: 0.85rem 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.88rem;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--slate-soft);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--slate-soft);
}

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

.breadcrumb [aria-current="page"] {
    color: var(--ink-soft);
    font-weight: 500;
}

.breadcrumb-sep {
    color: var(--border);
}

/* Jump index (pill grid of province anchors) */
.jump-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.jump-index a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.jump-index a:hover {
    border-color: var(--teal);
    background: var(--cream);
    color: var(--ink);
    text-decoration: none;
}

.jump-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--clay);
    font-variant-numeric: tabular-nums;
}

/* Province / territory entry */
.juris-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}

.juris-entry {
    padding: 2.25rem 0 2rem;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 88px;
}

.juris-entry:last-child {
    border-bottom: none;
}

.juris-entry-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
}

.juris-entry h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.juris-silhouette {
    flex-shrink: 0;
    width: 64px;
    height: 44px;
    line-height: 0;
}

.juris-silhouette svg {
    width: 100%;
    height: 100%;
    display: block;
}

.juris-silhouette path {
    fill: var(--cream);
    stroke: var(--slate-soft);
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.juris-entry-tag {
    flex-shrink: 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--clay);
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--paper);
}

.juris-entry-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.65rem 1.5rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

.juris-entry-meta > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.juris-entry-meta dt {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-soft);
}

.juris-entry-meta dd {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.96rem;
    line-height: 1.4;
}

.juris-entry-body p {
    margin: 0 0 0.85rem;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.65;
}

.juris-entry-body p:last-child {
    margin-bottom: 0;
}

/* Patterns / differences grid */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pattern-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pattern-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clay);
}

.pattern-card h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.18rem;
    line-height: 1.25;
    color: var(--ink);
}

.pattern-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.6;
}

/* Scroll offset for in-page anchors so the sticky header doesn't overlap */
[id].section,
[id].juris-entry {
    scroll-margin-top: 88px;
}

/* Responsive tweaks for the new components */
@media (max-width: 768px) {
    .juris-entry {
        padding: 1.75rem 0 1.5rem;
    }

    .juris-entry-head {
        margin-bottom: 0.85rem;
    }

    .juris-silhouette {
        width: 52px;
        height: 36px;
    }

    .juris-entry-meta {
        gap: 0.55rem 1rem;
        padding: 0.85rem 1rem;
    }

    .jump-index a {
        font-size: 0.88rem;
        padding: 0.45rem 0.75rem;
    }

    .breadcrumb {
        font-size: 0.84rem;
        padding: 0.75rem 0;
    }

    .pattern-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Regulated Sportsbooks in Ontario page
   Components added for /betting-sites.html. Other pages unaffected.
   ============================================================ */

/* Brand directory list, alphabetically grouped */
.brand-list {
    margin: 0;
    padding: 0;
}

.letter-group {
    margin-top: 1.75rem;
}

.letter-group:first-child {
    margin-top: 0;
}

.brand-letter {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 0.1rem;
    padding: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--teal);
    letter-spacing: 0.02em;
}

.brand-letter::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.brand-entry {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: baseline;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--border-soft);
    scroll-margin-top: 88px;
}

.letter-group .brand-entry:last-child {
    border-bottom: none;
}

.brand-entry-name {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.06rem;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: -0.003em;
}

.brand-entry-type {
    font-size: 0.82rem;
    color: var(--slate);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-list-source {
    margin: 1.75rem 0 0;
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.55;
}

/* Plain bulleted list (disclaimers, prose lists) */
.plain-list {
    list-style: disc;
    margin: 0 0 1.1rem 1.25rem;
    padding: 0;
}

.plain-list li {
    margin-bottom: 0.3rem;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.65;
}

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

@media (max-width: 640px) {
    .brand-letter {
        font-size: 1.3rem;
    }

    .letter-group {
        margin-top: 1.4rem;
    }

    .brand-entry {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .brand-entry-type {
        justify-self: start;
    }
}

/* ============================================================
   Laws and Regulations page
   Components added for /laws-and-regulations.html.
   ============================================================ */

/* Editorial timeline */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    max-width: 760px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.65rem;
    bottom: 0.65rem;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding: 0 0 1.85rem 2.4rem;
}

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

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--teal);
    box-sizing: border-box;
}

.timeline-item--milestone::before {
    background: var(--teal);
}

.timeline-year {
    display: inline-block;
    margin: 0 0 0.3rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--teal);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
}

.timeline-title {
    margin: 0 0 0.4rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.18rem;
    line-height: 1.3;
    color: var(--ink);
}

.timeline-desc {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Definition-style block: term + explanation, used in "what legal means" */
.def-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}

.def-list > li {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 2.4fr;
    gap: 0.5rem 1.75rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.def-term {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.04rem;
    line-height: 1.3;
    color: var(--ink);
}

.def-desc {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.99rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .timeline-item {
        padding-left: 1.9rem;
    }

    .def-list > li {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding: 1rem 0;
    }
}

/* Group label between resource-lists in the Sources section */
.sources-subhead {
    margin: 1.75rem 0 0.85rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.sources-subhead:first-of-type {
    margin-top: 0;
}

/* Spacing modifiers used on the Laws page */
.compare-followup {
    margin-top: 1.75rem;
    max-width: 760px;
}

.def-list-followup {
    margin-top: 2rem;
}

/* Related-pages grid: linked cards for cross-page navigation */
.next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.next-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem 1.45rem;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.next-card:hover,
.next-card:focus-visible {
    border-color: var(--teal);
    color: var(--ink);
    transform: translateY(-1px);
    text-decoration: none;
}

.next-card-eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clay);
}

.next-card-title {
    margin: 0 0 0.45rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.16rem;
    line-height: 1.3;
    color: var(--ink);
}

.next-card-desc {
    margin: 0;
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Footer utility links (About, Privacy, ...) */
.footer-links {
    margin: 0;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.footer-links a {
    color: var(--cream-2);
}

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

.footer-links a[aria-current="page"] {
    color: var(--paper);
    font-weight: 600;
}
