/* Reuse the site's outlined paper cards, blue background and yellow actions. */
.money-lesson { scroll-padding-top: calc(var(--money-header, 180px) + 12px); }
.money-wrap { max-width: 940px; padding-bottom: 32px; }
.money-menu, .money-panel { min-width: 0; padding: clamp(18px, 4vw, 34px); }
.money-menu { border-top: 7px solid var(--yellow); background: #fffaf0; }
.money-hero { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; gap: 22px; }
.money-hero h1 { font-size: clamp(36px, 5.5vw, 62px); margin: 0 0 12px; line-height: 1.05; }
.money-hero p { max-width: 46ch; }
.money-page .eyebrow { font-size: 14px; }
.money-hero-art { position: relative; display: grid; place-items: center; height: 170px; }
.money-dollar { display: grid; place-items: center; width: 116px; height: 116px; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 76px; font-weight: 900; line-height: 1; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-10deg); }
.money-sticker { position: absolute; right: 0; bottom: 0; padding: 5px 10px; border: 2px solid var(--ink); background: #d9f3df; border-radius: 5px; font-weight: 850; font-size: 15px; line-height: 1.3; transform: rotate(6deg); }
.money-note { font-size: 14px; color: var(--muted); }
.money-menu-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; margin: 18px 0 12px; font-weight: 800; }
.money-list { display: grid; gap: 10px; }
.money-list a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 78px; padding: 12px; border: 2px solid var(--ink); border-radius: 5px; background: white; text-decoration: none; }
.money-list a:hover { background: #fff1b9; }
.money-number { display: grid; place-items: center; width: 40px; height: 40px; background: #e3f2ff; border: 2px solid var(--ink); border-radius: 5px; font-size: 22px; font-weight: 900; }
.money-star { background: var(--yellow); }
.money-list strong, .money-list small, .money-completed { display: block; }
.money-list strong { font-size: 19px; line-height: 1.3; }
.money-list small { font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.money-time { font-size: 14px; white-space: nowrap; }
.money-completed { color: #15552c; font-size: 14px; margin-top: 3px; }
.money-list a[data-completed="true"] .money-number { background: #d9f3df; }
.money-sources { margin-top: 24px; font-size: 15px; }
.money-sources summary, .money-explain summary { display: list-item; cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 850; }
.money-sources p, .money-sources ul { margin-top: 12px; }
.money-sources li { margin-block: 8px; overflow-wrap: anywhere; }
.money-deck { display: grid; gap: 24px; }
.money-deck:not([hidden]) { margin-top: 24px; }
.money-progress { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 12px; margin-bottom: 8px; font-size: 14px; font-weight: 850; }
.money-progress p { margin: 0; }
.money-progress a { display: inline-flex; align-items: center; min-height: 44px; }
.money-panel h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); }
.money-panel h3 { font-size: 19px; margin: 0 0 12px; }
.money-panel p { margin-bottom: 14px; }
.money-panel p:empty { margin: 0; }
.money-predict { color: #304355; }
.money-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.money-paystub { padding: 16px; background: #f1f8ff; border: 2px solid var(--ink); border-radius: 5px; }
.money-document-title { font-weight: 850; border-bottom: 1px dashed var(--ink); padding-bottom: 10px; }
.money-document-title span { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.money-paystub dl { margin: 0; }
.money-paystub dl > div { display: flex; justify-content: space-between; gap: 8px; padding-block: 4px; }
.money-paystub dd { margin: 0; font-weight: 850; }
.money-net { border-top: 2px solid var(--ink); margin-top: 6px; font-weight: 850; }
.money-flow, .money-budget-bar { display: flex; height: 20px; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; margin-top: 14px; background: white; }
.money-flow span + span, .money-budget-bar span + span { border-left: 1px solid var(--ink); }
.flow-takehome { width: 83.3333%; background: #8fcfff; }
.flow-tax { width: 11.1111%; background: var(--yellow); }
.flow-other { width: 5.5556%; background: #f3acb9; }
.money-panel .money-caption { font-size: 14px; margin: 10px 0 0; }
.money-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.money-choices button { min-width: 60px; min-height: 48px; border: 2px solid var(--ink); border-radius: 5px; padding: 10px 15px; background: white; color: var(--ink); font: inherit; font-weight: 850; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.money-choices button:hover { background: #fff1b9; }
.money-choices button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
.money-choices button[data-result="correct"], .money-feedback[data-result="correct"] { background: #d9f3df; }
.money-choices button[data-result="incorrect"], .money-feedback[data-result="incorrect"] { background: #fbe0e0; }
.money-feedback:not(:empty) { padding: 12px; border: 2px solid var(--ink); border-radius: 5px; margin-top: 14px; font-size: 16px; line-height: 1.55; font-weight: 750; }
.money-explain { margin-top: 16px; padding-top: 8px; border-top: 1px solid #cdd5dc; font-size: 16px; }
.money-reflect { margin-top: 12px; color: #304355; font-size: 16px; }
.money-next { margin-top: 22px; }
.money-next .btn { display: inline-block; text-decoration: none; max-width: 100%; }
.money-next .btn span { display: block; font-size: 14px; font-weight: 650; }
.money-panel .money-swipe { font-size: 14px; margin: 12px 0 0; color: var(--muted); }
.money-budget { border: 2px solid var(--ink); border-radius: 5px; padding: 18px; background: #f1f8ff; }
.money-budget-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; padding-bottom: 10px; font-weight: 850; }
.money-budget-top > strong { font-size: 26px; line-height: 1.2; }
.money-needs { border-left: 8px solid #70bced; padding-left: 10px; }
.money-needs strong, .money-needs span { display: block; }
.money-needs span { font-size: 14px; }
.money-slider { margin-block: 16px; }
.money-slider label { display: flex; justify-content: space-between; gap: 8px; font-weight: 850; }
.money-slider input { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.money-slider p { font-size: 14px; margin: 0; }
.money-budget-bar { height: 26px; margin-top: 10px; }
.budget-needs { background: #70bced; }
.budget-savings { background: #99d4ad; }
.budget-fun { background: var(--yellow); }
.money-budget-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 10px 0 18px; font-size: 16px; }
.money-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.money-plan { padding: 18px; border: 2px solid var(--ink); border-radius: 5px; background: #f1f8ff; }
.money-plan:nth-child(2) { background: #fff5d6; }
.money-plan .money-price { font-size: 36px; font-weight: 900; line-height: 1.3; margin-bottom: 4px; }
.money-price span { display: block; font-size: 16px; font-weight: 400; }
.money-plan p:last-child { margin: 0; }
.money-plan-total { border-top: 1px solid var(--ink); padding-top: 10px; font-size: 16px; }
.money-chat { display: grid; gap: 10px; margin: 18px 0 22px; }
.money-chat-message, .money-chat-thought { padding: 14px; border: 2px solid var(--ink); border-radius: 8px 8px 8px 0; background: #fff2be; }
.money-chat-message { margin-right: 10%; }
.money-chat-thought { background: #e3f2ff; margin-left: 10%; border-radius: 8px 8px 0 8px; }
.money-chat strong, .money-chat span { display: block; }
.money-chat strong { font-size: 14px; margin-bottom: 4px; }
.money-choice-stack { display: grid; }
.money-challenge-math { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; background: #f1f8ff; border: 2px solid var(--ink); border-radius: 5px; padding: 16px 12px; margin-bottom: 18px; }
.money-challenge-math > span { font-size: 27px; font-weight: 900; text-align: center; }
.money-challenge-math small { display: block; font-size: 13px; font-weight: 400; }
.money-question-mark { border: 2px solid var(--ink); border-radius: 5px; padding: 3px 13px; background: var(--yellow); }
.money-finish { margin-top: 20px; background: #d9f3df; border: 2px solid var(--ink); border-radius: 5px; padding: 16px; }
.money-finish-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.money-page :is(h1,h2)[tabindex="-1"]:focus { outline: 3px solid var(--ink); outline-offset: 5px; }
.money-page .btn { cursor: pointer; }
@media (max-width: 650px) {
  .money-scene { grid-template-columns: minmax(0, 1fr); }
  .money-hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .money-hero-art { display: none; }
  .money-list a { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .money-number { width: 34px; height: 34px; font-size: 20px; }
  .money-time { grid-column: 2; margin-top: -7px; }
  .money-list strong { font-size: 18px; }
  .money-budget { padding: 14px; }
  .money-plan { padding: 12px; }
  .money-plan .money-price { font-size: 30px; }
  .money-plans { gap: 10px; }
}
@media (max-width: 380px) {
  .money-plans { grid-template-columns: minmax(0, 1fr); }
  .money-panel { padding: 16px; }
  .money-choices button { padding-inline: 12px; }
  .money-chat-message { margin-right: 4%; }
  .money-chat-thought { margin-left: 4%; }
  .money-challenge-math { padding: 12px 8px; gap: 6px; }
  .money-challenge-math > span { font-size: 23px; }
}
@media print {
  header, footer, .money-next, .money-progress a, .money-menu-progress { display: none; }
  .money-menu[hidden], .money-panel[hidden], .money-deck[hidden] { display: block !important; }
  .money-panel { break-inside: avoid; margin-bottom: 24px; box-shadow: none; }
}
