/* Scoped enhancement for project browsing only. */
.project-filter-panel { border:1px solid #dce3df; background:#f5f7f3; padding:28px 30px; color:#172b32; }
.project-case-controls { margin:0 0 32px; }
.project-archive-controls { margin:80px 0 0; scroll-margin-top:110px; }
.project-filter-heading { display:flex; align-items:baseline; justify-content:space-between; gap:18px; margin-bottom:12px; }
.project-filter-heading h2 { font-size:24px; line-height:1.3; font-weight:600; letter-spacing:-.025em; margin:0; }
.project-filter-heading a { flex-shrink:0; color:#326329; font-size:12px; font-weight:600; text-decoration:underline; text-underline-offset:4px; }
.project-filter-description { font-size:13px; line-height:1.8; color:#596b70; margin:0 0 20px; max-width:74em; }
.project-filter-buttons { display:flex; align-items:center; gap:8px; overflow-x:auto; overscroll-behavior-x:contain; padding:4px 3px 12px; scrollbar-width:thin; }
.project-filter-buttons button { flex:0 0 auto; min-height:44px; border:1px solid #cad4ce; background:white; padding:11px 17px; color:#3c5054; font:inherit; font-size:12px; line-height:1.5; font-weight:600; cursor:pointer; transition:background .16s, border-color .16s, color .16s; }
.project-filter-buttons button:hover { border-color:#497e3a; background:#edf4e9; }
.project-filter-buttons button[aria-pressed="true"] { border-color:#172b32; background:#172b32; color:#fff; box-shadow:inset 0 -3px 0 #72bf44; }
.project-filter-search-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; margin-bottom:20px; }
.project-filter-field { display:block; min-width:0; }
.project-filter-field label { display:block; font-size:12px; font-weight:650; color:#344c50; margin-bottom:8px; }
.project-filter-field input[type="search"] { width:100%; min-width:0; min-height:48px; border:1px solid #b7c5bd; background:white; border-radius:0; padding:12px 15px; color:#172b32; font:inherit; font-size:15px; line-height:1.5; box-shadow:none; }
.project-filter-field input::placeholder { color:#697b7e; opacity:1; }
.project-filter-reset { min-height:48px; padding:12px 20px; border:1px solid #b7c5bd; border-radius:0; background:white; color:#29473d; font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.project-filter-reset:hover { background:#e8f1e3; border-color:#497e3a; }
.project-filter-panel :is(button,input,a):focus-visible,.project-filter-empty button:focus-visible { outline:3px solid #497e3a; outline-offset:3px; }
.project-filter-status { margin:10px 0 0; padding-top:14px; border-top:1px solid #dce3df; font-size:12px; line-height:1.7; color:#465e61; font-variant-numeric:tabular-nums; }
.project-filter-empty { margin-top:24px; padding:32px; border:1px dashed #b7c5bd; background:#fafbf9; color:#172b32; }
.project-filter-empty h3 { margin:0 0 10px; font-size:20px; font-weight:600; }
.project-filter-empty p { margin:0 0 20px; color:#596b70; font-size:14px; line-height:1.8; }
[data-project-filter-ui][hidden], [data-project-card][hidden], [data-project-section][hidden], [data-project-filter-group][hidden], [data-project-archive-note][hidden], #project-archive-results tr[hidden], #project-archive-empty[hidden] { display:none!important; }
#project-archive-results { min-width:0; }
#project-archive-results [data-project-section] { scroll-margin-top:110px; }
@media (max-width:640px) {
  .project-filter-panel { padding:22px 18px; }
  .project-filter-heading { display:block; }
  .project-filter-heading h2 { font-size:22px; margin-bottom:10px; }
  .project-filter-description { font-size:12px; }
  .project-filter-search-row { grid-template-columns:minmax(0,1fr); gap:10px; }
  .project-filter-field input[type="search"] { font-size:16px; }
  .project-filter-reset { justify-self:start; }
  .project-filter-buttons { margin-right:-6px; }
  .project-filter-buttons button { padding:10px 13px; }
  .project-archive-controls { margin-top:56px; }
  .project-filter-empty { padding:24px 18px; }
}
@media (prefers-reduced-motion:reduce) { .project-filter-buttons button { transition:none; } }
