/*
 * The static pages only: the parts of the public site that the front page
 * does not use (the path from the front page, a page's heading, the
 * comparison tables, the price, the features page, the mixed games page, the
 * poker variants, the guides, the money page, What's New and the payout
 * calculator). UI-01.
 *
 * The app never imports this file, so it is not in the app's stylesheet:
 * scripts/prerender-site.mjs copies it into dist/assets under a name made
 * from its content, and every static page links it after the app's
 * stylesheet. It is copied as written, so it keeps to plain CSS: no nesting
 * and nothing a browser of 2023 cannot read. site.css has the rest.
 */

/* The path to this page, under the bar. */
.site-crumbs { margin: 0; padding: 18px 0 0; font-size: 14px; }
.site-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.site-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.site-crumbs li + li::before { content: '›'; color: var(--line-strong); }
.site-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }
.site-crumbs [aria-current="page"] { color: var(--ink); }

/* The first section of a page under the bar. */
.site-page-head {
  padding: 0 0 clamp(28px, 4vw, 48px);
  background: radial-gradient(ellipse 70% 80% at 10% 0%, rgba(52, 178, 124, 0.13), transparent 70%);
}
.site-page-head h1 { max-width: 22ch; }
.site-page-head .site-lede { max-width: 62ch; }
.site-page-eyebrow { margin-top: clamp(16px, 3vw, 32px); }
.site-crumbs + h1 { margin-top: clamp(16px, 3vw, 32px); }

/* A heading inside a tile, smaller than a section's. */
.site h2.site-tile-title { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 12px; }
.site-tile .site-ticks { margin-top: 12px; }

