/* CasinoMY Insider — custom stylesheet (replaces Bootstrap 4.5.3 + theme style.css) */

/* ---------- fonts ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ink: #101e22;
  --ink-soft: #1c2f35;
  --gold: #d69b1a;
  --gold-dark: #a8760f;
  --gold-link: #8a6104;
  --star: #e8a90c;
  --page-bg: #f7f8f9;
  --card: #fff;
  --text: #1b1d1f;
  --muted: #55606a;
  --line: #e3e6e8;
  --good: #1c7a4a;
  --bad: #b3261e;
  --radius: 20px;
  --radius-sm: 10px;
  --shadow: 0 0 8px rgba(28, 29, 32, .12);
  --wrap: 1140px;
  --tap: 44px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: var(--page-bg);
}
body.is-home { background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-link); }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.45rem; margin: 1.75rem 0 .6rem; }
h3 { font-size: 1.2rem; margin: 1.25rem 0 .5rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--gold); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 8px;
  font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ---------- header ---------- */
.main-head {
  background: var(--ink); padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.head-logo { display: inline-flex; align-items: center; min-height: var(--tap); }
.head-logo img { width: 90px; height: auto; display: block; }
.head-menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.head-menu li { margin: 0; }
.head-menu a {
  color: #fff; font-weight: 700; font-size: .9rem; text-transform: uppercase;
  text-decoration: none; padding: 12px 10px; display: inline-flex; align-items: center;
  min-height: var(--tap); border-radius: 6px;
}
.head-menu a:hover, .head-menu a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
.nav-desktop { display: none; }
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: var(--tap); height: var(--tap); padding: 10px;
  background: none; border: 0; cursor: pointer; border-radius: 6px;
}
.menu-toggle span { display: block; width: 22px; height: 3px; background: #fff; border-radius: 3px; }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000; background: rgba(16, 30, 34, .6);
  visibility: hidden; opacity: 0;
  /* visibility flips instantly on open and only after the fade on close, so the
     panel is focusable the moment it opens */
  transition: opacity .18s, visibility 0s linear .18s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity .18s, visibility 0s; }
.mobile-menu-panel {
  background: var(--ink); position: absolute; inset: 0 0 0 auto;
  width: 100%; max-width: 320px; padding: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform .18s;
}
.mobile-menu.is-open .mobile-menu-panel { transform: none; }
.mobile-menu-panel ul { list-style: none; padding: 0; margin: 24px 0 0; }
.mobile-menu-panel a {
  color: #fff; font-weight: 600; text-decoration: none;
  display: flex; align-items: center; min-height: var(--tap); padding: 4px 8px; border-radius: 6px;
}
.mobile-menu-panel a:hover { background: rgba(255, 255, 255, .12); }
.mobile-menu-close {
  position: absolute; top: 14px; right: 14px; width: var(--tap); height: var(--tap);
  background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 6px;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; padding: 14px 0 0; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- 18+ notice ---------- */
.age-notice {
  background: var(--ink-soft); color: #dfe6e9; font-size: .85rem; line-height: 1.5;
  padding: 12px 0; text-align: center;
}
.age-notice strong { color: var(--star); }
.age-notice a { color: #fff; }
.age-badge {
  display: inline-block; border: 2px solid var(--star); color: var(--star);
  border-radius: 999px; padding: 0 8px; font-weight: 700; margin-right: 6px;
}

/* ---------- home banner ---------- */
.home-banner { text-align: center; padding: 28px 0 8px; }
.home-banner h1 { margin-top: 0; }
.home-banner p { max-width: 800px; margin-inline: auto; color: var(--muted); }
.section { padding: 20px 0; }

/* ---------- cards / panels ---------- */
.panel { background: var(--card); border-radius: var(--radius); padding: 16px; margin: 10px 0; box-shadow: var(--shadow); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel h2 { border-bottom: 2px solid var(--gold); padding-bottom: 10px; font-size: 1.35rem; }

/* ---------- ranking table (home) ---------- */
.oc-table { display: grid; gap: 16px; }
.oc-row {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; display: grid; gap: 12px; align-items: center; text-align: center;
}
.oc-rank {
  display: inline-block; background: var(--ink); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 2px 12px; font-size: .8rem; margin-bottom: 8px;
}
.oc-row img { max-width: 160px; margin-inline: auto; }
.oc-name { font-weight: 700; font-size: 1.15rem; margin: 8px 0 4px; }
.oc-highlight { color: var(--muted); margin: 0; }

/* ---------- rating ---------- */
.rating { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; justify-content: center; }
.rating .stars { display: inline-flex; gap: 2px; }
.rating svg { width: 18px; height: 18px; color: var(--star); }
.score-pill {
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 2px 10px; font-size: .9rem; font-weight: 700;
}

/* ---------- buttons ---------- */
.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 10px 24px; border-radius: 8px;
  font-weight: 700; text-decoration: none; text-align: center; border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #c08a12; color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.oc-cta { display: grid; gap: 8px; justify-items: stretch; }

/* ---------- review grid (hub) ---------- */
.oc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 16px 0; }
.oc-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 10px;
}
.oc-card img { max-width: 150px; margin-inline: auto; }
.oc-card h2, .oc-card h3 { font-size: 1.15rem; margin: 0; }
.oc-card .oc-cta { margin-top: auto; }

/* ---------- review page ---------- */
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 8px; }
.review-head .kicker { font-size: 1.25rem; font-weight: 600; margin: 0; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9rem;
  color: var(--muted); margin-bottom: 16px;
}
.article-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.affiliate-disclaimer {
  font-size: .88rem; line-height: 1.55; background: #fff8e6; border: 1px solid #f0dca8;
  padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; display: flex; gap: 10px;
}
.affiliate-disclaimer svg { width: 18px; height: 18px; color: var(--gold-dark); flex: none; margin-top: 2px; }
.review-intro { display: grid; gap: 16px; }
.review-intro .review-logo { text-align: center; }
.review-intro .review-logo img { max-width: 200px; }
.review-intro h1 { margin-top: 0; }

