/*
 * Learn hub styles, shared by every page under /learn.
 *
 * The rest of the site inlines its CSS per page, which is right for three
 * pages that look nothing alike. The hub is nine pages that look identical, so
 * a copy each would be nine places to fix a card figure. One file, cached
 * across the whole hub, is the same trade the other way round.
 *
 * Lifted from Docs/seo-page-prototype.html, with the glossary and hub layouts
 * added. Same variables as index.html so the two never drift apart.
 */

:root {
  --bg: #0b0f14; --panel: #121821; --panel2: #1a2330; --line: #26303f;
  --ink: #e8edf3; --mut: #8a97a8; --dim: #5f6c7d;
  --felt: #0e7a5f; --felt2: #0a5c47; --emer: #22c98d; --emer-ink: #04140e;
  --gold: #f4c14b; --red: #d1273a;
}
* { box-sizing: border-box; margin: 0 }
html { scroll-behavior: smooth }
body {
  background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--emer); text-decoration: none }
a:hover { text-decoration: underline }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px }

/* ===== chrome ===== */
nav.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line) }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; color: var(--ink) }
.brand:hover { text-decoration: none }
.brand svg { width: 28px; height: 28px; flex: none }
.wm b { color: var(--ink) }
.wm span { color: var(--emer) }
.wm i { color: var(--gold); font-style: normal }
.navcta { background: var(--emer); color: var(--emer-ink); font-weight: 800; font-size: 13.5px; padding: 9px 16px; border-radius: 10px; white-space: nowrap }
.navcta:hover { text-decoration: none; filter: brightness(1.06) }

.crumbs { padding: 16px 0 0; color: var(--dim); font-size: 13px }
.crumbs a { color: var(--mut) }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--dim); font-size: 13px }
footer a { color: var(--mut) }

/* ===== article layout ===== */
.layout { display: flex; gap: 44px; padding: 14px 0 60px }
article { flex: 1; min-width: 0; max-width: 720px }
aside { width: 230px; flex: none; position: sticky; top: 20px; align-self: flex-start }

h1 { font-size: 36px; line-height: 1.15; margin: 10px 0 8px }
.byline { color: var(--dim); font-size: 13px; margin-bottom: 20px }
.byline b { color: var(--mut) }

