/* ============================================================
   Open Casino in the UK — shared stylesheet
   Navy / red / white editorial theme. No external fonts/CDNs.
   ============================================================ */

:root {
  --navy: #0a1e42;
  --navy-dark: #061530;
  --navy-mid: #12305e;
  --red: #c8102e;
  --red-dark: #9c0c22;
  --white: #ffffff;
  --off-white: #f6f7fb;
  --paper: #fbfbfd;
  --ink: #1a2233;
  --ink-soft: #4a5568;
  --border: #dfe3ec;
  --border-soft: #edf0f6;
  --max-width: 1120px;
  --radius: 8px;
  --shadow: 0 8px 30px rgba(10, 30, 66, 0.10);
  --font-serif: 'Fraunces', Georgia, "Times New Roman", Cambria, serif;
  --font-sans: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

h2 { font-size: 1.7rem; margin-bottom: 0.9rem; border-bottom: 3px solid var(--red); padding-bottom: 0.4rem; display: inline-block; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--red-dark); text-decoration: underline; text-decoration-color: rgba(200,16,46,0.35); }
a:hover { color: var(--navy); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header / nav ---------------- */
header.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .flag-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; }
.brand:hover { color: #ffe1e6; }

nav.main-nav { display: flex; gap: 28px; align-items: center; }
nav.main-nav a {
  color: #e7ecf7;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
nav.main-nav a:hover { color: var(--white); text-decoration: underline; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  color: var(--white);
  font-size: 1.3rem;
  padding: 4px 10px;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding: 84px 0 64px;
}
.hero .container { max-width: 900px; }
.hero .eyebrow {
  color: #ffd0d8;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 18px;
}
.hero p.lede { font-size: 1.12rem; color: #e4e9f5; max-width: 760px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 32px;
}
.hero-stats span {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; box-shadow: var(--shadow); }

/* Secondary inner-page banner */
.banner {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, rgba(6,21,48,0.80) 0%, rgba(10,30,66,0.90) 100%), var(--navy);
  background-size: cover;
  background-position: center;
  padding: 56px 0;
}
.banner h1 { color: var(--white); margin-bottom: 8px; font-size: 2.1rem; }
.banner p { color: #dfe6f5; max-width: 700px; margin-bottom: 0; }

/* Shorter mid-page banner used between homepage sections */
.mid-banner {
  position: relative;
  color: var(--white);
  text-align: center;
  background: linear-gradient(180deg, rgba(6,21,48,0.62) 0%, rgba(10,30,66,0.80) 100%), var(--navy);
  background-size: cover;
  padding: 46px 0;
}
.mid-banner--bridge { background-image: linear-gradient(180deg, rgba(6,21,48,0.62) 0%, rgba(10,30,66,0.80) 100%), url('../img/124.jpg'); background-position: center 35%; }
.mid-banner h3 { color: var(--white); margin-bottom: 6px; }
.mid-banner p { color: #dfe6f5; margin: 0 auto; max-width: 620px; }

/* Inline article figures (blog posts) — vary aspect ratio/crop per placement */
figure.inline-figure { margin: 2rem 0; }
figure.inline-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
figure.inline-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: center;
}
.inline-figure--wide img { aspect-ratio: 21 / 9; }
.inline-figure--tall img { aspect-ratio: 4 / 3; }

/* Homepage inset accent image near the Legality section */
.accent-flag--legality { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------------- Sections ---------------- */
main { display: block; }
.section { padding: 56px 0; border-bottom: 1px solid var(--border-soft); }
.section:last-of-type { border-bottom: none; }
.section-alt { background: var(--off-white); }
.section-narrow .container { max-width: 800px; }
.section-intro { color: var(--ink-soft); max-width: 760px; margin-bottom: 1.4rem; }
.not-a-ranking {
  display: inline-block;
  background: #fff4f5;
  color: var(--red-dark);
  border: 1px solid #f3c6cd;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* ---------------- Tables ---------------- */
.table-wrap { width: 100%; overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
  background: var(--white);
}
table caption { text-align: left; padding: 10px 14px; font-weight: 600; color: var(--navy); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); font-family: var(--font-serif); font-weight: 600; }
tbody tr:nth-child(even) { background: var(--off-white); }
tbody tr:hover { background: #eef1fb; }
td strong, th strong { color: var(--navy); }

/* Post-body tables (already <table> with plain <tr><th>/<td>) get the same wrap via JS-free CSS targeting */
.post-body table, .review-body table { min-width: 480px; }

/* ---------------- Checklist ---------------- */
.checklist { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.checklist li {
  position: relative;
  padding: 14px 0 14px 52px;
  border-bottom: 1px solid var(--border-soft);
  counter-increment: step;
}
.checklist li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.checklist li:last-child { border-bottom: none; }

/* ---------------- Stat tiles (key numbers called out inline) ---------------- */
.stat-grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 1.4rem 0 1.8rem; }
.stat-tile {
  flex: 1 1 200px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.stat-tile .stat-num { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.stat-tile .stat-label { font-size: 0.82rem; color: #c7d3ea; }
.stat-tile.accent-red { background: var(--red); }
.stat-tile.accent-red .stat-label { color: #ffd9de; }

/* ---------------- Evaluation Criteria icon/card grid ---------------- */
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 1.6rem; }
@media (max-width: 900px) { .icon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .icon-grid { grid-template-columns: 1fr; } }
.icon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.icon-card .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.icon-card h3 { font-size: 1rem; margin-bottom: 6px; }
.icon-card p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------------- Cards ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 1.6rem; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 8px; }
.card .meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.03em; }
.card p { color: var(--ink-soft); flex-grow: 1; }
.card .card-link { margin-top: 10px; font-weight: 600; text-decoration: none; }
.tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  margin-right: 6px;
}

/* ---------------- Blockquote / tip box ---------------- */
.tip-box, blockquote {
  background: #eef4ff;
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 1.4rem 0;
  color: var(--ink);
}
.tip-box strong, blockquote strong { color: var(--navy); }

/* ---------------- Details / FAQ accordion ---------------- */
details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 4px 18px;
}
details[open] { border-color: var(--navy); }
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 14px 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  color: var(--red);
  font-weight: 800;
}
details[open] summary::before { content: "\2212"; }
details p { padding-bottom: 14px; color: var(--ink-soft); }

/* ---------------- Timeline (connected numbered nodes) ---------------- */
.timeline { list-style: none; padding: 0; margin: 1.6rem 0; }
.timeline li {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  position: relative;
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% - 6px);
  background: var(--border);
}
.timeline .num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  position: relative;
  z-index: 1;
}
.timeline .step-body h3 { margin-bottom: 4px; font-size: 1.08rem; }
.timeline .step-body p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------------- Lists (strengths / considerations) ---------------- */
ul.strengths, ul.considerations { list-style: none; padding: 0; margin: 0 0 1.4rem; }
ul.strengths li, ul.considerations li { padding: 8px 0 8px 30px; position: relative; }
ul.strengths li::before { content: "\2713"; position: absolute; left: 0; color: #157a3a; font-weight: 800; }
ul.considerations li::before { content: "!"; position: absolute; left: 4px; color: var(--red-dark); font-weight: 800; }

dl.keyfacts { display: grid; grid-template-columns: 220px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.4rem 0; }
dl.keyfacts dt, dl.keyfacts dd { padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--border-soft); }
dl.keyfacts dt { background: var(--off-white); font-weight: 600; color: var(--navy); }
dl.keyfacts dd { color: var(--ink-soft); }
@media (max-width: 620px) {
  dl.keyfacts { grid-template-columns: 1fr; }
  dl.keyfacts dt { border-bottom: none; padding-bottom: 4px; }
}

