/* citedpicks — shared styles
 * Dark editorial · Inter + JetBrains Mono · mint as the only accent.
 * Tokens at the top, then base, then components.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ──────────────────────────────────────────────────────────────
 * Tokens
 * ────────────────────────────────────────────────────────────── */
:root {
  /* surface */
  --bg:          #0d0e10;
  --bg-soft:     #16181b;
  --bg-elev:     #1c1f23;
  --bg-hover:    #23262b;

  /* ink */
  --fg:          #f0efeb;
  --fg-muted:    #9a9a92;
  --fg-dim:      #62625a;

  /* mint */
  --mint:        #79f2c0;
  --mint-deep:   #2dd99c;
  --mint-fog:    rgba(121, 242, 192, 0.08);
  --mint-line:   rgba(121, 242, 192, 0.25);

  /* lines */
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --shell:    1080px;
  --shell-pad: 28px;
}

/* ──────────────────────────────────────────────────────────────
 * Base
 * ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11"; /* Inter alternates */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--mint); }

ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

::selection { background: var(--mint); color: var(--bg); }

/* ──────────────────────────────────────────────────────────────
 * Status bar — fixed top, Unix-tool tone
 * ────────────────────────────────────────────────────────────── */
.cp-status {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 14, 16, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.cp-status-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px var(--shell-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
}
.cp-status-left,
.cp-status-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cp-status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(45, 217, 156, 0.18);
  margin-right: 8px;
  position: relative;
  top: -1px;
}
.cp-status .sep {
  color: var(--fg-dim);
  margin: 0 2px;
}
.cp-status a:hover { color: var(--mint); }
@media (max-width: 720px) {
  .cp-status-right .hide-sm { display: none; }
}

/* ──────────────────────────────────────────────────────────────
 * Shell + Header
 * ────────────────────────────────────────────────────────────── */
.cp-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.cp-header {
  padding: 32px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cp-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.cp-logo svg.mark { display: block; flex: 0 0 auto; }
.cp-logo .wordmark {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.cp-logo:hover { color: var(--fg); } /* logo doesn't accent on hover */

.cp-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}
.cp-nav a:hover { color: var(--fg); }
@media (max-width: 640px) {
  .cp-nav { gap: 18px; font-size: 11px; }
  .cp-nav .hide-xs { display: none; }
}

/* ──────────────────────────────────────────────────────────────
 * Breadcrumb
 * ────────────────────────────────────────────────────────────── */
.cp-breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  padding: 8px 0 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cp-breadcrumb a { color: var(--fg-muted); }
.cp-breadcrumb a:hover { color: var(--mint); }
.cp-breadcrumb .sep::before {
  content: '/';
  color: var(--fg-dim);
}

/* ──────────────────────────────────────────────────────────────
 * Hero / page header
 * ────────────────────────────────────────────────────────────── */
.cp-hero {
  padding: 56px 0 32px;
  max-width: 880px;
}
.cp-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 22px;
}
.cp-hero .eyebrow .bar {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--mint);
}
.cp-hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--fg);
  max-width: 20ch;
  text-wrap: balance;
}
.cp-hero .tagline {
  margin-top: 22px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

/* compact page header (category + comparison) */
.cp-pageheader {
  padding: 24px 0 32px;
}
.cp-pageheader h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 24ch;
  text-wrap: balance;
}
.cp-pageheader .tagline {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 60ch;
}

/* ──────────────────────────────────────────────────────────────
 * Stat strip (homepage hero meta)
 * ────────────────────────────────────────────────────────────── */
.cp-stats {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  align-items: flex-end;
  margin: 64px 0 80px;
  flex-wrap: wrap;
}
.cp-stat .num {
  font-family: var(--mono);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 500;
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.cp-stat .num .accent { color: var(--mint); }
.cp-stat .lbl {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ──────────────────────────────────────────────────────────────
 * Section heads
 * ────────────────────────────────────────────────────────────── */
.cp-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.cp-section:first-of-type { border-top: 0; padding-top: 0; }

.cp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.cp-section-head h2 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cp-section-head h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 1px;
  transform: rotate(45deg);
}
.cp-section-head .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────────────────────────
 * Vertical / guide list — homepage + category
 * ────────────────────────────────────────────────────────────── */
.cp-list {
  display: flex;
  flex-direction: column;
}
.cp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s, padding 0.15s;
}
.cp-row:hover {
  background: linear-gradient(90deg, transparent 0%, var(--bg-soft) 20%, var(--bg-soft) 80%, transparent 100%);
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
}
.cp-row .left {
  flex: 1;
  min-width: 0;
}
.cp-row .title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cp-row .meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.cp-row .right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  flex-shrink: 0;
}
.cp-row .arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-muted);
  transition: transform 0.15s, color 0.15s;
}
.cp-row:hover .arrow { transform: translateX(4px); color: var(--mint); }

.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 500;
}
.cp-badge-verified {
  color: var(--mint);
  background: var(--mint-fog);
  border: 1px solid var(--mint-line);
}
.cp-badge-verified::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
}
.cp-badge-sponsored {
  color: var(--fg-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

/* ──────────────────────────────────────────────────────────────
 * Vendor cards (category page)
 * ────────────────────────────────────────────────────────────── */
.cp-vendor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .cp-vendor-grid { grid-template-columns: 1fr; }
}
.cp-vendor-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-soft);
  transition: border-color 0.15s, background 0.15s;
}
.cp-vendor-card:hover {
  border-color: var(--mint-line);
  background: var(--bg-elev);
}
/* Static variant for unsponsored vendors — informational card, not a CTA.
   Suppresses the hover affordance so readers don't expect a click. */
