/* CasinoFinderHub - ledger.css
   Long-form bonus pages. Loads after finder.css and reuses its tokens, header and footer;
   everything below is vocabulary this page family owns. */

/* page crest - light, centred headline over a high-key backdrop, then the podium. The
   backdrop is washed toward paper at the top so navy type clears 16:1 on it, and the medals
   are generated artwork, one drawing recoloured three ways. */
.crest {
  position: relative;
  /* padding, not margin: the header floats, so this section's background has to
     run up underneath it instead of starting below it */
  padding-top: var(--bar-h);
  background:
    url('/images/crest-chipbed.webp') center bottom / cover no-repeat,
    linear-gradient(180deg, #FFFFFF 0%, var(--sheet) 100%);
  border-bottom: 1px solid var(--edge);
  overflow: hidden;
}
.crest::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(880px 400px at 50% -36%, rgba(27,79,216,0.10) 0%, rgba(27,79,216,0) 70%),
    radial-gradient(520px 280px at 92% 112%, rgba(27,79,216,0.07) 0%, rgba(27,79,216,0) 64%);
}
/* the chip bed would otherwise be sliced mid-chip by the section edge */
.crest::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 84px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(244,247,252,0) 0%, rgba(244,247,252,0.86) 74%, var(--sheet) 100%);
}
.crest .hold { position: relative; z-index: 1; padding-top: 34px; padding-bottom: 30px; }

/* one line wherever the screen allows: the type scales with the viewport instead of wrapping */
.crest h1 {
  font-size: clamp(1.42rem, 3.32vw, 2.6rem);
  line-height: 1.16;
  color: var(--navy);
  text-align: center;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.crest-lede {
  margin: 14px auto 0;
  max-width: 74ch;
  text-align: center;
  font-size: 1.02rem;
  color: var(--ink-2);
}

.podium-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  max-width: 940px;
  margin: 44px auto 0;
}
.pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  padding: 12px 10px 13px;
  box-shadow: var(--lift);
  transition: transform 0.16s var(--glide), box-shadow 0.16s var(--glide);
}
.pod:hover { transform: translateY(-3px); box-shadow: var(--lift-hi); }
.pod-medal { height: 96px; width: auto; margin-top: -30px; filter: drop-shadow(0 6px 10px rgba(18,37,66,0.16)); }
.pod-1 .pod-medal { height: 112px; margin-top: -38px; }
.pod-mark { width: 100%; max-width: 104px; height: auto; border-radius: 6px; margin: 8px 0 7px; }
.pod-txt { display: flex; flex-direction: column; min-width: 0; }
.pod-name { font-size: 0.94rem; font-weight: 800; color: var(--navy); line-height: 1.22; }
.pod-line { font-size: 0.78rem; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.pod-1 { padding-top: 16px; border-color: var(--brass-edge); background: linear-gradient(180deg, #FFFDF6 0%, var(--panel) 62%); }

.discline {
  background: var(--navy-wash);
  border-bottom: 1px solid var(--edge);
  font-size: 0.86rem;
  color: var(--ink-2);
}
.discline .hold { padding-top: 10px; padding-bottom: 10px; }

/* the editor, one line under the disclosure - a rule, not a card */
.bylane { border-bottom: 1px solid var(--edge); background: var(--panel); }
.bylane .hold {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 0.86rem;
  color: var(--faint);
}
.bylane img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--edge); }
.bylane a { font-weight: 800; color: var(--ink); text-decoration: none; }
.bylane a:hover { color: var(--navy-3); }
.bylane span + span::before,
.bylane a + span::before { content: "·"; margin-right: 10px; color: var(--edge-hi); }

/* two-pane body */
.spread { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 30px 0 46px; }
.spread-read { min-width: 0; }
.spread-read h2 {
  font-size: 1.42rem;
  color: var(--navy);
  margin: 46px 0 16px;
  text-align: center;
  scroll-margin-top: calc(var(--bar-h) + 18px);
}
/* a short centred rule under each heading - the page is long, and an unbroken left edge
   from top to bottom is what made it read as a wall */
.spread-read h2::after {
  content: "";
  display: block;
  width: 52px; height: 3px;
  margin: 13px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brass-3) 0%, var(--brass-2) 100%);
}
.spread-read h3 { font-size: 1.1rem; color: var(--ink); margin: 24px 0 8px; }
.spread-read > h3 { text-align: center; }
.spread-read p { margin-bottom: 14px; color: var(--ink-2); }
.spread-read p strong { color: var(--ink); }
.spread-read ul, .spread-read ol { margin: 0 0 16px 20px; color: var(--ink-2); }
.spread-read li { margin-bottom: 7px; }

