/* Climb the Ladder (house style, Oct 2026) */
.cl { max-width: 1040px; margin: 0 auto; padding: 16px 16px 64px; color: #15202c; font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; display: grid; gap: 22px; }
.cl *, .cl *::before, .cl *::after { box-sizing: border-box; }
.cl h1, .cl h2, .cl h3 { text-wrap: balance; margin: 0; line-height: 1.2; }
.cl-muted { color: #566271; margin: 0; }

/* breadcrumbs rendered by components.js */
.cl-crumbs > div { padding: 0 !important; max-width: none !important; }
.cl-crumbs, .cl-crumbs span, .cl-crumbs .text-yellow-500 { color: #566271 !important; font-size: 13px; }
.cl-crumbs a { color: #1e3a5f !important; text-decoration: none; }
.cl-crumbs a:hover { text-decoration: underline; }

.cl-head { background: #fff; border: 1px solid #d2d8df; border-radius: 10px; padding: 22px 26px; display: grid; gap: 16px; }
.cl-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #566271; }
.cl-title { font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: #1e3a5f; margin-top: 4px !important; }
.cl-sub { font-size: 19px; font-weight: 600; margin: 6px 0 0; }
.cl-lede { color: #566271; margin: 6px 0 0; max-width: 42rem; line-height: 1.55; }
.cl-profile { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; border-top: 1px solid #d2d8df; padding-top: 14px; font-size: 14px; }
.cl-profile dl { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; }
.cl-profile dt { font-size: 12px; color: #566271; text-transform: uppercase; letter-spacing: .06em; }
.cl-profile dd { margin: 0; font-weight: 700; font-size: 15px; }

.cl-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cl-seg { display: inline-flex; border: 1px solid #d2d8df; border-radius: 8px; overflow: hidden; background: #fff; }
.cl-seg button { border: 0; background: none; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; color: #15202c; cursor: pointer; }
.cl-seg button + button { border-left: 1px solid #d2d8df; }
.cl-seg button[aria-pressed="true"] { background: #1e3a5f; color: #fff; }
.cl-field { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.cl select { font: inherit; font-size: 14px; font-weight: 400; padding: 6px 10px; border: 1px solid #d2d8df; border-radius: 8px; background: #fff; color: #15202c; max-width: 100%; }
.cl-check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.cl-check input { accent-color: #1e3a5f; }

.cl-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #d2d8df; border-radius: 8px; background: #fff; color: #15202c; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.cl-btn:hover { border-color: #1e3a5f; }
.cl-btn.primary { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.cl-btn.primary:disabled { background: #8a9bb0; border-color: #8a9bb0; cursor: not-allowed; }
.cl-btn.quiet { border-color: transparent; background: none; color: #1e3a5f; text-decoration: underline; text-underline-offset: 3px; padding-inline: 4px; }
.cl button:focus-visible, .cl select:focus-visible, .cl textarea:focus-visible, .cl a:focus-visible, .cl input:focus-visible { outline: 3px solid #d8a62a; outline-offset: 2px; }

/* practice card: kept to a reading width inside the wider page */
.cl-card { background: #fff; border: 1px solid #d2d8df; border-radius: 10px; display: grid; max-width: 760px; width: 100%; }
.cl-card > * { padding: 18px 22px; }
.cl-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid #d2d8df; }
.cl-card-head h2 { font-size: 19px; color: #1e3a5f; }
.cl-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 12px; color: #566271; }
.cl-steps li { padding: 2px 9px; border: 1px solid #d2d8df; border-radius: 99px; }
.cl-steps li.on { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.cl-steps li.done { border-color: #1d7447; color: #1d7447; }
.cl-card-body { display: grid; gap: 16px; }
.cl-card-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid #d2d8df; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cl-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #eef0f3; color: #15202c; }
.cl-pill.topic { background: #e5ebf2; color: #3f5b7d; }
.cl-pill.fact { background: #e5ebf2; color: #3f5b7d; }
.cl-pill.idea { background: #f6ecd2; color: #15202c; }
.cl-lvl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #566271; font-variant-numeric: tabular-nums; }
.cl-lvl i { display: inline-flex; gap: 2px; }
.cl-lvl i b { width: 5px; height: 10px; border-radius: 1px; background: #d2d8df; }
.cl-lvl i b.f { background: #d8a62a; }
.cl-prompt { font-size: 19px; line-height: 1.55; margin: 0; }
.cl-src { font-size: 13px; color: #566271; margin: 0; }
.cl-src a { color: #1e3a5f; }
.cl-q { font-weight: 700; margin: 0 0 8px; }
.cl-hint { font-size: 13px; color: #566271; margin: -4px 0 8px; }
.cl textarea { font: inherit; width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid #d2d8df; border-radius: 8px; background: #f8f9fb; color: #15202c; resize: vertical; }
.cl-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.cl-choice { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 8px; border: 1px solid #d2d8df; border-radius: 8px; background: #fff; color: #15202c; cursor: pointer; }
.cl-choice:hover { border-color: #1e3a5f; }
.cl-choice[aria-pressed="true"] { border-color: #1e3a5f; background: #e5ebf2; color: #1e3a5f; }
.cl-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cl-scale .cl-choice { padding: 8px 4px; }
.cl-scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: #566271; margin-top: 4px; }
.cl-steel { border-left: 4px solid #d8a62a; background: #eef0f3; padding: 14px 16px; border-radius: 0 8px 8px 0; display: grid; gap: 8px; }
.cl-steel h3 { font-size: 15px; }
.cl-steel p { margin: 0; line-height: 1.55; }
.cl-yours { border-top: 1px solid #d2d8df; padding-top: 10px; color: #566271; font-size: 14px; }
.cl-note { background: #e5ebf2; color: #3f5b7d; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 0; }
.cl-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cl-side { border: 1px solid #d2d8df; border-radius: 8px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.cl-side h3 { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.cl-side h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cl-side.s h3 { color: #1d7447; }
.cl-side.o h3 { color: #b3261e; }
.cl-side ul { margin: 0; padding-left: 18px; font-size: 14px; }
.cl-side p { margin: 0; font-size: 14px; line-height: 1.5; }
.cl-bill-title { font-size: 19px; font-weight: 700; margin: 0; }
.cl-bill-title a { color: #1e3a5f; }
.cl-bill-meta { font-size: 13px; color: #566271; margin: 0; }
.cl-provisions { margin: 0; line-height: 1.55; }

.cl-capitol { border-top: 1px solid #d2d8df; background: #f8f9fb; display: grid; gap: 10px; }
.cl-capitol .cl-eyebrow { margin-bottom: -2px; }
.cl-chip { display: inline-flex; font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.cl-chip.s { background: #e2f1e8; color: #1d7447; }
.cl-chip.o { background: #fbe6e3; color: #b3261e; }

.cl-progress, .cl-browse { display: grid; gap: 16px; border-top: 1px solid #d2d8df; padding-top: 22px; }
.cl-progress h2, .cl-browse h2 { font-size: 24px; color: #1e3a5f; }
.cl-ladder-wrap { display: grid; gap: 8px; max-width: 520px; }
.cl-ladder { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; align-items: end; height: 72px; }
.cl-ladder div { background: #d2d8df; border-radius: 2px 2px 0 0; }
.cl-ladder div.f { background: #1e3a5f; }
.cl-ladder-note { font-size: 14px; color: #566271; margin: 0; }
.cl-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; font-variant-numeric: tabular-nums; }
.cl-stats dt { font-size: 13px; color: #566271; }
.cl-stats dd { margin: 0; font-size: 24px; font-weight: 800; }

.cl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d2d8df; }
.cl-list li { border-bottom: 1px solid #d2d8df; }
.cl-list button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 11px 4px; }
.cl-list button:hover .x { color: #1e3a5f; text-decoration: underline; }
.cl-list button:focus-visible { outline: 3px solid #d8a62a; outline-offset: -3px; }
.cl-list .t { font-size: 13px; color: #3f5b7d; font-weight: 700; }
.cl-list .x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cl-list .d { font-size: 13px; color: #566271; font-variant-numeric: tabular-nums; }
.cl-list .st { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cl-list .st.new { color: #1e3a5f; }
.cl-list .st.seen { color: #566271; }
.cl-list .st.ref { color: #1d7447; }
.cl-list li.seen .x { color: #566271; }
.cl-empty { text-align: center; padding: 24px 0; color: #566271; }

@media (max-width: 640px) {
  .cl-head { padding: 18px; }
  .cl-card > * { padding: 16px; }
  .cl-list button { grid-template-columns: minmax(0, 1fr) auto; }
  .cl-list .t { grid-column: 1 / -1; }
  .cl-list .d { display: none; }
  .cl-scale-ends span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .cl-reveal { animation: cl-up .25s ease-out; } @keyframes cl-up { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } } }
