/* Illustrated teaching surface. The site palette and shared navigation stay intact. */
.rules-hero { padding-bottom: 36px; }
.rules-hero .breadcrumbs { margin-bottom: 34px; }
.rules-hero-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.rules-hero h1 { line-height: 1.3; }
.rules-hero .guide-subtitle { margin-top: 18px; font-size: clamp(20px,2vw,26px); }
.rules-hero .guide-lead { margin-top: 18px; font-size: 19px; line-height: 1.8; }
.rules-scope-note { max-width: 68em; margin-top: 32px; color: var(--soft); font-size: 14px; line-height: 1.8; }
.best-five-figure { padding: 28px; background: var(--forest-soft); text-align: center; }
.best-five-figure p { margin-bottom: 10px; color: var(--soft); font-size: 14px; }
.hero-hole { margin-bottom: 22px; }
.best-five-figure .card-hand { justify-content: center; }
.best-five-figure figcaption { margin-top: 24px; }
.best-five-figure figcaption strong { display: block; font: 600 23px/1.5 var(--serif); }
.best-five-figure figcaption > span { display: block; margin-top: 8px; color: var(--soft); font-size: 14px; line-height: 1.7; }
.card-hand { --card-size: 52px; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.playing-card { position: relative; display: inline-block; flex: 0 0 var(--card-size); width: var(--card-size); height: calc(var(--card-size) * 1.42); overflow: hidden; color: #15251b; background: #fcfaf4; border: 1px solid #d4d0c4; border-radius: 4px; font-family: Georgia, 'Segoe UI Symbol', serif; font-weight: 700; line-height: 1; }
.playing-card-red { color: #a12f28; }
.playing-card.is-selected { border: 3px solid var(--gold); }
.card-corner { position: absolute; top: 4px; left: 4px; z-index: 1; font-size: calc(var(--card-size) * .28); text-align: center; }
.card-corner small { display: block; font-size: .85em; margin-top: 2px; }
.card-corner-bottom { top: auto; left: auto; bottom: 4px; right: 4px; transform: rotate(180deg); }
.card-pip { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: calc(var(--card-size) * .58); }
.playing-card-back { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #708073; color: #d8dacc; background: #283e30; font: 500 calc(var(--card-size) * .45)/1 var(--serif); }
.rules-reading-layout { display: block; padding-block: 42px 84px; }
.rules-reading-layout .guide-sidebar { margin-bottom: 58px; }
.rules-reading-layout .guide-toc { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 28px; }
.rules-reading-layout .guide-toc > p { width: 100%; margin-bottom: 8px; font-size: 20px; }
.rules-reading-layout .guide-toc > a { font-size: 16px; padding-block: 10px; }
.rules-guide-page .guide-content > section + section { margin-top: 88px; }
.rules-section-heading { margin-bottom: 30px; }
.rules-section-heading h2 { font-size: clamp(27px,3vw,37px); line-height: 1.5; }
.rules-section-heading p { max-width: 44em; margin-top: 13px; }
.ranking-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 36px; row-gap: 0; list-style: none; margin: 0; padding: 0; }
.ranking-list > li { padding: 25px 0; border-bottom: 1px solid #c9c6ba; }
.rules-guide-page .ranking-list > li + li { margin-top: 0; }
.ranking-name { display: flex; align-items: baseline; gap: 16px; margin-bottom: 15px; }
.ranking-name > span { color: #655a45; font-size: 14px; font-variant-numeric: tabular-nums; }
.rules-guide-page .ranking-name h3 { margin: 0; font-size: 24px; }
.rules-guide-page .ranking-list p { margin-top: 12px; font-size: 16px; }
.rules-key-note { padding-block: 18px; font-size: 17px; }
.rules-details { margin-top: 14px; background: var(--cream-deep); }
.rules-details > summary { cursor: pointer; padding: 17px 20px; min-height: 54px; font-size: 17px; font-weight: 500; line-height: 1.7; }
.rules-details[open] { padding-bottom: 20px; }
.rules-details > p, .rules-details > ul, .rules-details > dl { margin-inline: 20px; }
.rules-details > p { margin-top: 10px; }
.rules-details > p:last-child { margin-bottom: 0; }
.rules-details a { text-decoration: underline; text-underline-offset: 4px; }
.positions-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.position-figure { background: var(--forest-raised); padding: 25px; color: var(--on-dark); }
.position-figure figcaption { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 18px; }
.position-figure figcaption > span { color: var(--gold); font-size: 22px; font-family: var(--serif); }
.rules-guide-page .position-figure > p { margin-top: 18px; font-size: 16px; line-height: 1.8; }
.seat-map { position: relative; width: 100%; height: 268px; max-width: 400px; margin: 15px auto 0; }
.seat-ring { position: absolute; top: 16px; left: 0; width: 100%; height: 240px; color: var(--gold); }
.seat { position: absolute; min-width: 84px; padding: 7px 10px; text-align: center; background: var(--forest-soft); }
.seat b { display: block; font: 600 23px/1.4 var(--serif); }
.seat > span { display: block; font-size: 14px; }
.seat em { display: block; color: var(--gold); font-size: 14px; line-height: 1.5; font-style: normal; }
.seat-a { top: 0; left: 50%; transform: translateX(-50%); }
.seat-b { right: 0; bottom: 0; }
.seat-c { left: 0; bottom: 0; }
.seat-first { outline: 2px solid var(--gold); }
.seat-folded { opacity: .55; }
.seat-center { position: absolute; top: 139px; left: 50%; transform: translate(-50%,-50%); white-space: nowrap; color: var(--soft); font-size: 14px; }
.street-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.street-flow > li { position: relative; padding: 20px 16px 22px; background: var(--cream-deep); }
.rules-guide-page .street-flow > li + li { margin-top: 0; }
.street-name { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.street-name > span { font-size: 14px; color: #655a45; }
.rules-guide-page .street-name h3 { margin: 0; font-size: 22px; }
.street-name small { display: block; font: 400 13px/1.5 var(--sans); }
.street-flow .card-hand { --card-size: clamp(29px, 2.65vw, 38px); gap: 4px; }
.rules-guide-page .street-flow p { font-size: 16px; margin-top: 17px; }
.street-action { display: inline-block; margin-top: 18px; color: #4b594a; font-size: 14px; font-weight: 400; }
.action-glossary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; padding: 8px 0 10px; }
.action-glossary dt { font-weight: 500; font-size: 17px; }
.action-glossary dd { margin: 6px 0 0; font-size: 16px; }
.hand-controls > p { font-size: 16px; margin-bottom: 15px; }
.hand-step-buttons { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.hand-step-buttons button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 58px; padding: 10px 9px; border: 1px solid #a4aa9b; background: transparent; font-size: 16px; }
.hand-step-buttons button > span { font-size: 12px; }
.hand-step-buttons button[aria-pressed='true'] { border-color: var(--forest-raised); background: var(--forest-raised); color: var(--on-dark); }
.hand-step-navigation { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; }
.hand-step-navigation button { min-height: 46px; border: 0; border-bottom: 1px solid #7e8578; padding: 7px 5px; background: transparent; font-size: 15px; }
.hand-step-navigation button:disabled { opacity: .4; cursor: default; }
.hand-step-navigation > span { font-size: 14px; font-variant-numeric: tabular-nums; }
.hand-stage { margin-top: 32px; }
.rules-guide-page .hand-stage > h3 { margin: 0 0 18px; font-size: 25px; }
.hand-tableau { padding: 30px; color: var(--on-dark); background: var(--forest-raised); }
.board-summary { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 29px; }
.rules-guide-page .board-label { margin: 0 0 13px; color: var(--soft); font-size: 14px; }
.pot-display { display: flex; align-items: center; gap: 15px; margin: 0; }
.pot-display dt { color: var(--soft); font-size: 15px; }
.pot-display dd { margin: 0; font: 600 42px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.pot-display dd small { margin-left: 8px; color: var(--soft); font: 400 14px/1.5 var(--sans); }
.table-players { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; border-top: 1px solid #3c4c3e; padding-top: 25px; }
.table-player .card-hand { --card-size: 42px; gap: 6px; }
.rules-guide-page .player-name { margin: 0 0 12px; display: flex; gap: 10px; align-items: baseline; }
.player-name b { font: 600 26px/1.4 var(--serif); }
.player-name span { font-size: 14px; color: var(--soft); }
.rules-guide-page .player-action { font-size: 15px; margin-top: 12px; }
.player-folded { opacity: .5; }
.player-winner .player-action { color: var(--gold); }
.rules-guide-page .hand-actions { margin: 22px 0 0; padding-left: 1.2em; }
.rules-guide-page .hand-actions > li + li { margin-top: 7px; }
.rules-guide-page .hand-takeaway { margin-top: 18px; font-weight: 500; }
.hand-math { margin-top: 20px; }
.showdown-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 23px; }
.rules-guide-page .showdown-comparison p { margin: 0 0 13px; font-size: 16px; }
.showdown-comparison p > span { display: block; color: #69522f; font-size: 14px; }
.showdown-comparison .card-hand { --card-size: 45px; gap: 6px; }
.rules-small-note { font-size: 14px; color: #485246; }
.rules-inline-contact { margin-top: 35px; padding: 28px; background: var(--cream-deep); }
.rules-guide-page .rules-inline-contact > p { margin: 0; }
.rules-guide-page .rules-inline-contact .guide-contact { margin-top: 20px; }
.rules-guide-page .rules-inline-contact .rules-contact-id { margin-top: 12px; font-size: 14px; }
.rules-faq .rules-details { background: transparent; border-bottom: 1px solid #c3c4b7; }
.rules-faq .rules-details > summary { padding-inline: 0; }
.rules-faq .rules-details > p { margin-inline: 0; }
.rules-sources { margin-top: 30px; }
.rules-sources ul { font-size: 15px; }
.rules-guide-page .guide-closing a:not(.button) { text-decoration: underline; text-underline-offset: 5px; color: var(--gold-light); }
.rules-guide-page .guide-content .guide-closing h2 { font-size: clamp(26px,3vw,36px); }
@media (hover:hover) and (pointer:fine) {
  .hand-step-buttons button:not([aria-pressed='true']):hover { background: var(--cream-deep); }
  .hand-step-navigation button:not(:disabled):hover { color: #765128; }
}
@media (max-width:1000px) {
  .rules-hero-layout { grid-template-columns: .9fr 1.1fr; gap: 28px; }
  .best-five-figure { padding: 22px 16px; }
  .best-five-figure .card-hand { --card-size: 43px; gap: 6px; }
  .street-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .street-flow .card-hand { --card-size: 38px; gap: 6px; }
  .hand-step-buttons button { flex-direction: column; gap: 2px; font-size: 15px; }
}
@media (max-width:700px) {
  .rules-hero-layout { grid-template-columns: 1fr; gap: 28px; }
  .rules-hero .breadcrumbs { margin-bottom: 25px; }
  .rules-hero h1 { font-size: 40px; line-height: 1.3; }
  .rules-hero .guide-lead { font-size: 17px; margin-top: 12px; }
  .rules-hero .guide-subtitle { margin-top: 12px; font-size: 20px; }
  .best-five-figure { padding: 22px 14px; }
  .best-five-figure .card-hand { --card-size: 43px; gap: 6px; }
  .best-five-figure figcaption strong { font-size: 21px; }
  .rules-scope-note { font-size: 13px; margin-top: 22px; }
  .rules-reading-layout { padding-top: 30px; }
  .rules-reading-layout .guide-sidebar { margin-bottom: 42px; }
  .rules-reading-layout .guide-toc { gap: 0 22px; }
  .ranking-list { grid-template-columns: 1fr; }
  .ranking-list > li { padding-block: 23px; }
  .ranking-list .card-hand { --card-size: 45px; gap: 7px; }
  .ranking-name { margin-bottom: 13px; }
  .rules-guide-page .ranking-name h3 { font-size: 23px; }
  .positions-pair { grid-template-columns: 1fr; gap: 20px; }
  .position-figure { padding: 22px 19px; }
  .seat-map { height: 260px; }
  .street-flow { grid-template-columns: 1fr; gap: 14px; }
  .street-flow > li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 8px; padding: 20px 18px; }
  .street-name { grid-column: 1/-1; margin-bottom: 0; }
  .street-name small { display: inline; margin-left: 9px; }
  .street-flow .card-hand { --card-size: 32px; gap: 4px; }
  .rules-guide-page .street-flow p { grid-column: 1/-1; margin-top: 0; font-size: 16px; }
  .street-action { grid-column: 2; grid-row: 2; margin-top: 0; font-size: 13px; }
  .action-glossary { grid-template-columns: 1fr; gap: 20px; }
  .hand-step-buttons { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hand-step-buttons button { flex-direction: row; min-height: 48px; font-size: 14px; gap: 6px; padding: 8px 4px; }
  .hand-stage { margin-top: 26px; }
  .hand-tableau { padding: 24px 18px; }
  .board-summary { display: flex; flex-direction: column-reverse; gap: 20px; padding-bottom: 25px; }
  .board-summary .card-hand { --card-size: 43px; gap: 6px; }
  .rules-guide-page .board-label { text-align: center; }
  .pot-display { gap: 10px; }
  .pot-display dd { font-size: 36px; }
  .table-players { gap: 10px; padding-top: 20px; }
  .table-player .card-hand { --card-size: 33px; gap: 4px; }
  .rules-guide-page .player-name { display: block; margin-bottom: 10px; }
  .player-name b { font-size: 23px; }
  .player-name span { display: block; font-size: 12px; }
  .rules-guide-page .player-action { font-size: 12px; margin-top: 10px; }
  .showdown-comparison { grid-template-columns: 1fr; gap: 20px; }
  .showdown-comparison .card-hand { --card-size: 43px; }
  .rules-inline-contact { padding: 24px 18px; }
  .rules-details > summary { padding-inline: 16px; font-size: 16px; }
  .rules-details > p, .rules-details > ul, .rules-details > dl { margin-inline: 16px; font-size: 16px; }
  .rules-guide-page .guide-content > section + section { margin-top: 64px; }
}
@media (max-width:600px) {
  .table-players { grid-template-columns: 1fr; gap: 18px; }
  .table-player { display: grid; grid-template-columns: 44px auto minmax(0,1fr); align-items: center; gap: 10px; }
  .rules-guide-page .table-player .player-name { margin: 0; }
  .table-player .card-hand { --card-size: 43px; gap: 6px; justify-content: center; }
  .rules-guide-page .table-player .player-action { margin: 0; font-size: 14px; text-align: right; }
  .table-player.player-folded { opacity: .7; }
}
@media (max-width:360px) {
  .best-five-figure .card-hand { --card-size: 37px; gap: 5px; }
  .ranking-list .card-hand { --card-size: 41px; gap: 6px; }
  .street-flow > li { padding-inline: 14px; }
  .street-flow .card-hand { --card-size: 28px; gap: 3px; }
  .street-action { font-size: 12px; }
  .board-summary .card-hand { --card-size: 36px; gap: 5px; }
  .table-player .card-hand { --card-size: 36px; gap: 5px; }
  .showdown-comparison .card-hand { --card-size: 38px; gap: 5px; }
  .hand-step-buttons button { flex-direction: column; gap: 1px; }
}

/* Learning illustrations sit on the same continuous dark reading surface. */
.rules-guide-page .best-five-figure { background: transparent; }
.rules-guide-page .best-five-figure figcaption strong,
.rules-guide-page .seat b,
.rules-guide-page .position-figure figcaption > span,
.rules-guide-page .pot-display dd,
.rules-guide-page .player-name b { font-family: var(--sans); }
.rules-guide-page .ranking-list > li { border-color: #344d3b; }
.rules-guide-page .ranking-name > span,
.rules-guide-page .street-name > span { color: #b8cdb5; }
.rules-guide-page .rules-details { background: transparent; border-block: 1px solid #344d3b; }
.rules-guide-page .rules-details + .rules-details { border-top: 0; }
.rules-guide-page .position-figure { background: transparent; padding-inline: 0; }
.rules-guide-page .seat { background: #183323; }
.rules-guide-page .street-flow > li { background: transparent; border-left: 1px solid #344d3b; }
.rules-guide-page .street-action { color: #c7d4c6; }
.rules-guide-page .hand-step-buttons button { color: #f4f1e8; border-color: #68816d; border-radius: 4px; }
.rules-guide-page .hand-step-buttons button[aria-pressed='true'] { color: #fff; border-color: #9dcc8c; background: #285e32; }
.rules-guide-page .hand-tableau { color: #f4f1e8; background: #10271a; }
.rules-guide-page .showdown-comparison p > span { color: #b9dfac; }
.rules-guide-page .rules-small-note { color: #c7d4c6; }
.rules-guide-page .rules-inline-contact { padding: 24px 0; background: transparent; border-block: 1px solid #344d3b; }
.rules-guide-page .rules-faq .rules-details { border-color: #344d3b; }
.rules-guide-page .guide-closing a:not(.button) { color: #b9dfac; }
@media (hover:hover) and (pointer:fine) {
  .rules-guide-page .hand-step-buttons button:not([aria-pressed='true']):hover { background: #1b3c27; }
  .rules-guide-page .hand-step-navigation button:not(:disabled):hover { color: #b9dfac; }
}
