/* =========================================================================
   Cigarista — /compare pages (sizes, lines, brands side by side)
   Built on the production tokens (tokens.css) + the shared Nav/Footer from
   styles.css. Every selector is `cmp-`-prefixed and scoped under
   `.compare-shell`; this sheet deliberately does NOT depend on catalog.css or
   guides.css, so those can be restyled without touching these pages.
   Two accent tones run through every page: A = gold, B = cream.
   ========================================================================= */

.compare-shell {
  --cmp-a: var(--gold-yellow);
  --cmp-b: #efe6d6;
  --cmp-hairline: rgba(255, 255, 255, 0.07);
  --cmp-gold-line: rgba(242, 191, 102, 0.2);
  --cmp-max: 1060px;
  background:
    radial-gradient(1200px 520px at 15% -8%, rgba(242, 191, 102, 0.1), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(140, 80, 30, 0.14), transparent 65%),
    linear-gradient(180deg, #1a0e03 0%, #070402 42%, #000 100%);
  min-height: 100vh;
  color: var(--text-primary);
  font: 400 15px/1.6 var(--font-sans);
}

/* The landing nav is fixed + transparent over its hero; these pages have no
   hero, so it becomes a solid sticky bar that takes up flow space. */
.compare-shell .nav {
  position: sticky;
  background: rgba(10, 6, 0, 0.9);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(242, 191, 102, 0.08);
}

/* iOS Safari 26 colours the status-bar strip from a fixed/sticky element
   touching the top edge — but only when that element is opaque with no
   backdrop-filter. Translucent + blurred, it was skipped and page content
   showed through above the nav. So on touch/narrow screens the bar is solid. */
@media (max-width: 880px) {
  .compare-shell .nav { background: #0a0600; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@supports (-webkit-touch-callout: none) {
  .compare-shell .nav { background: #0a0600; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.compare-shell .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.cmp-tone-a { color: var(--cmp-a); }
.cmp-tone-b { color: var(--cmp-b); }

.cmp-container { max-width: var(--cmp-max); margin: 0 auto; padding: 0 24px 40px; }

/* ── Crumbs + hero ───────────────────────────────────────────────────────── */
.cmp-crumbs { padding: 22px 0 0; font-size: 13px; color: var(--text-tan); }
.cmp-crumbs a { color: var(--text-tan); text-decoration: none; }
.cmp-crumbs a:hover { color: var(--gold-yellow); }
.cmp-crumbs .sep { margin: 0 8px; color: #5a4632; }
.cmp-crumbs .here { color: var(--text-offwhite); }

.cmp-hero { padding: 34px 0 14px; max-width: 760px; }
.cmp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 11px/14px var(--font-sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-tan); margin: 0;
}
.cmp-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--cmp-gold-line); }
.cmp-h1 {
  font: 400 clamp(46px, 8vw, 84px)/0.95 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-cream);
  margin: 16px 0 18px;
  text-wrap: balance;
}
.cmp-h1-a { color: var(--cmp-a); }
.cmp-h1-b { color: var(--cmp-b); }
.cmp-vs {
  display: inline-block;
  font: italic 600 0.42em/1 'Cormorant Garamond', Georgia, serif;
  text-transform: lowercase;
  color: var(--text-tan);
  vertical-align: 0.38em;
  margin: 0 0.12em;
}
.cmp-lead {
  font-size: clamp(17px, 2.1vw, 19px);
  line-height: 1.55;
  color: var(--text-offwhite);
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 2px solid var(--gold-yellow);
}
.cmp-intro { color: var(--text-tan); margin: 0 0 12px; max-width: 66ch; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.cmp-section { padding: 34px 0; border-top: 1px solid var(--cmp-hairline); }
.cmp-section-first { border-top: 0; padding-top: 18px; }
.cmp-h2 {
  font: 600 clamp(21px, 2.6vw, 25px)/1.25 var(--font-sans);
  color: var(--gold-warm);
  margin: 0 0 8px;
}
.cmp-sub { color: var(--text-tan); font-size: 14px; margin: 0 0 20px; max-width: 64ch; }
.cmp-prose { max-width: 68ch; }
.cmp-prose p { margin: 0 0 14px; color: var(--text-offwhite); }
.cmp-note { font-size: 13px; color: var(--text-tan); margin: 16px 0 0; max-width: 72ch; }
.cmp-note a, .cmp-prose a { color: var(--gold-yellow); }
.cmp-inset { margin-top: 6px; }

/* ── Size pair chart ─────────────────────────────────────────────────────── */
.cmp-pair {
  margin: 0;
  padding: 28px 28px 22px;
  border-radius: 18px;
  border: var(--border-gold-soft);
  background:
    radial-gradient(700px 240px at 20% 0%, rgba(242, 191, 102, 0.08), transparent 70%),
    linear-gradient(180deg, #160d05 0%, #0c0703 100%);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.cmp-pair-rows { position: relative; display: grid; gap: 22px; }
.cmp-pair-guide {
  position: absolute; top: 0; bottom: -10px; width: 0;
  border-left: 1px dashed rgba(239, 230, 214, 0.28);
  pointer-events: none;
}
.cmp-pair-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.cmp-pair-name { font: 400 26px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.cmp-pair-dims { font: 500 13px/1.3 var(--font-mono); color: var(--text-offwhite); }
.cmp-pair-metric { color: var(--text-tan); }
.cmp-pair-track { position: relative; }
.cmp-pair-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.cmp-pair-outline.cmp-tone-a { stroke: var(--cmp-a); }
.cmp-pair-outline.cmp-tone-b { stroke: var(--cmp-b); stroke-opacity: 0.85; }
.cmp-pair-bracket {
  position: absolute; top: -10px; height: 8px;
  border: 1px solid rgba(239, 230, 214, 0.45); border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
.cmp-pair-bracket span {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font: 600 12px/1 var(--font-mono); color: var(--cmp-b);
  background: #120a04; padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.cmp-ruler { position: relative; height: 30px; margin-top: 14px; border-top: 1px solid rgba(239, 230, 214, 0.2); }
.cmp-tick { position: absolute; top: 0; width: 1px; height: 4px; background: rgba(239, 230, 214, 0.22); }
.cmp-tick.major { height: 7px; background: rgba(239, 230, 214, 0.38); }
.cmp-tick-label {
  position: absolute; top: 10px; left: 0; transform: translateX(-50%);
  font: 500 11px/1 var(--font-mono); color: #8a7a5e;
}
.cmp-pair-caption { margin-top: 6px; font: 500 11px/1.5 var(--font-mono); color: #7d6e55; letter-spacing: 0.02em; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.cmp-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--cmp-hairline); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--cmp-hairline); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th {
  font: 400 20px/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(242, 191, 102, 0.05);
}
.cmp-table tbody th { font-weight: 600; color: var(--text-tan); font-size: 13px; width: 30%; }
.cmp-table td { color: var(--text-offwhite); font-variant-numeric: tabular-nums; }

/* ── Line duel ───────────────────────────────────────────────────────────── */
.cmp-duel { border-radius: 16px; border: var(--border-gold-soft); overflow: hidden; background: var(--brown-card); }
.cmp-duel-heads, .cmp-duel-row {
  display: grid; grid-template-columns: minmax(110px, 0.8fr) 1fr 1fr; gap: 16px;
  padding: 14px 20px; align-items: center; position: relative;
}
.cmp-duel-heads { background: linear-gradient(160deg, #2a1808 0%, #15090a 80%); border-bottom: 1px solid var(--cmp-gold-line); }
.cmp-duel-head {
  font: 400 clamp(19px, 2.4vw, 24px)/1.05 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
}
.cmp-duel-head:hover { text-decoration: underline; text-underline-offset: 4px; }
.cmp-duel-row { border-bottom: 1px solid var(--cmp-hairline); }
.cmp-duel-row:last-child { border-bottom: 0; }
.cmp-duel-label { font-size: 12.5px; font-weight: 600; color: var(--text-tan); text-transform: uppercase; letter-spacing: 0.08em; }
.cmp-duel-val { color: var(--text-offwhite); }
.cmp-duel-row:not(.is-same) .cmp-duel-val { color: var(--text-cream); font-weight: 600; }
.cmp-duel-row.is-same .cmp-duel-val { color: var(--text-tan); }
.cmp-duel-same {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font: 700 9.5px/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: #8a7a5e; border: 1px solid rgba(239, 230, 214, 0.14); border-radius: 999px; padding: 4px 8px;
}

/* ── Profiles (brands / origin split) ─────────────────────────────────────── */
.cmp-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-profile {
  border-radius: 16px; padding: 22px 22px 20px;
  background: var(--wash-gold-soft), var(--brown-card);
  border: 1px solid var(--cmp-hairline);
  border-top: 2px solid var(--cmp-a);
}
.cmp-profile-b { border-top-color: var(--cmp-b); }
.cmp-profile-head h3 { font: 400 30px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.cmp-profile-head p { color: var(--text-tan); font-size: 13px; margin: 6px 0 0; }
.cmp-profile-stat { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.cmp-profile-stat .num { font: 400 46px/1 var(--font-display); color: var(--text-cream); }
.cmp-profile-stat .lbl { color: var(--text-tan); font-size: 13px; }
.cmp-profile-block { margin-top: 18px; }
.cmp-profile-k {
  font: 700 10.5px/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: #8a7a5e; margin-bottom: 8px;
}
.cmp-strength-strip { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; margin-bottom: 8px; }
.cmp-strength-strip .seg { flex-basis: 0; min-width: 4px; }
.cmp-strength-strip .s0 { background: #d9c7a0; }
.cmp-strength-strip .s1 { background: #c9a76a; }
.cmp-strength-strip .s2 { background: #b98a45; }
.cmp-strength-strip .s3 { background: #8f5f2a; }
.cmp-strength-strip .s4 { background: #5e3815; }
.cmp-tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cmp-tally li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 4px 0; border-bottom: 1px dashed var(--cmp-hairline); }
.cmp-tally li:last-child { border-bottom: 0; }
.cmp-tally .n { color: var(--text-tan); font-variant-numeric: tabular-nums; }
.cmp-line-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.cmp-line-list li { padding: 7px 0; border-bottom: 1px solid var(--cmp-hairline); }
.cmp-line-list a { color: var(--text-cream); text-decoration: none; font-weight: 600; font-size: 14px; }
.cmp-line-list a:hover { color: var(--gold-yellow); }
.cmp-line-list .meta { display: block; font-size: 12px; color: var(--text-tan); }
.cmp-profile-link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--gold-yellow); text-decoration: none; }

/* ── Picks ───────────────────────────────────────────────────────────────── */
.cmp-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp-pick {
  border-radius: 16px; padding: 22px 24px;
  background: var(--brown-card); border: 1px solid var(--cmp-hairline);
  position: relative; overflow: hidden;
}
.cmp-pick::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cmp-a); }
.cmp-pick-b::before { background: var(--cmp-b); }
.cmp-pick-k { font: 400 22px/1.1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 8px; color: var(--cmp-a); }
.cmp-pick-b .cmp-pick-k { color: var(--cmp-b); }
.cmp-pick p:last-child { margin: 0; color: var(--text-offwhite); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.cmp-faq { border-bottom: 1px solid var(--cmp-hairline); padding: 16px 0; max-width: 76ch; }
.cmp-faq:last-child { border-bottom: 0; }
.cmp-faq h3 { font: 600 16px/1.4 var(--font-sans); color: var(--text-cream); margin: 0 0 6px; }
.cmp-faq p { margin: 0; color: var(--text-tan); }

/* ── Related ─────────────────────────────────────────────────────────────── */
.cmp-more { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cmp-link-list { list-style: none; margin: 10px 0 0; padding: 0; }
.cmp-link-list li { border-bottom: 1px solid var(--cmp-hairline); }
.cmp-link-list a {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
  color: var(--text-offwhite); text-decoration: none; font-size: 14.5px;
}
.cmp-link-list a::after { content: '→'; color: var(--gold-yellow); transition: transform var(--dur-fast) var(--ease-smooth); }
.cmp-link-list a:hover { color: var(--gold-yellow); }
.cmp-link-list a:hover::after { transform: translateX(3px); }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cmp-cta {
  background: linear-gradient(160deg, #2a1808 0%, #15090a 70%);
  border: var(--border-gold-soft); border-radius: 18px;
  padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cmp-cta h3 { font: 700 21px/1.3 var(--font-sans); color: var(--gold-warm); margin: 0 0 6px; }
.cmp-cta p { color: var(--text-tan); font-size: 14px; max-width: 54ch; margin: 0; }
.cmp-cta-link {
  display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px;
  background: var(--gold-yellow); color: #1a0e03; font-weight: 700; font-size: 14.5px; text-decoration: none;
  white-space: nowrap; box-shadow: 0 10px 30px -12px rgba(242, 191, 102, 0.6);
}
.cmp-cta-link:hover { background: var(--gold-warm); }

/* ── Index ───────────────────────────────────────────────────────────────── */
.cmp-index-hero { max-width: 720px; }
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cmp-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 20px 18px; border-radius: 16px; text-decoration: none;
  background: var(--brown-card); border: 1px solid var(--cmp-hairline);
  transition: border-color var(--dur-base) var(--ease-smooth), transform var(--dur-base) var(--ease-smooth);
}
.cmp-card:hover { border-color: var(--cmp-gold-line); transform: translateY(-2px); }
.cmp-card-kind { font: 700 10px/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: #8a7a5e; }
.cmp-card-title { font: 400 25px/1.05 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-cream); }
.cmp-card-meta { font: 500 12px/1.3 var(--font-mono); color: var(--text-tan); }
.cmp-mini { width: 100%; height: 36px; margin-bottom: 10px; overflow: visible; }
.cmp-mini-a { fill: rgba(242, 191, 102, 0.22); stroke: var(--cmp-a); stroke-width: 1.5; }
.cmp-mini-b { fill: none; stroke: var(--cmp-b); stroke-width: 1.5; stroke-dasharray: 4 3; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cmp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .cmp-container { padding: 0 16px 32px; }
  .cmp-hero { padding-top: 24px; }
  .cmp-pair { padding: 20px 16px 16px; border-radius: 14px; }
  .cmp-pair-name { font-size: 22px; }
  .cmp-pair-dims { font-size: 12px; }
  .cmp-profiles, .cmp-picks, .cmp-more, .cmp-grid { grid-template-columns: 1fr; }
  .cmp-duel-heads, .cmp-duel-row { grid-template-columns: 1fr 1fr; padding: 12px 14px; gap: 6px 12px; }
  .cmp-duel-heads > span:first-child { display: none; }
  .cmp-duel-label { grid-column: 1 / -1; }
  .cmp-duel-same { top: 14px; transform: none; right: 12px; }
  .cmp-table th, .cmp-table td { padding: 11px 12px; }
  .cmp-cta { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-card, .cmp-link-list a::after { transition: none; }
}