.answerbox { background: linear-gradient(135deg, #12281f, var(--panel)); border: 1px solid rgba(34, 201, 141, .45); border-radius: 16px; padding: 18px 20px; margin-bottom: 28px }
.answerbox .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; color: var(--emer); text-transform: uppercase; margin-bottom: 6px }
.answerbox p { font-size: 16px; line-height: 1.65 }
.answerbox b { color: var(--emer) }

h2 { font-size: 24px; margin: 36px 0 12px; scroll-margin-top: 20px }
article > p { color: #c3ccd6; font-size: 15.5px; margin-bottom: 14px }
article p b { color: var(--ink) }

/* ===== card figures ===== */
.figure { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; margin: 18px 0 }
.figlbl { color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; text-align: center }
.cards { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap }
.pc { width: 46px; height: 64px; border-radius: 7px; background: #fff; color: #111; display: inline-flex; flex-direction: column; justify-content: space-between; padding: 5px 6px; font-weight: 800; font-size: 16px; box-shadow: 0 3px 8px rgba(0, 0, 0, .35) }
.pc small { font-size: 12px; align-self: flex-end }
.pc.red { color: var(--red) }
.pc.dim { opacity: .32 }
.pc.mark { box-shadow: 0 0 0 2.5px var(--emer), 0 3px 8px rgba(0, 0, 0, .35) }
.vline { text-align: center; font-size: 13px; font-weight: 700; margin-top: 10px }
.vline.win { color: var(--emer) }
.vline.lose { color: var(--dim) }

/* deal diagram */
.dealrow { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap }
.slot { width: 44px; height: 60px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800 }
.slot.dn { background: linear-gradient(135deg, #1d2b3f, #141d2c); border: 1.5px solid #2c3c55; color: #54708f }
.slot.up { background: #fff; color: #8a97a8 }

/* ===== try-it widget ===== */
.tryit { background: radial-gradient(120% 130% at 50% 0%, var(--felt) 0%, var(--felt2) 100%); border-radius: 18px; padding: 22px 18px; margin: 20px 0; text-align: center }
.tryit .tlbl { font-size: 10.5px; font-weight: 800; letter-spacing: 2px; color: #bfe9d9; text-transform: uppercase; margin-bottom: 10px }
.tryit h3 { font-size: 19px; margin-bottom: 14px }
.tryrow { display: flex; justify-content: center; gap: 34px; margin-bottom: 16px; flex-wrap: wrap }
.tryrow .who { font-size: 11px; font-weight: 800; margin-top: 8px; color: #bfe9d9 }
.trybtns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap }
.tb { background: rgba(4, 20, 14, .5); border: 1.5px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 800; font-size: 14px; border-radius: 12px; padding: 12px 26px; cursor: pointer; transition: .15s; font-family: inherit }
.tb:hover:enabled { border-color: var(--gold); transform: translateY(-1px) }
.tb:disabled { cursor: default }
.tryfb { max-width: 430px; margin: 14px auto 0; background: rgba(4, 20, 14, .65); border: 1px solid rgba(34, 201, 141, .5); border-radius: 12px; padding: 12px 15px; font-size: 13.5px; text-align: left }
.tryfb.bad { border-color: rgba(244, 193, 75, .6) }
.tryfb b { color: var(--emer) }
.trycta { display: inline-block; margin-top: 14px; background: var(--gold); color: #1c1403; font-weight: 800; font-size: 13.5px; border-radius: 11px; padding: 11px 20px }
.trycta:hover { text-decoration: none; filter: brightness(1.05) }
[hidden] { display: none !important }

/* Answered state, shared by both widget shapes. */
.picked-out { opacity: .4 }
.picked-right { border-color: var(--emer) !important }
.picked-wrong { border-color: var(--gold) !important }

/* "Which hand wins" — the whole hand is the button. */
.pickrow { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px }
.handpick { background: rgba(4, 20, 14, .5); border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 14px 16px 11px; cursor: pointer; transition: .15s; font-family: inherit; color: #fff }
.handpick:hover:enabled { border-color: var(--gold); transform: translateY(-1px) }
.handpick:disabled { cursor: default }
.handpick .who { display: block; font-size: 11px; font-weight: 800; margin-top: 9px; color: #bfe9d9; letter-spacing: .6px }
.handpick .cards { gap: 5px }
.handpick .pc { width: 38px; height: 53px; font-size: 14px }
.handpick .pc small { font-size: 10px }

/* The line a page carries when a claim is still with the reviewers. */
.pending { border: 1px dashed rgba(244, 193, 75, .5); background: rgba(244, 193, 75, .06); border-radius: 12px; padding: 12px 15px; margin: 16px 0; color: var(--mut); font-size: 13.5px }
.pending b { color: var(--gold) }

/* ===== FAQ ===== */
.faq { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 14px }
.faq details { border-bottom: 1px solid var(--line); background: var(--panel) }
.faq details:last-child { border-bottom: none }
.faq summary { padding: 15px 18px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px }
.faq summary::-webkit-details-marker { display: none }
.faq summary:after { content: "+"; color: var(--emer); font-weight: 800 }
.faq details[open] summary:after { content: "\2013" }
.faq .a { padding: 0 18px 15px; color: var(--mut); font-size: 14px }

/* ===== glossary chips ===== */
.glossrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px }
.gterm { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: var(--emer) }
.gterm:hover { border-color: rgba(34, 201, 141, .5); text-decoration: none }

/* ===== CTA band ===== */
.ctaband { background: linear-gradient(135deg, var(--felt), var(--felt2)); border-radius: 18px; padding: 28px; text-align: center; margin-top: 36px }
.ctaband h3 { font-size: 22px; margin-bottom: 6px }
.ctaband p { color: #d8f5ea; font-size: 14px; margin-bottom: 16px }
.ctaband a { display: inline-block; background: var(--emer); color: var(--emer-ink); font-weight: 800; border-radius: 12px; padding: 14px 28px }
.ctaband a:hover { text-decoration: none; filter: brightness(1.06) }

/* ===== sidebar ===== */
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px }
.toc .t { font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; color: var(--dim); text-transform: uppercase; margin-bottom: 10px }
.toc a { display: block; color: var(--mut); font-size: 13.5px; padding: 5px 0; border-left: 2px solid transparent; padding-left: 10px }
.toc a:hover { text-decoration: none; color: var(--ink) }
.toc a.on { color: var(--emer); border-left-color: var(--emer) }
.sidecta { margin-top: 14px; background: linear-gradient(135deg, #12281f, var(--panel)); border: 1px solid rgba(34, 201, 141, .4); border-radius: 14px; padding: 16px; text-align: center }
.sidecta .em { font-size: 26px }
.sidecta p { font-size: 12.5px; color: var(--mut); margin: 6px 0 10px }
.sidecta a { display: block; background: var(--emer); color: var(--emer-ink); font-weight: 800; font-size: 13px; border-radius: 10px; padding: 10px }
.sidecta a:hover { text-decoration: none; filter: brightness(1.06) }

/* ===== glossary pages ===== */
.term { max-width: 720px; padding: 14px 0 60px }
.term h1 { font-size: 34px; margin-bottom: 4px }
.term .kind { color: var(--dim); font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 18px }
.term .def { color: #c3ccd6; font-size: 16px; margin-bottom: 14px }
.term .def b { color: var(--ink) }
.related { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line) }
.related .t { color: var(--dim); font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 10px }
.uplink { margin-top: 22px; font-size: 14.5px; color: var(--mut) }

/* ===== hub index ===== */
.hub { padding: 14px 0 60px; max-width: 820px }
.hub h1 { margin-bottom: 6px }
.hub .sub { color: var(--mut); font-size: 16px; margin-bottom: 32px }
.gamesec { margin-bottom: 34px }
.gamesec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px }
.gamesec .note { color: var(--dim); font-size: 13.5px; margin-bottom: 14px }
.bigcard { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 14px }
.bigcard:hover { border-color: rgba(34, 201, 141, .5); text-decoration: none }
.bigcard .h { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px }
.bigcard .d { color: var(--mut); font-size: 14px }
.termlist { display: flex; gap: 8px; flex-wrap: wrap }

/* The rotation grid. Auto-fill, so a thirteenth game is a data change. */
.gamegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px }
.gamecard { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 15px 16px 16px }
.gamecard:hover { border-color: rgba(34, 201, 141, .5); text-decoration: none; transform: translateY(-2px) }
.gamecard { transition: transform .18s, border-color .18s }
.gc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 20px }
.gc-suit { color: var(--emer); font-size: 17px; line-height: 1 }
.gc-badge { background: rgba(34, 201, 141, .14); color: var(--emer); font-size: 9.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; border-radius: 999px; padding: 3px 9px }
.gamecard.live { border-color: rgba(34, 201, 141, .45) }
.gc-name { font-size: 16px; font-weight: 800; color: var(--ink) }
.gc-tag { color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .3px; margin-bottom: 7px }
.gc-blurb { color: var(--mut); font-size: 13px; line-height: 1.5 }

@media (max-width: 900px) {
  aside { display: none }
  .layout { gap: 0 }
  h1 { font-size: 29px }
  .wrap { padding: 0 18px }
  .tryrow { gap: 18px }
  .tb { padding: 12px 18px }
}