/* sticky contents rail */
.railtoc {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  padding: 16px 18px;
}
.railtoc-h {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.railtoc ol { list-style: none; counter-reset: toc; }
.railtoc li { counter-increment: toc; margin-bottom: 2px; }
.railtoc a {
  display: flex;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 0.89rem;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.35;
}
.railtoc a::before { content: counter(toc); color: var(--edge-hi); font-weight: 800; }
.railtoc a:hover { background: var(--panel-2); color: var(--navy-3); }
.railtoc a.here { background: var(--navy-wash); color: var(--navy-2); font-weight: 700; }
.railtoc a.here::before { color: var(--navy-3); }

.railpick {
  margin-top: 16px;
  background: var(--chrome-2);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  padding: 16px 18px 18px;
}
.railpick-h {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 11px;
}
.railpick img.pick-mark { width: 100%; max-width: 150px; border-radius: 7px; }
.railpick .pick-name { font-weight: 800; color: var(--navy); margin-top: 10px; }
.railpick .pick-why { font-size: 0.88rem; color: var(--ink-2); margin: 6px 0 12px; }

/* data tables */
.boardwrap { overflow-x: auto; margin: 6px 0 10px; border: 1px solid var(--edge); border-radius: var(--bend); background: var(--panel); }
.board { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.board th, .board td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--panel-3); }
.board thead th {
  background: var(--panel-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody tr:nth-child(even) { background: #FBFCFE; }
.board td a { font-weight: 700; text-decoration: none; }
.board td a:hover { text-decoration: underline; }
.board .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-note { font-size: 0.84rem; color: var(--faint); margin: 8px 0 18px; }
.tagfree { color: var(--leaf); font-weight: 700; }
.tagboth { color: var(--brass); font-weight: 700; }

/* ranked casino block */
.rankblock {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  padding: 18px;
  margin: 0 0 22px;
  box-shadow: var(--lift);
  scroll-margin-top: calc(var(--bar-h) + 18px);
}
.rank-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rank-no {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--navy-3);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.02rem;
}
.rank-mark { width: 128px; height: 64px; border-radius: 8px; flex: 0 0 auto; }
.rank-id { min-width: 0; flex: 1 1 190px; }
.rank-id h3 { margin: 0; font-size: 1.16rem; color: var(--navy); }
.rank-lic { font-size: 0.85rem; color: var(--faint); }

.rank-offer {
  margin: 15px 0 0;
  border-radius: 9px;
  padding: 13px 15px;
  background: linear-gradient(180deg, #FFFCF3 0%, var(--brass-wash) 100%);
  border: 1px solid var(--brass-edge);
}
.rank-offer .offer-h {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brass);
}
.rank-offer p { margin: 3px 0 0; font-size: 1.02rem; font-weight: 700; color: #4A3200; }

.factrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 15px 0 0;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: 9px;
  overflow: hidden;
}
.factrow div { background: var(--panel); padding: 11px 12px; text-align: center; }
.factrow dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.factrow dd { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-top: 2px; }

.rank-cols { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 15px 0 0; }
.rank-cols h4 {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 7px;
}
.rank-cols ul { list-style: none; margin: 0; }
.rank-cols li {
  display: flex;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-bottom: 6px;
  line-height: 1.5;
}
.rank-cols img { flex: 0 0 auto; margin-top: 3px; }
.good img { filter: invert(31%) sepia(84%) saturate(560%) hue-rotate(115deg) brightness(93%); }
.bad img { filter: invert(48%) sepia(9%) saturate(560%) hue-rotate(175deg) brightness(92%); }

.rank-body { margin-top: 15px; }
.rank-body p { font-size: 0.96rem; }
.rank-verdict {
  margin-top: 4px;
  border-left: 3px solid var(--navy-3);
  background: var(--navy-wash);
  border-radius: 0 9px 9px 0;
  padding: 11px 14px;
  font-size: 0.94rem;
  color: var(--ink);
}
.rank-verdict strong { color: var(--navy-2); }
.rank-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 15px; }
.rank-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-3);
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 20px;
}
.rank-cta:hover { background: var(--navy-2); }
.rank-cta img { filter: brightness(0) invert(1); }
.rank-alt { font-size: 0.88rem; color: var(--ink-2); }

