/* Profile overview follows the reader's forest, leaf and paper palette. */
.profile-timeline-identity.profile-overview{position:relative;display:block;margin:32px auto 28px;padding:28px;background:#fbfef8;border:1px solid #dce6d4;border-radius:24px;color:#1e2a1e;text-align:start;box-shadow:0 16px 40px #071b1226}
.profile-overview-heading{padding-inline-end:48px;display:flex;align-items:center;gap:20px;min-width:0}
.profile-overview .profile-timeline-avatar{width:88px;height:88px;border:4px solid #fff;box-shadow:0 0 0 1px #dce6d4;font-size:32px}
.profile-overview-copy{min-width:0;flex:1}
.profile-overview h1{padding:0;margin:2px 0 4px;background:none;border-radius:0;color:#236324;font-size:clamp(24px,3vw,32px);line-height:1.3;text-align:start}
.profile-edit-link{position:absolute;inset-block-start:16px;inset-inline-end:16px;display:grid;place-items:center;width:44px;height:44px;border:1px solid #d6e2cc;border-radius:12px;text-decoration:none;background:#f1f6eb;color:#236324}
.profile-edit-link svg{width:16px;height:16px;flex:none}
.profile-edit-link:hover{background:#e6f0dc}
.profile-achievements,.profile-questions{margin-top:24px;padding-top:20px;border-top:1px solid #e1e8da}
.profile-overview h2{margin:0 0 14px;font-size:15px;font-weight:700;color:#31492b;line-height:1.5}
.profile-timeline-badges{width:100%;color:#1e2a1e}
.profile-timeline-badges .profile-badge-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%}
.profile-timeline-badges .profile-badge{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto 4px;align-items:center;gap:4px 10px;min-width:0;padding:14px 12px;background:#f2f6ed;border:1px solid #e3eadb;border-radius:14px;text-align:start}
.profile-timeline-badges .profile-badge img{grid-row:1/3;width:48px;height:56px;object-fit:contain}
.profile-timeline-badges .profile-badge h5{margin:0;font-size:12px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}
.profile-timeline-badges .profile-badge p{margin:0;direction:ltr;text-align:start;font-size:13px;line-height:1.3;font-variant-numeric:tabular-nums;color:#586e4b}
.profile-timeline-badges .profile-badge progress,.profile-skill progress{grid-column:1/-1;appearance:none;width:100%;height:4px;margin-top:7px;border:0;border-radius:4px;overflow:hidden;background:#dce6d4;accent-color:#6d9d40}
.profile-timeline-badges progress::-webkit-progress-bar,.profile-skill progress::-webkit-progress-bar{background:#dce6d4;border-radius:4px}
.profile-timeline-badges progress::-webkit-progress-value,.profile-skill progress::-webkit-progress-value{background:#6d9d40;border-radius:4px}
.profile-timeline-badges progress::-moz-progress-bar,.profile-skill progress::-moz-progress-bar{background:#6d9d40;border-radius:4px}
.profile-skill{display:grid;gap:4px;margin-top:10px;padding:14px 12px;background:#f2f6ed;border:1px solid #e3eadb;border-radius:14px;text-align:start}
.profile-skill h5,.profile-skill p{margin:0}
.profile-skill h5{font-size:13px;line-height:1.4;font-weight:700}
.profile-skill p{font-size:13px;line-height:1.4;color:#586e4b}
.profile-skill-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.profile-skill-count{position:relative;display:flex;align-items:center;gap:6px;margin-inline-start:auto;color:#586e4b}
.profile-skill-count svg{width:16px;height:16px;flex:none}
.profile-skill-count .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.profile-skill-subject{margin-top:10px;border:1px solid #e3eadb;border-radius:14px;background:#fbfef8;padding:8px 12px}
.profile-skill-subject summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-subject-name{display:inline-flex;align-items:center;gap:8px;min-width:0}
.profile-subject-mark{display:inline-flex;flex:none}
.profile-subject-mark svg{width:20px;height:20px;flex:none}
.profile-skill-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.profile-skill-topics>.profile-skill{margin-top:0;min-width:0;height:100%;align-content:start}
.profile-skill-topics .profile-skill h5{overflow-wrap:anywhere}
.profile-achievements .dashboard-muted{margin:0;color:#687461;font-size:14px;line-height:1.6}
.profile-timeline-badges .profile-badge.is-earned{background:#faf6e7;border-color:#e8dcb4}
.profile-timeline-badges .is-earned progress::-webkit-progress-value{background:#b58d30}
.profile-timeline-badges .is-earned progress::-moz-progress-bar{background:#b58d30}
.profile-overview .profile-challenge-strip{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:10px;max-width:none;width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline proximity;scroll-padding-inline:4px;padding:4px 4px 12px;scrollbar-width:thin;scrollbar-color:#9eb88a #edf3e6}
.profile-questions{position:relative;isolation:isolate;margin-inline:-8px;padding:22px 8px 2px!important;border-top:0!important;border-radius:20px;background:linear-gradient(135deg,#f8f2d9 0%,#f4f8e9 46%,#eaf3df 100%);box-shadow:inset 0 0 0 1px #e3dab5;overflow:hidden}
.profile-questions:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.28;background-image:linear-gradient(#98b48333 1px,transparent 1px);background-size:100% 26px;pointer-events:none}
.profile-questions-heading{display:flex;align-items:center;gap:12px;margin:0 8px 14px}
.profile-questions-heading h2{margin:0!important;color:#254f25!important;font-size:16px!important}
.profile-questions-heading p{margin:2px 0 0;color:#718066;font-size:12px;line-height:1.4}
.profile-questions-symbol{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:14px;background:#236324;color:#fff;box-shadow:0 7px 16px #2363242b;transform:rotate(-2deg)}
.profile-questions-symbol svg{width:25px;height:25px}
.profile-overview .profile-challenge-strip:focus-visible{outline:2px solid #81ae56;outline-offset:3px;border-radius:12px}
.profile-overview .topic-challenge-mark{flex:0 0 min(300px,85%);scroll-snap-align:start;min-width:0;min-height:68px;gap:12px;padding:12px;border:1px solid #d7dfc8;border-radius:14px;background:#fffdf8;box-shadow:0 5px 14px #304b2912}
.profile-overview .topic-challenge-mark:hover{background:#f1f6eb;border-color:#bdd3a6}
.profile-overview .topic-challenge-icon{width:38px;height:38px;background:linear-gradient(145deg,#e8c75d,#b88c25);color:#fff;box-shadow:0 4px 10px #9a74283b}
.profile-overview .topic-challenge-icon svg{width:23px;height:23px}
.profile-overview .topic-challenge-copy{gap:5px}
.profile-overview .topic-challenge-copy strong{max-width:none;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.45}
.profile-overview .topic-challenge-copy time{font-size:11px;color:#65745c;direction:ltr;unicode-bidi:isolate;align-self:flex-start}
.profile-timeline-heading{display:flex;align-items:center;justify-content:center;text-align:center;gap:12px;margin:32px 0 22px;color:#f4fbe9}
.profile-timeline-heading h2{margin:0;font-size:20px;font-weight:700}
@media(max-width:800px){.profile-timeline-badges .profile-badge-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){
 .profile-timeline-identity.profile-overview{padding:20px 16px;margin:24px 0;border-radius:20px}
 .profile-overview-heading{display:grid;grid-template-columns:68px minmax(0,1fr);gap:14px}
 .profile-overview .profile-timeline-avatar{width:68px;height:68px;font-size:26px}
 .profile-overview h1{font-size:24px}
 .profile-achievements,.profile-questions{margin-top:20px;padding-top:18px}
 .profile-skill-topics{grid-template-columns:1fr}
 .profile-timeline-badges .profile-badge{grid-template-columns:38px minmax(0,1fr);padding:12px 9px;gap:4px 7px}
 .profile-timeline-badges .profile-badge img{width:38px;height:48px}
 .profile-timeline-heading{margin-top:28px}
}

/* Opposing entrance directions keep the overview light; run again when routed in. */
.profile-overview .profile-timeline-avatar{animation:profile-enter-down .65s ease-in-out both}
.profile-overview-copy{animation:profile-enter-up .65s ease-in-out .08s both}
.profile-overview .profile-badge{animation:profile-enter-up .65s ease-in-out .12s both}
.profile-overview .profile-badge:nth-child(even){animation-name:profile-enter-down;animation-delay:.2s}
.profile-overview .profile-questions{animation:profile-enter-up .65s ease-in-out .24s both}
@keyframes profile-enter-down{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}
@keyframes profile-enter-up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.profile-overview .profile-timeline-avatar,.profile-overview-copy,.profile-overview .profile-badge,.profile-overview .profile-questions{animation:none}}
