/* ═══════════════════════════════════════════════════════
   21VOX RESOURCE GUIDES: "The Picker"
   Best Bitcoin Wallets and Best Bitcoin Exchanges. Loaded after styles.css.
   Behaviour: js/resource.js.
   ═══════════════════════════════════════════════════════ */

:root {
    --rs-text: var(--white-warm);
    --rs-body: #d9d3c9;
    --rs-soft: #cfc9bf;
    --rs-list: #e6e0d6;
    --rs-muted: var(--text-muted-warm);
    --rs-dim: #8a8378;
    --rs-card: #0f0e0d;
    --rs-line: #262420;
    --rs-outline: #3a3732;
    --rs-field: #34312c;
    --rs-input: #0b0a09;
    --rs-tint: #120d07;
    --rs-tint-line: #3a2a14;
    --rs-alert: #1a1206;
    --rs-alert-line: #6b4a1e;
    --rs-alert-card: #0f0b06;
    --rs-green: #3ecf8e;
    --rs-amber: #e3c35a;
    --rs-ink: #140c02;
}

/* Georgia sized to DM Serif Display's width, so headings barely reflow when the web font arrives */
@font-face { font-family: 'DM Serif Fallback'; src: local('Georgia'); size-adjust: 97%; }
.res { --serif: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif; color: var(--rs-text); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.res-article { max-width: 1104px; margin: 0 auto; padding: 36px 32px 64px; }
.res-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.res-sep { margin: 0 0.5em; }
.res a:focus-visible, .res button:focus-visible, .res input:focus-visible, .res summary:focus-visible, .res [tabindex]:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.res [id] { scroll-margin-top: 24px; }
/* styles.css styles every <header> as the sticky site bar and every nav link as a small uppercase
   header link; these are the page's own */
.res-head { position: static; z-index: auto; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; transform: none; transition: none; }
.res nav a { font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; white-space: normal; }

/* ── Head ── */
.res-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 9px; font-size: 13px; color: var(--rs-dim); }
.res-crumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--rs-muted); text-decoration: none; }
.res-crumb a:hover { color: var(--orange); }
.res-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 18px; }
.res-tag { padding: 5px 10px; background: var(--rs-tint); border: 1px solid var(--rs-tint-line); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.res-tag--type { background: transparent; border-color: var(--rs-outline); color: var(--rs-soft); }
.res-head h1 { max-width: 900px; font-family: var(--serif); font-weight: 400; font-size: 80px; line-height: 0.98; color: var(--rs-text); overflow-wrap: break-word; }
.res-deck { max-width: 46ch; margin-top: 20px; font-size: 22px; line-height: 1.5; color: var(--rs-soft); }
.res-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rs-dim); }
.res-meta > span:not(:last-child)::after { content: "\00B7"; content: "\00B7" / ""; margin: 0 0.7em; color: var(--rs-dim); }
/* Review freshness: green within 100 days of the review, amber after (js/resource.js keeps it current) */
.res-fresh { color: var(--rs-green); }
.res-fresh--stale { color: var(--rs-amber); }
.res-fresh-dot { margin-right: 0.45em; }

/* ── Body text ── */
.res-body { padding-top: 32px; }
.res-body > :first-child { margin-top: 0; }
.res-body h2 { margin: 64px 0 18px; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.12; color: var(--rs-text); }
.res-body h3 { margin: 30px 0 10px; font-family: var(--sans); font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--rs-text); }
.res-body p { margin: 0 0 20px; font-size: 18px; line-height: 1.72; color: var(--rs-body); }
.res-body strong { font-weight: 700; color: var(--rs-text); }
.res-body a { color: var(--orange); text-decoration: underline; text-decoration-color: rgba(247, 147, 26, 0.45); text-underline-offset: 3px; }
.res-body a:hover { color: #ffb257; text-decoration-color: currentColor; }
.res-body a[href^="/glossary"] { color: var(--rs-text); text-decoration-style: dotted; text-decoration-color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.res-body a[href^="/glossary"]:hover { color: var(--orange); }
.res-body ul, .res-body ol { margin: 0 0 22px; padding-left: 1.4em; font-size: 18px; line-height: 1.72; color: var(--rs-body); }
.res-body li { margin-bottom: 8px; }
.res-body li::marker { color: var(--orange); }
.res-closing { margin-top: 28px; font-size: 15px !important; line-height: 1.6 !important; color: var(--rs-muted) !important; }

/* Pull quote */
.res-body .pull-quote { position: relative; margin: 34px 0; padding: 0 0 0 44px; }
.res-body .pull-quote::before { content: "\201C"; content: "\201C" / ""; position: absolute; left: 0; top: -14px; font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--orange); }
.res-body .pull-quote p { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.3; color: var(--rs-text); }
.res-body .pull-quote p::after { content: "\201D"; content: "\201D" / ""; color: var(--orange); }

/* A small card for a "read this next" prompt inside the page */
.res-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 36px 0; padding: 22px 24px; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 14px; }
.res-cta h3 { margin: 0; font-size: 19px; }
.res-body .res-cta p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--rs-muted); }

