/* =========================================================================
   Social Stardom — Shared content-page styling
   For: blog, tools hub, glossary, comparison, industry, city, faq, about
   Reuses the existing design tokens. Black + lime + bone palette.
   ========================================================================= */
:root {
  --bg-0: #0e0f10;
  --bg-1: #14161a;
  --bg-2: #1c1e22;
  --fg-0: #f3f0e8;
  --fg-1: #b9b6ae;
  --fg-2: #75736d;
  --line: rgba(243, 240, 232, 0.10);
  --line-strong: rgba(243, 240, 232, 0.22);
  --lime: #ff6a00;
  --bone-0: #f3f0e8;
  --ink-0: #0e0f10;
  --ink-2: #555;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", "Times New Roman", serif;
}

html, body { margin: 0; padding: 0; }
body.cp-page {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.cp-skip-link {
  position: absolute; left: -9999px;
  padding: 8px 12px; background: var(--lime); color: var(--ink-0);
  font: 500 12px var(--mono); border-radius: 4px;
}
.cp-skip-link:focus { left: 12px; top: 12px; }

/* ---- Topbar (matches main site, simplified) ---- */
.cp-topbar {
  position: fixed; top: 16px; left: 24px; right: 24px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(14, 15, 16, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
}
.cp-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.cp-star {
  display: inline-block; width: 22px; height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g transform='translate(50 50)'><rect x='-7' y='-48' width='14' height='96' rx='2' fill='%23ff6a00'/><rect x='-7' y='-48' width='14' height='96' rx='2' fill='%23ff6a00' transform='rotate(45)'/><rect x='-7' y='-48' width='14' height='96' rx='2' fill='%23ff6a00' transform='rotate(90)'/><rect x='-7' y='-48' width='14' height='96' rx='2' fill='%23ff6a00' transform='rotate(135)'/></g></svg>");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 0 12px rgba(255,106,0,0.45));
}
.cp-brand-name { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--fg-0); line-height: 1; }
.cp-nav { display: flex; gap: 22px; }
.cp-nav a { font-family: var(--sans); font-size: 13px; color: var(--fg-1); text-decoration: none; }
.cp-nav a:hover { color: var(--fg-0); }
.cp-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--lime); color: var(--ink-0);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; font-weight: 500;
}
.cp-cta:hover { transform: translateY(-1px); transition: transform 0.2s; }

/* ---- Layout ---- */
.cp-shell { padding-top: 92px; }
.cp-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.cp-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.cp-mid { max-width: 980px; margin: 0 auto; padding: 0 28px; }

/* ---- Hero block ---- */
.cp-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.cp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-1); margin: 0 0 22px; }
.cp-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.cp-h1 { font-size: clamp(38px, 6vw, 78px); line-height: 1; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 22px; max-width: 18ch; }
.cp-h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); }
.cp-lead { font-size: 18px; line-height: 1.55; color: var(--fg-1); max-width: 56ch; margin: 0 0 28px; }
.cp-meta { font: 500 11px/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.cp-meta a { color: var(--fg-1); text-decoration: none; }
.cp-meta a:hover { color: var(--lime); }

/* ---- Content body (used by blog posts, glossary, FAQs etc.) ---- */
.cp-body { padding: 56px 0; }
.cp-body h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 56px 0 18px; max-width: 28ch; }
.cp-body h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; font-weight: 600; margin: 36px 0 14px; }
.cp-body p { font-size: 17px; line-height: 1.65; color: var(--fg-1); margin: 0 0 18px; max-width: 70ch; }
.cp-body ul, .cp-body ol { font-size: 17px; line-height: 1.7; color: var(--fg-1); padding-left: 22px; margin: 0 0 22px; max-width: 70ch; }
.cp-body li { margin: 0 0 8px; }
.cp-body a { color: var(--lime); text-decoration: none; border-bottom: 1px solid rgba(255,106,0,0.45); }
.cp-body a:hover { background: rgba(255,106,0,0.08); }
.cp-body strong { color: var(--fg-0); font-weight: 600; }
.cp-body blockquote {
  margin: 28px 0; padding: 22px 26px;
  border-left: 3px solid var(--lime); background: rgba(255,106,0,0.04);
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--fg-0);
}
.cp-body code {
  font-family: var(--mono); font-size: 0.92em;
  background: var(--bg-1); padding: 2px 6px; border-radius: 4px; color: var(--lime);
}
.cp-body img { max-width: 100%; border-radius: 12px; margin: 28px 0; border: 1px solid var(--line); }
.cp-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.cp-body th, .cp-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; color: var(--fg-1); }
.cp-body th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.cp-body hr { border: none; height: 1px; background: var(--line); margin: 40px 0; }

