/* ============================================================
   CANADIAN GAMING LICENSING AUTHORITY REGISTRY
   Shared Stylesheet — style.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1C3557;
  --navy-dark: #122440;
  --gold:      #B8892A;
  --gold-light:#D4A94A;
  --red:       #8B1A1A;
  --bg:        #F2F4F7;
  --white:     #FFFFFF;
  --border:    #C8CDD6;
  --text:      #212529;
  --muted:     #5A6070;
  --link:      #1C3557;
}

html { font-size: 16px; }

body {
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--gold); }

img { max-width: 100%; }

/* ── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: #aab4c4;
  font-size: 0.75rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #aab4c4; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }

/* ── HEADER ──────────────────────────────────────────────── */
header {
  background: var(--navy);
  padding: 20px 0 18px;
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-emblem {
  width: 64px;
  height: 64px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--navy-dark);
}
.site-emblem span {
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: bold;
  font-family: Georgia, serif;
}
.site-title { color: var(--white); }
.site-title h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.site-title p {
  font-size: 0.75rem;
  color: #9aaec4;
  margin-top: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
nav {
  background: #24487A;
  border-bottom: 3px solid var(--gold);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
}
nav a {
  display: block;
  color: #d8e4f0;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 11px 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: bold;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s, color 0.15s;
}
nav a:first-child { border-left: 1px solid rgba(255,255,255,0.1); }
nav a:hover, nav a.active {
  background: var(--gold);
  color: var(--navy-dark);
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 8px 0;
}
.breadcrumb-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: #bbb; }

/* ── HERO / PAGE BANNER ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #1C3557 60%, #1e4a7a 100%);
  color: var(--white);
  padding: 52px 24px;
  border-bottom: 4px solid var(--gold);
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.hero h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.9rem;
  font-weight: normal;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.hero p {
  font-size: 0.97rem;
  color: #b0c8e0;
  max-width: 680px;
  line-height: 1.7;
}
.hero .notice-bar {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* ── PAGE BANNER (inner pages) ───────────────────────────── */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 32px 24px;
  border-bottom: 3px solid var(--gold);
}
.page-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.page-banner h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  font-weight: normal;
  margin-bottom: 6px;
}
.page-banner p {
  font-size: 0.88rem;
  color: #9ab8d4;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px;
}
.layout-two-col {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.main-col { flex: 1; min-width: 0; }
.side-col { width: 280px; flex-shrink: 0; }

/* ── SECTIONS & CARDS ────────────────────────────────────── */
section { margin-bottom: 40px; }

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 24px;
  margin-bottom: 20px;
}
.card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Jurisdiction cards */
.jcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  padding: 20px 22px;
  transition: border-color 0.2s;
}
.jcard:hover { border-left-color: var(--gold); }
.jcard .jcard-flag { font-size: 1.6rem; margin-bottom: 8px; }
.jcard h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.jcard .jcard-region {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.jcard p { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.jcard .badge {
  display: inline-block;
  background: #e8edf5;
  color: var(--navy);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 2px;
  margin: 2px 2px 2px 0;
  letter-spacing: 0.03em;
}
.jcard.featured { border-left-color: var(--gold); background: #fdfaf3; }
.jcard.featured .featured-tag {
  font-size: 0.7rem;
  background: var(--gold);
  color: var(--white);
  padding: 2px 8px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

/* ── TABLES ──────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--white);
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 11px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: #f8f9fb; }
.data-table tr:hover td { background: #eef2f8; }

/* ── STEPS ───────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: steps; }
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px 24px;
}
.steps li::before {
  content: counter(steps);
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: bold;
  min-width: 36px;
  line-height: 1;
  padding-top: 2px;
}
.steps li h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: Georgia, serif;
}
.steps li p { font-size: 0.875rem; color: var(--muted); }

/* ── INFO BOXES ──────────────────────────────────────────── */
.info-box {
  border-left: 4px solid var(--navy);
  background: var(--white);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.info-box.gold { border-left-color: var(--gold); background: #fdfaf3; }
.info-box.red  { border-left-color: var(--red);  background: #fdf5f5; }
.info-box strong { display: block; margin-bottom: 4px; color: var(--navy); }

/* ── SIDEBAR WIDGETS ─────────────────────────────────────── */
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  margin-bottom: 20px;
  overflow: hidden;
}
.widget-title {
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 9px 16px;
  font-weight: bold;
}
.widget-body { padding: 16px; font-size: 0.85rem; }
.widget-body ul { list-style: none; }
.widget-body ul li {
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.widget-body ul li:last-child { border-bottom: none; }
.widget-body ul li a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.84rem;
}
.widget-body ul li a:hover { color: var(--gold); text-decoration: underline; }
.widget-body p { color: var(--muted); line-height: 1.6; }

/* ── STAT BLOCKS ─────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 36px;
}
.stat-block {
  background: var(--white);
  padding: 20px 16px;
  text-align: center;
}
.stat-block .stat-num {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  font-weight: bold;
  display: block;
}
.stat-block .stat-label {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 9px 22px;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold); color: var(--navy-dark); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

/* ── LEGAL REFERENCE ─────────────────────────────────────── */
.legal-ref {
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 12px;
  font-style: italic;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  color: #8899aa;
  margin-top: 48px;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a4060;
}
.footer-col p { font-size: 0.82rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
  color: #8899aa;
  text-decoration: none;
  font-size: 0.82rem;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid #2a4060;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.74rem;
  color: #5a6a7a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.text-muted  { color: var(--muted); }
.text-small  { font-size: 0.82rem; }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-36 { margin-bottom: 36px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .layout-two-col { flex-direction: column; }
  .side-col { width: 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero h2 { font-size: 1.4rem; }
  nav a { padding: 10px 12px; font-size: 0.76rem; }
}
@media (max-width: 540px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
