/* ---------- contributor profile: a credential a person is proud to share ---------- */
.pf-hero { background: var(--wash); padding: clamp(28px, 4vw, 48px) 0 0; border-bottom: 1px solid var(--line); }
.pf-hero .crumbs { margin-bottom: 18px; }
.pf-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 170px; align-items: center; gap: clamp(22px, 4vw, 48px); padding: clamp(26px, 4vw, 44px); background: #fff; border: 1.5px solid var(--ink); outline: 1px solid var(--brass); outline-offset: -8px; box-shadow: var(--sh-2); }
.pf-card::before { content: ""; position: absolute; top: -1.5px; left: 8%; width: 120px; height: 4px; background: var(--brass); }
.pf-card.test { outline-color: var(--line-strong); }
.pf-card.test::before { background: var(--line-strong); }
.pf-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 30px); align-items: center; }
.pf-avatar { position: relative; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 24px; background: var(--pine-wash); border: 1px solid var(--pine-soft); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line-strong); }
.pf-avatar.pioneer { background: #fdf9f0; border-color: #e6d6b0; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--brass); }
.pf-avatar .glyph { border-radius: 8px; }
.pf-pin { position: absolute; right: -14px; bottom: -14px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font: 600 1rem/1 var(--serif); color: #fff; background: var(--brass); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--brass), var(--sh); }
.pf-name { display: grid; gap: 8px; min-width: 0; }
.pf-kicker { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); }
.pf-card.test .pf-kicker { color: var(--sub); }
.pf-name h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.02; overflow-wrap: anywhere; }
.pf-name p { color: var(--ink-2); max-width: 52ch; }
.pf-actions { margin-top: 8px; gap: 8px; }

.pf-ring { position: relative; width: 150px; height: 150px; }
.pf-ring-bg { fill: none; stroke: var(--line-2); stroke-width: 10; }
.pf-ring-fg { fill: none; stroke: var(--pine); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.pf-ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pf-ring-in b { font: 600 2.6rem/1 var(--serif); color: var(--pine-deep); font-variant-numeric: tabular-nums; }
.pf-ring-in small { font: 600 0.68rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); }
.pf-next { display: grid; gap: 4px; padding-left: clamp(18px, 3vw, 30px); border-left: 1px solid var(--line); }
.pf-next small { font: 600 0.68rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); }
.pf-next b { font: 600 1.3rem/1.2 var(--serif); color: var(--ink); }
.pf-next span { font-size: 0.86rem; color: var(--pine); font-weight: 600; }

