/* jthmnet.com — offshore casino silo. Light theme, 1:1 with approved mockup.
   Palette measured from docs/design/mockup.png:
   navy #14355E · gold #F39D26 · page-bg #F8FBFF */
:root {
  --navy: #14355E;
  --navy-2: #1E2A5A;
  --navy-ink: #0F2340;
  --teal: #2E7FA6;
  --gold: #F39D26;
  --gold-deep: #B9720C;
  --gold-soft: #FEF3D9;
  --page: #F8FBFF;
  --card: #FFFFFF;
  --line: #E4EAF2;
  --ink: #1B2836;
  --muted: #5B6B7E;
  --ok: #2E9E6B;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(20,53,94,.07);
  --shadow-md: 0 6px 22px rgba(20,53,94,.10);
  --wrap: 1180px;
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-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(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: #cdd8e8;
  font-size: .8rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #eaf1fb; }
.topbar .rg { font-weight: 600; letter-spacing: .01em; }

/* ---------- navbar ---------- */
.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: 66px; }
.navbar-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; }
.navbar-brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; list-style: none; }
.nav-links a { color: var(--navy-ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.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; }
.nav-links .dropdown a:hover { background: var(--page); }
.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 ---------- */
.hero {
  background: linear-gradient(180deg,#EFF4FB 0%, #F8FBFF 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 1.6rem;
}
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: .9rem; }
.breadcrumb a { color: var(--muted); }
.hero h1 { font-size: 2.5rem; line-height: 1.12; color: var(--navy); letter-spacing: -.01em; margin-bottom: .7rem; }
.hero .sub { font-size: 1.08rem; color: var(--muted); max-width: 760px; }
.byline { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.byline strong { color: var(--navy-ink); }
/* trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .8rem; font-size: .82rem; font-weight: 600; color: var(--navy-ink);
  box-shadow: var(--shadow-sm);
}
.trust-chip svg { width: 16px; height: 16px; flex: none; color: var(--teal); }

/* ---------- generic content ---------- */
.section { padding: 2.1rem 0; }
.section.tight { padding: 1.3rem 0; }
h2 { font-size: 1.6rem; color: var(--navy); 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 { font-size: 1.05rem; color: var(--muted); }
.toplist-lead { color: var(--muted); max-width: 820px; margin-bottom: 1rem; }

/* ---------- toplist table ---------- */
.toplist-section { }
.table-wrapper { overflow-x: auto; }
.toplist-table {
  width: 100%; border-collapse: separate; border-spacing: 0 .55rem; margin: .4rem 0 .6rem;
}
.toplist-table thead th {
  text-align: left; padding: .5rem 1rem; color: var(--muted);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.toplist-row { background: var(--card); box-shadow: var(--shadow-sm); }
.toplist-row td { padding: .95rem 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.toplist-row td:first-child { border-left: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); }
.toplist-row td:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
.toplist-row.highlight-row td { border-color: #F3D8A6; }
.toplist-row.highlight-row td:first-child { box-shadow: inset 5px 0 0 var(--gold); }
.col-rank { width: 54px; font-weight: 800; font-size: 1.1rem; color: var(--navy); position: relative; }
.editor-ribbon { display: block; font-size: .58rem; font-weight: 800; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .03em; margin-top: .2rem; }
.col-logo { min-width: 220px; }
.brand-cell { display: flex; align-items: center; gap: .85rem; }
.toplist-logo { width: 92px; height: 50px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; flex: none; }
.toplist-brand { display: flex; flex-direction: column; line-height: 1.25; }
.toplist-brand strong { color: var(--navy-ink); font-size: 1rem; }
.toplist-descriptor { font-size: .78rem; color: var(--muted); max-width: 16ch; }
.toplist-brand a.review-link { font-size: .74rem; color: var(--teal); margin-top: .1rem; }
.col-bonus { min-width: 170px; }
.toplist-bonus {
  display: inline-block; background: var(--gold-soft); color: var(--gold-deep);
  font-weight: 800; font-size: .95rem; padding: .35rem .7rem; border-radius: 4px;
  cursor: default; pointer-events: none; box-shadow: none;
}
.bonus-sub { display: block; font-size: .74rem; color: var(--muted); margin-top: .2rem; font-weight: 500; }
.col-feat { min-width: 150px; font-size: .82rem; color: var(--ink); }
.col-feat ul { list-style: none; margin: 0; }
.col-feat li { display: flex; align-items: center; gap: .35rem; margin-bottom: .2rem; }
.col-feat svg { width: 13px; height: 13px; color: var(--ok); flex: none; }
.col-rating { width: 74px; }
.toplist-rating { color: var(--navy); font-weight: 800; font-size: 1.15rem; }
.toplist-rating small { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; }
.col-cta { width: 168px; text-align: right; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 800; text-align: center; cursor: pointer;
  border: 0; border-radius: 10px; text-decoration: none; transition: transform .12s, box-shadow .12s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg,#F7B24B 0%, #F39D26 55%, #E4890F 100%);
  color: #3a2400; padding: .7rem 1.15rem; font-size: .95rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(243,157,38,.34);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(243,157,38,.42); }
.btn-primary:active { transform: translateY(1px); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ---------- how-we-rank strip ---------- */
.rank-strip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.2rem 1.4rem; }
.rank-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.rank-item { display: flex; gap: .7rem; align-items: flex-start; }
.rank-item .ico { width: 34px; height: 34px; flex: none; color: var(--teal); }
.rank-item h3 { margin: 0 0 .2rem; font-size: 1rem; }
.rank-item p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- data visuals (bar rows / gauges) ---------- */
.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 74px; align-items: center; gap: .8rem; margin-bottom: .6rem; font-size: .9rem; }
.bar-track { background: var(--page); border: 1px solid var(--line); border-radius: 999px; height: 14px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg,var(--teal),var(--navy)); border-radius: 999px; }
.bar-val { text-align: right; font-weight: 700; color: var(--navy); 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-size: 1.7rem; color: var(--navy); }
.stat span { font-size: .78rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.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(--gold-deep); font-weight: 800; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] { padding-bottom: .8rem; }

/* ---------- callout / disclosure ---------- */
.callout { background: #fff; border-left: 4px solid var(--teal); 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: #fff; 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.4rem 0 1.4rem; font-size: .9rem; }
.footer a { color: #dbe6f6; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 1.6rem; }
.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; }
.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: 900px) {
  .rank-grid { grid-template-columns: 1fr; gap: 1rem; }
  .statstrip { grid-template-columns: repeat(2,1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  /* tighten hero so the first toplist card peeks into the 390x844 fold */
  .hero { padding: 1.2rem 0 .9rem; }
  .hero h1 { font-size: 1.7rem; margin-bottom: .5rem; }
  .hero .sub { font-size: .95rem; }
  .byline { margin-top: .55rem; }
  .trust-strip { gap: .4rem; margin-top: .8rem; }
  .trust-chip { padding: .32rem .6rem; font-size: .76rem; }
  .toplist-section.section { padding-top: 1.1rem; }
  .toplist-section h2 { font-size: 1.3rem; }
  .toplist-section .toplist-lead { font-size: .9rem; margin-bottom: .7rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem 20px 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 a { display: block; padding: .8rem 0; }
  .nav-links .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 .8rem; }
  .navbar-brand img { height: 46px; }

  /* toplist reflow to card */
  .toplist-table thead { display: none; }
  .toplist-table, .toplist-table tbody, .toplist-row, .toplist-row td { display: block; width: 100%; }
  .toplist-table { border-spacing: 0; }
  .toplist-row { border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: .8rem; padding: .8rem .9rem; text-align: center; }
  .toplist-row.highlight-row { border-color: var(--gold); }
  .toplist-row td { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: .3rem 0 !important; }
  .col-rank { width: auto; }
  .editor-ribbon { display: inline-block; margin-left: .4rem; }
  .brand-cell { flex-direction: column; gap: .45rem; }
  .toplist-descriptor { max-width: none; }
  .toplist-logo { width: 130px; height: 62px; }
  .col-feat ul { display: inline-flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
  .col-cta { width: 100%; text-align: center; }
  .col-cta .btn { display: block; width: 100%; padding: .8rem; font-size: 1rem; }
  .bar-row { grid-template-columns: 100px 1fr 60px; font-size: .82rem; }
}
