/* The profile stays above the checklist; task content never pushes it sideways. */
.projects-heading:has(>.author-profile-block){display:flex;flex-direction:column;align-items:stretch;gap:22px;margin:14px 0 24px}
.profile-first-steps{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,1fr);column-gap:32px;width:100%;margin:0;padding:22px 24px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.first-steps-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.first-steps-heading h2{font:600 18px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:0}
.first-steps-heading>strong{color:var(--accent);font-size:18px;font-variant-numeric:tabular-nums}
.first-steps-progress{grid-column:1/-1;height:6px;background:var(--soft);border-radius:20px;overflow:hidden;margin-bottom:16px}
.first-steps-progress>span{display:block;height:100%;background:var(--accent);border-radius:inherit}
.first-steps-list{grid-column:1;grid-row:3/5;padding-right:28px;border-right:1px solid var(--line)}
.first-step{display:flex;align-items:center;gap:10px;padding:7px 0;text-decoration:none;font-size:var(--text-small-size,16px);line-height:1.45}
.first-step:hover{color:var(--accent)}
.first-step-mark{display:grid;place-items:center;flex:0 0 26px;height:26px;border:1px solid var(--line);border-radius:50%;color:var(--accent);background:var(--soft);font-size:var(--text-small-size,16px)}
.first-step.is-complete .first-step-mark{background:var(--collection-selection-gradient);color:var(--accent);border-color:#c4a9ba}
.first-step-count{margin-left:auto;color:var(--muted);font-size:var(--text-small-size,16px);white-space:nowrap}
.first-steps-days{grid-column:2;grid-row:3;margin-top:4px}
.first-steps-days>strong{font-size:var(--text-small-size,16px);font-weight:600}
.first-steps-days>div{display:flex;gap:10px;margin:12px 0}
.first-steps-days>div>span{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;color:var(--muted);font-size:var(--text-small-size,16px)}
.first-steps-days>div>.is-complete{background:var(--collection-selection-gradient);border-color:#c4a9ba;color:var(--accent)}
.first-steps-days small{display:block;font-size:var(--text-small-size,16px);color:var(--muted);line-height:1.6}
.profile-first-steps>p{grid-column:2;grid-row:4;align-self:start;margin:14px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:var(--text-small-size,16px);line-height:1.6;color:var(--muted)}
.first-steps-complete{display:block;padding:16px 20px}
.first-steps-complete-title{display:flex;align-items:center;gap:10px;margin:0;font-family:inherit;font-size:var(--text-small-size,16px);line-height:1.5;font-weight:600}
.first-steps-complete-title>span{color:var(--accent)}
@media(max-width:700px){
 .projects-heading:has(>.author-profile-block){gap:18px}
 .profile-first-steps{display:block;padding:18px}
 .first-steps-list{padding:0;border:0}
 .first-steps-days{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
}

.author-profile-block>.profile-side-column{grid-column:2;grid-row:1 / span 3;align-self:start;min-width:0;display:grid;gap:16px}
.profile-side-column>.profile-achievements{width:100%;grid-column:auto;grid-row:auto;margin:0}
.profile-side-column>.profile-first-steps{display:block;min-width:0;padding:18px}
.profile-side-column .first-steps-list{padding:0;border:0}
.profile-side-column .first-steps-days{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.profile-side-column .first-step{gap:8px}
@media(max-width:850px){.author-profile-block>.profile-side-column{margin-top:20px}}

.author-profile-block>.profile-main-column~.profile-side-column{grid-row:1}

.profile-side-column>.first-steps-complete,.first-steps-complete{padding:22px;border-radius:20px;background:var(--card)}
.first-steps-complete .first-steps-complete-title{display:flex;align-items:center;gap:10px;font:600 16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;margin:0}
.first-steps-success{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:var(--soft);color:var(--accent)}
.first-steps-success svg{width:17px;height:17px;stroke-width:2}
.first-steps-gift{display:flex;align-items:center;gap:14px;margin:20px 0 16px;padding:18px 16px;border-radius:14px;background:var(--soft);color:var(--accent)}
.first-steps-gift-icon{display:grid;place-items:center;flex:0 0 36px}
.first-steps-gift-icon svg{width:32px;height:32px;stroke-width:1.5}
.first-steps-gift-label{display:block;font-size:var(--text-small-size,16px);line-height:1.5;margin-bottom:4px}
.first-steps-gift strong{display:block;font-size:18px;font-weight:600;line-height:1.4}
.first-steps-gift strong>span{white-space:nowrap}
.first-steps-complete>.first-steps-delivery{border:0;padding:0;margin:0;font-size:var(--text-small-size,16px);line-height:1.65;color:var(--muted)}
.first-steps-complete>.first-steps-hours{border:0;padding:0;margin:10px 0 0;font-size:var(--text-small-size,16px);line-height:1.5;color:var(--muted)}
@media(max-width:600px){.profile-side-column>.first-steps-complete,.first-steps-complete{padding:18px}.first-steps-gift{padding:16px 12px;gap:12px}}
.first-steps-mobile-toggle{display:none}
@media(max-width:760px){
 .profile-first-steps>.first-steps-mobile-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0;border:0;background:none;color:var(--ink);font:600 16px/1.5 system-ui,sans-serif;text-align:left}
 .first-steps-mobile-toggle>.catalog-filter-chevron{flex:none}
 .profile-first-steps:not(.steps-open)>:not(.first-steps-mobile-toggle){display:none!important}
 .profile-first-steps.steps-open>.first-steps-heading,.profile-first-steps.steps-open>.first-steps-complete-title{display:none}
 .profile-first-steps.steps-open>.first-steps-mobile-toggle{margin-bottom:16px}
 .first-steps-mobile-toggle[aria-expanded=true]>.catalog-filter-chevron{transform:rotate(180deg)}
 .profile-side-column>.profile-first-steps,.profile-side-column>.first-steps-complete{padding:16px}
}

/* Completed tasks stay available without occupying the whole checklist. */
.profile-first-steps:not(.first-steps-complete){box-sizing:border-box;padding:18px 22px;column-gap:24px}
.first-step-next{margin-left:auto;color:var(--muted)}
.first-steps-done{margin-top:6px;font-size:var(--text-small-size,16px)}
.first-steps-done>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;color:var(--accent);min-height:40px}
.first-steps-done>summary::-webkit-details-marker{display:none}
.first-steps-done>summary>span:first-child{text-decoration:underline;text-underline-offset:4px}
.first-steps-done[open]>summary>.catalog-filter-chevron{transform:rotate(180deg)}
.first-steps-done>div{padding-top:6px}
.first-steps-list{min-width:0;padding-right:24px}
.first-steps-days{min-width:0;margin-top:0}
.first-steps-days>div{margin:10px 0}
.first-steps-days small{line-height:1.45}
.profile-first-steps:not(.first-steps-complete)>p{margin-top:10px;padding-top:10px;line-height:1.45}
@media(max-width:760px){
 .profile-first-steps:not(.first-steps-complete){display:block;padding:16px}
 .first-steps-list{padding-right:0;border-right:0}
}

.first-steps-done>summary::after{display:none!important}
@media(min-width:761px){
 .profile-first-steps.tasks-done{grid-template-columns:minmax(180px,.65fr) minmax(0,2fr)}
 .tasks-done>.first-steps-list{grid-row:3;align-self:start;border:0}
 .tasks-done>.first-steps-days{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
 .tasks-done>.first-steps-days>div{margin:0}
 .tasks-done>.first-steps-days>small{grid-column:1/-1}
 .profile-first-steps.tasks-done>p{grid-column:1/-1;grid-row:4}
 .profile-side-column>.tasks-done>.first-steps-days{display:block}
 .profile-side-column>.tasks-done>.first-steps-days>div{margin:10px 0}
}

/* In the profile sidebar the checklist is one compact vertical column. */
.profile-side-column>.profile-first-steps:not(.first-steps-complete){display:block;padding:18px}
.profile-side-column .first-steps-heading{margin-bottom:10px}
.profile-side-column .first-steps-progress{margin-bottom:12px}
.profile-side-column .first-steps-list{padding:0;border:0}
.profile-side-column .first-steps-days{display:block;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.profile-side-column .first-steps-days>div{margin:10px 0}
.profile-side-column .first-steps-done>summary{justify-content:flex-start}
.profile-side-column .first-steps-done>summary>.catalog-filter-chevron{margin-left:auto}
.profile-side-column .first-step{padding:6px 0;align-items:flex-start}
.profile-side-column .first-step-mark{flex-shrink:0}
.profile-side-column .first-step-next{align-self:center}

/* Give the first-steps sidebar more room without moving it below the profile. */
@media(min-width:851px){
 .author-profile-block:has(>.profile-side-column>.profile-first-steps:not(.first-steps-complete)){grid-template-columns:minmax(0,1fr) 340px;column-gap:28px}
 .author-profile-block:has(>.profile-side-column>.profile-first-steps:not(.first-steps-complete))>.profile-side-column{width:100%;grid-column:2;grid-row:1}
}
@media(min-width:1050px){
 .author-profile-block:has(>.profile-side-column>.profile-first-steps:not(.first-steps-complete)){grid-template-columns:minmax(0,1fr) 420px;column-gap:32px}
}
