/* ============================================================
   RevHost Theme — Trust Refined · opt-in via .theme-editorial
   Class name kept for backward compatibility with existing templates.
   System: fintech profesional con calidez · 60% ink · 30% cream · 10% mint.
   Source: Claude Design handoff bundle (brand-guidelines/, May 2026).
   ============================================================ */

.theme-editorial,
.theme-editorial body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Display headings — Geist sans, semibold, tight letter-spacing
   ============================================================ */
.theme-editorial .display-xxl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 88px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}
.theme-editorial .display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.theme-editorial .display-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.theme-editorial .display-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.theme-editorial .display-sm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}
.theme-editorial .display-xs {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.theme-editorial .display-italic-md {
  /* Geist has no italic display — fall back to a tighter mono-eyebrow look */
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ============================================================
   Body
   ============================================================ */
.theme-editorial p,
.theme-editorial .body-md {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.003em;
  color: var(--ink);
  margin: 0;
}
.theme-editorial .body-lg {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.theme-editorial .body-emphasis {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.003em;
}
.theme-editorial .caption-md {
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate);
}
.theme-editorial .caption-sm {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}
.theme-editorial .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.theme-editorial .byline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--slate);
}

/* ============================================================
   Data — Geist Mono w/ tabular nums (the stars of the system)
   ============================================================ */
.theme-editorial .data-xxl,
.theme-editorial .data-xl,
.theme-editorial .data-lg,
.theme-editorial .data-md,
.theme-editorial .data-sm,
.theme-editorial .data-xs,
.theme-editorial .ticker {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--ink);
}
.theme-editorial .data-xxl { font-size: 72px; font-weight: 500; line-height: 1;    letter-spacing: -0.04em; }
.theme-editorial .data-xl  { font-size: 48px; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.theme-editorial .data-lg  { font-size: 32px; font-weight: 500; line-height: 1.1;  letter-spacing: -0.02em; }
.theme-editorial .data-md  { font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.theme-editorial .data-sm  { font-size: 14px; font-weight: 500; line-height: 1.2; }
.theme-editorial .data-xs  { font-size: 12px; font-weight: 500; line-height: 1.3; }
.theme-editorial .ticker   { font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: 0.02em; }

/* ============================================================
   Links
   ============================================================ */
.theme-editorial a.link-editorial,
.theme-editorial .link-editorial {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.theme-editorial a.link-editorial:hover { color: var(--mint-ink); }
.theme-editorial a.link-editorial:active { color: var(--link-pressed); }

/* ============================================================
   Buttons (named with -ed to avoid clashing with Tailwind .btn)
   Primary CTA = ink slab with mint hover accent (high contrast).
   ============================================================ */
.theme-editorial .btn-ed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 14px 24px;
  font: 600 14px/1 var(--font-body);
  letter-spacing: -0.005em;
  border-radius: var(--radius-lg);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 100ms ease, color 100ms ease, box-shadow 100ms ease;
}
.theme-editorial .btn-primary  { background: var(--ink); color: var(--mint); }
.theme-editorial .btn-primary:hover  { background: var(--ink-deep); color: var(--mint); }
.theme-editorial .btn-primary:active { background: var(--ink-deep); }
.theme-editorial .btn-primary:disabled { background: var(--fog); color: var(--slate-light); cursor: not-allowed; }
.theme-editorial .btn-ink     { background: var(--ink); color: var(--on-ink); }
.theme-editorial .btn-ink:hover { background: var(--ink-deep); }
.theme-editorial .btn-mint    { background: var(--mint); color: var(--on-mint); }
.theme-editorial .btn-mint:hover { background: var(--signal-bright); }
.theme-editorial .btn-outline {
  background: transparent;
  color: var(--ink);
  padding: 13px 23px;
  box-shadow: inset 0 0 0 1px var(--ink);
}
.theme-editorial .btn-outline:hover { background: var(--bone); }
.theme-editorial .btn-ghost   { background: transparent; color: var(--ink); padding: 14px 16px; border-radius: var(--radius-md); }
.theme-editorial .btn-ghost:hover { background: var(--bone); }

/* ============================================================
   Signal bar — vertical accent for eyebrows / pull quotes
   ============================================================ */
.theme-editorial .signal-bar {
  background: var(--mint);
  width: 3px;
  height: 18px;
  display: inline-block;
  align-self: stretch;
  border-radius: 2px;
}

/* Section rule */
.theme-editorial .section-rule {
  height: 1px;
  background: var(--hair);
  border: 0;
  width: 100%;
}

/* ============================================================
   Badges & pills · semantics: pos=mint · neg=down · neu=bone
   ============================================================ */
.theme-editorial .badge-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  font: 500 12px/1.3 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.theme-editorial .badge-delta.pos { background: var(--mint-soft); color: var(--mint-ink); }
.theme-editorial .badge-delta.neg { background: var(--down-soft); color: var(--loss); }
.theme-editorial .badge-delta.neu { background: var(--bone);      color: var(--slate); }

.theme-editorial .pill-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.theme-editorial .pill-status.ok   { background: var(--mint-soft);    color: var(--mint-ink); }
.theme-editorial .pill-status.warn { background: var(--amber-soft);   color: var(--warning); }
.theme-editorial .pill-status.bad  { background: var(--down-soft);    color: var(--loss); }

.theme-editorial .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.theme-editorial .status-dot.ok   { background: var(--mint); }
.theme-editorial .status-dot.warn { background: var(--amber); }
.theme-editorial .status-dot.bad  { background: var(--down); }

/* ============================================================
   Inputs
   ============================================================ */
.theme-editorial .text-input-ed {
  display: block;
  background: var(--paper);
  color: var(--ink);
  height: 44px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hair);
  font: 400 15px/1.55 var(--font-body);
  letter-spacing: -0.003em;
  width: 100%;
  outline: none;
  transition: border-color 100ms ease, box-shadow 100ms ease;
}
.theme-editorial .text-input-ed::placeholder { color: var(--slate-light); }
.theme-editorial .text-input-ed:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--mint-soft); }

