/* /table/hands/: every scoring hand on one page. Builds on table.css and phrases.css. */
.hd-main h2 .han { font-size:.8em; color:#ffd9a3; margin-left:6px; }
.hd-table { width:100%; border-collapse:collapse; font-size:15px; }
.hd-table th, .hd-table td { text-align:left; padding:8px 8px 8px 0; vertical-align:top; }
.hd-table tbody th { font-family:var(--f-body); font-weight:650; text-transform:none; letter-spacing:0; font-size:15px; color:#fff6ec; }
.hd-table tbody th a { color:inherit; }
.hd-table .han { font-size:17px; color:#fff7ee; }
.hd-table .hd-group th { padding-top:16px; font-family:var(--f-display); text-transform:uppercase; letter-spacing:.08em; font-size:13px; color:#ffd9a3; }
.hd-table .hd-f { text-align:right; padding-right:0; font-weight:700; white-space:nowrap; }
.hd-limit { color:#ff9ad5; }
.hd-foot { font-size:14px; margin:10px 0 0; }
.hd-sec { margin-top:34px; }
.hd-hand { scroll-margin-top:76px; }
.hd-top { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.hd-top h3 { margin:0; font-size:21px; }
.hd-faan { font-family:var(--f-display); font-weight:700; font-size:16px; color:#ffcf87; white-space:nowrap; }
.hd-faan.hd-limit { color:#ff9ad5; }
.hd-names { display:flex; flex-wrap:wrap; gap:4px 18px; margin:8px 0 0; }
.hd-names .han { font-size:22px; color:#fff7ee; }
.hd-yue { color:#ffcf87; } .hd-cmn { color:#8beeff; }
.hd-hand .hd-play { margin-top:10px; flex-direction:row; justify-content:flex-start; }
.hd-hand .hd-play .btn { flex:0 0 auto; width:auto; min-width:76px; }
.hd-what { margin:12px 0 0; }
.hd-felt { margin-top:12px; }
.hd-felt .ph-tiles { --tile-w:clamp(19px,5.6vw,34px); flex-wrap:wrap; }
.hd-more { margin:12px 0 0; font-size:15px; }
.hd-faq summary { cursor:pointer; font-weight:650; min-height:28px; }
@media (max-width:520px) {
  .hd-table thead { display:none; }
  .hd-table tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.08); }
  .hd-table tr.hd-group { border-bottom:0; padding-bottom:0; }
  .hd-table th, .hd-table td { padding:0; border:0; }
  .hd-table tbody tr:not(.hd-group) th { grid-column:1; grid-row:1; }
  .hd-table td:nth-child(2) { grid-column:1; grid-row:2; color:#ffcf87; }
  .hd-table td:nth-child(3) { grid-column:1; grid-row:3; color:#8beeff; }
  .hd-table .hd-f { grid-column:2; grid-row:1; }
}
/* Printed, only the cheat sheet goes on paper: black on white, one or two pages. */
@media print {
  body, body::before, body::after { background:#fff !important; color:#000 !important; }
  .t-top, .t-menu, .t-cta, .t-foot, .tp-crumbs, .tp-bar, .hd-rules, .hd-sec, .hd-faq, .hd-main > p:last-child, .t-hero-sign { display:none !important; }
  .t-main { max-width:none; padding:0; }
  .t-hero, .card { border:0 !important; box-shadow:none !important; background:none !important; padding:0 !important; margin:0 !important; }
  .t-hero::before, .t-hero::after, .card::before, .card::after { display:none !important; }
  .hd-main, .hd-main * { color:#000 !important; text-shadow:none !important; }
  .hd-main h1 { font-size:18pt; margin:0 0 4pt; }
  .tp-lede { font-size:10pt; margin:0 0 8pt; }
  .hd-quick h2 { display:none; }
  .hd-table { font-size:9.5pt; }
  .hd-table thead { display:table-header-group; }
  .hd-table tr { display:table-row; border-bottom:.5pt solid #bbb; }
  .hd-table th, .hd-table td { display:table-cell; padding:2.5pt 6pt 2.5pt 0; border-bottom:.5pt solid #bbb; }
  .hd-table .han { font-size:11pt; }
  .hd-table .hd-group th { padding-top:7pt; border-bottom:1pt solid #000; }
  .hd-table a { text-decoration:none; }
  .hd-foot::after { content:" mahjong.tilespeak.com/table/hands"; }
}
