.projects-page { background: #fff; }
.projects-hero { border-bottom: 1px solid #e5e5e5; padding: clamp(32px, 5vw, 64px) 0; }
.projects-eyebrow, .projects-count { color: #8a9486; font: .7rem/1.5 ui-monospace, monospace; letter-spacing: .18em; }
.projects-eyebrow { margin: 0 0 16px; }
.projects-title { color: #111; font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: 1; }
.projects-title span { display: inline-block; padding: .04em .15em .12em; background: #c8ff00; }
.projects-intro { margin: 20px 0 0; color: #777f77; font-size: clamp(.9rem, 1.4vw, 1rem); }
.projects-intro::after { content: ""; display: block; width: 6rem; height: 4px; margin-top: 24px; background: #c8ff00; }
.projects-list { padding-top: clamp(28px, 4vw, 44px); padding-bottom: 72px; }
.projects-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 20px; }
.projects-list-heading h2 { margin: 0; }
.projects-filters { margin-bottom: 28px; }
.projects-count { margin: 0 0 16px; }
.projects-empty { max-width: 670px; padding: clamp(24px, 5vw, 46px); border: 1px solid #e5e9e2; border-radius: 8px; background: #f8faf6; }
.projects-empty h2 { margin: 0 0 7px; font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; }
.projects-empty p { margin: 0; color: #61685f; }

.doc-attachment { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; }
.doc-attachment-type { flex: none; padding: 4px 5px; color: #3f6212; background: #eaf5df; border-radius: 4px; font: 700 .68rem/1.3 ui-monospace, monospace; }
.doc-attachment-name { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; color: #444; font-size: .85rem; }
.doc-attachment-actions { display: flex; gap: 6px; margin-left: auto; }
.doc-attachment-actions button, .doc-attachment-actions a, .document-preview header a, .document-preview header button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 10px;
  border: 1px solid #dfe7da; border-radius: 4px; color: #355415; background: #fff; font-size: .82rem; font-weight: 650; white-space: nowrap;
}
.doc-attachment-actions button:hover, .doc-attachment-actions a:hover, .document-preview header a:hover, .document-preview header button:hover { background: #eaf5df; }

.document-preview { width: min(64rem, calc(100% - 20px)); height: min(86dvh, 62rem); max-width: none; max-height: none; padding: 0; border: 1px solid #e5e9e2; border-radius: 12px; background: #fff; color: #222; }
.document-preview[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.document-preview::backdrop { background: #121713bb; }
.document-preview header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #e5e9e2; }
.document-preview h2 { flex: 1 1 12rem; min-width: 0; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.document-preview iframe { width: 100%; height: 100%; border: 0; background: #f7f9f5; }
.document-preview > p { place-self: center; margin: 16px; }

@media (max-width: 620px) { .projects-list, .projects-hero > .container { padding-inline: 20px; } }
@media (prefers-reduced-motion: reduce) { .projects-list .flora-card { transition: none; } }