/* ============================================================
   Cards
   ============================================================ */
.theme-editorial .card-paper {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--hair);
}
.theme-editorial .card-paper-lg {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--elev-2);
  border: 1px solid var(--hair);
}
.theme-editorial .card-ink {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}
.theme-editorial .card-ink .data-xxl,
.theme-editorial .card-ink .data-xl,
.theme-editorial .card-ink .data-lg,
.theme-editorial .card-ink .data-md { color: var(--on-ink); }
.theme-editorial .card-ink .caption-sm,
.theme-editorial .card-ink .eyebrow { color: var(--mint); opacity: 0.85; }

/* ============================================================
   Pull quote — now mono+mint accent (Geist has no display italic)
   ============================================================ */
.theme-editorial .pull-quote {
  padding: 24px 0 24px 24px;
  border-left: 3px solid var(--mint);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ============================================================
   Ticker / utility strips
   ============================================================ */
.theme-editorial .ticker-strip {
  background: var(--ink);
  color: var(--on-ink);
  height: 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.02em;
  overflow: hidden;
}
.theme-editorial .util-strip {
  background: var(--ink);
  color: var(--on-ink);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 24px;
}
.theme-editorial .util-strip .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  display: inline-block;
  animation: pulse-mint 1.8s ease-out infinite;
}
@keyframes pulse-mint {
  0%   { box-shadow: 0 0 0 0 rgba(91,163,224,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(91,163,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,163,224,0); }
}

/* ============================================================
   Tables
   ============================================================ */
.theme-editorial .data-table {
  width: 100%;
  background: var(--paper);
  border-collapse: collapse;
  font: 500 14px/1.2 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.theme-editorial .data-table thead th {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
}
.theme-editorial .data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
}
.theme-editorial .data-table tbody tr.zebra td { background: var(--cream); }

.theme-editorial .avatar-ed {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 12px/1 var(--font-mono);
  color: var(--slate);
  border: 1px solid var(--hair);
  flex-shrink: 0;
}

/* ============================================================
   Shell containers
   ============================================================ */
.theme-editorial .shell { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.theme-editorial .shell-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

@media (max-width: 720px) {
  .theme-editorial .shell,
  .theme-editorial .shell-wide { padding: 0 20px; }
  .theme-editorial .display-xxl { font-size: 48px; }
  .theme-editorial .display-xl  { font-size: 38px; }
  .theme-editorial .display-lg  { font-size: 30px; }
  .theme-editorial .data-xxl { font-size: 48px; }
  .theme-editorial .data-xl  { font-size: 36px; }
  .theme-editorial .data-lg  { font-size: 26px; }
  .theme-editorial .pull-quote { font-size: 20px; padding-left: 18px; }
}