/* ---- TOC ---- */
.cp-toc {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px;
  background: var(--bg-1); margin: 0 0 36px; max-width: 70ch;
}
.cp-toc-title { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); margin: 0 0 12px; }
.cp-toc ol { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.8; }
.cp-toc a { color: var(--fg-1); text-decoration: none; border: 0; }
.cp-toc a:hover { color: var(--lime); background: transparent; }

/* ---- TLDR / Summary box ---- */
.cp-tldr {
  border: 1px solid var(--lime); border-radius: 12px; padding: 22px 26px;
  background: linear-gradient(135deg, rgba(255,106,0,0.07), rgba(255,106,0,0.02));
  margin: 0 0 36px; max-width: 70ch;
}
.cp-tldr-title { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin: 0 0 12px; }
.cp-tldr p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-0); }

/* ---- Cards / grids ---- */
.cp-grid { display: grid; gap: 18px; }
.cp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-card {
  display: block; padding: 24px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-1); text-decoration: none; color: inherit;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.cp-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--bg-2); }
.cp-card-tag { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); margin: 0 0 12px; }
.cp-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; color: var(--fg-0); }
.cp-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-1); }
.cp-card-arrow { display: inline-flex; margin-top: 16px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }

/* ---- Section spacing ---- */
.cp-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.cp-section:last-of-type { border-bottom: 0; }
.cp-section-head { margin: 0 0 36px; }
.cp-section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; margin: 14px 0 12px; max-width: 24ch; }
.cp-section-head p { font-size: 16px; line-height: 1.55; color: var(--fg-1); max-width: 60ch; margin: 0; }

/* ---- CTA banner ---- */
.cp-cta-band {
  border: 1px solid var(--line); border-radius: 16px; padding: 36px;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-0));
  margin: 56px 0;
}
.cp-cta-band h3 { margin: 0 0 12px; font-size: 28px; line-height: 1.1; }
.cp-cta-band p { margin: 0 0 22px; color: var(--fg-1); font-size: 15px; max-width: 60ch; }
.cp-cta-band .cp-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons must always be lime-on-black or ghost-with-cream-text,
   regardless of whether they sit inside .cp-body (which colors links lime). */
a.cp-btn-primary,
.cp-btn-primary,
a.cp-cta,
.cp-cta {
  display: inline-flex !important; align-items: center !important; gap: 6px;
  padding: 12px 22px;
  background: var(--lime) !important;
  color: var(--ink-0) !important;
  border-radius: 999px;
  border: 1px solid var(--lime) !important;
  font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none !important;
  border-bottom: 1px solid var(--lime) !important;
  background-image: none !important;
  font-weight: 600;
}
a.cp-btn-primary:hover,
.cp-btn-primary:hover,
a.cp-cta:hover,
.cp-cta:hover {
  background: var(--lime) !important;
  color: var(--ink-0) !important;
}

a.cp-btn-ghost,
.cp-btn-ghost {
  display: inline-flex !important; align-items: center !important; gap: 6px;
  padding: 12px 22px;
  background: transparent !important;
  color: var(--fg-0) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px;
  font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none !important;
  border-bottom: 1px solid var(--line-strong) !important;
  background-image: none !important;
  font-weight: 600;
}
a.cp-btn-ghost:hover,
.cp-btn-ghost:hover {
  background: rgba(243, 240, 232, 0.04) !important;
  color: var(--fg-0) !important;
}

