/* ═══════════════════════════════════════════════════════
   21VOX RESOURCES: "The Shelf"
   Loaded after styles.css and css/resource.css (head, review dot, signup band, tokens).
   Behaviour: js/resource.js (review freshness, resource_outbound with each card's section).
   ═══════════════════════════════════════════════════════ */

/* The jump links are sticky, which needs a body that clips instead of scrolling */
body { overflow-x: clip; }

.shelf-article { max-width: 1304px; padding-bottom: 72px; }

/* ── Head notes: no compensation (green tick) and do your own research ── */
.shelf-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; }
.shelf-note { display: flex; align-items: flex-start; gap: 8px; max-width: 640px; padding: 10px 14px; border: 1px solid var(--rs-outline); border-radius: 10px; font-size: 14px; line-height: 1.5; color: var(--rs-soft); }
.shelf-note--yes { border-color: #1f4a36; }
.shelf-note strong { color: var(--rs-text); }
.shelf-tick { flex: none; width: 14px; height: 14px; margin-top: 3px; fill: none; stroke: var(--rs-green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Jump links: a sticky row; on phones it scrolls sideways ── */
/* display: block undoes the legacy phone rule in styles.css that hides every <nav> */
.shelf .shelf-jump { display: block; }
.shelf-jump { position: sticky; top: 0; z-index: 5; margin: 26px -32px 0; padding: 10px 32px; background: rgba(5, 5, 5, 0.94); border-bottom: 1px solid var(--rs-line); }
.shelf-jump ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.shelf-jump ul::-webkit-scrollbar { display: none; }
.shelf .shelf-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rs-outline); border-radius: 999px; color: var(--rs-list); font-size: 14px; text-decoration: none; white-space: nowrap; }
.shelf .shelf-jump a:hover { border-color: var(--orange); color: var(--rs-text); }

/* ── Sections ── */
.shelf-sec { padding-top: 56px; scroll-margin-top: 72px; }
.shelf-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 22px; }
.shelf-sec h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--rs-text); }
.shelf-sec-intro { max-width: 62ch; margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--rs-muted); }
.shelf-sec-intro a { color: var(--rs-text); text-decoration: underline dotted; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.shelf-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--orange); text-decoration: none; white-space: nowrap; }
.shelf-more:hover { color: #ffb257; }

/* ── Cards: 4 columns for Where to buy, 3 for the rest, 2 for Start here, 1 on phones ── */
.shelf-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.shelf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shelf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shelf-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 18px 18px 8px; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 14px; }
.shelf-tag { margin: 0 0 12px; padding: 3px 8px; border: 1px solid var(--rs-outline); border-radius: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--rs-soft); }
.shelf-card h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; color: var(--rs-text); }
.shelf-desc { flex: 1 1 auto; margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: var(--rs-soft); }
.shelf-desc strong { color: var(--rs-text); }
.shelf-desc a { color: var(--orange); text-underline-offset: 3px; }
.shelf .shelf-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--orange); text-decoration: none; overflow-wrap: anywhere; }
.shelf .shelf-link:hover { color: #ffb257; text-decoration: underline; text-underline-offset: 3px; }
.shelf-ext { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Coldcard: paused, dark amber, with the security notice one tap away */
.shelf-card--paused { background: var(--rs-alert); border-color: var(--rs-alert-line); }
.shelf-card--paused .shelf-tag { border-color: var(--rs-alert-line); color: var(--rs-amber); }
.shelf .shelf-notice { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--rs-amber); text-decoration: underline; text-underline-offset: 3px; }
.shelf .shelf-notice:hover { color: #f0d57e; }

/* ── Also on 21VOX ── */
.shelf-also { margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--rs-line); font-size: 15px; line-height: 1.6; color: var(--rs-muted); }
.shelf-also a { color: var(--rs-text); text-decoration: underline; text-decoration-color: rgba(247, 147, 26, 0.6); text-underline-offset: 3px; }
.shelf-also a:hover { color: var(--orange); }

@media (max-width: 1099px) {
    .shelf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .shelf-notes { flex-direction: column; }
    .shelf-jump { margin: 22px -16px 0; padding: 8px 16px; }
    .shelf-sec { padding-top: 44px; }
    .shelf-sec h2 { font-size: 30px; }
    .shelf-sec-intro { font-size: 16px; }
    .shelf-grid, .shelf-grid--2, .shelf-grid--4 { grid-template-columns: minmax(0, 1fr); }
}