.pf-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(26px, 3vw, 36px); border-top: 1px solid var(--line-strong); }
.pf-stat { display: grid; gap: 4px; padding: 20px 18px 24px; border-left: 1px solid var(--line); }
.pf-stat:first-child { border-left: 0; padding-left: 0; }
.pf-stat b { font: 600 clamp(1.7rem, 2.6vw, 2.2rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-stat span { font-size: 0.82rem; line-height: 1.35; color: var(--sub); }

.pf-sec { padding-block: clamp(40px, 5vw, 64px) 0; display: grid; gap: 22px; }
.band .pf-sec { padding-block: clamp(40px, 5vw, 64px); }
.pf-sec h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.pf-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-top: 16px; border-top: 2px solid var(--ink); }
.pf-sec > h2 { padding-top: 16px; border-top: 2px solid var(--ink); }

.pf-medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pf-medal { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.pf-medal:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.pf-medal-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font: 600 1.35rem/1 var(--serif); color: var(--pine-deep); background: var(--pine-soft); box-shadow: inset 0 0 0 2px var(--pine), 0 0 0 3px #fff, 0 0 0 4px var(--pine-soft); }
.pf-medal.brass .pf-medal-mark { color: #fff; background: var(--brass); box-shadow: inset 0 0 0 2px var(--brass-ink), 0 0 0 3px #fff, 0 0 0 4px var(--brass); }
.pf-medal.muted .pf-medal-mark { color: var(--sub); background: var(--line-2); box-shadow: inset 0 0 0 2px var(--line-strong); }
.pf-medal b { font: 600 1.02rem/1.3 var(--serif); }
.pf-medal p { font-size: 0.84rem; color: var(--sub); margin-top: 3px; line-height: 1.45; }

.pf-work { list-style: none; margin: 0; padding: 0 0 0 26px; display: grid; gap: 16px; border-left: 2px solid var(--line-strong); }
.pf-work > li { position: relative; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.pf-work > li::before { content: ""; position: absolute; left: -35px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--pine-soft); }
.pf-work-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.pf-where { display: block; font: 600 0.68rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pine); margin-bottom: 5px; }
.pf-q { font: 600 1.15rem/1.35 var(--serif); color: var(--ink); }
.pf-q:hover { color: var(--pine); }
.pf-pts { flex: none; font: 600 1.6rem/1 var(--serif); color: var(--pine-deep); font-variant-numeric: tabular-nums; }
.pf-pts small { font: 500 0.78rem/1 var(--sans); color: var(--sub); }
.pf-items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line-2); }
.pf-items li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 0.88rem; }
.pf-items li:last-child { border-bottom: 0; }
.pf-kind { font: 600 0.74rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; color: var(--pine-deep); background: var(--pine-wash); border: 1px solid var(--pine-soft); }
.pf-kind.k-OSMS1 { color: var(--brass-ink); background: var(--brass-soft); border-color: #e6d6b0; }
.pf-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--sub); }
.pf-ticks { display: inline-flex; gap: 3px; }
.pf-ticks i { width: 8px; height: 8px; border-radius: 2px; background: var(--pine-2); }
.k-OSMS1 + .pf-when .pf-ticks i { background: var(--brass); }
.pf-items li:only-child .pf-item-pts { visibility: hidden; }
.pf-item-pts {font-weight: 600; color: var(--pine-deep); font-variant-numeric: tabular-nums; }

.pf-receipts { display: grid; gap: 12px; }
.pf-receipt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 22px; align-items: center; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--pine); border-radius: 4px; }
.pf-receipt > div:first-child { display: grid; gap: 3px; }
.pf-gain { font: 600 1.6rem/1 var(--serif); color: var(--pine-deep); }

