/* Responsive visual project directory. The interactive homepage bookshelf is unchanged. */
/* Muted plum/blush media surfaces, never a stark white thumbnail card. */
.project-directory-grid .featured-project-card{display:flex;flex-direction:column;gap:0;min-height:0;padding:clamp(15px,1.9vw,20px);overflow:hidden;background:linear-gradient(155deg,#fff9fd 0%,#f4e9f2 100%)}
.project-directory-grid .featured-project-card .directory-card-visual{position:relative;isolation:isolate;display:block;flex:0 0 auto;width:100%;aspect-ratio:16/9;min-width:0;margin:0 0 16px;border-radius:11px;overflow:hidden;background:linear-gradient(145deg,#d7c0d7 0%,#bca8c9 100%);border:1px solid #bda5bd}
.project-directory-grid .directory-card-visual img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:transparent}
/* Some diagrams contain their own opaque white canvas. A gentle multiply
   tint changes only their directory preview; the original technical SVGs
   remain unaltered and fully legible on their individual project pages. */
.project-directory-grid .directory-card-visual--paper::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:rgba(174,116,162,.35);mix-blend-mode:multiply}
.project-directory-grid .directory-card-badge{position:absolute;left:10px;bottom:10px;z-index:2;max-width:calc(100% - 20px);padding:6px 10px;border:1px solid rgba(54,45,65,.17);border-radius:7px;background:rgba(250,239,248,.95);color:#62425e;font:800 10px/1.25 var(--sans,Arial,sans-serif);letter-spacing:.065em;text-transform:uppercase;box-shadow:0 2px 7px rgba(22,20,29,.14)}
.project-directory-grid .featured-project-card .featured-category{font-size:10px;line-height:1.6;letter-spacing:.045em}
.project-directory-grid .featured-project-card strong{font-size:clamp(21px,1.95vw,25px);line-height:1.23;margin:10px 0 8px}
.project-directory-grid .featured-project-card small{font-size:13px;line-height:1.65;max-width:none}
.project-directory-grid .featured-project-card .featured-more{margin-top:auto;padding-top:18px}
.project-directory-grid .featured-project-card:is(:hover,:focus-visible) .directory-card-visual{border-color:#b783a6}
:root[data-theme="dark"] .project-directory-grid .featured-project-card{background:linear-gradient(155deg,#302736 0%,#3a2d40 100%)}
:root[data-theme="dark"] .project-directory-grid .directory-card-visual{background:linear-gradient(145deg,#54415d 0%,#40334e 100%);border-color:#786182}
:root[data-theme="dark"] .project-directory-grid .directory-card-badge{background:rgba(52,38,58,.96);color:#f5d7e8;border-color:#775d76}
@media(max-width:850px){.project-directory-grid .featured-project-card{padding:17px}}
@media(max-width:540px){.project-directory-grid .featured-project-card .directory-card-visual{margin-bottom:14px}.project-directory-grid .featured-project-card strong{font-size:23px}.project-directory-grid .directory-card-badge{font-size:10px}}
@media(prefers-reduced-motion:reduce){.project-directory-grid .featured-project-card{transition:none}}

/* Phase 2: qualified engineering evidence on project directory cards. */
.project-directory-grid .directory-evidence{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:10px 0 16px;padding:10px 12px;border-left:3px solid #af7496;background:#efe1ed;border-radius:0 8px 8px 0;color:#50334d;font:650 12px/1.55 var(--sans,Arial,sans-serif)}
.project-directory-grid .directory-evidence__label{font:800 10px/1.4 var(--sans,Arial,sans-serif);text-transform:uppercase;letter-spacing:.09em;color:#814d6d}
:root[data-theme="dark"] .project-directory-grid .directory-evidence{background:#463449;border-color:#dbabcb;color:#f7e6f4}
:root[data-theme="dark"] .project-directory-grid .directory-evidence__label{color:#e6b9d3}
@media(max-width:540px){.project-directory-grid .directory-evidence{font-size:12px}}