.best-for {
  background: #fff8e6;
  border: 1px solid #f0dca0;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 1.2rem 0;
}
.best-for strong { color: var(--navy); }

/* ---------------- CTA box ---------------- */
.cta-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-box p { margin: 0; font-size: 1.08rem; font-family: var(--font-serif); }
.cta-box .btn-primary { flex-shrink: 0; }

/* ---------------- TOC ---------------- */
.toc {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 2rem;
}
.toc h2 { font-size: 1.05rem; border: none; padding: 0; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------------- Post / review meta ---------------- */
.post-meta, .review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 16px;
}
.post-meta strong, .review-meta strong { color: var(--navy); }

article.post-body h2, article.review-body h2 { margin-top: 2.2rem; }
article.post-body > p:first-of-type { font-size: 1.08rem; color: var(--ink-soft); }

.related-box {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 2.5rem;
}
.related-box h2 { font-size: 1.2rem; }
.related-list { display: flex; gap: 14px; flex-wrap: wrap; padding: 0; list-style: none; margin: 0; }
.related-list a {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}
.related-list a:hover { border-color: var(--red); color: var(--red-dark); }

/* ---------------- Reviews index: horizontal row cards ---------------- */
.review-row-list { display: flex; flex-direction: column; gap: 16px; margin-top: 1.6rem; }
.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  box-shadow: var(--shadow);
}
.review-row .review-row-main { flex: 1 1 auto; }
.review-row .review-row-main h3 { margin-bottom: 4px; }
.review-row .review-row-main .meta { margin-bottom: 6px; font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.review-row .review-row-main p { color: var(--ink-soft); margin-bottom: 0; max-width: 620px; }
.review-row .review-row-side {
  flex: 0 0 auto;
  text-align: right;
  max-width: 280px;
}
.review-row .review-row-side .notable { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; }
.review-row .review-row-side .card-link { white-space: nowrap; font-weight: 600; text-decoration: none; }
@media (max-width: 780px) {
  .review-row { flex-direction: column; align-items: flex-start; }
  .review-row .review-row-side { text-align: left; max-width: 100%; }
}

.sources-list { font-size: 0.85rem; color: var(--ink-soft); padding-left: 1.2rem; }
.sources-list li { margin-bottom: 6px; }

.visit-btn-wrap { margin: 1.4rem 0; }

.accent-image, .accent-flag {
  float: right;
  width: 240px;
  border-radius: var(--radius);
  margin: 0 0 18px 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.accent-image--left { float: left; margin: 0 24px 18px 0; }
.accent-image--square, .accent-flag--legality { aspect-ratio: 1 / 1; }
.accent-image--4-3 { aspect-ratio: 4 / 3; }
.accent-image--portrait { aspect-ratio: 3 / 4; }
@media (max-width: 700px) {
  .accent-image, .accent-flag { float: none; width: 100%; margin: 0 0 18px; }
}

/* Full-width in-section photo (used where a floated inset doesn't fit) */
.section-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  margin: 1.4rem 0;
}
.section-photo--16-9 { aspect-ratio: 16 / 9; }
.section-photo figcaption, figure.section-photo-wrap figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: center;
}
figure.section-photo-wrap { margin: 1.4rem 0; }
figure.section-photo-wrap .section-photo { margin: 0; }

/* ---------------- FAQ grid on homepage ---------------- */
.faq-list { max-width: 760px; }

/* ---------------- Author box ---------------- */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
}
.author-box .initials {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
}

/* ---------------- Contact form ---------------- */
form.contact-form { max-width: 560px; }
form.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
form.contact-form input, form.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form button { cursor: pointer; }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #c7d1e6;
  padding: 44px 0 20px;
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 30px; margin-bottom: 22px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-family: var(--font-serif); font-size: 1rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #c7d1e6; text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  font-size: 0.8rem;
  color: #7c8bab;
}

/* ---------------- Misc ---------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 10px 24px 20px;
    gap: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  nav.main-nav.open { display: flex; }
  header.site-header { position: sticky; }
  .hero h1 { font-size: 1.9rem; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}
