/* Project-supplied content uses the existing Silex reading and editing surfaces. */
.project-updates { border-block: 1px solid var(--silex-border); padding-block: 22px; scroll-margin-top: 100px; }
.project-updates-heading, .updates-heading, .update-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-updates h2, .updates-heading h2 { margin: 0; font-size: 1.2rem; }
.project-updates-note { max-width: 78ch; margin: 10px 0 18px; color: var(--silex-muted); font-size: .83rem; line-height: 1.6; }
.project-update { padding-block: 20px; min-width: 0; overflow-wrap: anywhere; }
.project-update + .project-update { border-top: 1px solid var(--silex-border); }
.project-update-title { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.4; color: var(--silex-text); }
.project-update-title a { color: inherit; text-decoration: none; }
.project-update-title a:hover { color: var(--silex-accent); text-decoration: underline; }
.project-update-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--silex-muted); font-size: .77rem; line-height: 1.6; }
.project-update-source { border: 1px solid var(--silex-border-strong); padding: 2px 7px; border-radius: 2px; color: var(--silex-text-soft); }
.project-update-body { color: var(--silex-text-soft); font-size: .94rem; line-height: 1.7; max-width: 73ch; }
.project-update-body p { white-space: pre-wrap; margin: 14px 0; }
.project-update-body a, .project-update-read, .project-update-external { color: var(--silex-accent); text-underline-offset: 3px; }
.project-update-read, .project-update-external { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.project-update-image { display: block; width: 100%; height: auto; max-height: 540px; object-fit: contain; object-position: left center; margin-top: 20px; }
.project-update-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 24px; }
.project-update-compact .project-update-image { width: 176px; height: 110px; margin-top: 0; object-fit: cover; }
.project-update-pin-label { grid-column: 1 / -1; margin: 0 0 14px; color: var(--silex-text-soft); font-size: .8rem; font-weight: 600; }
.project-update-pinned { border-bottom: 1px solid var(--silex-border-strong); margin-bottom: 4px; }
.project-update-page { --silex-shell: 960px; }
.project-update-page > .project-update { padding-top: 28px; }
.project-update-page .project-update-title { font-size: clamp(1.65rem, 4vw, 2.3rem); max-width: 26ch; text-wrap: balance; }
.project-update-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--silex-accent); font-size: .9rem; }
.project-update-page .project-updates-note { border-top: 1px solid var(--silex-border); padding-top: 20px; margin-top: 26px; }
.updates-article { max-width: 100%; padding-block: 12px 24px; overflow-wrap: anywhere; }
.updates-article h1 { font-size: clamp(1.65rem, 4vw, 2.3rem); line-height: 1.35; max-width: 27ch; margin: 22px 0 16px; text-wrap: balance; }
.updates-back, .updates-external-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--silex-accent); text-underline-offset: 3px; font-size: .9rem; }
.updates-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--silex-muted); font-size: .82rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.updates-full-image { display: block; max-width: 100%; height: auto; max-height: 540px; object-fit: contain; object-position: left; margin-block: 24px; }
.updates-body { max-width: 73ch; color: var(--silex-text-soft); font-size: 1rem; line-height: 1.75; }
.updates-body p { white-space: pre-wrap; margin-block: 20px; }
.updates-disclaimer { max-width: 78ch; padding-top: 20px; border-top: 1px solid var(--silex-border); margin-top: 30px; color: var(--silex-muted); font-size: .83rem; line-height: 1.6; }
.project-updates :focus-visible, .project-update-page :focus-visible, .updates-console :focus-visible, #admin-updates-panel :focus-visible { outline: 2px solid var(--silex-accent); outline-offset: 3px; }
.project-update ::selection, .updates-console ::selection { background: var(--silex-accent-strong); color: white; }
.project-update time { font-variant-numeric: tabular-nums; }
.console-section-links { display: flex; gap: 24px; border-block: 1px solid var(--silex-border); margin: 0 0 24px; }
.console-section-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--silex-text-soft); font-size: .9rem; }
.updates-console { margin-block: 28px 32px; scroll-margin-top: 100px; }
.updates-list { list-style: none; padding: 0; margin: 16px 0 0; }
.updates-list > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--silex-border); }
.update-list-copy { min-width: 0; }
.update-list-copy strong { display: block; overflow-wrap: anywhere; font-size: .94rem; }
.update-list-meta { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; color: var(--silex-muted); font-size: .8rem; }
.updates-list > li > button { flex-shrink: 0; }
.update-editor { border-top: 1px solid var(--silex-border-strong); padding-top: 22px; margin-top: 28px; scroll-margin-top: 100px; }
.update-editor h3 { margin: 0; font-size: 1.15rem; }
.update-editor .console-form-grid { margin-top: 22px; }
.update-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; line-height: 1.6; }
.update-check input { width: 18px; height: 18px; min-height: 18px !important; margin-top: 3px; accent-color: var(--silex-accent); flex-shrink: 0; }
.update-check .silex-helper { display: block; }
.update-character-count { text-align: right; font-variant-numeric: tabular-nums; }
.update-preview, .update-current { border-block: 1px solid var(--silex-border); margin-top: 22px; padding: 16px 0; }
.update-preview h4 { margin: 0; font-size: .95rem; }
.update-preview .project-update, .update-current .project-update { padding-bottom: 0; }
.update-admin-pin { max-width: 680px; margin: 24px 0; }
.update-admin-pin select { width: 100%; }
.update-pin-impact { color: var(--silex-text-soft); font-size: .88rem; line-height: 1.6; }
.update-review-preview { border-block: 1px solid var(--silex-border); margin-top: 20px; }
.update-history { margin-top: 24px; }
.update-history > h4 { font-size: 1rem; margin: 0 0 8px; }
.update-moderation-panel { border-top: 1px solid var(--silex-border-strong); margin-top: 24px; padding-top: 22px; }
.update-moderation-panel textarea { min-height: 88px; max-width: 680px; }
.update-admin-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--silex-border); }
.update-admin-section h3 { margin: 0; font-size: 1.1rem; }
.update-admin-empty { padding: 10px 0; color: var(--silex-muted); }
@media (max-width: 760px) {
  .project-update-compact { gap: 16px; }
  .project-update-compact .project-update-image { width: 112px; height: 80px; }
  .updates-heading, .update-list-heading { align-items: flex-start; flex-wrap: wrap; }
  .updates-list > li { align-items: flex-start; }
  .update-list-meta { gap: 7px 10px; }
}
@media (max-width: 430px) {
  .project-update-compact:has(.project-update-image) { grid-template-columns: minmax(0, 1fr) 88px; }
  .project-update-compact:has(.project-update-image) .project-update-copy { display: contents; }
  .project-update-compact .project-update-image { width: 88px; height: 72px; object-fit: contain; grid-column: 2; grid-row: 1 / span 2; }
  .project-update-pinned .project-update-image { grid-row: 2 / span 2; }
  .project-update-compact .project-update-title, .project-update-compact .project-update-labels { grid-column: 1; }
  .project-update-compact .project-update-body, .project-update-compact .project-update-read { grid-column: 1 / -1; }
  .project-update-compact:not(:has(.project-update-image)) { grid-template-columns: minmax(0, 1fr); }
  .updates-list > li { flex-wrap: wrap; }
  .updates-list > li > button { width: 100%; }
}