.pf-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.pf-journey::before { content: ""; position: absolute; left: 8%; right: 8%; top: 21px; height: 2px; background: var(--line-strong); }
.pf-journey li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 6px; }
.pf-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 600 0.95rem/1 var(--serif); color: var(--sub); background: #fff; border: 2px solid var(--line-strong); }
.pf-journey li.done .pf-dot { color: #fff; background: var(--pine); border-color: var(--pine); }
.pf-journey li.here .pf-dot { color: #fff; background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 5px var(--brass-soft); }
.pf-journey b { font: 600 0.98rem/1.25 var(--serif); }
.pf-journey li:not(.done):not(.here) b { color: var(--sub); }
.pf-journey small { font-size: 0.78rem; color: var(--faint); }
.pf-journey em { font: 600 0.7rem/1 var(--sans); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-ink); }
.pf-claim { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.pf-claim p { margin-top: 3px; max-width: 60ch; }

/* refinement pass */
.pf-hero { --c0: var(--pine); --c1: var(--brass); --c2: #3f6f8f; --c3: #7fae96; --c4: #8a6d9e; }
.pf-sec { --c0: var(--pine); --c1: var(--brass); --c2: #3f6f8f; --c3: #7fae96; --c4: #8a6d9e; }
.pf-record { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; margin-top: 14px; padding: 0 4px; font-size: 0.78rem; color: var(--faint); }
.pf-record code { font: 500 0.76rem/1 var(--mono); color: var(--sub); background: #fff; padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; }
.pf-record a { font-weight: 600; color: var(--pine); }
.pf-stats { margin-top: 22px; }
.pf-stat a { margin-top: 4px; font: 600 0.78rem/1.2 var(--sans); color: var(--pine); }
.pf-stat.zero b { color: var(--line-strong); }
.pf-stat.zero span { color: var(--faint); }
.pf-stat:not(.zero) b { color: var(--pine-deep); }

.pf-medal.locked { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.pf-medal.locked .pf-medal-mark { color: var(--faint); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); border: 1.5px dashed transparent; }
.pf-medal.locked b { color: var(--sub); }
.pf-medal.locked:hover { transform: none; box-shadow: none; border-color: var(--pine-2); }

.pf-share { display: grid; gap: 12px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.pf-share-bar { display: flex; gap: 3px; height: 14px; border-radius: 3px; overflow: hidden; }
.pf-share-bar i, .pf-share-key i { background: var(--c0); }
.pf-share-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.84rem; }
.pf-share-key li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.pf-share-key i { width: 10px; height: 10px; border-radius: 2px; }
.pf-share-key b { font-variant-numeric: tabular-nums; color: var(--ink); }
.pf-sec .c1 { --cc: var(--c1); } .pf-sec .c2 { --cc: var(--c2); } .pf-sec .c3 { --cc: var(--c3); } .pf-sec .c4 { --cc: var(--c4); } .pf-sec .c0 { --cc: var(--c0); }
.pf-share-bar i.c0, .pf-share-bar i.c1, .pf-share-bar i.c2, .pf-share-bar i.c3, .pf-share-bar i.c4, .pf-share-key i { background: var(--cc); }
.pf-work > li { border-left: 3px solid var(--cc, var(--pine)); }
.pf-work > li::before { background: var(--cc, var(--pine)); }
.pf-work > li .pf-where { color: var(--cc, var(--pine)); }
.pf-work > li .pf-ticks i { background: var(--cc, var(--pine-2)); }

.pf-ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed var(--line); pointer-events: none; }
.pf-name h1 { letter-spacing: -0.015em; }
.pf-card { transition: box-shadow 0.3s var(--ease); }

/* boxes, round two: the stat panel and the medal case */
.pf-stats { margin: 22px 0 -1px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-top: 3px solid var(--ink); box-shadow: 0 -1px 0 var(--line), var(--sh); }
.pf-stat, .pf-stat:first-child { position: relative; display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 6px; padding: 22px 22px 22px; border-left: 1px solid var(--line-2); transition: background 0.2s var(--ease); }
.pf-stat:first-child { border-left: 0; }
.pf-stat:hover { background: var(--pine-wash); }
.pf-stat b { font: 600 clamp(2rem, 3vw, 2.5rem)/1 var(--serif); letter-spacing: -0.01em; }
.pf-stat span { font-size: 0.8rem; line-height: 1.35; color: var(--sub); }
.pf-stat, .pf-stat:first-child { grid-template-rows: auto auto 1fr; gap: 10px; padding: 20px 22px 20px; }
.pf-stat-label { font: 600 0.66rem/1.3 var(--sans) !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub) !important; }
.pf-stat.zero .pf-stat-label { color: var(--faint) !important; }
.pf-stat-vis { align-self: end; padding-top: 12px; border-top: 1px dashed var(--line); min-height: 34px; display: flex; align-items: center; }
.pf-sq { display: flex; flex-wrap: wrap; gap: 3px; }
.pf-sq i { width: 10px; height: 10px; border-radius: 2px; background: var(--pine-2); }
.pf-sq i.k-OSMS1 { background: var(--brass); }
.pf-sq.days i { width: 13px; height: 13px; }
.pf-sq.days i.off { background: var(--line-2); box-shadow: inset 0 0 0 1px var(--line); }
.pf-stat-vis:has(.pf-qs) { padding-top: 8px; }
.pf-qs { display: grid; gap: 3px; min-width: 0; font-size: 0.74rem; color: var(--ink-2); }
.pf-qs span { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-qs i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.pf-stat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-mods { display: flex; align-items: center; gap: 5px; }
.pf-mods i { width: 18px; height: 18px; border-radius: 4px; background: var(--brass); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.pf-mods small { margin-left: 6px; font: 600 0.78rem/1 var(--sans); color: var(--brass-ink); }
.pf-stat a { align-self: end; justify-self: start; margin-top: 8px; padding: 5px 10px; border-radius: 999px; font: 600 0.74rem/1 var(--sans); color: var(--pine-deep); background: var(--pine-wash); border: 1px solid var(--pine-soft); }
.pf-stat a:hover { text-decoration: none; background: var(--pine); color: #fff; border-color: var(--pine); }
.pf-stat.zero { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(20, 40, 59, 0.025) 7px 8px); }
.pf-stat.zero b { color: #c9d3cf; }
.pf-hero { padding-bottom: 0; }

.pf-medals { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .pf-medals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-medal { position: relative; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 8px; text-align: center; padding: 30px 20px 22px; border: 1px solid var(--line); border-top: 3px solid var(--pine); border-radius: 4px; background: #fff; }
.pf-medal.brass { border-top-color: var(--brass); background: #fffdf8; }
.pf-medal.muted { border-top-color: var(--line-strong); }
.pf-medal:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pf-medal-tag { position: absolute; top: 10px; right: 10px; font: 600 0.62rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pine); }
.pf-medal.brass .pf-medal-tag { color: var(--brass-ink); }
.pf-medal-mark { position: relative; width: 76px; height: 76px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--pine-soft), 0 6px 14px rgba(18, 107, 80, 0.22); }
.pf-medal-mark > span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55); font: 600 1.6rem/1 var(--serif); color: #fff; }
.pf-medal.brass .pf-medal-mark { background: var(--brass); box-shadow: 0 0 0 4px #fff, 0 0 0 5px #e6d6b0, 0 6px 14px rgba(169, 123, 31, 0.28); }
.pf-medal.muted .pf-medal-mark { background: var(--line-strong); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.pf-medal b { font: 600 1.05rem/1.3 var(--serif); }
.pf-medal p { font-size: 0.83rem; line-height: 1.5; color: var(--sub); margin: 0; max-width: 28ch; }
.pf-medal.locked { background: transparent; border: 1.5px dashed var(--line-strong); border-top: 1.5px dashed var(--line-strong); }
.pf-medal.locked .pf-medal-tag { color: var(--faint); }
.pf-medal.locked .pf-medal-mark { background: #fff; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line); }
.pf-medal.locked .pf-medal-mark > span { border: 1.5px dashed var(--line-strong); color: var(--faint); }
.pf-medal.locked:hover { transform: none; box-shadow: none; border-color: var(--pine-2); }
.pf-medal.locked:hover .pf-medal-mark > span { border-color: var(--pine-2); color: var(--pine); }

@media (max-width: 1000px) {
  .pf-card { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-next { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .pf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-stat:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  .pf-card { grid-template-columns: minmax(0, 1fr); }
  .pf-id { grid-template-columns: minmax(0, 1fr); }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pf-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .pf-journey::before { display: none; }
  .pf-receipt { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- One ladder of wins (js/ladder.js): a staircase that rises left to right ---------- */
.pf-ladder { padding-top: 8px; }
.ld { display: grid; gap: 22px; padding: 28px 30px 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.ld-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 30px; }
.ld-head h2 { margin: 0 0 6px; font: 600 clamp(1.6rem, 2.6vw, 2rem)/1.15 var(--serif); color: var(--ink); }
.ld-head p { margin: 0; max-width: 60ch; font-size: 0.96rem; color: var(--ink-2); }
.ld-sum { display: grid; gap: 6px; justify-items: end; }
.ld-sum small { font: 600 0.82rem/1.3 var(--sans); color: var(--brass-ink); }
.ld-meter { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 26px; gap: 4px; }
.ld-meter li { height: 8px; border-radius: 999px; background: var(--line-2); }
.ld-meter li.got { background: var(--pine); }
.ld-meter li.next { background: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }

.ld-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 10px; align-items: end; }
.ld-rung { position: relative; display: grid; align-content: start; gap: 8px; min-height: calc(176px + var(--i, 0) * 20px); padding: 16px 14px 14px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line-2); color: var(--sub); }
.ld-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--faint); background: #fff; border: 1px solid var(--line); }
.ld-count { font: 600 1.9rem/1 var(--serif); color: var(--line-strong); font-variant-numeric: tabular-nums; }
.ld-txt { display: grid; gap: 4px; }
.ld-txt b { font: 600 1rem/1.25 var(--serif); color: var(--ink-2); }
.ld-txt small { font-size: 0.78rem; line-height: 1.45; color: var(--faint); }
.ld-pts { margin-top: auto; font: 700 0.95rem/1 var(--serif); color: var(--brass-ink); }
.ld-rung:not(.got) .ld-count { visibility: hidden; }
/* reached: a celebrated step, in pine, with its count and the points it brought */
.ld-rung.got { background: #fff; border: 1px solid var(--pine-soft); border-top: 4px solid var(--pine); box-shadow: 0 10px 26px rgba(11, 74, 55, 0.1); color: var(--ink-2); }
.ld-rung.got .ld-ic { color: #fff; background: var(--pine); border-color: var(--pine); }
.ld-rung.got .ld-count { color: var(--pine-deep); }
.ld-rung.got .ld-txt b { color: var(--ink); }
.ld-rung.got .ld-txt small { color: var(--sub); }
/* the next win: within reach, in warm brass */
.ld-rung.next { background: var(--brass-soft); border: 1.5px dashed #d9bd7b; }
.ld-rung.next .ld-ic { color: var(--brass-ink); background: #fff; border-color: #e3cf9d; }
.ld-rung.next .ld-count { color: #d9bd7b; }
.ld-rung.next .ld-txt b { color: var(--ink); }
.ld-rung.next .ld-txt small { color: var(--brass-ink); }
.ld-tag { justify-self: start; padding: 3px 9px; border-radius: 999px; font: 700 0.68rem/1.3 var(--sans); color: #fff; background: var(--brass); }

/* the contributions list: the new kinds get their own colours */
.pf-kind.k-STEP { color: #2f5d78; background: #eef4f8; border-color: #d6e4ee; }
.pf-kind.k-DATA1 { color: var(--pine-deep); background: var(--pine-soft); border-color: #cfe5d8; }
.pf-kind.k-HYPOTHESIS1 { color: var(--brass-ink); background: #fff; border-color: #e3cf9d; }
.pf-kind.k-MODULEPROVEN { color: #fff; background: var(--pine); border-color: var(--pine); }
.pf-kind.k-OSMS1practice { color: var(--sub); background: var(--line-2); border-color: var(--line); }
.pf-sq i.k-STEP2, .pf-sq i.k-STEP3, .pf-sq i.k-STEP4, .pf-sq i.k-STEP5 { background: #3f6f8f; }

@media (max-width: 1100px) {
  .ld-list { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
  .ld-rung { min-height: 0; }
}
@media (max-width: 760px) {
  .ld { padding: 20px 16px 22px; gap: 18px; border-radius: 20px; }
  .ld-sum { justify-items: start; }
  .ld-meter { grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .ld-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ld-rung { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; min-height: 0; padding: 12px 14px; }
  .ld-ic { grid-row: 1 / span 2; }
  .ld-txt { grid-column: 2; grid-row: 1 / span 2; }
  .ld-count { grid-column: 3; grid-row: 1; justify-self: end; font-size: 1.5rem; }
  .ld-pts { grid-column: 3; grid-row: 2; justify-self: end; margin: 0; }
  .ld-rung.got { border-top-width: 1px; border-left: 4px solid var(--pine); }
  .ld-rung:not(.got) .ld-count { display: none; }
}
