/* Course previews extend the portfolio's Flow palette and rounded cards. */
.course-section { padding-top: 32px; background: #DCE2E5; --accent: var(--teal); }
.course-section [hidden] { display: none !important; }
.course-tabs { display: flex; gap: 8px; border-bottom: 1px solid #A6BAC7; padding-bottom: 12px; }
.course-tabs button { flex: 1; min-height: 52px; padding: 12px 18px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--teal); font: 600 .95rem/1.4 var(--sans); cursor: pointer; }
.course-tabs button:hover { background: #EAF0F3; }
.course-tabs button[aria-selected="true"] { background: var(--teal); color: var(--card); }
.course-panel { padding-top: 40px; scroll-margin-top: 80px; }
.course-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 28px; }
.course-heading h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-top: 14px; }
.course-heading > p { color: var(--ink-soft); font-size: 1rem; }
.money-journey, .automation-demo { border: 1px solid #B5C6D1; border-radius: 18px; overflow: hidden; background: var(--card); }
.animation-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 24px; }
.mini-label { display: block; font-size: .7rem; font-weight: 600; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; }
.animation-top p { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
.animation-play { min-height: 44px; border: 1px solid var(--teal); border-radius: 999px; background: var(--teal); color: var(--card); padding: 10px 20px; font: 600 .9rem/1.4 var(--sans); cursor: pointer; }
.animation-play:hover { background: #123A55; }
.animation-play[aria-pressed="true"] { color: var(--teal); background: #DBE6ED; }
.money-landscape { background: #B8CBC6; }
.money-landscape svg { display: block; width: 100%; height: auto; }
.money-stops { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 20px; border-bottom: 1px solid var(--line); }
.money-stops button, .workflow-stages button { font: 500 .8rem/1.4 var(--sans); cursor: pointer; border: 1px solid #BACBD5; border-radius: 10px; color: var(--teal); background: transparent; padding: 12px 8px; min-height: 76px; display: grid; align-content: start; gap: 8px; width: 100%; }
.money-stops button > span:first-child, .workflow-stages button > span:first-child { font-size: .7rem; letter-spacing: .1em; font-weight: 600; }
.money-stops button[aria-pressed="true"], .workflow-stages button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--card); }
.money-stops button:hover, .workflow-stages button:hover { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.money-stops .is-complete, .workflow-stages .is-complete { background: #DFE9E9; }
.money-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; padding: 28px; align-items: center; }
.money-story__copy { display: grid; gap: 12px; min-height: 230px; align-content: start; }
.money-story h4, .workflow-output h4 { margin: 0; font: 600 clamp(1.3rem, 2vw, 1.6rem)/1.25 var(--serif); }
.money-story p, .workflow-output p { font-size: .92rem; }
.money-shift { padding-left: 14px; border-left: 3px solid var(--ochre); color: var(--ink-soft); }
.exchange-scene { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #E4EBEC; padding: 26px 16px; border-radius: 14px; min-height: 180px; }
.exchange-person { display: grid; gap: 12px; justify-items: center; text-align: center; font-size: .7rem; color: var(--teal); width: 62px; flex: none; }
.person-drawing { display: block; width: 42px; height: 56px; border-radius: 22px 22px 8px 8px; background: var(--teal); position: relative; margin-top: 22px; }
.person-drawing::before { content: ""; position: absolute; width: 28px; height: 28px; background: #B48F68; border: 3px solid #E4EBEC; border-radius: 50%; top: -23px; left: 7px; }
.person-drawing--other { background: #8F4E14; }
.exchange-middle { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 14px; }
.exchange-token { background: var(--card); border: 1px solid #BACBD5; padding: 8px 10px; border-radius: 8px; color: var(--teal); font: 600 .78rem/1.4 var(--sans); text-align: center; }
.exchange-line { width: 80%; border-top: 2px dashed #8BA6B6; }
.exchange-middle small { font-size: .65rem; text-align: center; color: var(--ink-soft); }
.is-playing .exchange-token { animation: exchange-transfer 2.4s ease-in-out infinite alternate; }
@keyframes exchange-transfer { from { transform: translateX(-13px); } to { transform: translateX(13px); } }
.animation-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); }
.animation-bottom button { min-height: 44px; border: 1px solid #B5C6D1; border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--teal); font: 600 .8rem/1.3 var(--sans); cursor: pointer; }
.animation-bottom button:disabled { opacity: .45; cursor: default; }
.animation-bottom span { font-size: .75rem; color: var(--ink-soft); text-align: center; }
.course-footnote { font-size: .82rem; color: var(--ink-soft); margin-top: 18px; max-width: 100ch; }
.course-sources { font-size: .82rem; margin-top: 14px; color: var(--teal); }
.course-sources summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.course-sources ul { display: grid; gap: 8px; padding-block: 10px; }
.storyboard-section { padding-top: 72px; }
.workflow-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 22px 0; border-block: 1px solid #B5C6D1; }
.workflow-facts dt { color: var(--teal); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.workflow-facts dd { margin: 6px 0 0; font-size: .95rem; }
.workflow-brief { margin: 24px 0 30px; color: var(--ink-soft); }
.automation-demo { background: #163F5B; color: var(--card); }
.automation-demo .animation-top .mini-label { color: #D6E6EF; }
.automation-demo .animation-top p { color: #D6E6EF; }
.automation-demo .animation-play { background: var(--card); color: var(--teal); }
.workflow-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 4px 24px 26px; }
.workflow-stages li { position: relative; }
.workflow-stages li:not(:nth-child(4n)):not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 26px; font-size: .8rem; color: #A9BCC9; }
.workflow-stages button { color: #E7EFF3; border-color: #67889C; text-align: left; padding: 14px; min-height: 88px; }
.workflow-stages button[aria-pressed="true"] { background: var(--card); color: var(--teal); border-color: var(--card); box-shadow: 0 0 0 3px rgba(169,188,201,.35); }
.workflow-stages button.is-complete { background: #285D78; }
.workflow-stages button:hover { border-color: #E7EFF3; }
.workflow-output { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; padding: 28px; background: var(--card); color: var(--ink); min-height: 250px; }
.workflow-output > div:first-child { display: grid; gap: 14px; align-content: start; }
.output-sheet { background: #E4EBEF; border: 1px solid #BCCBD4; padding: 20px; border-radius: 12px; align-self: start; }
.output-sheet__label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: 12px; }
.output-sheet__line { display: block; height: 6px; width: 85%; background: #C4D1DA; border-radius: 6px; margin-top: 14px; }
.output-sheet__line:last-child { width: 60%; }
.is-playing .output-sheet__line { animation: sheet-pulse 2s ease-in-out infinite alternate; }
@keyframes sheet-pulse { to { opacity: .35; } }
.automation-demo .animation-bottom { border-color: #67889C; }
.automation-demo .animation-bottom span, .automation-demo .animation-bottom button { color: #E7EFF3; }
.course-coming { padding: clamp(24px, 5vw, 64px); background: var(--card); border-radius: 18px; border-left: 4px solid var(--teal); display: grid; gap: 22px; justify-items: start; }
.course-coming h3 { font-size: 2rem; }
.course-panel .btn, .case-intro > .btn { background: var(--teal); border-color: var(--teal); color: var(--card); }
@media (max-width: 760px) {
  .course-heading, .money-story, .workflow-output { grid-template-columns: 1fr; }
  .course-tabs button { padding: 10px 8px; font-size: .8rem; }
  .course-heading { gap: 18px; }
  .money-stops { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; }
  .money-story { padding: 20px; gap: 22px; }
  .exchange-scene { min-height: 140px; max-width: 420px; width: 100%; margin: auto; }
  .money-story__copy { min-height: 0; }
  .animation-bottom { flex-wrap: wrap; gap: 8px; padding: 14px; }
  .animation-bottom span { order: 3; width: 100%; }
  .workflow-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 16px; }
  .workflow-stages li:nth-child(2n)::after { display: none; }
  .workflow-facts { grid-template-columns: 1fr; gap: 16px; }
  .animation-top { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-playing .exchange-token, .is-playing .output-sheet__line { animation: none; }
}

.course-page-header { padding-block: 32px 40px; }
.course-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--teal); font-size: .85rem; margin-bottom: 32px; }
.course-page-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-block: 16px 24px; }
.course-page-header .course-subnav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 0; border: 0; list-style: none; }
.course-page-header .course-subnav a { padding: 8px 16px; border: 1px solid #A9BCC9; border-radius: 999px; }
.course-page-header .course-subnav a[aria-current="page"] { background: var(--teal); color: var(--card); border-color: var(--teal); text-decoration: none; }
.course-directory { background: #DCE2E5; }
.course-directory h2 { margin-block: 16px; }
.course-directory .course-subnav { margin-top: 20px; }