.cp-vendor-card.cp-vendor-card-static {
  cursor: default;
}
.cp-vendor-card.cp-vendor-card-static:hover {
  border-color: var(--line);
  background: var(--bg-soft);
}
.cp-vendor-card .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.cp-vendor-card .name {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.cp-vendor-card .price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mint);
  font-weight: 500;
  font-feature-settings: 'tnum';
}
.cp-vendor-card .blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

/* ──────────────────────────────────────────────────────────────
 * Chip / feature list
 * ────────────────────────────────────────────────────────────── */
.cp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.cp-chip::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--mint);
  border-radius: 50%;
}

/* ──────────────────────────────────────────────────────────────
 * Comparison table
 * ────────────────────────────────────────────────────────────── */
.cp-table-wrap {
  overflow-x: auto;
  margin: 0 calc(-1 * var(--shell-pad));
  padding: 0 var(--shell-pad);
}
.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  min-width: 760px;
}
.cp-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-align: left;
  vertical-align: bottom;
  padding: 0 18px 16px 0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.cp-table thead th.vendor-col {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fg);
  padding-bottom: 12px;
  min-width: 160px;
  white-space: normal;
}
.cp-table thead th.vendor-col .sub {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--mint);
  margin-top: 4px;
  letter-spacing: 0;
  font-feature-settings: 'tnum';
}
.cp-table tbody th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-align: left;
  vertical-align: top;
  padding: 18px 24px 18px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cp-table tbody td {
  vertical-align: top;
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.cp-table tbody td.pick {
  color: var(--fg);
  background: var(--mint-fog);
  border-left: 2px solid var(--mint);
  padding-left: 16px;
}
.cp-table tbody td .price {
  font-family: var(--mono);
  font-feature-settings: 'tnum';
  color: var(--mint);
  font-weight: 500;
}
.cp-table .no-data {
  color: var(--fg-dim);
  font-style: italic;
}
.cp-table .no-data::before {
  content: '— ';
}
.cp-table sup.cite {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--mint);
  margin-left: 3px;
  vertical-align: super;
  line-height: 0;
}
.cp-table sup.cite a { color: inherit; }
.cp-table sup.cite a:hover { color: var(--fg); }

/* compact vendor cell — affiliate badge */
.cp-table .vendor-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cp-table .vendor-link strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ──────────────────────────────────────────────────────────────
 * Narrative blocks under the table
 * ────────────────────────────────────────────────────────────── */
.cp-narrative {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.cp-narrative h3 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cp-narrative p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-muted);
  text-wrap: pretty;
  max-width: 68ch;
}
.cp-narrative p + p { margin-top: 14px; }

/* ──────────────────────────────────────────────────────────────
 * CTA grid
 * ────────────────────────────────────────────────────────────── */
.cp-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.cp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.cp-cta:hover {
  border-color: var(--mint-line);
  background: var(--bg-elev);
  color: var(--fg);
}
.cp-cta .name {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.cp-cta .sub {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  margin-top: 4px;
}
.cp-cta .arrow {
  font-family: var(--mono);
  color: var(--fg-muted);
  transition: transform 0.15s, color 0.15s;
}
.cp-cta:hover .arrow { transform: translateX(4px); color: var(--mint); }

/* ──────────────────────────────────────────────────────────────
 * Citations
 * ────────────────────────────────────────────────────────────── */
.cp-citations {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.cp-citations summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp-citations summary::-webkit-details-marker { display: none; }
.cp-citations summary::before {
  content: '▸';
  color: var(--mint);
  transition: transform 0.15s;
  display: inline-block;
}
.cp-citations[open] summary::before { transform: rotate(90deg); }
.cp-citations ol {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.cp-citations li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.cp-citations li:first-child { border-top: 0; }
.cp-citations .cite-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint);
  font-weight: 500;
}
.cp-citations a { color: var(--fg-muted); border-bottom: 1px dotted var(--line-strong); }
.cp-citations a:hover { color: var(--mint); border-bottom-color: var(--mint); }

/* ──────────────────────────────────────────────────────────────
 * Methodology / callout
 * ────────────────────────────────────────────────────────────── */
.cp-callout {
  margin-top: 56px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  position: relative;
}
.cp-callout .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cp-callout .label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
}
.cp-callout p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 68ch;
}
.cp-callout p + p { margin-top: 14px; }
.cp-callout .freshness {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
}
.cp-callout .freshness strong {
  color: var(--fg-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cp-callout .freshness time { color: var(--fg); }

/* ──────────────────────────────────────────────────────────────
 * Footer
 * ────────────────────────────────────────────────────────────── */
.cp-footer {
  margin-top: 100px;
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-dim);
}
.cp-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cp-footer-top .cp-logo .wordmark { font-size: 18px; }
.cp-footer-disclosure {
  max-width: 70ch;
  color: var(--fg-muted);
}
.cp-footer-disclosure a { color: var(--mint); }
.cp-footer-disclosure p + p { margin-top: 10px; }
.cp-footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 14px;
}

/* ──────────────────────────────────────────────────────────────
 * Utilities
 * ────────────────────────────────────────────────────────────── */
.cp-hl { color: var(--fg); }
.cp-mint { color: var(--mint); }
.cp-mono { font-family: var(--mono); font-feature-settings: 'tnum'; }

/* hide visually but keep for AT */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
