/* The protection deck shelf: admin-uploaded weekly and monthly carousels drawn
   as cards on /protection-in-focus and the Weekly Decks tab of
   /protection-severity. Scoped under .pdeck so it sits inside either page. */
.pdeck { --pd-ink: #0f172a; --pd-muted: #64748b; --pd-rule: #e2e8f0; --pd-blue: #1e40af; --pd-bg: #ffffff; }
.pdeck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }
.pdeck-card { background: var(--pd-bg); border: 1px solid var(--pd-rule); border-radius: 12px; overflow: hidden;
              display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pdeck-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15,23,42,0.10); }
.pdeck-cover { display: block; aspect-ratio: 4 / 5; background: #f1f5f9; position: relative; overflow: hidden; text-decoration: none; }
.pdeck-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdeck-cover .pdeck-nocover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
              justify-content: center; gap: 10px; color: var(--pd-blue); font-family: 'JetBrains Mono', ui-monospace, monospace;
              font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.pdeck-cover .pdeck-nocover img { width: 44px; height: 44px; object-fit: contain; opacity: 0.85; }
.pdeck-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pdeck-label { font-size: 1.02rem; font-weight: 700; color: var(--pd-ink); line-height: 1.3; margin: 0; }
.pdeck-label a { color: inherit; text-decoration: none; }
.pdeck-label a:hover { color: var(--pd-blue); }
.pdeck-meta { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em;
              color: var(--pd-muted); margin: 0; }
.pdeck-notes { font-size: 12.5px; color: #475569; line-height: 1.45; margin: 0; }
.pdeck-open { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
              padding: 8px 14px; border-radius: 999px; background: var(--pd-blue); color: #fff; font-size: 12.5px;
              font-weight: 600; text-decoration: none; transition: background 0.15s; }
.pdeck-open:hover { background: #1a368f; color: #fff; }
.pdeck-open svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.pdeck-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
              border: 1px solid var(--pd-blue); background: transparent; color: var(--pd-blue); font: inherit;
              font-size: 13px; font-weight: 600; cursor: pointer; }
.pdeck-more:hover { background: var(--pd-blue); color: #fff; }
.pdeck-empty { margin-top: 18px; padding: 22px; border: 1px dashed var(--pd-rule); border-radius: 12px;
               color: var(--pd-muted); font-size: 14px; }
.pdeck-card.is-folded { display: none; }
@media (max-width: 640px) {
    .pdeck-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pdeck-body { padding: 12px; }
    .pdeck-label { font-size: 0.95rem; }
    .pdeck-open { padding: 7px 12px; font-size: 12px; }
}
@media (max-width: 400px) {
    .pdeck-grid { grid-template-columns: 1fr; }
}
