/* Community Projects V1 */
.project-shell{width:min(1220px,calc(100% - 32px))}
.project-icon{width:1.05rem;height:1.05rem;flex:0 0 1.05rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.project-directory-hero,.project-hero,.project-section,.project-side>section,.project-create,.project-join{border:1px solid var(--ds-border-subtle);border-radius:18px;background:var(--ds-surface-base)}
.project-directory-hero{display:flex;justify-content:space-between;align-items:end;gap:24px;padding:28px;margin-top:14px}
.project-directory-hero h1{margin:.35rem 0 .5rem;font-size:clamp(2.2rem,5vw,4.3rem);line-height:1.08}
.project-directory-hero p{max-width:760px;margin:0;color:var(--ds-text-default);line-height:1.8}
.project-directory-hero__stats{display:grid;justify-items:end;min-width:140px;padding-inline-start:18px;border-inline-start:1px solid var(--ds-divider)}
.project-directory-hero__stats strong{font-size:2.3rem}
.project-directory-hero__stats span{color:var(--ds-text-muted);font-size:.72rem;font-weight:800}
.project-create{margin-top:14px;overflow:hidden}
.project-create>summary{display:flex;align-items:center;gap:8px;padding:14px 17px;cursor:pointer;list-style:none;font-weight:900}
.project-create>summary::-webkit-details-marker{display:none}
.project-create>summary .project-icon{color:var(--ds-text-link)}
.project-create form{padding:0 17px 17px}
.project-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-form-grid label,.project-inline-form{display:grid;gap:6px}
.project-form-grid label>span{font-size:.76rem;font-weight:850}
.project-form-wide{grid-column:1/-1}
.project-form-grid input,.project-form-grid textarea,.project-form-grid select,.project-inline-form input,.project-inline-form textarea,.project-question textarea,.project-review-form textarea{
  width:100%;padding:10px 11px;border:1px solid var(--ds-field-border);border-radius:9px;background:var(--ds-field-bg);color:var(--ds-field-text);font:inherit;line-height:1.6
}
.project-form-grid textarea,.project-inline-form textarea,.project-question textarea,.project-review-form textarea{resize:vertical}
.project-form-actions,.project-inline-form{margin-top:12px}
.project-form-actions{display:flex;align-items:center;gap:10px}
.project-form-actions button,.project-inline-form button,.project-question button,.project-review-form button,.project-hero__social>button{
  min-height:40px;padding:8px 14px;border:0;border-radius:9px;background:var(--ds-action-primary-bg);color:var(--ds-action-primary-text);font:inherit;font-weight:900;cursor:pointer
}
.project-form-actions span,.project-inline-form [data-project-form-status],.project-question [data-project-form-status],.project-review-form [data-project-form-status]{font-size:.74rem;color:var(--ds-text-muted)}
.project-join{display:flex;align-items:center;gap:16px;margin-top:14px;padding:17px}
.project-join strong{font-size:1.05rem}
.project-join p{flex:1;margin:0;color:var(--ds-text-muted);line-height:1.6}
.project-join a{padding:8px 12px;border-radius:9px;background:var(--ds-action-primary-bg);color:var(--ds-action-primary-text);text-decoration:none;font-weight:900}
.project-directory{margin-top:24px}
.project-directory>header{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}
.project-directory>header h2{margin:.2rem 0 0;font-size:1.7rem}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.project-card{display:grid;gap:12px;padding:18px;border:1px solid var(--ds-border-subtle);border-radius:15px;background:var(--ds-surface-base)}
.project-card__identity{display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;align-items:center;color:inherit;text-decoration:none}
.project-card__mark{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:color-mix(in srgb,var(--accent-secondary) 13%,var(--ds-surface-subtle));color:var(--accent-secondary);font-size:1.15rem;font-weight:950}
.project-card__identity>span:last-child{display:grid;min-width:0}
.project-card__identity small{color:var(--ds-text-muted);font-size:.65rem;font-weight:850}
.project-card__identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem}
.project-card>p{margin:0;color:var(--ds-text-default);font-size:.78rem;line-height:1.65}
.project-card__meta{display:flex;gap:8px;flex-wrap:wrap}
.project-card__meta a{display:inline-flex;align-items:center;gap:4px;color:var(--ds-text-muted);font-size:.66rem;text-decoration:none}
.project-card__meta .project-icon{width:.85rem;height:.85rem;flex-basis:.85rem}
.project-card footer{display:flex;gap:10px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--ds-divider);color:var(--ds-text-muted);font-size:.66rem}
.project-card footer span{display:flex;align-items:center;gap:4px}
.project-card footer .project-icon{width:.82rem;height:.82rem;flex-basis:.82rem}
.project-empty{padding:32px;border:1px dashed var(--ds-border-subtle);border-radius:14px;text-align:center}
.project-empty h3{margin:0 0 6px}
.project-empty p,.project-empty-copy{margin:0;color:var(--ds-text-muted);line-height:1.7}
.project-hero{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(280px,.45fr);gap:22px;align-items:start;padding:28px;margin-top:14px}
.project-hero__mark{display:grid;place-items:center;width:84px;height:84px;border-radius:20px;background:color-mix(in srgb,var(--accent-secondary) 13%,var(--ds-surface-subtle));color:var(--accent-secondary);font-size:2rem;font-weight:950}
.project-hero__eyebrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--ds-text-muted);font-size:.7rem;font-weight:850}
.project-hero__eyebrow>a{display:inline-flex;align-items:center;gap:4px;color:var(--ds-text-link);text-decoration:none}
.project-hero__eyebrow .project-icon{width:.85rem;height:.85rem;flex-basis:.85rem}
.project-hero h1{margin:.35rem 0 .2rem;font-size:clamp(2.4rem,5vw,4.5rem);line-height:1.05}
.project-hero h2{margin:.45rem 0;color:var(--ds-text-link);font-size:1.05rem;line-height:1.5}
.project-hero__body>p{max-width:750px;color:var(--ds-text-default);line-height:1.8}
.project-hero__links{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.project-hero__links>a{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid var(--ds-border-subtle);border-radius:8px;color:inherit;text-decoration:none;font-size:.72rem;font-weight:800}
.project-hero__links .project-icon{width:.9rem;height:.9rem;flex-basis:.9rem}
.project-hero__social{display:grid;gap:12px}
.project-hero__social>button{display:flex;align-items:center;justify-content:center;gap:7px}
.project-hero__social>button.is-active{background:color-mix(in srgb,var(--accent-secondary) 14%,var(--ds-surface-base));color:var(--accent-secondary);border:1px solid var(--accent-secondary)}
.project-hero__numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--ds-border-subtle);border-radius:11px;overflow:hidden}
.project-hero__numbers>div{display:grid;justify-items:center;gap:2px;padding:10px 6px;border-inline-end:1px solid var(--ds-divider)}
.project-hero__numbers>div:last-child{border-inline-end:0}
.project-hero__numbers strong{font-size:1rem}
.project-hero__numbers span{color:var(--ds-text-muted);font-size:.62rem}
.project-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:start}
.project-main{min-width:0}
.project-section{padding:20px;margin-top:18px}
.project-section>header{margin-bottom:12px}
.project-section>header h2{margin:.2rem 0 0;font-size:1.3rem}
.project-updates{display:grid}
.project-updates article{padding:13px 0;border-bottom:1px solid var(--ds-divider)}
.project-updates article:last-child{border-bottom:0}
.project-updates time{color:var(--ds-text-muted);font-size:.67rem}
.project-updates h3{margin:.25rem 0 .35rem;font-size:.95rem}
.project-updates p{margin:0;white-space:pre-wrap;color:var(--ds-text-default);font-size:.8rem;line-height:1.7}
.project-inline-form{padding-top:14px;border-top:1px solid var(--ds-divider)}
.project-inline-form h3{margin:0 0 3px;font-size:.88rem}
.project-inline-form button{justify-self:start}
.project-question-list{display:grid;gap:10px}
.project-question{padding:14px;border:1px solid var(--ds-border-subtle);border-radius:12px;background:var(--ds-surface-subtle)}
.project-question header>div{display:grid;gap:2px}
.project-question header strong{font-size:.88rem}
.project-question header span{color:var(--ds-text-muted);font-size:.65rem}
.project-question>p{margin:.55rem 0;color:var(--ds-text-default);line-height:1.65;font-size:.78rem}
.project-answer-list{display:grid;gap:7px;margin-top:10px}
.project-answer-list>div{padding:9px 10px;border-inline-start:3px solid var(--accent-secondary);background:var(--ds-surface-base)}
.project-answer-list strong{font-size:.7rem}
.project-answer-list p{margin:3px 0 0;font-size:.75rem;line-height:1.55}
.project-question form{display:grid;gap:7px;margin-top:10px}
.project-question button{justify-self:start;min-height:34px;padding:5px 9px;font-size:.72rem}
.project-review-form{display:grid;gap:9px;margin-bottom:14px}
.project-rating{display:flex;gap:3px;direction:ltr}
.project-rating label{cursor:pointer}
.project-rating input{position:absolute;opacity:0;pointer-events:none}
.project-rating span{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--ds-border-subtle);border-radius:8px;color:var(--ds-text-muted);font-size:1rem}
.project-rating input:checked~span,.project-rating label:hover span{border-color:var(--ds-border-active);color:var(--accent-secondary);background:var(--ds-surface-interactive-hover)}
.project-review-form button{justify-self:start}
.project-review-list{display:grid}
.project-review-list article{display:grid;grid-template-columns:38px minmax(0,1fr);gap:9px;padding:11px 0;border-bottom:1px solid var(--ds-divider)}
.project-review-list article:last-child{border-bottom:0}
.project-review-list__avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--ds-surface-subtle);font-weight:900}
.project-review-list article>div:last-child{display:grid}
.project-review-list a{color:inherit;text-decoration:none;font-size:.75rem;font-weight:900}
.project-review-list p{margin:3px 0;white-space:pre-wrap;color:var(--ds-text-default);font-size:.77rem;line-height:1.6}
.project-review-list time{color:var(--ds-text-muted);font-size:.62rem}
.project-side{display:grid;gap:12px;position:sticky;top:18px;margin-top:18px}
.project-side>section{padding:16px}
.project-owner{display:grid;grid-template-columns:42px minmax(0,1fr);gap:9px;align-items:center;margin-top:10px;color:inherit;text-decoration:none}
.project-owner>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--ds-surface-subtle);font-weight:900}
.project-owner>div{display:grid}
.project-owner small{color:var(--ds-text-muted);font-size:.68rem}
.project-topic{display:flex;align-items:center;gap:7px;margin-top:9px;color:var(--ds-text-link);text-decoration:none}
.project-facts{display:grid;margin:9px 0 0}
.project-facts>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--ds-divider)}
.project-facts>div:last-child{border-bottom:0}
.project-facts dt{color:var(--ds-text-muted);font-size:.68rem}
.project-facts dd{margin:0;font-size:.72rem;font-weight:850}
@media(max-width:980px){
  .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .project-hero{grid-template-columns:auto minmax(0,1fr)}
  .project-hero__social{grid-column:1/-1;grid-template-columns:auto minmax(0,1fr);align-items:center}
  .project-layout{grid-template-columns:1fr}
  .project-side{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:680px){
  .project-shell{width:min(100% - 20px,1220px)}
  .project-directory-hero{display:grid;align-items:start;padding:20px}
  .project-directory-hero__stats{justify-items:start;border-inline-start:0;padding-inline-start:0}
  .project-join{display:grid}
  .project-grid{grid-template-columns:1fr}
  .project-form-grid{grid-template-columns:1fr}
  .project-form-wide{grid-column:1}
  .project-hero{grid-template-columns:1fr;padding:20px;gap:12px}
  .project-hero__mark{width:66px;height:66px}
  .project-hero__social{grid-column:auto;grid-template-columns:1fr}
  .project-side{grid-template-columns:1fr}
}
.project-owner-badge{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid var(--ds-border-active);border-radius:9px;background:color-mix(in srgb,var(--accent-secondary) 12%,var(--ds-surface-base));color:var(--accent-secondary);font-size:.76rem;font-weight:900}

/* Project Q&A V2 — accepted answers and clear ownership. */
.project-question>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.project-question__solved,.project-answer__accepted{display:inline-flex;align-items:center;gap:5px;color:var(--ds-status-success-text);font-size:.67rem;font-weight:900}
.project-question__solved .project-icon,.project-answer__accepted .project-icon{width:.9rem;height:.9rem;flex-basis:.9rem}
.project-answer-list>.project-answer{padding:9px 10px;border-inline-start:3px solid var(--accent-secondary);background:var(--ds-surface-base)}
.project-answer-list>.project-answer.is-accepted{border:1px solid var(--ds-status-success-border);border-inline-start:4px solid var(--ds-status-success-border);border-radius:10px;background:var(--ds-status-success-bg)}
.project-answer__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.project-answer>[data-project-accept-answer]{display:inline-flex;align-items:center;gap:5px;margin-top:7px;min-height:34px;padding:5px 9px;border:1px solid var(--ds-border-active);border-radius:8px;background:var(--ds-surface-interactive);color:var(--ds-text-link);font:inherit;font-size:.7rem;font-weight:900;cursor:pointer}
.project-answer>[data-project-accept-answer]:hover{background:var(--ds-surface-interactive-hover)}
.project-answer>[data-project-accept-answer] .project-icon{width:.9rem;height:.9rem;flex-basis:.9rem}

/* Projects V1.1 — directory discovery and owner editing. */
.project-filters{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(150px,.7fr)) auto;gap:10px;align-items:end;margin-top:14px;padding:14px;border:1px solid var(--ds-border-subtle);border-radius:14px;background:var(--ds-surface-base)}
.project-filters label{display:grid;gap:5px;min-width:0}
.project-filters label>span{color:var(--ds-text-muted);font-size:.68rem;font-weight:850}
.project-filters input,.project-filters select{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--ds-field-border);border-radius:9px;background:var(--ds-field-bg);color:var(--ds-field-text);font:inherit}
.project-filters__actions{display:flex;align-items:center;gap:7px}
.project-filters__actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 13px;border:0;border-radius:9px;background:var(--ds-action-primary-bg);color:var(--ds-action-primary-text);font:inherit;font-weight:900;cursor:pointer}
.project-filters__actions button .project-icon{width:.9rem;height:.9rem;flex-basis:.9rem}
.project-filters__actions a{padding:8px 5px;color:var(--ds-text-link);font-size:.7rem;font-weight:850;text-decoration:none;white-space:nowrap}
.project-directory__count{color:var(--ds-text-muted);font-size:.72rem;font-weight:850}
.project-edit{margin-top:14px;border:1px solid var(--ds-border-subtle);border-radius:14px;background:var(--ds-surface-base);overflow:hidden}
.project-edit>summary{display:flex;align-items:center;gap:7px;padding:12px 15px;cursor:pointer;list-style:none;font-weight:900}
.project-edit>summary::-webkit-details-marker{display:none}
.project-edit>summary .project-icon{color:var(--ds-text-link)}
.project-edit form{padding:0 15px 15px}
@media(max-width:1080px){.project-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.project-filters__search{grid-column:1/-1}.project-filters__actions{justify-content:flex-start}}
@media(max-width:620px){.project-filters{grid-template-columns:1fr}.project-filters__search{grid-column:1}.project-filters__actions{display:grid;grid-template-columns:1fr auto}.project-filters__actions button{width:100%}}