/* For a screen reader only. */
.site-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The price, on the pricing page. */
.site-price-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(52, 178, 124, 0.4);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(52, 178, 124, 0.12), var(--card));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.site-price-label { margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.site-price-amount { margin: 4px 0 6px; font-size: clamp(44px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.site-price-card .site-ticks { margin: 20px 0 0; }

/* A comparison: the topic, PokerSjef, the other product. */
.site-compare thead th:nth-child(2) { color: var(--accent); }
.site-compare tbody th { width: 24%; }
.site-compare td { width: 38%; }
.site-source-ref { font-size: 12px; white-space: nowrap; }
.site-sources { font-size: 15px; }
.site-sources li { overflow-wrap: anywhere; }

/* A comparison or an example table. It scrolls inside its box on a narrow phone, never the page. */
.site-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.site-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.site-table th, .site-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.site-table tr:last-child th, .site-table tr:last-child td { border-bottom: 0; }
.site-table thead th { color: var(--ink-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--card-raised); }
.site-table tbody th { color: var(--ink); font-weight: 600; min-width: 140px; }
.site-table td { color: var(--ink-soft); min-width: 150px; }
.site-table td strong { color: var(--ink); }
.site-table .site-us { color: var(--ink); background: rgba(52, 178, 124, 0.06); }
@media (max-width: 640px) {
  .site-table { font-size: 14px; }
  .site-table th, .site-table td { padding: 10px; }
  .site-table tbody th { min-width: 110px; }
  .site-table td { min-width: 130px; }
}

/* A second heading in running text keeps its distance from the text above it. */
.site-prose h2:not(:first-child) { margin-top: 36px; }

/* The parts of a long page, as chips under its heading. */
.site-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.site-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.site-chips a:hover { border-color: var(--accent); color: var(--accent); }

/* The three kinds of prize, on the features page. */
.site-kinds { display: grid; gap: 12px; }
.site-kind { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.site-kind:first-child { border-color: rgba(52, 178, 124, 0.45); background: linear-gradient(180deg, rgba(52, 178, 124, 0.1), var(--card)); }
.site-kind h3 { margin: 0 0 4px; }
.site-kind p { margin: 0; color: var(--ink-soft); }

/* The five roles, from the most rights to the fewest. */
.site-roles { display: grid; gap: 10px; margin: 0; }
.site-roles > div { padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--card); }
.site-roles dt { font-weight: 700; color: var(--ink); }
.site-roles dd { margin: 4px 0 0; color: var(--ink-soft); }

/* The games of a mix, each a link to its rules. */
.site-mix { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.site-mix a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
.site-mix a:hover { border-color: var(--accent); color: var(--accent); }

.site-wide-shot { max-width: 920px; margin: clamp(32px, 5vw, 56px) auto 0; }
.site-after-steps { margin-top: 18px; }

/* A list of ticks that may run wide, such as where the data is. */
.site-ticks-wide { max-width: 860px; margin-top: 8px; }

/* The poker variants: a card for each game on the hub, the app's guide on a game's page. */
.site-variant-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.site-variant-card:hover { border-color: var(--accent); }
.site-variant-name { color: var(--ink); font-size: 17px; font-weight: 700; }
.site-variant-what { color: var(--ink-soft); font-size: 14px; }
.site-guide-section { padding-top: clamp(8px, 2vw, 24px); }
.site-guide { max-width: 860px; }
.site-guide .guide { font-size: 16px; }
.site-guide .guide section { margin-top: 32px; }
.site-guide .guide h3 { font-size: 22px; margin-bottom: 10px; }
.site-guide-limits { margin-top: 40px; }
.site-guide-limits h2 { font-size: 22px; }
.site-guide-lines { padding: 10px 16px 12px 36px; }

/* On a phone a comparison is a card for each topic: the topic, then each product with its name. */
@media (max-width: 640px) {
  .site-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-compare, .site-compare tbody, .site-compare tr, .site-compare th, .site-compare td { display: block; width: auto; min-width: 0; }
  .site-compare tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .site-compare tr:last-child { border-bottom: 0; }
  .site-compare tbody th { padding: 0 0 8px; border: 0; width: auto; min-width: 0; }
  .site-compare td { padding: 6px 0; border: 0; width: auto; }
  .site-compare td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .site-compare td.site-us { background: none; color: var(--ink); }
  .site-compare td.site-us::before { color: var(--accent); }
}

/* A link under a part of the features page, to its guide or its page. */
.site-part-more { margin: 18px 0 0; }
.site-part-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* The links to the pages beside this one, at the end of a page. */
.site-more { margin-top: 8px; }

/* A guide: the words in one column, or beside a picture. */
.site-guide-single { max-width: 860px; }
.site-guide-words .site-steps,
.site-guide-words .site-ticks { margin-top: 8px; }
.site-guide-paragraph { max-width: 70ch; margin: 18px 0 0; color: var(--ink-soft); }
.site-guide-note { margin-top: 20px; max-width: 70ch; }

/* The example of the payouts, on the money page: worked out by the payout rules. */
.site-payout-example { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.site-payout-example figcaption { display: grid; gap: 4px; margin-bottom: 14px; }
.site-payout-example figcaption strong { font-size: 17px; }
.site-payout-example figcaption span { color: var(--ink-soft); font-size: 14px; }
.site-payout-example .site-table td,
.site-payout-example .site-table th { font-variant-numeric: tabular-nums; }
.site-payout-example .site-table td { min-width: 0; }
.site-payout-example .site-table tbody th { min-width: 0; }
.site-table tfoot th, .site-table tfoot td { border-top: 1px solid var(--line-strong); border-bottom: 0; }

/* What's New: each version with its day, then its lines. The lines are the changelog's own. */
.site-release-facts { margin: 18px 0 0; }
.site-releases { display: grid; gap: 20px; max-width: 900px; }
.site-release { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.site-release-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.site .site-release-head h3 { margin: 0; font-size: 20px; }
.site-release-head time { color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.site-release-summary { margin: 0 0 12px; color: var(--ink); }
.site-release-part h4 { margin: 16px 0 6px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.site-release-list { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.site-release-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.site-release-list li:last-child { margin-bottom: 0; }
.site-release-list ul { margin: 8px 0 0; padding-left: 20px; }
.site-release-list code { padding: 1px 5px; border-radius: 4px; background: var(--card-raised); font-size: 0.92em; }
@media (max-width: 640px) {
  .site-release { padding: 16px; }
}

/* The payout calculator: the figures of the event beside the prizes. Every field and choice is at least 44 pixels tall. */
.site-calculator { align-items: start; }
.site-calculator-form { display: grid; gap: 16px; padding: clamp(18px, 3vw, 24px); border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.site-calculator-form h2 { margin: 0; }
.site-calculator-fields { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.site-calculator-fields label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.site-calculator input[type="text"],
.site-calculator select { width: 100%; min-height: 44px; padding: 8px 12px; color: var(--ink); font-size: 16px; }
.site-calculator-places { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.site-calculator-places legend { margin-bottom: 6px; padding: 0; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.site-calculator-choice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 120px); align-items: center; gap: 12px; }
.site-calculator-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); cursor: pointer; }
.site-calculator-radio input { flex: none; width: 20px; height: 20px; margin: 0; }
.site-calculator-note { margin: 0; color: var(--ink-soft); font-size: 14px; }
.site-calculator-summary { margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.site-calculator-problems { margin: 0; padding: 14px 16px 14px 34px; border: 1px solid var(--danger); border-radius: 12px; background: var(--danger-soft); color: var(--ink); }
.site-calculator-problems li + li { margin-top: 6px; }
.site-calculator-table th, .site-calculator-table td { font-variant-numeric: tabular-nums; }
.site-calculator-table td, .site-calculator-table tbody th { min-width: 0; }
.site-calculator-result + .site-table-note { margin-top: 14px; }

/* UI-01, UI-04. Large text and zoom (Francois, 16 October 2026; the
   max-width: 339px block at the end of styles.css explains it): each way to
   choose the paid places puts its field under its words, not over them. */
@media (max-width: 339px) {
  .site-calculator-choice { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .site-calculator-choice input[type="text"] { min-width: 0; }
}
