/* Touch-first diagrams. One action changes one visible part of the explanation. */
.learn-guide {
  --learn-sage: #667754;
  --learn-sage-dark: #3d5431;
  --learn-wash: #edf1e5;
  --learn-muted: #63695d;
  --learn-a: #667754;
  --learn-b: #916841;
  --learn-c: #587480;
  width: 100%; min-width: 0; font-variant-numeric: tabular-nums;
  scroll-margin-top: 160px;
}
.portal[data-mode="learn"] .portal-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.portal[data-mode="learn"] { overflow-anchor: none; }
.learn-guide p { margin: 0; }
.learn-guide button { font: inherit; cursor: pointer; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.learn-guide button:disabled { cursor: default; }
.learn-guide button svg { width: 22px; height: 22px; flex-shrink: 0; }
.learn-guide :focus-visible { outline: 2px solid var(--learn-sage-dark); outline-offset: 4px; }
.learn-guide [data-party="a"] { --learn-party: var(--learn-a); }
.learn-guide [data-party="b"] { --learn-party: var(--learn-b); }
.learn-guide [data-party="c"] { --learn-party: var(--learn-c); }
.learn-guide [data-party="pending"] { --learn-party: #cbd2be; }
.learn-chapter-nav { border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.learn-chapter-nav ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.learn-chapter-nav button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 78px; padding: 12px 0; background: none; border: 0; border-bottom: 2px solid transparent; text-align: left; line-height: 1.4; font-size: 13px; }
.learn-nav-icon { display: grid; place-items: center; position: relative; width: 42px; height: 42px; border: 1px solid #ccd3c0; border-radius: 12px; flex-shrink: 0; color: var(--learn-muted); }
.learn-nav-icon small { position: absolute; right: -3px; top: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 8px; }
.learn-chapter-nav [aria-current="step"] { border-bottom-color: var(--learn-sage); }
.learn-chapter-nav [aria-current="step"] .learn-nav-icon { color: #fff; border-color: var(--learn-sage); background: var(--learn-sage); }
.learn-chapter-nav [aria-current="step"] small { background: var(--learn-sage-dark); color: #fff; }
.learn-chapter { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.4fr); align-items: start; gap: clamp(28px,4vw,64px); touch-action: pan-y; }
.learn-chapter-copy { position: sticky; top: 170px; }
.learn-eyebrow, .learn-stage-kicker { font-size: 10px; color: var(--learn-muted); text-transform: uppercase; letter-spacing: .1em; line-height: 1.5; }
.learn-chapter-copy h3 { margin: 18px 0; font-weight: 380; font-size: clamp(36px,4.5vw,58px); line-height: 1.02; letter-spacing: -.06em; text-wrap: balance; max-width: 14ch; }
.learn-chapter-copy .learn-intro { font-size: 16px; line-height: 1.65; color: var(--learn-muted); max-width: 35ch; }
.learn-stage { min-width: 0; border-radius: 20px; padding: clamp(20px,2.7vw,34px); background: #f0f2e9; border: 1px solid #dbe1cf; }
.learn-stage h4 { font-weight: 500; }
.learn-stage .learn-prompt { font-size: 13px; line-height: 1.5; margin-bottom: 15px; color: var(--learn-sage-dark); }
.learn-explanation { font-size: 17px; line-height: 1.55; color: var(--learn-sage-dark); text-wrap: pretty; }
.learn-details { margin-top: 25px; border-top: 1px solid #d0d8c3; }
.learn-details summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 52px; cursor: pointer; list-style: none; font-size: 12px; color: var(--learn-sage-dark); }
.learn-details summary::-webkit-details-marker { display: none; }
.learn-details summary > span { font-size: 22px; font-weight: 300; }
.learn-details[open] summary > span { transform: rotate(45deg); }
.learn-details-body { padding-block: 4px 12px; }
.learn-details-body > p { font-size: 13px; line-height: 1.8; color: var(--learn-muted); margin-block: 0 16px; }
.learn-details-body h4 { margin: 21px 0 8px; font-size: 15px; }
.learn-details-body .learn-takeaway { border-left: 2px solid var(--learn-sage); padding-left: 14px; color: var(--learn-sage-dark); }
.learn-sources { display: flex; flex-wrap: wrap; gap: 0 15px; border-top: 1px solid #d0d8c3; margin-top: 18px; padding-top: 15px; font-size: 11px; color: var(--learn-muted); }
.learn-sources > span { flex-basis: 100%; }
.learn-sources a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.learn-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.learn-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 20px; border: 1px solid #c5cbb9; border-radius: 30px; background: var(--paper); font-size: 13px; line-height: 1.4; }
.learn-back svg { transform: rotate(180deg); }
.learn-back:disabled { opacity: .3; }
.learn-footer .learn-next { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.learn-guide[data-in-view="false"] .learn-footer { transform: translateY(110%); visibility: hidden; pointer-events: none; }
.learn-step-count { font-size: 11px; color: var(--learn-muted); letter-spacing: .04em; }
.learn-swipe-hint { display: none; }
.learn-guide .learn-complete { color: var(--learn-sage-dark); font-size: 13px; line-height: 1.65; margin-top: 24px; }

/* Two tactile ballot cards lead through the ballot box to a chamber. */
.learn-chamber-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.learn-chamber-choice { display: flex; align-items: center; gap: 15px; min-height: 102px; text-align: left; padding: 17px; background: #fafaf7; border: 1px solid #cdd5c1; border-radius: 12px; min-width: 0; }
.learn-chamber-choice > span:last-child { min-width: 0; }
.learn-chamber-choice strong { display: block; font-size: 20px; font-weight: 450; letter-spacing: -.025em; line-height: 1.2; }
.learn-chamber-choice small { display: block; font-size: 10px; line-height: 1.5; color: var(--learn-muted); margin-top: 5px; }
.learn-chamber-choice[aria-pressed="true"] { border-color: var(--learn-sage); box-shadow: inset 0 0 0 1px var(--learn-sage); background: #fff; }
.learn-paper { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 47px; height: 65px; flex-shrink: 0; padding: 9px 7px; background: #fdfdfa; border: 1px solid #a6b299; box-shadow: 3px 3px 0 #d9dfce; border-radius: 2px; transform: rotate(-5deg); }
.learn-paper > strong { font-size: 16px; font-weight: 550; color: var(--learn-sage-dark); margin-bottom: 2px; }
.learn-paper > i { height: 2px; width: 100%; background: #bcc6af; }
.learn-paper-band { width: 100%; height: 3px; background: #899b75; }
.learn-paper[data-paper="senate"] { background: #f0df9c; border-color: #bbaa65; box-shadow: 3px 3px 0 #dfd3a8; transform: rotate(5deg); }
.learn-paper[data-paper="senate"] .learn-paper-band { background: #bca765; }
.learn-paper-line { display: flex; gap: 4px; align-items: center; width: 100%; }
.learn-paper-line i { display: grid; place-items: center; width: 9px; height: 9px; border: 1px solid #9a8957; font-style: normal; font-size: 10px; line-height: 1; }
.learn-paper-line b { height: 2px; flex: 1; background: #c4af70; }
.learn-journey { display: grid; grid-template-columns: .65fr 1fr; align-items: center; gap: 30px; padding-block: 32px; }
.learn-voting-visual { position: relative; width: 130px; height: 160px; margin-inline: auto; }
.learn-moving-paper { position: absolute; top: 0; left: 47px; z-index: 2; }
.learn-moving-paper .learn-paper { width: 41px; height: 57px; }
.learn-urn { display: block; position: relative; width: 109px; height: 101px; background: #dae4ce; border: 1px solid #9aa98b; border-radius: 6px 6px 11px 11px; box-shadow: 5px 6px 0 #d9dfcd; }
.learn-voting-visual .learn-urn { position: absolute; bottom: 5px; left: 12px; }
.learn-urn-slot { display: block; position: absolute; top: -7px; left: -5px; width: calc(100% + 10px); height: 19px; background: #eef2e7; border: 1px solid #9aa98b; border-radius: 5px; }
.learn-urn-slot:after { content: ''; display: block; width: 50%; height: 3px; background: #708161; margin: 6px auto 0; border-radius: 3px; }
.learn-urn-face { display: grid; place-items: center; width: 100%; height: 100%; color: #718461; }
.learn-urn-face svg { width: 32px; height: 32px; }
.learn-journey-arrow { position: absolute; top: 95px; right: -25px; color: #8f9d80; }
.learn-journey-arrow svg { width: 28px; height: 28px; }
.learn-election-result { min-width: 0; }
.learn-congress-number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.learn-congress-number strong { font-size: 65px; font-weight: 330; line-height: 1; letter-spacing: -.065em; }
.learn-congress-number span { font-size: 11px; color: var(--learn-muted); }
.learn-dot-grid { display: block; width: 100%; height: auto; overflow: visible; }
.learn-dot { fill: var(--learn-sage); }
.learn-dot--no { fill: #b79275; }
.learn-dot--abstention { fill: #f0f2e9; stroke: #869376; stroke-width: 1; }
.learn-senate-result { display: flex; flex-direction: column; gap: 15px; padding: 18px; background: #f3e6b6; border: 1px solid #d3c38b; border-radius: 7px; transform: rotate(2deg); }
.learn-senate-result > span { display: flex; align-items: center; gap: 10px; }
.learn-senate-result i { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #a09059; color: #746337; font-size: 22px; font-style: normal; }
.learn-senate-result b { height: 3px; width: 40%; background: #c0ad72; }
.learn-senate-result b:last-child { width: 20%; }
.learn-selected-chamber { display: block; font-size: 17px; font-weight: 450; text-align: center; margin-top: 12px; }
.learn-election-chain { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid #d0d8c3; }
.learn-election-chain li { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; position: relative; font-size: 11px; line-height: 1.5; }
.learn-election-chain svg { width: 22px; height: 22px; color: var(--learn-sage); }
.learn-election-chain li + li:before { content: '→'; position: absolute; left: -19px; top: 3px; color: #8f9d80; }
.learn-chain-check { display: grid; place-items: center; height: 22px; width: 22px; color: var(--learn-sage); font-size: 22px; }

/* D’Hondt becomes five chairs and a changing race, with the full table on demand. */
.learn-example-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.learn-round-count { font-size: 15px; color: var(--learn-muted); white-space: nowrap; }
.learn-round-count > strong { font-size: 32px; font-weight: 400; color: var(--learn-sage-dark); letter-spacing: -.05em; }
.learn-round-count > span { display: block; text-align: right; font-size: 10px; margin-top: -2px; }
.learn-five-seats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 15px; margin-block: 22px 12px; }
.learn-example-seat { display: flex; flex-direction: column; align-items: center; position: relative; padding-bottom: 13px; }
.learn-chair-back { display: grid; place-items: center; height: 42px; width: 77%; background: var(--learn-party); color: #fff; font-size: 20px; border: 1px solid var(--learn-party); border-radius: 11px 11px 2px 2px; }
.learn-example-seat > i { display: block; width: 95%; height: 17px; background: var(--learn-party); margin-top: 5px; border-radius: 4px; position: relative; }
.learn-example-seat > i:before, .learn-example-seat > i:after { content: ''; position: absolute; width: 2px; height: 11px; bottom: -10px; background: var(--learn-party); left: 9%; }
.learn-example-seat > i:after { left: auto; right: 9%; }
.learn-example-seat small { font-size: 10px; color: var(--learn-muted); margin-top: 16px; }
.learn-example-seat[data-party="pending"] .learn-chair-back { background: #e7ecde; border: 1px dashed #a7b397; color: #78866a; }
.learn-example-seat[data-party="pending"] > i { background: #e0e7d4; }
.learn-example-seat[data-learn-new-seat]:after { content: '+1'; display: grid; place-items: center; position: absolute; right: -1px; top: -12px; width: 25px; height: 25px; background: var(--paper); color: var(--learn-party); border: 1px solid var(--learn-party); border-radius: 50%; font-size: 10px; font-weight: 600; }
.learn-stage .learn-seat-summary { font-size: 11px; line-height: 1.5; color: var(--learn-muted); }
.learn-race-heading { display: flex; justify-content: space-between; gap: 15px; margin-block: 24px 12px; font-size: 11px; line-height: 1.4; color: var(--learn-muted); }
.learn-race-heading > span:first-child { color: var(--learn-sage-dark); }
.learn-race-heading b { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: 4px; background: #dce4ce; border-radius: 50%; font-weight: 500; }
.learn-quotient-race { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.learn-candidate { padding: 14px 12px; border: 1px solid #cdd5bf; border-radius: 11px; background: #f9faf5; min-width: 0; }
.learn-candidate[data-winner="true"] { border-color: var(--learn-party); box-shadow: inset 0 0 0 1px var(--learn-party); background: #fff; }
.learn-candidate-top { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; align-items: center; }
.learn-party-key { display: inline-grid; place-items: center; height: 24px; width: 24px; border-radius: 50%; background: var(--learn-party); color: #fff; font-size: 12px; font-weight: 500; }
.learn-candidate-top strong { font-size: 16px; font-weight: 450; line-height: 1.1; letter-spacing: -.035em; }
.learn-candidate-top strong small { display: block; font-size: 9px; color: var(--learn-muted); font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.learn-candidate-wins { grid-column: 1/-1; font-size: 12px; color: var(--learn-party); }
.learn-candidate-wins small { font-size: 9px; color: var(--learn-muted); margin-left: 5px; }
.learn-candidate-equation { display: flex; flex-wrap: wrap; gap: 7px; align-items: baseline; justify-content: space-between; margin-top: 17px; }
.learn-candidate-equation > span { font-size: 12px; color: var(--learn-muted); }
.learn-candidate-equation > strong { font-size: 26px; font-weight: 380; letter-spacing: -.045em; flex-basis: 100%; line-height: 1; }
.learn-candidate-equation > i { position: absolute; font-style: normal; margin-top: -13px; font-size: 17px; color: var(--learn-party); right: 12px; }
.learn-candidate { position: relative; }
.learn-race-track { height: 5px; margin-top: 15px; background: #e3e9da; border-radius: 4px; overflow: hidden; }
.learn-race-bar { display: block; width: 100%; height: 100%; transform-origin: left; background: var(--learn-party); }
.learn-round-controls { display: flex; gap: 9px; margin-block: 19px 8px; }
.learn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 13px; flex: 1; min-height: 50px; padding: 12px 16px; background: var(--ink); color: var(--paper)!important; border: 1px solid var(--ink); border-radius: 30px; font-size: 12px!important; line-height: 1.5; }
.learn-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 50px; min-height: 50px; border: 1px solid #b9c5ab; border-radius: 30px; padding: 12px 15px; background: #fff; color: var(--learn-sage-dark)!important; font-size: 11px!important; }
.learn-play > span:first-child { font-size: 14px; }
.learn-play[aria-pressed="true"] { background: #dce6cf; border-color: var(--learn-sage); }
.learn-round-picker { display: flex; justify-content: center; gap: 5px; }
.learn-round-picker button { min-width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; font-size: 11px; }
.learn-round-picker button[aria-pressed="true"] { background: #dce6cf; color: var(--learn-sage-dark); box-shadow: inset 0 0 0 1px #a8b89a; }
.learn-award { display: flex; align-items: center; gap: 13px; margin-top: 12px; padding-top: 20px; border-top: 1px solid #d0d8c3; }
.learn-award > span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: #dae4cc; color: var(--learn-sage-dark); font-size: 14px; font-weight: 500; }
.learn-award p { font-size: 12px; line-height: 1.7; color: var(--learn-sage-dark); }
.learn-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding: 1px; margin-block: 15px 20px; }
.learn-quotient-table { width: 100%; min-width: 460px; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.learn-quotient-table th, .learn-quotient-table td { text-align: right; padding: 10px 6px; border-bottom: 1px solid #d0d8c3; vertical-align: top; }
.learn-quotient-table th:first-child { width: 95px; text-align: left; }
.learn-quotient-table th small, .learn-quotient-table td small { display: block; font-size: 9px; margin-top: 7px; font-weight: 400; }
.learn-quotient-table thead th { font-weight: 400; color: var(--learn-muted); }
.learn-quotient-awarded { background: #dfe7d3; }
.learn-quotient-latest { box-shadow: inset 0 0 0 1px var(--learn-sage); }
.learn-rule { display: flex; align-items: flex-start; gap: 19px; margin-block: 23px; }
.learn-rule-number { font-size: 50px; font-weight: 330; color: var(--learn-sage); line-height: 1.1; letter-spacing: -.06em; }
.learn-rule-number > span { font-size: 24px; }
.learn-rule h4 { margin-top: 0; }
.learn-rule p { font-size: 12px; line-height: 1.75; color: var(--learn-muted); margin-block: 9px; }

/* The four types show whether an envelope enters, then the three actual counts. */
.learn-ballot-picker { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.learn-ballot-picker button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 88px; padding: 12px 7px; background: #fafaf7; border: 1px solid #cbd4bf; border-radius: 11px; font-size: 11px; line-height: 1.3; }
.learn-ballot-choice-icon { display: grid; place-items: center; width: 26px; height: 32px; background: #fff; border: 1px solid #c5cfb7; border-radius: 2px; font-size: 18px; color: var(--learn-sage-dark); }
.learn-ballot-picker [aria-pressed="true"] { background: #fff; border-color: var(--learn-sage); box-shadow: inset 0 0 0 1px var(--learn-sage); }
.learn-ballot-picker [aria-pressed="true"] .learn-ballot-choice-icon { background: var(--learn-sage); border-color: var(--learn-sage); color: #fff; }
.learn-ballot-scene { display: flex; justify-content: center; align-items: center; gap: 30px; padding-block: 32px 49px; position: relative; min-height: 195px; }
.learn-envelope-visual { position: relative; width: 110px; height: 94px; }
.learn-envelope-visual .learn-paper { position: absolute; left: 32px; top: -13px; width: 48px; height: 65px; }
.learn-envelope { display: block; position: absolute; bottom: 0; left: 0; width: 110px; height: 68px; background: #f8faf4; border: 1px solid #a8b696; border-radius: 4px; overflow: hidden; }
.learn-envelope:before, .learn-envelope:after { content: ''; position: absolute; width: 75px; height: 75px; background: #edf2e4; border: 1px solid #a8b696; transform: rotate(45deg); left: -37px; top: 20px; }
.learn-envelope:after { left: auto; right: -37px; }
.learn-envelope > i { display: block; position: absolute; width: 78px; height: 78px; top: -40px; left: 15px; border: 1px solid #a8b696; transform: rotate(45deg); background: #f8faf4; }
.learn-scene-arrow { color: var(--learn-sage); }
.learn-scene-arrow svg { width: 26px; height: 26px; }
.learn-scene-verdict { position: absolute; bottom: 16px; font-size: 11px; line-height: 1.4; color: var(--learn-muted); }
.learn-ballot-scene[data-ballot="null"] .learn-paper > strong { color: #945e45; }
.learn-ballot-scene[data-ballot="abstention"] .learn-envelope { background: transparent; border-style: dashed; }
.learn-ballot-scene[data-ballot="abstention"] .learn-envelope:before, .learn-ballot-scene[data-ballot="abstention"] .learn-envelope:after, .learn-ballot-scene[data-ballot="abstention"] .learn-envelope > i { display: none; }
.learn-absence { position: absolute; inset: 26px 0 0; display: grid; place-items: center; font-size: 35px; color: #8c987e; }
.learn-ballot-scene[data-ballot="abstention"] .learn-scene-arrow { color: #ad8265; font-size: 26px; }
.learn-ballot-description { border-top: 1px solid #d0d8c3; padding-top: 20px; }
.learn-valid-badge { display: inline-block; font-size: 9px; line-height: 1.5; padding: 5px 8px; background: #e8dfd3; color: #805d44; border-radius: 4px; }
.learn-valid-badge[data-valid="true"] { background: #dce6cf; color: var(--learn-sage-dark); }
.learn-ballot-description h4 { font-size: 27px; font-weight: 400; letter-spacing: -.045em; line-height: 1.1; margin: 13px 0 10px; }
.learn-ballot-description p { font-size: 13px; line-height: 1.65; color: var(--learn-muted); }
.learn-ballot-counts { margin: 21px 0 0; border-top: 1px solid #d0d8c3; }
.learn-ballot-counts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #d0d8c3; min-height: 54px; }
.learn-ballot-counts dt { font-size: 12px; line-height: 1.45; color: var(--learn-muted); }
.learn-ballot-counts dt small { font-size: 10px; white-space: nowrap; }
.learn-ballot-counts dd { display: flex; align-items: center; gap: 7px; flex-shrink: 0; font-size: 11px; color: #855e47; margin: 0; }
.learn-ballot-counts dd > i { display: grid; place-items: center; height: 24px; width: 24px; border-radius: 50%; background: #e8dfd3; font-size: 17px; font-style: normal; }
.learn-ballot-counts [data-counts="true"] dd { color: var(--learn-sage-dark); }
.learn-ballot-counts [data-counts="true"] dd > i { background: #dbe6ce; }

/* A full hemicycle and one rule at a time make the two votes comparable. */
.learn-vote-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); background: #dfe6d5; padding: 4px; gap: 4px; border-radius: 30px; }
.learn-vote-picker button { border: 0; background: none; min-height: 44px; font-size: 12px; border-radius: 30px; padding: 10px 8px; line-height: 1.4; }
.learn-vote-picker [aria-pressed="true"] { background: #fff; color: var(--learn-sage-dark); box-shadow: 0 2px 4px #4354370c; }
.learn-stage .learn-current-rule { font-size: 11px; line-height: 1.55; margin-top: 13px; color: var(--learn-sage-dark); }
.learn-government-chamber { margin-top: 24px; }
.learn-vote-legend { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 17px 0 0; padding-top: 15px; border-top: 1px solid #d0d8c3; }
.learn-vote-legend dt { display: flex; align-items: center; gap: 5px; font-size: 11px; line-height: 1.4; }
.learn-vote-legend dd { margin: 6px 0 0; font-size: 37px; font-weight: 330; letter-spacing: -.05em; line-height: 1; }
.learn-vote-legend dt > i { width: 7px; height: 7px; border-radius: 50%; background: var(--learn-sage); flex-shrink: 0; }
.learn-vote-legend [data-vote="no"] dt > i { background: #b79275; }
.learn-vote-legend [data-vote="abstentions"] dt > i { border: 1px solid #869376; background: none; }
.learn-majority-test { margin-top: 23px; padding: 20px; background: #fff; border: 1px solid #cdd6c0; border-radius: 13px; }
.learn-threshold-label { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; }
.learn-threshold-label > strong { font-size: 31px; font-weight: 380; letter-spacing: -.045em; white-space: nowrap; }
.learn-threshold-label strong small { font-size: 12px; letter-spacing: 0; }
.learn-threshold-label > span { font-size: 11px; line-height: 1.5; color: var(--learn-muted); max-width: 16ch; }
.learn-majority-track { height: 10px; background: #e7ecdf; position: relative; border-radius: 6px; margin-top: 18px; }
.learn-majority-track > span { display: block; width: 100%; height: 100%; background: var(--learn-sage); transform-origin: left; border-radius: 6px; }
.learn-majority-track > i { display: block; position: absolute; width: 2px; height: 25px; background: #b68b68; top: -8px; }
.learn-threshold-axis { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: var(--learn-muted); margin-top: 10px; }
.learn-threshold-axis strong { color: #946b4d; font-weight: 500; }
.learn-simple-equation { display: flex; align-items: center; justify-content: center; gap: 20px; }
.learn-simple-equation > span { display: flex; flex-direction: column; gap: 5px; font-size: 44px; font-weight: 340; letter-spacing: -.05em; line-height: 1; }
.learn-simple-equation small { font-size: 11px; color: var(--learn-muted); letter-spacing: 0; text-align: center; }
.learn-simple-equation > b { font-size: 30px; font-weight: 300; color: var(--learn-sage); }
.learn-majority-test > p { font-size: 11px; text-align: center; margin-top: 16px; color: var(--learn-muted); line-height: 1.5; }
.learn-outcome { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 19px; margin-top: 16px; border-top: 1px solid #e1e5d9; color: #946548; }
.learn-outcome > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f0e6dc; font-size: 22px; }
.learn-outcome > strong { font-size: 22px; line-height: 1.2; font-weight: 420; letter-spacing: -.035em; }
.learn-outcome[data-passes="true"] { color: var(--learn-sage-dark); }
.learn-outcome[data-passes="true"] > span { background: #dce8d1; }
.learn-stage .learn-scenario-prompt { margin-top: 22px; margin-bottom: 10px; font-size: 11px; }
.learn-scenario-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.learn-scenario-picker button { flex: 1; min-height: 48px; padding: 10px 8px; border: 1px solid #c5d0b7; border-radius: 7px; background: #fafbf7; font-size: 11px; line-height: 1.4; }
.learn-scenario-picker [aria-pressed="true"] { background: #dce6ce; border-color: var(--learn-sage); color: var(--learn-sage-dark); }
.learn-stage .learn-scenario-result { font-size: 12px; line-height: 1.7; margin-top: 17px; color: var(--learn-muted); }

@media (hover:hover) and (pointer:fine) {
  .learn-guide button:not(:disabled):hover { filter: brightness(.97); }
  .learn-chapter-nav button:hover .learn-nav-icon { border-color: var(--learn-sage); }
  .learn-details summary:hover { color: var(--ink); }
}
@media (prefers-reduced-motion:no-preference) {
  .learn-guide button { transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease; }
  .learn-guide button:not(:disabled):active { transform: scale(.97); }
  .learn-guide[data-motion="on"] .learn-moving-ballot { animation: learn-ballot-in 650ms cubic-bezier(.2,.8,.2,1) both; }
  .learn-guide[data-motion="on"] [data-learn-new-seat]:after { animation: learn-seat-plus 500ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes learn-ballot-in { from { opacity: .25; transform: translateY(-15px) rotate(-8deg); } to { opacity: 1; transform: none; } }
  @keyframes learn-seat-plus { from { opacity: 0; transform: translateY(6px) scale(.65); } to { opacity: 1; transform: none; } }
}
@media (max-width:1000px) {
  .learn-chapter { grid-template-columns: minmax(0,.68fr) minmax(0,1.4fr); gap: 25px; }
  .learn-chapter-copy h3 { font-size: 42px; }
  .learn-stage { padding: 22px; }
  .learn-chamber-choice { padding: 13px 10px; gap: 10px; }
  .learn-chamber-choice strong { font-size: 18px; }
  .learn-journey { gap: 23px; }
  .learn-candidate { padding: 13px 9px; }
  .learn-candidate-top { display: flex; flex-wrap: wrap; gap: 7px; }
  .learn-candidate-top strong { flex: 1 1 100%; }
  .learn-candidate-wins { display: block; }
  .learn-play > span:last-child { display: none; }
}
@media (max-width:760px) {
  .portal[data-mode="learn"] { padding-top: 17px; }
  .portal[data-mode="learn"] .portal-intro { padding-bottom: 14px; }
  .portal[data-mode="learn"] .portal-intro h2 { font-size: 19px; font-weight: 450; letter-spacing: -.035em; margin: 0; }
  .portal[data-mode="learn"] .portal-intro p:last-child { display: none; }
  .portal[data-mode="learn"] .portal-panel { padding-top: 10px; padding-bottom: 90px; }
  .portal[data-mode="learn"] .portal-reviewed { padding-bottom: 100px; }
  .learn-guide { scroll-margin-top: 155px; }
  .learn-chapter-nav { margin-bottom: 17px; }
  .learn-chapter-nav ol { gap: 8px; }
  .learn-chapter-nav button { flex-direction: column; justify-content: flex-start; align-items: center; gap: 7px; text-align: center; min-height: 94px; padding: 7px 0 10px; font-size: 10px; }
  .learn-nav-icon { width: 33px; height: 33px; border-radius: 9px; }
  .learn-nav-icon svg { width: 20px; height: 20px; }
  .learn-nav-icon small { width: 13px; height: 13px; right: -4px; font-size: 7px; }
  .learn-nav-label { max-width: 12ch; line-height: 1.35; }
  .learn-chapter { display: block; }
  .learn-chapter-copy { position: static; margin-bottom: 18px; }
  .learn-chapter-copy h3 { max-width: none; font-size: clamp(29px,5.7vw,37px); line-height: 1.04; margin: 8px 0 9px; }
  .learn-chapter-copy .learn-intro { max-width: none; font-size: 12px; line-height: 1.5; }
  .learn-eyebrow { font-size: 8px; }
  .learn-stage { padding: 20px; border-radius: 16px; }
  .learn-stage .learn-prompt { font-size: 12px; margin-bottom: 11px; }
  .learn-chamber-choice { min-height: 92px; gap: 12px; }
  .learn-chamber-choice strong { font-size: 18px; }
  .learn-chamber-choice small { font-size: 9px; }
  .learn-journey { gap: 22px; padding-block: 28px; }
  .learn-journey-arrow { right: -16px; }
  .learn-explanation { font-size: 15px; line-height: 1.5; }
  .learn-election-chain { font-size: 10px; gap: 15px; margin-top: 17px; padding-top: 17px; }
  .learn-election-chain li { font-size: 10px; gap: 6px; }
  .learn-election-chain li + li:before { left: -14px; }
  .learn-details { margin-top: 18px; }
  .learn-details summary { min-height: 49px; font-size: 11px; }
  .learn-details-body > p { font-size: 12px; }
  .learn-swipe-hint { display: block; font-size: 9px; color: var(--learn-muted); text-align: center; margin-top: 17px!important; line-height: 1.6; }
  .learn-swipe-hint > span { color: var(--learn-sage); }
  .learn-footer { position: fixed; z-index: 12; bottom: 0; left: 0; right: 0; margin: 0; padding: 10px max(16px,calc((100vw - 600px)/2)) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid #cdd4c0; box-shadow: 0 -6px 20px #353e2810; gap: 13px; }
  .learn-footer .learn-back { min-width: 48px; padding-inline: 12px; }
  .learn-back > span { display: none; }
  .learn-footer .learn-next { min-height: 48px; flex: 1; font-size: 12px; padding: 10px 13px; gap: 9px; }
  .learn-step-count { font-size: 10px; flex: 0 0 30px; text-align: center; }
  .learn-guide .learn-complete { font-size: 12px; }
  .learn-congress-number strong { font-size: 52px; }
  .learn-congress-number span { font-size: 9px; }
  .learn-ballot-scene { gap: 20px; padding-block: 29px 48px; }
  .learn-government-chamber { margin-top: 18px; }
  .learn-vote-legend dd { font-size: 33px; }
  .learn-majority-test { margin-top: 19px; padding: 17px; }
  .learn-outcome > strong { font-size: 21px; }
}
@media (max-width:440px) {
  .learn-stage { padding: 14px; }
  .learn-stage-kicker { font-size: 8px; max-width: 20ch; }
  .learn-chamber-picker { gap: 7px; }
  .learn-chamber-choice { padding: 10px 8px; gap: 8px; min-height: 84px; }
  .learn-chamber-choice .learn-paper { width: 32px; height: 47px; padding: 7px 5px; gap: 4px; }
  .learn-chamber-choice .learn-paper strong { font-size: 12px; }
  .learn-chamber-choice strong { font-size: 16px; }
  .learn-chamber-choice small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-size: 10px; }
  .learn-paper-line i { width: 6px; height: 6px; font-size: 8px; }
  .learn-journey { grid-template-columns: 96px minmax(0,1fr); gap: 22px; padding-block: 26px; }
  .learn-voting-visual { width: 96px; height: 136px; }
  .learn-moving-paper { left: 32px; }
  .learn-moving-paper .learn-paper { width: 34px; height: 46px; padding: 7px 5px; }
  .learn-voting-visual .learn-urn { left: 7px; width: 81px; height: 77px; }
  .learn-urn-slot { height: 15px; top: -6px; }
  .learn-urn-slot:after { margin-top: 5px; }
  .learn-urn-face svg { height: 25px; width: 25px; }
  .learn-journey-arrow { right: -18px; top: 81px; }
  .learn-journey-arrow svg { width: 21px; height: 21px; }
  .learn-congress-number strong { font-size: 45px; }
  .learn-congress-number span { font-size: 8px; }
  .learn-senate-result { padding: 14px 9px; gap: 10px; }
  .learn-senate-result i { height: 17px; width: 17px; font-size: 18px; }
  .learn-senate-result > span { gap: 6px; }
  .learn-selected-chamber { font-size: 15px; }
  .learn-explanation { font-size: 14px; }
  .learn-five-seats { gap: 9px; margin-top: 21px; }
  .learn-chair-back { height: 33px; font-size: 17px; border-radius: 8px 8px 2px 2px; }
  .learn-example-seat > i { height: 13px; margin-top: 4px; }
  .learn-example-seat[data-learn-new-seat]:after { width: 22px; height: 22px; top: -11px; right: -3px; font-size: 9px; }
  .learn-round-count { font-size: 12px; }
  .learn-round-count > strong { font-size: 29px; }
  .learn-race-heading { font-size: 10px; margin-top: 19px; gap: 10px; }
  .learn-race-heading > span:last-child { text-align: right; max-width: 17ch; }
  .learn-quotient-race { gap: 7px; }
  .learn-candidate { padding: 12px 8px; border-radius: 8px; }
  .learn-candidate-top { gap: 6px; }
  .learn-party-key { width: 22px; height: 22px; font-size: 11px; }
  .learn-candidate-top strong { font-size: 14px; }
  .learn-candidate-top strong small { font-size: 10px; }
  .learn-candidate-wins { font-size: 11px; }
  .learn-candidate-wins small { font-size: 10px; margin-left: 3px; }
  .learn-candidate-equation { margin-top: 12px; }
  .learn-candidate-equation > strong { font-size: 20px; }
  .learn-candidate-equation > span { font-size: 10px; }
  .learn-candidate-equation > i { font-size: 15px; right: 8px; }
  .learn-race-track { margin-top: 11px; height: 4px; }
  .learn-round-controls { gap: 7px; margin-top: 16px; }
  .learn-primary { padding-inline: 12px; font-size: 11px!important; gap: 7px; min-height: 48px; }
  .learn-primary svg { width: 19px; height: 19px; }
  .learn-play { min-width: 48px; min-height: 48px; padding: 10px; }
  .learn-round-picker { gap: 0; margin-inline: -11px; }
  .learn-award { gap: 10px; padding-top: 15px; margin-top: 9px; }
  .learn-award > span { flex-basis: 35px; height: 35px; font-size: 12px; }
  .learn-award p { font-size: 11px; line-height: 1.6; }
  .learn-ballot-picker { gap: 6px; }
  .learn-ballot-picker button { font-size: 10px; min-height: 90px; padding-inline: 3px; gap: 7px; }
  .learn-ballot-choice-icon { width: 22px; height: 28px; font-size: 16px; }
  .learn-ballot-scene { gap: 17px; min-height: 170px; padding-block: 27px 44px; }
  .learn-envelope-visual { width: 83px; height: 78px; }
  .learn-envelope { width: 83px; height: 55px; }
  .learn-envelope:before, .learn-envelope:after { width: 62px; height: 62px; top: 16px; left: -30px; }
  .learn-envelope:after { left: auto; right: -30px; }
  .learn-envelope > i { width: 58px; height: 58px; top: -30px; left: 12px; }
  .learn-envelope-visual .learn-paper { left: 25px; top: -7px; width: 37px; height: 52px; padding: 7px; gap: 4px; }
  .learn-envelope-visual .learn-paper strong { font-size: 15px; }
  .learn-ballot-scene > .learn-urn { width: 83px; height: 78px; }
  .learn-scene-arrow svg { width: 20px; height: 20px; }
  .learn-scene-verdict { font-size: 10px; }
  .learn-ballot-description { padding-top: 17px; }
  .learn-ballot-description h4 { font-size: 25px; }
  .learn-ballot-description p { font-size: 12px; }
  .learn-ballot-counts { margin-top: 17px; }
  .learn-ballot-counts > div { min-height: 52px; gap: 8px; }
  .learn-ballot-counts dt { font-size: 10px; }
  .learn-ballot-counts dd { font-size: 9px; gap: 5px; }
  .learn-ballot-counts dd > i { width: 21px; height: 21px; font-size: 15px; }
  .learn-vote-picker button { font-size: 11px; }
  .learn-vote-legend { gap: 6px; margin-top: 10px; padding-top: 11px; }
  .learn-vote-legend dt { font-size: 10px; gap: 4px; }
  .learn-vote-legend dd { font-size: 30px; }
  .learn-majority-test { padding: 14px; margin-top: 16px; }
  .learn-threshold-label > strong { font-size: 28px; }
  .learn-threshold-label > span { font-size: 10px; }
  .learn-simple-equation { gap: 16px; }
  .learn-simple-equation > span { font-size: 38px; }
  .learn-outcome > strong { font-size: 20px; }
  .learn-scenario-picker { gap: 5px; }
  .learn-scenario-picker button { padding: 8px 5px; font-size: 10px; }
  .learn-stage .learn-scenario-result { font-size: 11px; line-height: 1.65; }
}
@media (max-width:360px) {
  .learn-chapter-nav button { font-size: 10px; min-height: 94px; }
  .learn-chapter-copy h3 { font-size: 28px; }
  .learn-stage { padding: 12px; }
  .learn-chamber-choice { gap: 6px; padding-inline: 6px; }
  .learn-chamber-choice strong { font-size: 15px; }
  .learn-chamber-choice .learn-paper { width: 28px; height: 43px; padding: 6px 4px; }
  .learn-journey { grid-template-columns: 89px minmax(0,1fr); gap: 19px; }
  .learn-candidate { padding: 10px 6px; }
  .learn-candidate-equation > strong { font-size: 18px; }
  .learn-candidate-top strong { font-size: 13px; }
  .learn-example-seat[data-learn-new-seat]:after { right: -5px; }
  .learn-ballot-scene { gap: 12px; }
  .learn-outcome > strong { font-size: 18px; }
  .learn-outcome { gap: 8px; }
  .learn-threshold-label { gap: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .learn-guide *, .learn-guide *::before, .learn-guide *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}

/* A concrete story: a named list, counted votes, people, then their decision. */
.learn-story-stage .learn-explanation { font-size: 17px; line-height: 1.65; }
.learn-story-ballot { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; padding: 28px 5px; }
.learn-named-paper { background: #fffefa; border: 1px solid #b7c1a9; box-shadow: 5px 6px 0 #dce2d2; padding: 20px; transform: rotate(-3deg); }
.learn-named-paper > span { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 3px solid var(--learn-sage); }
.learn-named-paper > strong { display: block; font-size: 25px; font-weight: 500; margin-block: 16px; }
.learn-named-paper ol { padding-left: 22px; margin: 0; }
.learn-named-paper li { padding-left: 3px; margin-block: 12px; font-size: 16px; }
.learn-named-paper li::marker { color: #7b886e; font-size: 11px; }
.learn-named-paper li .learn-person { width: 16px; height: 21px; margin-right: 8px; vertical-align: middle; }
.learn-named-paper > small { display: block; margin-left: 24px; letter-spacing: 5px; }
.learn-person { color: var(--learn-party, var(--learn-sage)); }
.learn-ballot-notes > strong { font-size: 22px; font-weight: 450; line-height: 1.25; letter-spacing: -.025em; display: block; }
.learn-ballot-notes > p { font-size: 14px; line-height: 1.55; margin-top: 10px; color: var(--learn-muted); }
.learn-ballot-notes .learn-voting-visual { margin-top: 18px; }
.learn-story-stage .learn-story-takeaway { font-size: 15px; line-height: 1.6; margin-top: 22px; padding: 17px 0 0; border-top: 1px solid #d0d8c3; color: var(--learn-sage-dark); }
.learn-senate-aside { display: flex; align-items: center; gap: 20px; margin-block: 12px 20px; }
.learn-senate-aside p { font-size: 15px; line-height: 1.6; color: var(--learn-muted); }
.learn-definition { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #d0d8c3; color: var(--learn-sage-dark); }
.learn-definition svg { width: 31px; height: 31px; flex-shrink: 0; }
.learn-definition strong { font-size: 17px; line-height: 1.4; font-weight: 500; }
.learn-story-stage .learn-province-example { margin-block: 20px 5px; font-size: 17px; line-height: 1.45; }
.learn-vote-totals { display: grid; gap: 8px; margin-top: 17px; }
.learn-candidate.learn-total { display: grid; grid-template-columns: 30px 1fr 60px; align-items: center; gap: 12px; padding: 12px 16px; }
.learn-total .learn-party-key { width: 30px; height: 30px; font-size: 15px; }
.learn-total > div > strong { font-size: 14px; font-weight: 500; }
.learn-total > div > small { font-size: 12px; color: var(--learn-muted); margin-left: 12px; }
.learn-total .learn-race-track { display: block; margin-top: 9px; height: 5px; }
.learn-total > b { font-size: 26px; line-height: 1.1; font-weight: 450; text-align: center; color: var(--learn-party); }
.learn-total > b > small { font-size: 10px; font-weight: 400; display: block; margin-top: 3px; color: var(--learn-muted); }
.learn-people-seats { margin-top: 29px; gap: 13px; }
.learn-people-seats .learn-chair-back { position: relative; height: 49px; background: #e5e9dd; border-color: #bdc6b1; }
.learn-people-seats .learn-person { height: 56px; width: 42px; position: absolute; bottom: -3px; }
.learn-people-seats .learn-example-seat > i { height: 10px; margin-top: 3px; }
.learn-people-seats .learn-example-seat > small { font-size: 13px; margin-top: 18px; color: var(--ink); }
.learn-people-seats .learn-example-seat > b { font-weight: 500; color: var(--learn-party); font-size: 11px; min-height: 16px; margin-top: 4px; }
.learn-people-result { margin-top: 12px; min-height: 102px; }
.learn-people-result > strong { font-size: 18px; font-weight: 500; line-height: 1.4; display: block; }
.learn-people-result > p { font-size: 15px; color: var(--learn-muted); line-height: 1.6; margin-top: 8px; }
.learn-calc-next { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 1; font-size: 13px!important; border: 1px solid #b9c5ab; background: #fff; border-radius: 24px; padding: 10px 14px; min-height: 48px; }
.learn-story-stage .learn-details summary { font-size: 14px; line-height: 1.5; }
.learn-story-stage .learn-details-body > p { font-size: 14px; line-height: 1.7; }
.learn-story-stage .learn-ballot-description h4 { font-size: 27px; }
.learn-story-stage .learn-ballot-description p { font-size: 15px; line-height: 1.65; }
.learn-story-stage .learn-ballot-counts dt { font-size: 14px; }
.learn-story-stage .learn-ballot-counts dd { font-size: 12px; }
.learn-story-stage .learn-ballot-picker button { font-size: 13px; }
.learn-envelope-visual .learn-paper.learn-null-paper-a { left: 20%; transform: rotate(-16deg); }
.learn-envelope-visual .learn-paper.learn-null-paper-b { left: 42%; transform: rotate(12deg); }
.learn-deputy-key { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.5; margin-bottom: 20px!important; color: var(--learn-sage-dark); }
.learn-deputy-key .learn-person { width: 26px; height: 35px; flex-shrink: 0; }
.learn-story-stage .learn-current-rule { font-size: 16px; line-height: 1.6; }
.learn-story-stage .learn-scenario-prompt, .learn-story-stage .learn-scenario-result { font-size: 14px; }
.learn-story-stage .learn-vote-legend dt { font-size: 12px; }
.learn-story-stage .learn-vote-legend dt > i { display: none; }
@media (max-width:760px) {
  .learn-chapter-copy .learn-intro { font-size: 15px; line-height: 1.6; }
  .learn-chapter-copy h3 { font-size: 33px; line-height: 1.08; }
  .learn-chapter-nav button { min-height: 77px; font-size: 11px; }
  .learn-story-stage { padding: 18px; }
  .learn-story-ballot { gap: 22px; padding: 25px 0; grid-template-columns: 1.05fr 1fr; }
  .learn-named-paper { padding: 13px 10px; }
  .learn-named-paper > strong { font-size: 21px; margin-block: 13px; }
  .learn-named-paper > span { font-size: 9px; padding-bottom: 9px; }
  .learn-named-paper li { font-size: 14px; margin-block: 10px; padding: 0; }
  .learn-named-paper li .learn-person { width: 12px; margin-right: 5px; }
  .learn-ballot-notes > strong { font-size: 19px; }
  .learn-ballot-notes > p { font-size: 13px; }
  .learn-ballot-notes .learn-voting-visual { width: 103px; height: 124px; margin-top: 15px; }
  .learn-ballot-notes .learn-moving-paper { left: 37px; }
  .learn-ballot-notes .learn-urn { width: 88px; height: 70px; left: 5px; }
  .learn-story-stage .learn-explanation { font-size: 16px; }
  .learn-story-stage .learn-story-takeaway { font-size: 14px; margin-top: 17px; }
  .learn-definition strong { font-size: 16px; }
  .learn-story-stage .learn-province-example { font-size: 16px; }
  .learn-candidate.learn-total { grid-template-columns: 25px 1fr 46px; gap: 9px; padding: 10px; }
  .learn-total .learn-party-key { width: 25px; height: 25px; font-size: 13px; }
  .learn-total > div > small { display: block; margin: 3px 0 0; }
  .learn-total > b { font-size: 26px; }
  .learn-people-seats { gap: 8px; margin-top: 26px; }
  .learn-people-seats .learn-person { width: 32px; height: 47px; }
  .learn-people-seats .learn-chair-back { height: 40px; }
  .learn-people-seats .learn-example-seat > small { font-size: 12px; }
  .learn-people-result { min-height: 121px; }
  .learn-people-result > strong { font-size: 17px; }
  .learn-people-result > p { font-size: 14px; }
  .learn-story-stage .learn-primary { font-size: 14px!important; }
  .learn-story-stage .learn-ballot-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .learn-story-stage .learn-ballot-picker button { min-height: 62px; flex-direction: row; padding: 10px; font-size: 13px; }
  .learn-story-stage .learn-ballot-description h4 { font-size: 25px; }
  .learn-story-stage .learn-ballot-counts dt { font-size: 13px; }
  .learn-story-stage .learn-ballot-counts dd { font-size: 11px; }
  .learn-story-stage .learn-vote-picker button { font-size: 13px; }
  .learn-story-stage .learn-outcome > strong { font-size: 20px; }
}

.learn-story-stage .learn-stage-kicker { max-width: none; font-size: 10px; }
.learn-story-stage .learn-abstention-meaning { font-size: 12px; line-height: 1.6; color: var(--learn-muted); margin-top: 14px; }

.learn-deputy-key { margin-top: 13px!important; }

/* Shared portal surfaces, preserving the guide's original type and diagrams. */
.portal[data-mode=learn]{--line:#e1e1e6;--panel-muted:#6e6e73}
.portal[data-mode=learn] .portal-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-bottom:22px}
.portal[data-mode=learn] .portal-intro{border:0;padding:0;min-width:0}
.portal[data-mode=learn] .portal-tabs{position:static;background:none;border:0;padding:0;margin:0}
.portal[data-mode=learn] .back-categories{display:none}
.portal[data-mode=learn] .portal-tabs select{background:#f5f5f7;border:1px solid #e1e1e6;border-radius:12px;min-height:44px}
.learn-guide{--learn-sage:#242522;--learn-sage-dark:#242522;--learn-wash:#f5f5f7;--learn-muted:#6e6e73}
.learn-chapter-nav{border:0;margin-bottom:28px;background:#eeeef0;border-radius:20px;padding:5px}
.learn-chapter-nav ol{gap:4px}
.learn-chapter-nav button{border:0;border-radius:16px;padding:12px;min-height:68px}
.learn-chapter-nav [aria-current=step]{background:#fff;box-shadow:0 2px 8px #00000008}
.learn-nav-icon{background:transparent;border-color:transparent;color:#6e6e73}
.learn-chapter-nav [aria-current=step] .learn-nav-icon{background:#242522;border-color:#242522}
.learn-nav-icon small{background:#e5e5e9}
.learn-stage{background:#f5f5f7;border-color:#e1e1e6;border-radius:28px}
.learn-details,.learn-sources,.learn-definition,.learn-story-stage .learn-story-takeaway{border-color:#dddde3}
.learn-details{background:#ffffff90;border:1px solid #e5e5e9;border-radius:16px;padding-inline:16px}
.learn-details-body{padding-bottom:14px}
.learn-footer{border-color:#e1e1e6}
.learn-footer button{border-radius:13px;background:#f5f5f7;border-color:#e1e1e6}
.learn-footer .learn-next,.learn-round-controls .learn-primary{background:#242522;color:#fff;border-color:#242522;border-radius:13px}
.learn-named-paper{background:#fff;border-color:#d4d4db;box-shadow:5px 6px 0 #e0e0e6;border-radius:8px}
.learn-named-paper li::marker{color:#6e6e73}
.learn-chamber-choice,.learn-ballot-picker button{background:#fff;border-color:#e1e1e6;border-radius:16px}
.learn-chamber-choice[aria-pressed=true],.learn-ballot-picker [aria-pressed=true]{border-color:#242522;box-shadow:inset 0 0 0 1px #242522}
.learn-candidate{background:#fff;border-color:#e1e1e6;border-radius:16px}
.learn-round-picker,.learn-vote-picker{background:#e8e8ed;border-radius:14px}
.learn-round-picker button,.learn-vote-picker button{border-radius:10px}
.learn-round-picker button[aria-pressed=true],.learn-vote-picker [aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #0000000b;color:#242522}
.learn-calc-next{border-color:#e1e1e6;border-radius:13px}
.learn-majority-test{border-color:#e1e1e6;border-radius:20px}
.learn-majority-track{background:#e5e5ea}
.learn-scenario-picker button{background:#fff;border-color:#dedee4;border-radius:12px}
.learn-scenario-picker [aria-pressed=true]{background:#242522;color:#fff;border-color:#242522}
.learn-guide :focus-visible{outline-color:#242522}
@media(hover:hover){
 .learn-chapter-nav button:not([aria-current=step]):hover{background:#e2e2e8}
 .learn-footer .learn-next:hover,.learn-round-controls .learn-primary:hover{background:#414147}
 .learn-scenario-picker button:not([aria-pressed=true]):hover{background:#ededf2}
}
@media(max-width:760px){
 .portal[data-mode=learn] .portal-heading{display:block;padding-bottom:16px}
 .portal[data-mode=learn] .portal-tabs{margin-top:14px}
 .learn-chapter-nav{border-radius:16px;padding:4px;margin-bottom:22px}
 .learn-chapter-nav button{padding:10px 4px;border-radius:12px}
 .learn-stage{padding:20px 16px;border-radius:22px}
 .learn-details{padding-inline:12px}
 .learn-footer{background:#fafaf8f5;border-color:#e1e1e6;box-shadow:0 -4px 18px #00000006}
}
@media(prefers-contrast:more){.learn-stage,.learn-details,.learn-candidate,.learn-ballot-picker button{border-color:#777}.learn-chapter-nav [aria-current=step]{outline:1px solid #242522}}