/* ── Buttons ── */
.res .res-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border: 1px solid var(--orange); border-radius: 10px; background: var(--orange); color: var(--rs-ink); font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; }
.res .res-btn:hover { background: #ffa53d; border-color: #ffa53d; color: var(--rs-ink); }
.res .res-btn--line { background: transparent; border-color: var(--rs-outline); color: var(--rs-text); font-weight: 600; }
.res .res-btn--line:hover { background: transparent; border-color: var(--orange); color: var(--rs-text); }

/* ── Notice: a reusable alert (.resource-alert) for security notices and corrections ── */
.resource-alert { margin: 0 0 8px; background: var(--rs-alert); border: 1px solid var(--rs-alert-line); border-radius: 14px; }
.resource-alert > summary { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; }
.resource-alert > summary::-webkit-details-marker { display: none; }
.resource-alert-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.resource-alert-head { flex: 1; min-width: 0; }
.resource-alert-label { display: block; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.resource-alert-title { display: block; margin-top: 4px; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--rs-text); }
.resource-alert-toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; padding-top: 2px; font-size: 13px; white-space: nowrap; color: var(--orange); }
.resource-alert-mark { display: inline-block; width: 12px; text-align: center; font-size: 16px; line-height: 1; }
.resource-alert-mark::before { content: "+"; }
.resource-alert[open] .resource-alert-mark::before { content: "\2212"; }
.resource-alert-body { padding: 0 20px 20px 56px; }
.resource-alert .resource-alert-body p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--rs-soft); }
.resource-alert .resource-alert-body p:last-child { margin-bottom: 0; }
.resource-alert-body strong { color: var(--rs-text); }
.resource-alert-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; }
.resource-alert-card { padding: 14px; background: var(--rs-alert-card); border-radius: 10px; font-size: 14px; line-height: 1.55; color: var(--rs-list); }
.resource-alert-card strong { display: block; margin-bottom: 4px; }
.resource-alert-card--yes strong { color: var(--orange); }
.resource-alert-card--no strong { color: var(--rs-green); }

