/* Animated explainer player (see /js/explainer.js). Navy/gold tokens come from styles.css. */
.exp { container-type: inline-size; --exp-line: #dfe3e9; background: #fff; border: 1px solid var(--exp-line); border-radius: 16px; padding: 14px 14px 16px; margin: 18px 0; box-shadow: 0 6px 24px rgba(11,23,40,.06); }
.exp-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.exp-modes { display: inline-flex; border: 1.5px solid #c4cad2; border-radius: 99px; overflow: hidden; }
.exp-modes button { font: 700 13px system-ui, sans-serif; background: #fff; color: #172033; border: 0; padding: 8px 16px; cursor: pointer; }
.exp-modes button + button { border-left: 1.5px solid #c4cad2; }
.exp-modes button[aria-pressed="true"] { background: #0b1728; color: #fff; }
.exp-note { font-size: 12px; color: #627084; }
.exp-stage { overflow-x: auto; border: 1px solid var(--exp-line); border-radius: 12px; background: #fcfcfa; }
.exp-stage svg { display: block; width: 100%; height: auto; min-width: 640px; }
.exp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.exp-bar button { font: 700 13px system-ui, sans-serif; background: #fff; color: #172033; border: 1.5px solid #a6afb9; border-radius: 9px; padding: 8px 13px; cursor: pointer; }
.exp-bar button.exp-play { background: #e8bd62; border-color: #e8bd62; min-width: 96px; }
.exp-bar button:hover { border-color: #0b1728; }
.exp-bar button:focus-visible, .exp-modes button:focus-visible, .exp-dots button:focus-visible, .exp-scrub:focus-visible, .exp-speed select:focus-visible { outline: 2px solid #0b1728; outline-offset: 2px; }
.exp-speed { font-size: 12.5px; color: #46556a; display: inline-flex; align-items: center; gap: 6px; }
.exp-speed select { font: inherit; padding: 5px 6px; border: 1px solid #c4cad2; border-radius: 6px; }
.exp-scrub { flex: 1; min-width: 160px; accent-color: #0b1728; }
.exp-info { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; margin-top: 10px; }
.exp-caption { border: 1px solid var(--exp-line); border-left: 4px solid #e8bd62; border-radius: 10px; padding: 11px 14px; background: #fffdf6; min-height: 104px; }
.exp-stepno { font: 800 11px system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8a6420; }
.exp-caption h3 { font-family: Georgia, serif; font-size: 18px; margin: 3px 0 5px; color: #14202f; }
.exp-caption p { margin: 0; color: #394a5f; font-size: 14.5px; line-height: 1.5; }
.exp-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.exp-links a { font-size: 12.5px; font-weight: 700; color: #725018; }
.exp-panel { border: 1px solid var(--exp-line); border-radius: 10px; padding: 8px 12px; background: #fff; align-self: start; }
.exp-panel:empty { display: none; }
.exp-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #e6e9ee; font-size: 13px; color: #46556a; }
.exp-row:last-child { border-bottom: 0; }
.exp-row b { color: #14202f; text-align: right; }
.exp-row.is-bad b { color: #c0392b; }
.exp-row.is-good b { color: #1b7f4b; }
.exp-dots { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; }
.exp-dots button { display: inline-flex; align-items: center; gap: 6px; font: 600 12px system-ui, sans-serif; background: #fff; color: #46556a; border: 1.5px solid #d3d8df; border-radius: 99px; padding: 4px 11px 4px 5px; cursor: pointer; }
.exp-dots button span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #eef1f5; font-weight: 800; }
.exp-dots li.on button { border-color: #e8bd62; background: #fdf0cf; color: #14202f; }
.exp-dots li.on button span { background: #0b1728; color: #fff; }
.exp-dots em { font-style: normal; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 560px) { .exp-info { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .exp-dots em { display: none; } .exp-dots button { padding: 4px 5px; } }

/* Explainer page chrome */
.exp-wrap { max-width: 1100px; margin: 0 auto; }
.exp-intro h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 6px 0 10px; }
.exp-transcript { margin: 22px 0; border: 1px solid #dfe3e9; border-radius: 12px; padding: 10px 16px; background: #fff; }
.exp-transcript summary { cursor: pointer; font-weight: 700; color: #3a2f12; }
.exp-transcript h2 { font-family: var(--serif); font-size: 20px; margin: 16px 0 6px; }
.exp-transcript ol { padding-left: 22px; color: #46556a; line-height: 1.6; }
.exp-transcript li { margin: 6px 0; }
.exp-transcript li b { color: #14202f; }
.exp-more { margin-top: 18px; color: #46556a; font-size: 14.5px; }
.exp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.exp-card { display: block; border: 1px solid #dfe3e9; border-radius: 14px; padding: 18px; background: #fff; transition: border-color .15s, transform .15s; }
.exp-card:hover { border-color: #e8bd62; transform: translateY(-2px); }
.exp-card h3 { font-family: var(--serif); font-size: 21px; margin: 6px 0; color: #14202f; }
.exp-card p { color: #46556a; font-size: 14.5px; margin: 0 0 10px; }
.exp-card .meta { font-size: 12.5px; color: #627084; }
/* Embedded in another page (iframe ?embed=1): hide site chrome and intro */
html.embed #site-header, html.embed #site-footer, html.embed .topbar, html.embed footer, html.embed .exp-intro, html.embed .exp-transcript, html.embed .exp-more, html.embed .note-box { display: none !important; }
html.embed body { background: #fff; }
html.embed .page-hero { padding: 0; }
html.embed .exp { margin: 0; border: 0; box-shadow: none; padding: 8px; }
html.embed .exp-stage svg { min-width: 0; }
@media (max-width: 520px) { html.embed .exp-stage svg { min-width: 560px; } }

/* step chips: numbers only (the title is in the caption and in each chip's tooltip), one compact row */
.exp-dots em { display: none; }
.exp-dots button { padding: 4px 5px; }
