/* Game guides: the "how to play / keep score / host" pages under /bunco,
   /mahjongg and /euchre, and the Guides cards on the app pages.
   Load AFTER styles.css (and after mahjongg.css or euchre.css on those apps'
   pages). Every colour is a styles.css variable, so each app's guides wear
   that app's colours. The reading layout itself (.read, .read-head, .toc,
   .prose) is styles.css's, as on the help pages. */

/* the breadcrumb trail over the title */
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;font-size:16px;font-weight:700;color:var(--muted2)}
.crumbs li{display:inline-flex;align-items:center}
.crumbs li+li::before{content:"›";margin:0 10px;color:var(--muted2)}
.crumbs a{display:inline-flex;align-items:center;min-height:44px;color:var(--soft);text-decoration:none}
.crumbs a:hover{color:var(--gold-hi);text-decoration:underline}
.crumbs [aria-current]{color:var(--muted)}
.guide .read-head{padding-top:6px}
.guide .read-head .lead{font-size:clamp(20px,2.4vw,23px);color:var(--soft)}

/* tables: they scroll sideways on a narrow phone instead of squashing */
.table-wrap{overflow-x:auto;margin:0 0 22px;border-radius:20px;border:1px solid var(--line);background:var(--glass)}
.table-wrap:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.prose table{width:100%;border-collapse:collapse;font-size:17px;line-height:1.45}
.prose caption{caption-side:top;text-align:left;padding:14px 16px 6px;font-weight:800;color:var(--text)}
.prose th,.prose td{padding:11px 16px;text-align:left;vertical-align:top;border-top:1px solid var(--line)}
.prose thead th{border-top:0;color:var(--text);font-weight:800;font-size:16px}
.prose tbody th{color:var(--text);font-weight:700}
.prose .num{text-align:right;font-variant-numeric:tabular-nums}
.prose td.num{white-space:nowrap}
.prose tr.total th,.prose tr.total td{color:var(--text);font-weight:800;border-top:2px solid var(--line)}

/* a worked example */
.prose .example{margin:0 0 22px;padding:18px 20px;border-radius:22px;background:rgba(245,196,81,.08);border:1px solid rgba(245,196,81,.35)}
.prose .example-tag{display:block;font-size:15px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--gold);margin-bottom:6px}
.prose .example>:last-child{margin-bottom:0}

/* the short version, a numbered step list */
.prose ol.steps{padding-left:28px}
.prose ol.steps li{margin-bottom:10px}

/* a checklist to tick off */
.prose ul.checklist{list-style:none;padding-left:0}
.prose ul.checklist li{position:relative;padding-left:40px;min-height:30px}
.prose ul.checklist li::before{content:"";position:absolute;left:0;top:.18em;width:24px;height:24px;border-radius:7px;border:2px solid var(--gold)}

/* the app, at the end of a guide */
.guide-cta{margin-top:44px;padding:26px;display:flex;flex-direction:column;gap:18px}
.guide-cta .app-icon{width:88px;height:88px}
.guide-cta>div{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.guide-cta h2{font-size:clamp(28px,4.5vw,34px)}
.guide-cta p{color:var(--soft);font-size:18px}
.guide-cta .fine{color:var(--muted2);font-size:16px}
.guide-cta .btn{margin-top:4px}

/* links to the other guides (on the guides and on the app pages) */
.guide-more{margin-top:40px}
.guide-more h2{font-size:28px;margin-bottom:16px}
.guide-cards{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.guide-card{display:flex;flex-direction:column;gap:6px;padding:20px 22px;border-radius:24px;background:var(--glass);border:1px solid var(--line);color:var(--text);text-decoration:none;transition:background .2s,transform .2s}
.guide-card:hover{background:rgba(255,255,255,.1);color:var(--text);transform:translateY(-3px)}
.guide-card strong{font-family:var(--head);font-weight:800;font-size:22px;letter-spacing:-.015em;line-height:1.15;color:var(--text)}
.guide-card span{font-size:17px;color:var(--muted);line-height:1.45}

@media (max-width:600px){
  .prose th,.prose td{padding:10px 9px}
  .prose table{font-size:16px}
}
@media (min-width:860px){
  .guide-cta{flex-direction:row;align-items:flex-start;gap:24px;padding:32px 34px}
}
