/* Cruise casino cheat sheet (/guides/cruise-casino-cheat-sheet/). The table is written by tools/site/cheat-sheet.ts.
   Screen: the guides' paper look (premium polish 2), a sticky line column while the table scrolls sideways, and
   one card per line on phones. Print: black on white, no site chrome, two A4 or Letter pages in either orientation. */
.cs-hero h1 { max-width: 24ch; }
.cs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.cs-actions .btn { min-height: 44px; }
.cs-alt { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.cs-alt:hover { text-decoration: underline; }

.cs > .wrap { max-width: 1320px; padding-top: 28px; padding-bottom: 48px; }
.paper.cs { padding-top: 0; }
.cs section { padding: 0; }
.cs-checked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--paper-muted); font-size: .95rem; margin-bottom: 16px; }
.cs-checked .checked { margin: 0; }

/* The table */
.cs-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(11,37,69,.05), 0 12px 30px rgba(11,37,69,.07); }
.cs-table { width: 100%; min-width: 1180px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .86rem; line-height: 1.4; color: var(--paper-ink); }
.cs-table col, .cs-table th, .cs-table td { text-align: left; vertical-align: top; }
.cs-table thead th { position: sticky; top: 0; z-index: 2; background: #10284a; color: #e9eef5; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 12px 12px 11px; border-bottom: 2px solid #b07a12; }
.cs-table thead th:first-child { left: 0; z-index: 3; width: 150px; border-top-left-radius: calc(var(--radius) - 1px); }
.cs-table thead th:last-child { border-top-right-radius: calc(var(--radius) - 1px); }
.cs-table tbody th { position: sticky; left: 0; z-index: 1; width: 150px; background: #fff; padding: 12px; font-size: .95rem; line-height: 1.3; box-shadow: inset -1px 0 0 var(--paper-line), 6px 0 10px -8px rgba(11,37,69,.25); }
.cs-table tbody th a { color: var(--paper-ink); font-weight: 700; text-decoration: none; display: inline-flex; min-height: 44px; align-items: flex-start; }
.cs-table tbody th a:hover { color: #083e60; text-decoration: underline; }
.cs-table td { padding: 0; border-left: 1px solid rgba(11,37,69,.06); }
.cs-table tbody tr > * { border-top: 1px solid var(--paper-line); }
.cs-table tbody tr:nth-child(even) > * { background: #f7f9fc; }
.cs-table tbody tr:hover > * { background: #eaf6f4; }
.cs-table td a { display: block; height: 100%; min-height: 44px; padding: 12px; color: var(--paper-ink); text-decoration: none; transition: background var(--t) var(--ease); }
.cs-table td a:hover, .cs-table td a:focus-visible { background: rgba(13,107,96,.09); }
.cs-table td a:hover .cs-v b { text-decoration: underline; text-decoration-color: rgba(13,107,96,.5); text-underline-offset: 2px; }
.cs-v { display: inline; }
.cs-v b { font-weight: 700; color: #0b2545; }
.cs-table td small { display: block; margin-top: 4px; color: var(--paper-muted); font-size: .8rem; line-height: 1.4; }
.cs-table .flag { margin-left: 4px; font-size: .62rem; padding: 0 5px; vertical-align: 1px; }
.cs-table tbody tr:last-child th { border-bottom-left-radius: calc(var(--radius) - 1px); }
.cs-print-foot { display: none; }
/* Column widths: the quoted columns (free cruise, drinks) get the most room */
.cs-table thead th:nth-child(2) { width: 11%; }
.cs-table thead th:nth-child(3) { width: 9%; }
.cs-table thead th:nth-child(4) { width: 12%; }
.cs-table thead th:nth-child(5) { width: 8.5%; }
.cs-table thead th:nth-child(6) { width: 10%; }
.cs-table thead th:nth-child(7) { width: 16%; }
.cs-table thead th:nth-child(8) { width: 10.5%; }
.cs-table thead th:nth-child(9) { width: 15%; }
.cs-table tbody th { white-space: normal; }

/* Notes and sources */
.cs-notes { margin-top: 36px; max-width: 860px; color: var(--paper-ink); }
.cs-notes h2, .cs-sources h2 { font-size: 1.4rem; }
.cs-notes h2::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 12px; border-radius: 3px; background: linear-gradient(90deg, #b07a12, rgba(176,122,18,.15)); }
.cs-notes ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.cs-notes .flag { margin-left: 0; }
.cs-more { margin-top: 16px; color: var(--paper-muted); }
.cs-more a { display: inline-block; padding: 6px 0; }
.cs-sources { margin-top: 32px; max-width: 860px; }
.cs-sources li { line-height: 1.6; }

/* Phones and narrow tablets: one card per line, each fact a labelled row */
@media (max-width: 760px) {
  .cs > .wrap { padding-left: 16px; padding-right: 16px; }
  .cs-wrap { overflow: visible; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .cs-table, .cs-table tbody, .cs-table tr, .cs-table th, .cs-table td { display: block; width: auto; min-width: 0; }
  .cs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cs-table tbody { display: grid; gap: 14px; }
  .cs-table tbody tr { background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(11,37,69,.05), 0 10px 24px rgba(11,37,69,.06); scroll-margin-top: 12px; }
  .cs-table tbody tr:nth-child(even) > *, .cs-table tbody tr:hover > * { background: transparent; }
  .cs-table tbody tr > * { border-top: 0; }
  .cs-table tbody th { width: auto; position: static; background: #10284a !important; box-shadow: inset 0 -2px 0 #b07a12; padding: 4px 14px; border-radius: 0 !important; }
  .cs-table tbody th a { color: #fff; font-size: 1.05rem; align-items: center; }
  .cs-table tbody th a:hover { color: var(--gold-soft); }
  .cs-table td { border-left: 0; border-top: 1px solid rgba(11,37,69,.08) !important; }
  .cs-table td:first-of-type { border-top: 0 !important; }
  .cs-table td a { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 2px 12px; padding: 10px 14px; }
  .cs-table td a::before { content: attr(data-label); grid-row: 1 / span 3; color: var(--paper-muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; padding-top: 2px; }
  .cs-table td a > * { grid-column: 2; }
  .cs-table td a .flag { justify-self: start; margin: 2px 0 0; }
  .cs-table td small { margin-top: 0; }
}

@media (hover: none) { .cs-table tbody tr:hover > * { background: inherit; } }
@media (prefers-reduced-motion: reduce) { .cs-table td a { transition: none; } }

/* Print: black on white, no navigation, header, footer, buttons or notes about the site; the URL and check date at
   the foot of every page. Fits two pages of A4 or Letter, portrait or landscape. */
@media print {
  @page { margin: 9mm 9mm 12mm; }
  body { padding-bottom: 0; }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 9pt; }
  header.top, footer, .crumbs, .eyebrow, .lede, .cs-actions, .cs-sources, .cs-more, .cookiebar, .offline-save, .offline-link, .offline-msg, .toasts, .vip-zone, .skip { display: none !important; }
  .phero, .cs-hero { background: none !important; padding: 0 !important; margin: 0 !important; color: #000 !important; border: 0 !important; box-shadow: none !important; }
  .phero::before, .phero::after { display: none !important; }
  .cs-hero .wrap, .cs > .wrap { max-width: none; padding: 0 !important; }
  .cs-hero h1 { font-size: 15pt; line-height: 1.15; max-width: none; color: #000 !important; margin: 0 0 1.5mm; }
  .cs-hero h1 span { color: #000 !important; }
  .paper, .guide, .cs { background: #fff !important; color: #000 !important; }
  .cs-checked { font-size: 7.5pt; color: #000; margin: 0 0 2mm; gap: 2mm; }
  .cs-checked .checked { background: none; padding: 0; border: 0; color: #000; font-weight: 700; }
  .paper.guide, .cs, .cs-sheet, .cs-hero .wrap > * { margin-top: 0 !important; padding-top: 0 !important; }
  .cs-hero { min-height: 0 !important; }
  .cs-checked .checked::before { display: none; }
  .cs-wrap { overflow: visible !important; border: 0; box-shadow: none; border-radius: 0; background: none; }
  .cs-table { min-width: 0 !important; width: 100%; font-size: 7pt; line-height: 1.25; color: #000; }
  .cs-table thead { display: table-header-group; }
  .cs-table thead th { position: static; background: #fff !important; color: #000 !important; font-size: 6.4pt; letter-spacing: .03em; padding: 1.4mm 1.2mm; border: 0; border-bottom: 1.2pt solid #000; border-radius: 0 !important; }
  .cs-table thead th:first-child, .cs-table tbody th { width: 11%; }
  .cs-table thead th:nth-child(9) { width: 13.5%; }
  .cs-table tbody th { overflow-wrap: break-word; }
  .cs-table thead th:nth-child(3) { width: 8%; }
  .cs-table td a, .cs-table .cs-v, .cs-table .cs-v b { font-size: 7pt !important; line-height: 1.25; }
  .cs-table tbody th a { font-size: 7.2pt !important; display: inline; }
  .cs-table tbody tr { break-inside: avoid; page-break-inside: avoid; }
  .cs-table tbody tr > * { background: #fff !important; border-top: .4pt solid #777 !important; }
  .cs-table tbody th { width: auto; position: static; box-shadow: none; padding: 1.3mm 1.2mm; font-size: 7.4pt; }
  .cs-table tbody th a { min-height: 0; color: #000 !important; }
  .cs-table td { border-left: .4pt solid #bbb; }
  .cs-table td a { min-height: 0; padding: 1.3mm 1.2mm; color: #000 !important; }
  .cs-v b { color: #000; }
  .cs-table td small { color: #222; font-size: 6.4pt; margin-top: .6mm; }
  .cs-table .flag { color: #000 !important; border-color: #000 !important; font-size: 5pt; padding: 0 .8mm; }
  .cs-notes { margin-top: 3mm; max-width: none; font-size: 6.8pt; line-height: 1.3; break-inside: avoid; }
  .cs-notes h2 { font-size: 8pt; margin: 0; }
  .cs-notes h2::before { display: none; }
  .cs-notes ul { margin-top: 1mm; gap: .4mm; padding-left: 4mm; }
  .cs-notes .flag { color: #000; border-color: #000; font-size: 5pt; }
  .cs-notes a { color: #000; text-decoration: none; }
  .cs-print-foot { display: block; margin-top: 2mm; font-size: 6.8pt; color: #000; }
  a[href]::after { content: none !important; }
}