.spec-table td:first-child { font-weight: 600; width: 30%; white-space: nowrap; }
.proscons { display: grid; gap: 16px; }
.proscons h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.proscons svg { width: 18px; height: 18px; }
.pros h3 { color: var(--good); }
.cons h3 { color: var(--bad); }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { display: flex; gap: 8px; margin-bottom: .6rem; }
.proscons li svg { flex: none; margin-top: 4px; }
.pros li svg { color: var(--good); }
.cons li svg { color: var(--bad); }
.cons { border-top: 1px solid var(--line); padding-top: 12px; }

.scorecard { display: grid; gap: 10px; margin: 0; }
.scorecard > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.scorecard dt { font-weight: 600; }
.scorecard dd { margin: 0; font-weight: 700; color: var(--gold-link); text-align: right; }
.scorecard dd .scorebar { margin-top: 4px; }
.scorebar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; width: 100%; }
.scorebar span { display: block; height: 100%; background: var(--gold); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; padding: 14px 44px 14px 16px; min-height: var(--tap);
  position: relative; color: var(--text);
}
.faq-q::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 9px; height: 9px; border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark);
  transform: translateY(-70%) rotate(45deg); transition: transform .18s;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
.faq-q:hover { background: #fbfbfc; }
.faq-a { padding: 0 16px; }
.faq-a[hidden] { display: none; }
.faq-a p:last-child { margin-bottom: 1rem; }

/* ---------- author ---------- */
.author-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0; list-style: none; padding: 0; }
.author-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; text-align: center; margin: 0;
}
.author-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-card .name { font-weight: 700; font-size: 1.05rem; margin: 10px 0 2px; display: block; }
.author-card .role { color: var(--muted); font-size: .9rem; margin: 0; }
.author-profile { display: grid; gap: 16px; align-items: start; }
.author-profile img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.author-byline { font-size: .9rem; color: var(--muted); }

