/* jthmnet.com — "Professional Casino Guide" redesign.
   1:1 with reference: dark navy hero + gold headline, emerald trust bar, gauge-score
   toplist with verified-pros, green offer CTAs, how-we-test cards, latest-payouts widget.
   Content/toplist area stays on white. Palette measured from reference:
   navy #0C1A34 · green #11724F · gold #D9A94A */
:root {
  --navy: #0C1A34;
  --navy-2: #14315e;
  --navy-ink: #0F2340;
  --green: #11724F;
  --green-2: #16A35C;
  --green-dark: #0C5C3E;
  --gold: #D9A94A;
  --gold-2: #F0CE82;
  --page: #FFFFFF;
  --panel: #F5F8FB;
  --card: #FFFFFF;
  --line: #E3E9F0;
  --ink: #1B2836;
  --muted: #5B6B7E;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(12,26,52,.08);
  --shadow-md: 0 8px 26px rgba(12,26,52,.12);
  --wrap: 1200px;
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif: Georgia,"Times New Roman",serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--page); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.navbar-brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links > li > a { color: var(--navy-ink); font-weight: 600; font-size: .93rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links > li > a:hover { color: var(--green); text-decoration: none; border-bottom-color: var(--green); }
.nav-links .has-child { position: relative; }
.nav-links .dropdown { position: absolute; top: 130%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); padding: .4rem; min-width: 210px; display: none; list-style: none; }
.nav-links .has-child:hover .dropdown { display: block; }
.nav-links .dropdown a { display: block; padding: .45rem .6rem; border-radius: 7px; font-size: .9rem; color: var(--navy-ink); }
.nav-links .dropdown a:hover { background: var(--panel); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-search { background: none; border: 0; cursor: pointer; color: var(--navy-ink); display: flex; }
.nav-search svg { width: 20px; height: 20px; }
.trust-badge { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.trust-badge .tb-ico { width: 30px; height: 30px; color: var(--green); flex: none; }
.trust-badge .tb-txt { line-height: 1.15; }
.trust-badge .tb-txt b { display: block; color: var(--navy-ink); font-size: .84rem; }
.trust-badge .tb-txt span { color: var(--muted); font-size: .68rem; }
.trust-badge:hover { text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- hero (dark navy) ---------- */
.hero { background: radial-gradient(120% 140% at 78% 30%, #16315c 0%, #0C1A34 60%); color: #eaf1fb; border-bottom: 3px solid var(--green); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .85fr; align-items: center; gap: 1.5rem; padding: 2.6rem 0 2.4rem; }
.breadcrumb { font-size: .8rem; color: #9db2d0; margin-bottom: .8rem; }
.breadcrumb a { color: #9db2d0; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: 3rem; line-height: 1.08; color: var(--gold); letter-spacing: .5px; margin-bottom: .8rem; }
.hero .sub { font-size: 1.1rem; color: #cfdcef; max-width: 620px; }
.hero .byline { font-size: .82rem; color: #9db2d0; margin-top: .9rem; }
.hero .byline a { color: var(--gold-2); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { max-width: 340px; border-radius: 16px; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* ---------- green trust bar ---------- */
.trust-bar { background: var(--green); color: #eafff5; }
.trust-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.2rem; padding: .8rem 22px; }
.trust-bar-item { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 600; }
.trust-bar-item svg { width: 20px; height: 20px; flex: none; color: var(--gold-2); }

/* ---------- section headings ---------- */
.section { padding: 2.4rem 0; }
.section.tight { padding: 1.4rem 0; }
.eyebrow { color: var(--green); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: none; margin-bottom: .1rem; }
h2 { font-family: var(--serif); font-size: 1.85rem; color: var(--navy-ink); margin-bottom: .8rem; line-height: 1.2; }
h3 { font-size: 1.2rem; color: var(--navy-ink); margin: 1.2rem 0 .5rem; }
p { margin-bottom: 1rem; }
.content-block ul, .content-block ol { margin: 0 0 1rem 1.25rem; }
.content-block li { margin-bottom: .4rem; }
.lead, .toplist-lead { color: var(--muted); max-width: 820px; margin-bottom: 1rem; }

/* ---------- toplist (gauge + verified pros) ---------- */
.toplist-section { position: relative; }
.clist { display: flex; flex-direction: column; gap: .7rem; }
.crow { display: grid; grid-template-columns: 40px minmax(168px,1.1fr) 84px minmax(200px,1.7fr) 150px; align-items: center; gap: .85rem;
        background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.crow.top1 { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-sm); }
.crank { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--navy-ink); text-align: center; }
.crank .rib { display: block; font-family: var(--font); font-size: .56rem; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.cbrand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.cbrand img { width: 104px; height: 60px; object-fit: contain; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.cbrand .bn { min-width: 0; }
.cbrand .bn strong { line-height: 1.2; }
.cbrand .bn strong { display: block; color: var(--navy-ink); font-size: 1.06rem; }
.cbrand .bonus { display: inline-block; margin-top: .2rem; background: #FBF1D8; color: #96690f; font-weight: 700; font-size: .78rem; padding: .12rem .5rem; border-radius: 4px; }
.gauge { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.gauge svg { width: 60px; height: 60px; }
.gauge .glabel { font-size: .62rem; color: var(--muted); margin-top: .15rem; white-space: nowrap; text-align: center; }
.cpros { font-size: .82rem; }
.cpros .pt { font-weight: 700; color: var(--green); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .25rem; }
.cpros ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1.2rem; margin: 0; }
.cpros li { display: flex; align-items: flex-start; gap: .4rem; color: var(--ink); line-height: 1.35; }
.cpros li svg { width: 14px; height: 14px; color: var(--green-2); flex: none; margin-top: .18rem; }
.ccta { text-align: right; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; text-align: center; cursor: pointer; border: 0; border-radius: 9px; text-decoration: none; transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(180deg,#178a5c 0%, #11724F 100%); color: #fff; padding: .72rem 1.2rem; font-size: .95rem; white-space: nowrap; box-shadow: 0 4px 12px rgba(17,114,79,.30); width: 100%; }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(17,114,79,.38); }
.btn-primary:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg,#f0ce82,#d9a94a); color: #3a2a00; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn .arr { font-weight: 800; }

/* ---------- comprehensive review cards (stacked, full-width) ---------- */
.rcards { display: flex; flex-direction: column; gap: 1.3rem; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 1.3rem 1.5rem; }
.rcard:first-child { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-sm); }
.rc-head { display: grid; grid-template-columns: 40px 132px 1fr 96px 200px; align-items: center; gap: 1.1rem; }
.rc-rank { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--green); }
.rc-logo { width: 132px; height: 76px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.rc-title h3 { margin: 0; font-size: 1.4rem; color: var(--navy-ink); }
.rc-best { color: var(--green); font-weight: 700; font-size: .84rem; }
.rc-pay { margin-top: .45rem; }
.pmrow { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.pm { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 5px; font-weight: 800; font-size: .82rem; color: #fff; background: var(--pmc, #64748b); }
.pm-card { background: #eef2f7; color: #334; font-size: .62rem; letter-spacing: .02em; border: 1px solid var(--line); }
.rc-score .gauge svg { width: 66px; height: 66px; }
.rc-cta { text-align: center; }
.rc-bonus { display: block; background: var(--gold-2); color: #7a5510; font-weight: 800; font-size: .84rem; padding: .3rem .5rem; border-radius: 6px; margin-bottom: .5rem; }
.rc-cta .btn { width: 100%; }
.rc-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .2rem; }
.rbadge, .licbadge { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--navy-ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; }
.rbadge svg { width: 14px; height: 14px; color: var(--muted); }
.licbadge { color: var(--green-dark); background: #E7F3EC; border-color: #cbe6d6; }
.licbadge svg { width: 15px; height: 15px; color: var(--green); }
.rc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin: 1rem 0 .3rem; }
.rc-body h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .4rem; }
.rc-pros h4 { color: var(--green); }
.rc-cons h4 { color: #a15b2a; }
.rc-body ul { list-style: none; margin: 0; }
.rc-body li { display: flex; align-items: flex-start; gap: .45rem; font-size: .9rem; margin-bottom: .3rem; line-height: 1.4; }
.rc-pros svg { width: 15px; height: 15px; color: var(--green-2); flex: none; margin-top: .15rem; }
.rc-cons .xm { color: #c0692f; font-weight: 800; flex: none; }
.rc-verdict { margin: .5rem 0 .3rem; color: var(--ink); }
.rc-tc { font-size: .72rem; color: var(--muted); margin: 0; }

/* ---------- latest payouts widget ---------- */
.payouts { background: var(--navy); color: #dbe6f6; border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-md); }
.payouts h3 { color: #fff; font-family: var(--font); font-size: .95rem; margin: 0 0 .8rem; display: flex; align-items: center; gap: .5rem; }
.payouts h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 3px rgba(22,163,92,.25); }
.payouts .pline { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.payouts .pline:first-of-type { border-top: 0; }
.payouts .pav { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#1d3a66,#16A35C); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .72rem; }
.payouts .pamt { color: var(--gold-2); font-weight: 700; }
.payouts .pago { color: #7f92ad; font-size: .7rem; }
/* float the widget beside the toplist only when there's genuinely room for both
   (below this the row grid would be squeezed and the CTA column overflowed the card) */
@media (min-width: 1180px) {
  .toplist-has-widget .clist { max-width: calc(100% - 320px); }
  .payouts.floated { position: absolute; right: 22px; top: 96px; width: 296px; }
}

/* ---------- how we test cards ---------- */
.howtest { background: var(--panel); }
.howtest-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.htcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); display: flex; gap: .9rem; }
.htcard .htico { width: 46px; height: 46px; border-radius: 10px; background: #E7F3EC; color: var(--green); flex: none; display: flex; align-items: center; justify-content: center; }
.htcard .htico svg { width: 26px; height: 26px; }
.htcard h3 { margin: 0 0 .25rem; font-size: 1.02rem; }
.htcard p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- content tables (comparison / banking matrices) ---------- */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; }
.content-block table, .table-wrapper table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.content-block th, .content-block td, .table-wrapper th, .table-wrapper td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.content-block thead th, .table-wrapper thead th { background: var(--panel); color: var(--navy-ink); font-weight: 700; font-size: .82rem; white-space: nowrap; position: sticky; top: 0; }
.content-block tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 768px) {
  .table-wrapper table, .content-block table { min-width: 560px; font-size: .85rem; }
  .table-wrapper th, .table-wrapper td, .content-block th, .content-block td { padding: .5rem .6rem; }
}

/* ---------- data visuals ---------- */
.viz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); margin: 1rem 0; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 82px; align-items: center; gap: .8rem; margin-bottom: .6rem; font-size: .9rem; }
.bar-track { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; height: 14px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg,var(--green-2),var(--green)); border-radius: 999px; }
.bar-val { text-align: right; font-weight: 700; color: var(--green); font-size: .85rem; }
.statstrip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin: 1rem 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--green); }
.stat span { font-size: .78rem; color: var(--muted); }

/* ---------- FAQ / callout ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; padding: 0 1.1rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-ink); padding: .95rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green); font-weight: 800; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] { padding-bottom: .8rem; }
.callout { background: #fff; border-left: 4px solid var(--green); border-radius: 8px; padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); margin: 1.1rem 0; font-size: .95rem; }
.callout.rg { border-left-color: var(--gold); }
.affiliate-disclosure { font-size: .8rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .7rem 1rem; margin: 1rem 0; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #c6d2e4; margin-top: 2.5rem; padding: 2.6rem 0 1.4rem; font-size: .9rem; border-top: 3px solid var(--green); }
.footer a { color: #dbe6f6; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 1.4rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: .7rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .4rem; }
.footer-brand img { height: 40px; margin-bottom: .7rem; }
.social-row { display: flex; gap: .8rem; margin: .8rem 0; }
.social-row a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.social-row a:hover { background: var(--green); }
.social-row svg { width: 17px; height: 17px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; font-size: .78rem; color: #9fb0c8; }
.footer-legal p { margin-bottom: .5rem; }
.rg-line { font-weight: 700; color: #fff; }

/* ---------- mobile ---------- */
@media (max-width: 980px) { .howtest-cards { grid-template-columns: 1fr; } .statstrip { grid-template-columns: repeat(2,1fr); } .footer-cols { grid-template-columns: 1fr 1fr; }
  .payouts.floated { position: static; width: 100%; margin: 0 0 1rem; } .toplist-has-widget .clist { max-width: 100%; } }
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero-inner { padding: 1.6rem 0 1.4rem; }
  .hero h1 { font-size: 2rem; }
  .hero .sub { font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-actions .trust-badge .tb-txt { display: none; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 22px 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li > a { display: block; padding: .8rem 0; border-bottom: 0; }
  .nav-links .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 .4rem .8rem; }
  .trust-bar .wrap { justify-content: flex-start; gap: .5rem 1.1rem; }
  .trust-bar-item { font-size: .78rem; }
  /* toplist row -> card */
  .crow { grid-template-columns: 1fr; text-align: center; gap: .7rem; padding: 1rem .9rem 1.1rem; position: relative; }
  .crank { font-size: 1rem; color: var(--muted); }
  .crank .rib { display: inline-block; margin-left: .4rem; }
  .cbrand { flex-direction: column; gap: .55rem; }
  .cbrand img { width: 190px; height: 96px; max-width: 82%; padding: 10px 14px; border-radius: 12px; }
  .cbrand .bn strong { font-size: 1.2rem; }
  .cbrand .bonus { font-size: .9rem; padding: .28rem .8rem; margin-top: .35rem; }
  .gauge { flex-direction: row; justify-content: center; align-items: center; gap: .55rem; }
  .gauge svg { width: 66px; height: 66px; }
  .gauge .glabel { font-size: .8rem; }
  .cpros { border-top: 1px solid var(--line); padding-top: .7rem; }
  .cpros .pt { text-align: center; margin-bottom: .5rem; }
  .cpros ul { grid-template-columns: 1fr 1fr; text-align: left; gap: .3rem .9rem; max-width: 340px; margin: 0 auto; }
  .ccta .btn { max-width: 340px; margin: .2rem auto 0; padding: .85rem; font-size: 1.02rem; }
  h2 { font-size: 1.5rem; }
  .bar-row { grid-template-columns: 100px 1fr 64px; font-size: .82rem; }
  /* review cards -> stack header */
  .rcard { padding: 1.1rem; }
  .rc-head { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .6rem; }
  .rc-rank { font-size: 1.1rem; }
  .rc-logo { width: 170px; height: 92px; }
  .rc-title h3 { font-size: 1.35rem; }
  .rc-pay { display: flex; justify-content: center; }
  .rc-cta { width: 100%; max-width: 340px; }
  .rc-badges { justify-content: center; }
  .rc-body { grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
  .rc-verdict { text-align: left; }
}