/* ── Picker: "Which wallet is right for you?" ── */
.res-pick h2 { margin-top: 48px; margin-bottom: 6px; }
.res-body .res-pick-sub { margin: 0 0 18px; font-size: 16px; color: var(--rs-muted); }
.res-body .res-pick-note { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--rs-dim); }
.res-body .res-pick-after { margin: 14px 0 0; font-size: 16px; line-height: 1.6; }
/* Without JavaScript the quick picks are a plain list of links */
.res-picker { display: none; }
.js .res-picker { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.js .res-picks { display: none; }
.res-body .res-picks { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rs-line); }
.res-picks li { margin: 0; border-bottom: 1px solid var(--rs-line); }
.res-body .res-picks a { display: block; padding: 12px 0; font-size: 16px; line-height: 1.5; color: var(--rs-soft); text-decoration: none; }
.res-body .res-picks a strong { color: var(--rs-text); }
.res-body .res-picks a:hover { color: var(--rs-text); }
.res-picker-opts { display: flex; flex-direction: column; gap: 10px; }
.res-opt { display: flex; align-items: center; min-height: 54px; padding: 14px 18px; border: 1px solid #2a2724; border-radius: 14px; background: var(--rs-card); color: var(--rs-text); font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.res-opt:hover { border-color: var(--rs-outline); }
.res-opt[aria-pressed="true"] { border-color: var(--orange); background: var(--rs-alert); }
.res-result { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; background: var(--rs-tint); border: 1px solid var(--rs-alert-line); border-radius: 18px; }
.res-result-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.res-result-name { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--rs-text); }
.res-result-detail { font-size: 17px; line-height: 1.5; color: var(--rs-list); }
.res-result-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ── Comparison table ── */
.res-compare { margin: 0; }
.res-compare-t { margin-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rs-muted); }
.res-table { overflow-x: auto; }
.res-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.res-table th, .res-table td { padding: 13px 14px 13px 0; text-align: left; vertical-align: top; }
.res-table th:last-child, .res-table td:last-child { padding-right: 0; }
.res-table thead th { padding-top: 12px; padding-bottom: 12px; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rs-muted); }
.res-table tbody th, .res-table tbody td { border-top: 1px solid var(--rs-line); }
.res-table tbody tr:last-child th, .res-table tbody tr:last-child td { border-bottom: 1px solid var(--rs-line); }
.res-table tbody th a { font-weight: 700; color: var(--rs-text); text-decoration: none; }
.res-table tbody th a:hover { color: var(--orange); }
.res-table tbody td { color: var(--rs-soft); }
.res-table .res-num { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--rs-text); }
.res-mark { display: inline-flex; align-items: center; gap: 6px; }
.res-mark svg { flex: none; width: 16px; height: 16px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.res-mark--yes svg { stroke: var(--rs-green); }
.res-mark--part svg { stroke: var(--rs-amber); }

/* ── Review cards ── */
.res-card { margin-top: 22px; padding: 28px; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 18px; }
.res-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.res-body .res-card-badge { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; color: var(--orange); }
.res-body .res-card-name { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--rs-text); }
.res-body .res-card-price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.res-card-amt { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--rs-text); }
.res-card-type { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rs-muted); }
.res-card-body { margin-top: 16px; }
.res-card-body p { font-size: 17px; line-height: 1.7; }
.res-card-body h3 { margin: 22px 0 6px; font-size: 18px; }
.res-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--rs-line); border-bottom: 1px solid var(--rs-line); }
.res-body .res-pc-k { margin: 0 0 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.res-pros .res-pc-k { color: var(--rs-green); }
.res-cons .res-pc-k { color: var(--orange); }
.res-body .res-pc ul { list-style: none; margin: 0; padding: 0; }
.res-body .res-pc li { display: flex; gap: 10px; margin: 0; padding: 5px 0; font-size: 15px; line-height: 1.45; color: var(--rs-list); }
.res-pc li::before { flex: none; width: 10px; font-weight: 700; }
.res-pros li::before { content: "+"; content: "+" / ""; color: var(--rs-green); }
.res-cons li::before { content: "\2212"; content: "\2212" / ""; color: var(--orange); }
.res-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.res-card-meta { flex: 1 1 360px; min-width: 0; }
.res-body .res-card-meta p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--rs-soft); }
.res-body .res-card-meta p + p { margin-top: 4px; }
.res-card-act { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.res-aff { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rs-dim); }

/* ── Wallets we considered but didn't recommend ── */
.res-body .res-nots { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--rs-line); }
.res-body .res-nots li { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 6px 24px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rs-line); }
.res-not-name { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--rs-text); }
.res-not-name::before { content: "\00D7"; content: "\00D7" / ""; color: var(--orange); }
.res-not-why { font-size: 15px; line-height: 1.55; color: var(--rs-soft); }
.res-body .res-not-why a { white-space: nowrap; }
.res-not { border-top: 1px solid var(--rs-line); }
.res-not:last-of-type { border-bottom: 1px solid var(--rs-line); }

/* Disclosures: FAQ and the full reasoning above */
.res-dis > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 0; cursor: pointer; list-style: none; }
.res-dis > summary::-webkit-details-marker { display: none; }
.res-body .res-dis > summary h3 { margin: 0; font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--rs-text); }
.res-dis-mark::before { content: "+"; font-size: 20px; color: var(--orange); }
.res-dis[open] > summary .res-dis-mark::before { content: "\2212"; }
.res-dis-a { padding-bottom: 6px; }
.res-dis-a p { font-size: 17px; line-height: 1.7; }
.res-faq { border-top: 1px solid var(--rs-line); }
.res-faq:last-of-type { border-bottom: 1px solid var(--rs-line); }

