/* Compact topic links help readers return to a rule without extra navigation. */
.topic-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.topic-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 15px; border: 1px solid var(--line, #d6d4c8); border-radius: 24px; color: var(--forest, #164e38); background: #fff; font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; }
.topic-links a:hover { background: #f0f5ed; border-color: #bbcbb9; text-decoration: none; }
.topic-links a:focus-visible { outline-offset: 3px; }
.learn-content { max-width: 1160px; }
.guide-step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line, #d6d4c8); }
.guide-copy h2 { max-width: 13ch; margin-bottom: 24px; }
.guide-copy p:not(.step-number) { max-width: 44ch; }
.guide-demo { min-width: 0; }
.theme-alternate .guide-demo .alt-demo p { margin: 0; }
.theme-alternate .guide-demo button:focus-visible { outline-color: #fff; }
.card-example { margin: 0; text-align: center; }
.card-example figcaption { margin-top: 30px; font-size: .85rem; line-height: 1.5; }
.guide-equation, .guide-build, .guide-prize-cards { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 1.3vw, 18px); }
.guide-card.playing-card { --card-width: clamp(66px, 8.4vw, 104px); flex: 0 0 auto; }
.equation-sign { font: 28px Georgia, serif; color: var(--green, #1c503b); flex: 0 0 auto; }
.guide-equation > .playing-card:first-child { transform: rotate(-7deg); }
.guide-equation > .playing-card:last-child { transform: rotate(7deg); }
.guide-build { gap: 28px; }
.guide-build-pile { display: grid; position: relative; margin-bottom: 30px; }
.guide-build-pile .playing-card { grid-area: 1 / 1; transform: translate(-13px, -3px) rotate(-10deg); }
.guide-build-pile .playing-card + .playing-card { transform: translate(13px, 3px) rotate(7deg); }
.build-value { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 13px; background: var(--green, #1c503b); color: #fff; border-radius: 20px; font-size: 13px; z-index: 2; }
.guide-held-card { display: grid; justify-items: center; gap: 12px; }
.guide-held-card > span { font-size: .8rem; }
.guide-trail { width: min(100%, 290px); min-height: 215px; margin: auto; padding: 25px; display: grid; justify-items: center; align-content: center; gap: 14px; border-radius: 46% 46% 35% 35%; background: var(--green, #1c503b); color: #f4f0e7; }
.guide-table-label { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
.guide-trail .playing-card { transform: rotate(9deg); --card-width: 84px; }
.sweep-example figcaption strong { display: block; font: italic 600 32px Georgia, serif; margin-bottom: 7px; color: var(--burgundy, #ae3d3b); }
.guide-prize-cards > div { display: grid; justify-items: center; gap: 16px; font-size: .8rem; }
.learn-next { margin: 24px 0 48px; padding: clamp(24px, 3vw, 40px); text-align: center; }
.learn-next p:not(.eyebrow) { max-width: 52ch; margin-left: auto; margin-right: auto; }
.learn-next .button { margin-top: 18px; }
.rule-layout { display: grid; grid-template-columns: 205px minmax(0, 720px); justify-content: space-between; gap: 70px; }
.rule-nav { align-self: start; position: sticky; top: calc(var(--header-height) + 24px); font-size: .85rem; }
.rule-nav ol { list-style: none; padding: 0; margin: 0; }
.rule-nav a { display: block; padding: 7px 0; text-decoration: none; }
.rule-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rule-section { border-top: 1px solid var(--line, #d6d4c8); padding: 28px 0 32px; }
.rule-section h2 { margin-bottom: 24px; }
.rule-section h3 { margin: 32px 0 16px; }
.rule-section ul { padding-left: 1.2em; }
.rule-section li { padding-left: .3em; margin-bottom: 12px; }
.rule-section .note { margin: 26px 0; padding: 20px 24px; }
.rule-section .note p { margin: 0; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
.score-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.score-table caption { text-align: left; font-size: .8rem; margin-bottom: 12px; color: var(--muted, #656e64); }
.score-table th, .score-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line, #d6d4c8); }
.score-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.score-table th { font-weight: 600; }
.score-table th:first-child { padding-right: 20px; }
.score-table td:last-child, .score-table thead th:last-child { text-align: right; }
.table-detail { display: block; font-size: .8rem; color: var(--muted, #656e64); margin-top: 4px; }
.rules-prize-row { display: flex; justify-content: center; gap: 18px; padding: 16px 0; }
.rules-prize-card.playing-card { --card-width: 76px; }
.rules-prize-row .playing-card:first-child { transform: rotate(-9deg); }
.rules-prize-row .playing-card:last-child { transform: rotate(9deg); }
@media (max-width: 760px) {
  .guide-step { grid-template-columns: 1fr; gap: 34px; }
  .guide-copy h2 { max-width: 18ch; }
  .guide-copy p:not(.step-number) { max-width: none; }
  .card-example { padding: 14px 0 8px; }
  .guide-card.playing-card { --card-width: clamp(62px, 19vw, 96px); }
  .guide-equation, .guide-prize-cards { gap: clamp(8px, 2.5vw, 16px); }
  .rule-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rule-nav { position: static; }
  .rule-nav ol { columns: 2; column-gap: 24px; }
  .rule-nav li { break-inside: avoid; }
  .rule-nav a { padding: 6px 0; }
}
@media (max-width: 370px) {
  .guide-equation { gap: 7px; }
  .guide-card.playing-card { --card-width: 59px; }
  .equation-sign { font-size: 22px; }
  .rule-nav ol { columns: 1; }
}