/* lower ranks, compact */
.minirow { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 10px; }
.minicard {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  padding: 16px 15px 17px;
  text-align: center;
}
.minicard img.mini-mark { width: 112px; height: 56px; border-radius: 7px; margin: 0 auto; display: block; }
.minicard h3 { font-size: 1.02rem; margin: 9px 0 3px; color: var(--navy); }
.minicard p { font-size: 0.9rem; margin-bottom: 9px; }
.mini-go { font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.mini-go:hover { text-decoration: underline; }

/* figure with the worked chart */
.costfig { margin: 6px 0 20px; }
.costfig img { width: 100%; border: 1px solid var(--edge); border-radius: var(--bend); display: block; }
.costfig figcaption { font-size: 0.84rem; color: var(--faint); margin-top: 8px; }

.notebox {
  background: var(--leaf-wash);
  border: 1px solid #B6E5CF;
  border-radius: var(--bend);
  padding: 15px 17px;
  margin: 0 0 18px;
}
.notebox p:last-child { margin-bottom: 0; }
.notebox strong { color: var(--leaf); }

.stepline { list-style: none; margin: 0 0 18px !important; counter-reset: stp; }
.stepline li {
  counter-increment: stp;
  position: relative;
  padding-left: 42px;
  margin-bottom: 13px;
}
.stepline li::before {
  content: counter(stp);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-wash);
  color: var(--navy-2);
  font-weight: 800;
  font-size: 0.86rem;
}

.critgrid { display: grid; grid-template-columns: 1fr; gap: 13px; margin-bottom: 18px; }
.critcard {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  padding: 18px 16px 17px;
  text-align: center;
}
.critcard img { margin: 0 auto 9px; display: block; }
.critcard h3 { font-size: 0.98rem; margin: 0 0 6px; color: var(--navy); }
.critcard p { font-size: 0.9rem; margin: 0; }

/* FAQ */
.askfold { border: 1px solid var(--edge); border-radius: var(--bend); overflow: hidden; background: var(--panel); margin-bottom: 20px; }
.askq {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  border: 0;
  border-top: 1px solid var(--panel-3);
  padding: 15px 17px;
  cursor: pointer;
}
.askfold > .askq:first-child { border-top: 0; }
.askq:hover { background: var(--panel-2); }
.askq img { flex: 0 0 auto; transition: transform 0.2s var(--glide); }
.askq[aria-expanded="true"] img { transform: rotate(180deg); }
.aska { padding: 0 17px 16px; }
.aska[hidden] { display: none; }
.aska p { font-size: 0.94rem; margin-bottom: 10px; }
.aska p:last-child { margin-bottom: 0; }

/* author card */
.writer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  overflow: hidden;
  margin-bottom: 22px;
}
.writer img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 320px; }
.writer-body { padding: 18px 20px 20px; }
.writer-body h3 { margin-top: 0; font-size: 1.16rem; color: var(--navy); }
.writer-role { font-size: 0.86rem; color: var(--faint); margin-bottom: 10px; }
.writer-body p { font-size: 0.94rem; }

.footnote {
  border-top: 1px solid var(--edge);
  padding-top: 16px;
  font-size: 0.84rem;
  color: var(--faint);
}
.footnote p { margin-bottom: 8px; }