/* ---------- content bits ---------- */
.text-area { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; margin: 16px 0 32px; }
.text-area h1:first-child { margin-top: 0; }
.p-title { font-weight: 700; font-size: 1.1rem; margin-bottom: .3rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: #f1f3f4; font-weight: 600; }
figure { margin: 0 0 1rem; }
.content img { border-radius: var(--radius-sm); }
.aligncenter { display: block; margin-inline: auto; }

/* ---------- related ---------- */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.related-grid li { margin: 0; }
.related-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 10px; text-decoration: none; color: var(--text); font-weight: 600; min-height: var(--tap);
}
.related-grid a:hover { border-color: var(--gold); }
.related-grid img { max-width: 72px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; margin-top: 45px; }
.footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; padding: 40px 0 30px; text-align: center; }
.footer-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; padding: 0 4px; }
.footer-menu a:hover { text-decoration: underline; }
.footer-copyright { padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-copyright p { margin: 0; text-align: center; font-size: .9rem; }
.footer-logo img { width: 110px; height: auto; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 48px 0; }
.notfound h1 { font-size: 3rem; margin-bottom: .5rem; }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .oc-grid { grid-template-columns: repeat(2, 1fr); }
  .author-grid { grid-template-columns: repeat(2, 1fr); }
  .proscons { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cons { border-top: 0; border-left: 1px solid var(--gold); padding-top: 0; padding-left: 20px; }
  .related-grid { grid-template-columns: repeat(4, 1fr); }
  .oc-cta { grid-auto-flow: column; justify-content: center; }
  .text-area { padding: 28px 32px; }
  .panel { padding: 24px; }
}
@media (min-width: 768px) {
  .main-head { padding: 20px 40px; }
  .head-logo img { width: 120px; }
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .oc-row { grid-template-columns: 1.1fr 1.4fr 1fr; text-align: center; gap: 20px; }
  .review-intro { grid-template-columns: 260px 1fr; align-items: center; }
  .author-profile { grid-template-columns: 140px 1fr; }
  .footer-grid { grid-template-columns: 40% 30% 30%; text-align: left; }
  .footer-menu a { justify-content: flex-start; }
}
@media (min-width: 992px) {
  .oc-grid { grid-template-columns: repeat(3, 1fr); }
  .author-grid { grid-template-columns: repeat(4, 1fr); }
  h1 { font-size: 2.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- homepage comparison table ---------- */
.compare-table { min-width: 900px; font-size: .92rem; }
.compare-table th[scope="row"] { vertical-align: middle; white-space: normal; }
.compare-table th[scope="row"] .brand { display: block; font-weight: 700; margin-top: 4px; }
.compare-table th[scope="row"] picture { display: block; }
.compare-table th[scope="row"] img { max-width: 64px; height: auto; margin: 4px 0; }
.compare-table .rank {
  display: inline-block; background: var(--ink); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 1px 9px; font-size: .75rem;
}
.compare-table td { vertical-align: middle; }
.compare-table .rating { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.muted { color: var(--muted); font-style: italic; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .85rem; white-space: nowrap; }

.home-byline { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #f0dca8; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .9rem; margin: 18px 0 0;
}
.brand-note svg { width: 18px; height: 18px; color: var(--gold-dark); flex: none; margin-top: 3px; }

/* stack the comparison table into cards on small screens */
@media (max-width: 767px) {
  .compare-table { min-width: 0; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare-table tr { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff; }
  .compare-table th[scope="row"] { display: block; border: 0; text-align: center; border-bottom: 2px solid var(--gold); }
  .compare-table td { display: grid; grid-template-columns: 42% 1fr; gap: 10px; border: 0; border-top: 1px solid var(--line); }
  .compare-table td::before { content: attr(data-label); font-weight: 600; }
  .compare-table .btn-sm { width: 100%; }
}

/* ---------- review key takeaways ---------- */
.takeaways { list-style: none; padding: 0; margin: 16px 0 0; }
.takeaways li { display: flex; gap: 8px; margin-bottom: .6rem; }
.takeaways li svg { width: 18px; height: 18px; color: var(--good); flex: none; margin-top: 4px; }
.compare-link { margin: 16px 0 0; font-weight: 600; }
.brand-entity { border-left: 4px solid var(--gold); padding-left: 16px; margin: 0 0 20px; }
.cta-pending {
  display: flex; gap: 10px; align-items: flex-start; font-size: .9rem;
  background: #f1f3f4; border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0 0;
}
.cta-pending svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 3px; }