/* ── Next steps ── */
.res-next { padding-top: 52px; }
.res-next h2 { margin: 0 0 14px; font-size: 28px; }
.res-body .res-next-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.res-body .res-next-list li { margin: 0; }
.res-body .res-next-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--rs-line); border-radius: 14px; color: var(--rs-text); text-decoration: none; }
.res-body .res-next-card:hover { border-color: var(--rs-outline); color: var(--rs-text); }
.res-next-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rs-muted); }
.res-next-t { font-family: var(--serif); font-size: 22px; line-height: 1.15; }

/* ── Signup band (Substack; subscribe-bar.js handles the submit) ── */
.res-band { background: var(--rs-tint); border-top: 1px solid var(--rs-tint-line); border-bottom: 1px solid var(--rs-tint-line); }
.res-band-in { max-width: 1240px; margin: 0 auto; padding: 44px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
.res-band-h { flex: 1 1 420px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--rs-text); }
.res-band-h em { color: var(--orange); }
.res-form.bw-subscribe-form { flex: 1 1 420px; display: flex; gap: 10px; width: auto; }
.res-input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; background: var(--rs-input); color: var(--rs-text); border: 1px solid var(--rs-field); border-radius: 10px; font-family: var(--sans); font-size: 16px; }
.res-input::placeholder { color: #8f897f; opacity: 1; }
.res-input:focus { border-color: var(--orange); }
.res-form-btn.bw-subscribe-btn { height: 52px; padding: 0 22px; background: var(--orange); color: var(--rs-ink); border: 0; border-radius: 10px; box-shadow: none; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.res-form-btn.bw-subscribe-btn:hover { background: #ffa53d; transform: none; box-shadow: none; }
.res-reviewed { max-width: 1104px; margin: 0 auto; padding: 22px 32px 0; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--rs-dim); }

/* Touch screens: 44px targets for inline lists */
@media (pointer: coarse) {
    .res-crumb a { min-height: 44px; }
    .res-body .res-picks a { padding: 14px 0; }
}

/* ── Tablets and phones ── */
@media (max-width: 860px) {
    .js .res-picker { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    /* The situations scroll sideways in one row above the result */
    .res-picker-opts { flex-direction: row; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
    .res-picker-opts::-webkit-scrollbar { display: none; }
    .res-opt { flex: none; width: 196px; min-height: 64px; padding: 12px 14px; font-size: 14px; }
    .res-body .res-nots li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 700px) {
    .res-table table { min-width: 640px; }
}

@media (max-width: 640px) {
    .res { font-size: 17px; }
    .res-article { padding: 20px 16px 48px; }
    .res-tags { gap: 6px; margin: 22px 0 12px; }
    .res-tag { padding: 4px 9px; font-size: 10px; letter-spacing: 0.1em; }
    .res-head h1 { font-size: clamp(36px, 12vw, 48px); line-height: 1.02; }
    .res-deck { margin-top: 14px; font-size: 18px; }
    .res-meta { margin-top: 12px; font-size: 11px; }
    .res-body { padding-top: 24px; }
    .res-body h2 { margin-top: 48px; font-size: 27px; }
    .res-body h3 { font-size: 19px; }
    .res-body p, .res-body ul, .res-body ol { font-size: 17px; }
    .res-body .pull-quote p { font-size: 23px; }
    .resource-alert > summary { gap: 10px; padding: 16px; }
    .resource-alert-body { padding: 0 16px 16px; }
    .resource-alert-cards { grid-template-columns: minmax(0, 1fr); }
    .res-result { padding: 20px; }
    .res-result-name { font-size: 36px; }
    .res-result-go .res-btn { flex: 1 1 100%; }
    .res-card { padding: 20px 18px; border-radius: 16px; }
    .res-body .res-card-name { font-size: 28px; }
    .res-card-amt { font-size: 22px; }
    .res-pc { grid-template-columns: minmax(0, 1fr); }
    .res-card-act { width: 100%; }
    .res-next-list { grid-template-columns: minmax(0, 1fr) !important; }
    .res-cta { padding: 18px; }
    .res-band-in { padding: 26px 16px; gap: 10px; }
    .res-band-h { flex-basis: 100%; font-size: 22px; line-height: 1.2; }
    .res-form.bw-subscribe-form { flex-basis: 100%; }
    .res-input, .res-form-btn.bw-subscribe-btn { height: 50px; }
    .res-reviewed { padding: 18px 16px 0; font-size: 11px; }
}