@media (max-width: 620px) {
  /* stack the rank header so a long casino name never squeezes against the logo */
  .rank-top { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .rank-id { flex: 1 1 auto; text-align: center; }
  .rank-offer { text-align: center; }
  .factrow dt { font-size: 0.68rem; letter-spacing: 0.04em; }
  .factrow dd { font-size: 0.94rem; }
  .writer img { max-height: 230px; }
  .writer-body { text-align: center; }
  .writer-body p:not(.writer-role) { text-align: left; }
  .rank-act { justify-content: center; }
  .rank-cta { width: 100%; justify-content: center; }
  /* wrapped, a leading separator dangles at the start of the second line */
  .bylane span::before, .bylane a + span::before { content: none !important; }
  .bylane .hold { gap: 4px 14px; }
}
@media (max-width: 520px) {
  .podium-row { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .pod { flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 11px 12px; }
  .pod-medal, .pod-1 .pod-medal { height: 58px; margin-top: 0; }
  .pod-mark { width: 88px; margin: 0; flex: 0 0 auto; }
}
@media (min-width: 620px) {
  .rank-cols { grid-template-columns: 1fr 1fr; }
  .factrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .minirow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .critgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .writer { grid-template-columns: 190px 1fr; }
  .writer img { max-height: none; }
}
@media (min-width: 900px) {
  .crest .hold { padding-top: 46px; padding-bottom: 42px; }
  .podium-row { gap: 16px; margin-top: 52px; }
  .critgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .minirow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .spread { grid-template-columns: 274px minmax(0, 1fr); gap: 38px; }
  .spread-rail { position: sticky; top: calc(var(--bar-h) + 18px); align-self: start; max-height: calc(100vh - var(--bar-h) - 36px); overflow-y: auto; }
}

/* ---- venue review pages ---------------------------------------------------
   The identity block that opens a casino review: logo, licence line, the offer
   as published, and the figures the review argues from. */
.venuecard {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  padding: 20px 18px 18px;
  margin: 0 0 22px;
}
.venue-top { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.venue-mark { border: 1px solid var(--edge); border-radius: 8px; display: block; flex: none; }
.venue-id { min-width: 0; }
.venue-id h2 { font-size: 1.16rem; margin: 0 0 3px; color: var(--navy); text-align: left; }
.venue-id h2::after { display: none; }
.venue-lic { font-size: 0.85rem; color: var(--faint); margin: 0; }
.venue-offer {
  background: var(--brass-wash);
  border: 1px solid var(--brass-edge);
  border-radius: var(--bend);
  padding: 13px 15px;
  margin-bottom: 15px;
}
.venue-offer p { margin: 0; font-weight: 700; color: var(--brass); font-size: 1.02rem; }
.venue-offer span { display: block; font-weight: 600; font-size: 0.79rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brass); opacity: .92; margin-bottom: 4px; }
/* .78 composited to #A47730 on the brass wash - 3.68:1. .92 clears 4.5. */
.venue-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.venue-act .rank-cta { margin: 0; }
.venue-note { font-size: 0.85rem; color: var(--faint); margin: 0; }
.venue-grade { font-weight: 700; color: var(--navy-3); }

@media (min-width: 980px) {
  .venue-top { gap: 18px; }
}

/* ---- learn hub: the guides grid and the see-also strip on money pages ---- */
.learnrow { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 0 26px; }
.learncard {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  padding: 18px 17px 17px;
  display: flex;
  flex-direction: column;
}
.learncard h3 { font-size: 1.04rem; margin: 0 0 7px; color: var(--navy); }
.learncard h3 a { text-decoration: none; color: inherit; }
.learncard h3 a:hover { text-decoration: underline; }
.learncard p { font-size: 0.91rem; margin: 0 0 11px; }
.learn-meta {
  margin-top: auto;
  font-size: 0.81rem;
  color: var(--faint);
  border-top: 1px solid var(--edge);
  padding-top: 10px;
}
.learn-meta strong { color: var(--navy-3); font-weight: 700; }

.seealso {
  background: var(--panel-2);
  border: 1px solid var(--edge);
  border-radius: var(--bend);
  padding: 17px 18px 15px;
  margin: 6px 0 22px;
}
.seealso p.seealso-h { font-weight: 700; color: var(--navy); margin: 0 0 9px; font-size: 0.98rem; }
.seealso ul { margin: 0; padding-left: 20px; }
.seealso li { font-size: 0.91rem; margin-bottom: 6px; }
.seealso li:last-child { margin-bottom: 0; }

@media (min-width: 700px) {
  .learnrow { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .learnrow { grid-template-columns: repeat(3, 1fr); }
}
