/* Shared visual cards for the bounded homepage and the paginated library. */
.project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.project-card { min-width:0; display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.preview-link { display:block; color:inherit; text-decoration:none; }
.preview-link:focus-visible { outline-offset:-4px; }
.project-preview { margin:0; background:var(--surface-2); min-width:0; }
.preview-image { aspect-ratio:14 / 9; display:flex; align-items:center; padding:18px; }
.preview-image img { width:100%; height:100%; object-fit:contain; border-radius:5px; }
.preview-illustration { display:block; width:100%; height:auto; aspect-ratio:14 / 9; }
.project-preview > figcaption { min-height:36px; display:flex; align-items:center; padding:7px 14px; font-size:10px; line-height:1.4; color:var(--muted); border-top:1px solid var(--line); }
.preview-art { width:560px; height:360px; overflow:hidden; font-family:"Segoe UI",system-ui,sans-serif; }
.preview-art .illustration { width:560px; height:360px; min-height:0; border:0; padding:30px; }
.preview-art .product-illustration { display:grid; grid-template-columns:230px 1fr; gap:28px; align-items:center; }
.preview-art .phone-preview { width:230px; max-width:none; padding:17px 13px 13px; border:5px solid #354039; border-radius:26px; }
.preview-art .phone-top { font-size:10px; margin-bottom:18px; }
.preview-art .phone-title { font-size:26px; margin:3px 0 14px; }
.preview-art .phone-tabs { font-size:8px; margin-top:22px; padding-top:12px; }
.preview-art .sample-tasks > div { font-size:10px; padding:9px 7px; }
.preview-art .task-circle { width:14px; height:14px; line-height:12px; }
.preview-art .product-annotation strong { font-size:34px; max-width:9ch; }
.preview-art .product-annotation .small-label { font-size:9px; }
.preview-art .annotation-pill { font-size:10px; }
.preview-art .illustration-heading { font-size:16px; margin-bottom:22px; }
.preview-art .workflow-steps { gap:9px; }
.preview-art .workflow-steps li { padding:10px 12px; font-size:14px; }
.preview-art .connection-rows li { font-size:14px; padding-block:18px; }
.preview-art .game-cards { margin-top:28px; }
.preview-art .game-cards > div { min-height:180px; }
.preview-art .game-cards b { font-size:14px; }
.card-copy { padding:18px; display:flex; flex-direction:column; flex:1; }
.project-card .project-title { gap:10px; margin-bottom:9px; }
.project-card .project-title h3 { font-size:19px; text-wrap:pretty; }
.project-card .project-title a { color:var(--ink); text-decoration:none; }
.project-card .project-title a:hover { text-decoration:underline; }
.card-summary { font-size:14px; line-height:1.6; color:var(--muted); margin-bottom:18px; }
.card-bottom { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.card-bottom .project-status { margin:0; font-size:11px; line-height:1.5; }
.explore-link { font-size:13px; font-weight:650; padding-block:6px; white-space:nowrap; }
.library-cta { display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:24px; }
.library-cta p { color:var(--muted); font-size:13px; }
.collection-page { padding-block:32px 56px; }
.collection-page h1 { font-size:clamp(30px,4vw,44px); letter-spacing:-.035em; margin:0 0 12px; }
.back-link { display:inline-block; margin-bottom:28px; font-size:14px; font-weight:600; }
.library-tools { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.library-tools label { display:grid; gap:5px; font-size:12px; color:var(--muted); }
.library-tools label:first-child { flex:1; min-width:200px; }
.library-tools input,.library-tools select { min-height:44px; padding:9px 12px; border:1px solid var(--line-strong); border-radius:8px; font:inherit; font-size:15px; color:var(--ink); background:var(--surface); max-width:100%; }
.library-meta { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:13px; margin:16px 0; }
.library-notice { color:var(--muted); font-size:13px; margin-block:12px; }
.library-notice:empty { display:none; }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:28px; font-size:14px; color:var(--muted); }
.empty-results { padding:36px 0; color:var(--muted); }
.case-hero { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.case-title { display:flex; gap:14px; align-items:center; margin-bottom:16px; }
.case-title h1 { margin:0; }
.case-intro { color:var(--ink-2); font-size:18px; }
.case-hero .project-preview { border-radius:14px; overflow:hidden; border:1px solid var(--line); }
.case-decision { background:var(--surface-2); padding:24px; border-radius:12px; margin:36px 0; font-size:20px; }
.case-decision strong { display:block; text-transform:uppercase; font-size:11px; letter-spacing:.09em; color:var(--accent-ink); margin-bottom:8px; }
.case-page > h2 { margin-top:36px; }
.case-page .detail { padding:0; }
.case-page .detail dl { grid-template-columns:155px minmax(0,1fr); gap:24px 30px; font-size:16px; }
.case-page .detail dt { margin:0; font-size:14px; }
.case-page .detail dd { color:var(--ink-2); }
@media (max-width:1000px) { .project-grid { gap:14px; } .card-copy { padding:16px; } .project-card .project-title h3 { font-size:17px; } .project-card .project-icon { width:30px; height:30px; } }
@media (min-width:681px) and (max-width:850px) { .library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .highlights-grid { grid-template-columns:1fr; } .highlights-grid .project-card { display:grid; grid-template-columns:240px minmax(0,1fr); } .highlights-grid .card-copy { justify-content:center; } }
@media (max-width:680px) {
  .project-grid { grid-template-columns:1fr; gap:14px; }
  .project-card { display:grid; grid-template-columns:minmax(110px,.85fr) minmax(0,1.3fr); align-items:stretch; }
  .preview-link { display:flex; align-items:center; background:var(--surface-2); }
  .project-card .project-preview { width:100%; }
  .project-card .project-preview > figcaption { font-size:9px; min-height:0; padding:6px 8px; }
  .preview-image { padding:7px; }
  .card-copy { padding:13px; }
  .project-card .project-title { gap:7px; align-items:start; margin-bottom:8px; }
  .project-card .project-title h3 { font-size:16px; }
  .project-card .project-icon { width:24px; height:24px; }
  .card-summary { font-size:12px; line-height:1.5; margin-bottom:8px; }
  .card-bottom { flex-wrap:wrap; gap:3px 8px; }
  .card-bottom .project-status { font-size:10px; }
  .explore-link { font-size:12px; min-height:36px; display:inline-flex; align-items:center; }
  .library-cta { gap:10px; margin-top:20px; }
  .library-tools label,.library-tools label:first-child { width:100%; min-width:0; }
  .library-tools input,.library-tools select { font-size:16px; width:100%; }
  .library-tools > button { flex:1; }
  .library-meta { font-size:12px; }
  .case-hero { grid-template-columns:1fr; gap:28px; }
  .case-intro { font-size:16px; }
  .case-page .detail dl { grid-template-columns:1fr; gap:6px; }
  .case-page .detail dt:not(:first-child) { margin-top:18px; }
  .case-decision { font-size:17px; }
  .collection-page { padding-top:24px; }
  .case-title .project-icon { width:38px; height:38px; }
}
@media print { .library-tools,.pagination,.library-cta { display:none; } .project-grid { display:block; } .project-card { display:block; break-inside:avoid; margin-bottom:20px; } .case-hero { display:block; } }