/* ---- Footer (matches main site) ---- */
.cp-footer { padding: 48px 0 28px; border-top: 1px solid var(--line); margin-top: 56px; }
.cp-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.cp-foot-block .cp-brand { margin-bottom: 14px; }
.cp-foot-tag { color: var(--fg-1); font-size: 14px; line-height: 1.55; max-width: 36ch; }
.cp-foot-col-h { font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); margin: 0 0 14px; }
.cp-foot-col a { display: block; padding: 5px 0; color: var(--fg-1); text-decoration: none; font-size: 13px; }
.cp-foot-col a:hover { color: var(--lime); }
.cp-foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font: 500 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }

/* ---- Tools / calculators ---- */
.tool-shell { padding: 36px 0; }
.tool-input-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.tool-field { display: flex; flex-direction: column; gap: 6px; }
.tool-field label { font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.tool-field input, .tool-field select, .tool-field textarea {
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--bg-1); color: var(--fg-0); font: 400 15px var(--sans);
  width: 100%; box-sizing: border-box;
}
.tool-field input:focus, .tool-field textarea:focus, .tool-field select:focus {
  outline: 2px solid var(--lime); outline-offset: 2px; border-color: transparent;
}
.tool-result {
  border: 1px solid var(--lime); border-radius: 14px; padding: 24px;
  background: linear-gradient(135deg, rgba(255,106,0,0.06), rgba(255,106,0,0.02));
  margin: 24px 0;
}
.tool-result-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-1); }
.tool-result-row strong { color: var(--lime); font-family: var(--mono); font-size: 18px; letter-spacing: -0.01em; }
.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.tool-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- Glossary ---- */
.glossary-search input {
  width: 100%; padding: 14px 18px; border-radius: 999px;
  background: var(--bg-1); border: 1px solid var(--line-strong);
  color: var(--fg-0); font: 400 16px var(--sans);
  box-sizing: border-box;
}
.glossary-az { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 28px; }
.glossary-az a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  font: 500 12px var(--mono); color: var(--fg-1); text-decoration: none;
}
.glossary-az a:hover { background: var(--lime); color: var(--ink-0); border-color: var(--lime); }
.glossary-letter { margin: 36px 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--lime); }
.glossary-term { padding: 14px 0; border-bottom: 1px solid var(--line); }
.glossary-term h3 { margin: 0 0 4px; font-size: 17px; color: var(--fg-0); }
.glossary-term p { margin: 0; color: var(--fg-1); font-size: 14px; line-height: 1.5; }

/* ---- Comparison table ---- */
.compare-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 15px; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--bg-1); font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.compare-table .yes { color: var(--lime); }
.compare-table .no { color: #ff6b6b; }
.compare-table .meh { color: #f5b041; }

/* ---- FAQ ---- */
.faq-q {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1);
  padding: 0; margin: 0 0 12px; overflow: hidden;
}
.faq-q summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-size: 16px; color: var(--fg-0); font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: "+"; font-family: var(--mono); color: var(--lime); font-size: 22px; line-height: 1; }
.faq-q[open] summary::after { content: "−"; }
.faq-q .faq-a { padding: 0 22px 18px; color: var(--fg-1); font-size: 15px; line-height: 1.6; }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .cp-topbar { left: 12px; right: 12px; padding: 10px 14px; }
  .cp-nav { display: none; }
  .cp-shell { padding-top: 84px; }
  .cp-container { padding: 0 18px; }
  .cp-narrow, .cp-mid { padding: 0 18px; }
  .cp-hero { padding: 48px 0 36px; }
  .cp-h1 { font-size: 38px; }
  .cp-lead { font-size: 16px; }
  .cp-body { padding: 32px 0; }
  .cp-body h2 { font-size: 26px; margin-top: 36px; }
  .cp-body h3 { font-size: 20px; }
  .cp-body p, .cp-body ul, .cp-body ol { font-size: 16px; }
  .cp-section { padding: 36px 0; }
  .cp-grid-2, .cp-grid-3, .cp-grid-4 { grid-template-columns: 1fr; }
  .cp-cta-band { padding: 24px; }
  .cp-foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cp-foot-bottom { flex-direction: column; align-items: flex-start; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-input-row { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
}
