/* =============================================================
   insights-components.css — Ferrante-inspired magazine layer
   New components layered on top of existing FalcoAlgo design system.
   All colors/spacing/typography reference tokens.css vars.
   Loaded ONLY on /insights/ pages.
   ============================================================= */

/* =============================================================
   1) MARKET TICKER BAR
   Sticky strip below site header showing futures + VIX + rates.
   Polls /api/market-data from admin.falcoalgo.com, refreshes every 60s.
   ============================================================= */
.market-ticker {
  position: fixed;
  top: var(--header-height-desktop);
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(8, 12, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  border-top: 1px solid rgba(0, 217, 255, 0.08);
  overflow: hidden;
}
.market-ticker-inner {
  display: flex;
  align-items: center;
  height: 36px;
  gap: var(--space-4);
}
.market-ticker-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0 var(--space-4) 0 0;
  border-right: 1px solid var(--color-border-subtle);
  height: 100%;
}
.market-ticker-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.03);
}
.market-ticker-status-dot.is-live { background: var(--color-positive); box-shadow: 0 0 6px rgba(16,185,129,0.6); }
.market-ticker-status-dot.is-closed { background: var(--color-warning); }
.market-ticker-status-dot.is-error { background: var(--color-negative); }
.market-ticker-status-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.market-ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.market-ticker-track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  white-space: nowrap;
  animation: market-ticker-marquee 80s linear infinite;
  will-change: transform;
}
.market-ticker:hover .market-ticker-track { animation-play-state: paused; }
@keyframes market-ticker-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.market-ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.market-ticker-name {
  color: var(--color-text-secondary);
  font-weight: 500;
}
.market-ticker-price {
  color: var(--color-text-primary);
  font-weight: 600;
}
.market-ticker-change {
  font-weight: 500;
  font-size: 0.6875rem;
}
.market-ticker-change.pos { color: var(--color-positive); }
.market-ticker-change.neg { color: var(--color-negative); }
.market-ticker-asof {
  flex-shrink: 0;
  padding: 0 0 0 var(--space-4);
  border-left: 1px solid var(--color-border-subtle);
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .market-ticker { top: var(--header-height-mobile); }
  .market-ticker-inner { height: 32px; gap: var(--space-3); }
  .market-ticker-asof { display: none; }
  .market-ticker-status-label { display: none; }
  .market-ticker-status { padding-right: var(--space-3); }
}

/* =============================================================
   2) INSIGHTS SUB-NAV TABS
   Secondary nav row below the ticker bar. Drives client-side
   category filtering on the index page.
   ============================================================= */
.insights-subnav {
  position: fixed;
  top: calc(var(--header-height-desktop) + 36px);
  left: 0;
  right: 0;
  z-index: calc(var(--z-sticky) - 1);
  background: rgba(11, 15, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* Reserve vertical space for the fixed ticker + subnav so the
   hero headline isn't hidden under them. Only applies when .market-ticker
   and .insights-subnav are both present (i.e., on the /insights/ index). */
body.page-insights main#main-content {
  padding-top: calc(36px + 44px);
}
.insights-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 44px;
}
.insights-subnav-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
}
.insights-subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tab {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-4);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--duration-fast) var(--ease-default);
}
.subnav-tab:hover { color: var(--color-text-secondary); }
.subnav-tab.is-active { color: var(--color-text-primary); font-weight: 600; }
.subnav-tab.is-active::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 0;
  height: 2px;
  background: var(--color-accent-primary);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}
.subnav-tab-divider {
  width: 1px;
  height: 16px;
  background: var(--color-border-subtle);
  flex-shrink: 0;
  margin: 0 var(--space-2);
}
.insights-subnav-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .insights-subnav { top: calc(var(--header-height-mobile) + 32px); }
  .insights-subnav-date { display: none; }
  .subnav-tab { padding: 0 var(--space-3); font-size: 0.75rem; }
  body.page-insights main#main-content { padding-top: calc(32px + 40px); }
}

/* =============================================================
   2b) TOPIC PILL BAR (3rd sticky row below sub-nav)
   A horizontal scrollable row of topic pills. Click filters the
   feed to articles tagged with that topic.
   ============================================================= */
.insights-topics {
  position: fixed;
  top: calc(var(--header-height-desktop) + 36px + 44px);
  left: 0;
  right: 0;
  z-index: calc(var(--z-sticky) - 2);
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 10px 0;
}
.insights-topics-inner {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.insights-topics-inner::-webkit-scrollbar { display: none; }
.topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border-default);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-default);
  flex-shrink: 0;
}
.topic-pill:hover {
  color: var(--color-text-secondary);
  border-color: var(--color-border-strong);
}
.topic-pill.is-active {
  background: var(--color-accent-primary);
  color: var(--color-text-on-accent);
  border-color: transparent;
  font-weight: 600;
}
.topic-pill.is-hot {
  background: rgba(239, 68, 68, 0.08);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.topic-pill.is-hot.is-active {
  background: #EF4444;
  color: #FFFFFF;
  border-color: transparent;
}
@media (max-width: 767px) {
  .insights-topics { top: calc(var(--header-height-mobile) + 32px + 40px); }
}
/* Reserve space on the insights page for the 3rd sticky bar */
body.page-insights main#main-content {
  padding-top: calc(36px + 44px + 42px);
}
@media (max-width: 767px) {
  body.page-insights main#main-content {
    padding-top: calc(32px + 40px + 40px);
  }
}

/* =============================================================
   5b) FEED LAYOUT + RIGHT SIDEBAR
   Replaces the 3-column grid layout for "All Articles" with a
   Ferrante-style horizontal feed (text left, thumbnail right) +
   sticky sidebar (Market Snapshot + Trending).
   ============================================================= */
.insights-feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-10);
  margin-top: var(--space-12);
}
@media (max-width: 960px) {
  .insights-feed-layout { grid-template-columns: 1fr; }
}

.insights-feed-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0 var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
  flex-wrap: wrap;
}
.feed-filter-group {
  display: flex;
  gap: 2px;
  background: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  padding: 3px;
}
.feed-filter-btn {
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.feed-filter-btn:hover { color: var(--color-text-secondary); }
.feed-filter-btn.is-active {
  background: var(--color-accent-primary);
  color: var(--color-text-on-accent);
}
.feed-sort {
  margin-left: auto;
  padding: 6px 14px;
  background: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}
.feed-search {
  flex: 1;
  min-width: 180px;
  padding: 6px 14px;
  background: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-primary);
}
.feed-search::placeholder { color: var(--color-text-muted); }
.feed-search:focus {
  outline: none;
  border-color: var(--color-border-accent);
}

/* Feed list */
.insights-feed-list {
  margin-top: var(--space-2);
}
.feed-heading {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: var(--space-6) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
}
.insights-feed-list .feed-item,
a.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  align-items: start;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-default);
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
/* Hide filtered items. Uses .is-hidden class driven by JS so the
   filter actually takes effect regardless of other display rules. */
.insights-feed-list .feed-item.is-hidden,
a.feed-item.is-hidden {
  display: none !important;
}
.feed-item:hover { transform: translateX(3px); }
.feed-item:hover .feed-item-title { color: var(--color-accent-primary); }
.feed-item-body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.feed-item-cat {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 2px;
}
.feed-item-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  margin: 0;
  transition: color var(--duration-fast) var(--ease-default);
}
.feed-item-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: var(--space-1) 0 var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
}
.feed-item-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 2px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}
.feed-item-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.feed-item-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}
@media (max-width: 560px) {
  .feed-item { grid-template-columns: 1fr; }
  .feed-item-img { height: 180px; }
}

/* Index sidebar — Market Snapshot + Trending */
.insights-feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(var(--header-height-desktop) + 36px + 44px + 42px + 24px);
  align-self: start;
  max-height: calc(100vh - (var(--header-height-desktop) + 36px + 44px + 42px + 48px));
  overflow-y: auto;
  scrollbar-width: thin;
}
@media (max-width: 960px) {
  .insights-feed-sidebar { position: static; max-height: none; }
}

.sidebar-trending {
  background: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-trending-header {
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-surface-3);
  border-bottom: 1px solid var(--color-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
}
.sidebar-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-trending-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-default);
}
.sidebar-trending-item:last-child { border-bottom: none; }
.sidebar-trending-item:hover { background: var(--color-bg-surface-3); }
.sidebar-trending-item:hover .sidebar-trending-title { color: var(--color-accent-primary); }
.sidebar-trending-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.3;
}
.sidebar-trending-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
  transition: color var(--duration-fast) var(--ease-default);
  margin: 0 0 4px;
}
.sidebar-trending-cat {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* =============================================================
   3) JUST IN ALERT STRIP
   Thin alert bar above hero highlighting the newest article.
   ============================================================= */
.just-in-strip {
  margin: var(--space-6) 0 var(--space-8);
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.just-in-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0B0F14;
  background: var(--color-accent-primary);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.35);
}
.just-in-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.just-in-link:hover { color: var(--color-accent-primary); }
.just-in-teaser {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex: 1;
  min-width: 180px;
}
.just-in-time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .just-in-teaser { display: none; }
  .just-in-strip { padding: var(--space-3); gap: var(--space-3); }
}

/* =============================================================
   4) HERO GRID — 1 FEATURED + 3 SIDE CARDS
   Replaces the single featured-card. Ferrante's magazine style.
   ============================================================= */
.insights-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--space-8);
  margin: 0 0 var(--space-12);
  align-items: stretch;
}
@media (max-width: 900px) {
  .insights-hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* Main hero card — image-forward */
.hero-card-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-surface-2);
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  text-decoration: none;
  transition: border-color var(--duration-normal) var(--ease-default);
}
.hero-card-main:hover { border-color: var(--color-border-accent); }
.hero-card-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--duration-slow) var(--ease-default);
}
.hero-card-main:hover .hero-card-main-img { transform: scale(1.025); }
.hero-card-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 20%, rgba(8, 12, 16, 0.80) 70%, rgba(8, 12, 16, 0.97) 100%);
  z-index: 1;
}
.hero-card-main-body {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
  width: 100%;
}
.hero-card-main-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-3);
}
.hero-card-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.hero-card-main-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(240, 244, 248, 0.75);
  margin-bottom: var(--space-4);
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-card-main-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(203, 213, 224, 0.7);
}
.hero-card-main-meta-dot {
  width: 3px;
  height: 3px;
  background: currentColor;
  opacity: 0.5;
  border-radius: 50%;
}
@media (max-width: 767px) {
  .hero-card-main { min-height: 340px; }
  .hero-card-main-body { padding: var(--space-6); }
}

/* Side cards — stacked horizontal */
.hero-card-side-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-surface-2);
}
.hero-card-side {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: var(--space-4);
  padding: var(--space-4);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background-color var(--duration-fast) var(--ease-default);
  align-items: center;
}
.hero-card-side:last-child { border-bottom: none; }
.hero-card-side:hover {
  background-color: var(--color-bg-surface-3);
}
.hero-card-side:hover .hero-card-side-title {
  color: var(--color-accent-primary);
}
.hero-card-side-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hero-card-side-cat {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.hero-card-side-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
  transition: color var(--duration-fast) var(--ease-default);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-card-side-meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.hero-card-side-img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}
@media (max-width: 480px) {
  .hero-card-side { grid-template-columns: 1fr 88px; }
  .hero-card-side-img { height: 62px; }
}

/* =============================================================
   5) RESEARCH PICKS STRIP (FalcoAlgo equivalent of Ferrante's
      "Analysis & Opinion" — 4 image-less cards with accent border).
   ============================================================= */
.insights-picks {
  margin: 0 0 var(--space-16);
}
.insights-picks-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-6);
}
.insights-picks-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0;
}
.insights-picks-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  text-decoration: none;
  font-weight: 500;
}
.insights-picks-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.insights-picks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 960px) { .insights-picks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .insights-picks-grid { grid-template-columns: 1fr; } }
.pick-card {
  display: block;
  background: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-default);
  border-left: 3px solid var(--color-accent-primary);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease-default),
              background-color var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default);
}
.pick-card:hover {
  border-color: var(--color-border-accent);
  background: var(--color-bg-surface-3);
  transform: translateY(-2px);
}
.pick-card-cat {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-3);
  display: block;
}
.pick-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-3);
}
.pick-card-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* =============================================================
   6) ARTICLE PAGE — FLOATING SHARE GUTTER
   position: fixed so it doesn't fight the article template's
   own grid. Hides when viewport is too narrow to fit it without
   overlapping content. Injected by /js/article-enhancements.js.
   ============================================================= */
.article-gutter {
  position: fixed;
  top: calc(var(--header-height-desktop) + 120px);
  left: max(24px, calc((100vw - 1100px) / 2 - 72px));
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}
.article-gutter[hidden] { display: none; }
@media (max-width: 1180px) { .article-gutter { display: none; } }
.article-gutter-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: var(--space-1);
}
.article-gutter-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border-subtle);
}
.article-gutter-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border-default);
  background: rgba(20, 26, 33, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition-default);
  text-decoration: none;
}
.article-gutter-btn:hover {
  border-color: var(--color-border-accent);
  color: var(--color-accent-primary);
  background: var(--color-accent-glow);
  transform: translateY(-1px);
}
.article-gutter-btn.is-copied {
  color: var(--color-positive);
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--color-positive-bg);
}

/* Market Snapshot widget — can sit inside any existing sidebar
   (.article-toc, .toc-sidebar, or standalone) */
.market-snapshot-wrap {
  margin-top: var(--space-8);
}

/* Market snapshot widget (sidebar variant) */
.market-snapshot {
  background: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.market-snapshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-surface-3);
  border-bottom: 1px solid var(--color-border-subtle);
}
.market-snapshot-title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin: 0;
}
.market-snapshot-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.market-snapshot-live-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-muted);
}
.market-snapshot-live-badge.is-live { color: var(--color-positive); }
.market-snapshot-live-badge.is-live::before {
  background: var(--color-positive);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.market-snapshot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.market-snapshot-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-2);
  padding: 7px var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  align-items: baseline;
}
.market-snapshot-row:last-child { border-bottom: none; }
.market-snapshot-row-name {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}
.market-snapshot-row-price {
  color: var(--color-text-primary);
  font-weight: 600;
  text-align: right;
}
.market-snapshot-row-change {
  font-size: 0.625rem;
  font-weight: 500;
  text-align: right;
  min-width: 48px;
}
.market-snapshot-row-change.pos { color: var(--color-positive); }
.market-snapshot-row-change.neg { color: var(--color-negative); }
.market-snapshot-footer {
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-surface-3);
  border-top: 1px solid var(--color-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  text-align: center;
}

/* =============================================================
   6b) ARTICLE BOTTOM — SINGLE CLEAN DISCLAIMER
   Replaces the prior three-part Ferrante-style disclosure block.
   One simple paragraph at the bottom, after tags. Keeps the page
   readable without a wall of legal language.
   ============================================================= */
.article-end-note {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
}
.article-end-note p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}
.article-end-note p strong {
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* =============================================================
   7) EDITORIAL PROCESS PAGE
   Trust-signal page describing the research → draft → compliance pipeline.
   ============================================================= */
.editorial-hero {
  padding-top: calc(var(--header-height-desktop) + var(--space-16));
  padding-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}
.editorial-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.editorial-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.editorial-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-ls);
  text-transform: var(--type-eyebrow-transform);
  color: var(--color-accent-primary);
  margin-bottom: var(--space-4);
}
.editorial-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}
.editorial-hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.editorial-body { padding: var(--space-10) 0 var(--space-20); }
.editorial-body-inner {
  max-width: 780px;
  margin: 0 auto;
}
.editorial-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.editorial-step:last-child { border-bottom: none; }
.editorial-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-accent-primary);
  line-height: 1;
  padding-top: 4px;
  border-top: 2px solid var(--color-accent-primary);
  width: 56px;
}
.editorial-step-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-3);
}
.editorial-step-body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-3);
}
.editorial-step-body p:last-child { margin-bottom: 0; }
.editorial-step-body strong { color: var(--color-text-primary); font-weight: 600; }
.editorial-step-body a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 217, 255, 0.4);
}
.editorial-standards {
  margin-top: var(--space-16);
  padding: var(--space-8);
  background: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-default);
  border-left: 3px solid var(--color-accent-primary);
  border-radius: var(--radius-lg);
}
.editorial-standards h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-5);
  letter-spacing: -0.01em;
}
.editorial-standards ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.editorial-standards li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.editorial-standards li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-primary);
  flex-shrink: 0;
  margin-top: 9px;
}
.editorial-standards li strong { color: var(--color-text-primary); font-weight: 600; }
@media (max-width: 767px) {
  .editorial-step { grid-template-columns: 1fr; gap: var(--space-2); }
  .editorial-step-num { width: auto; }
}

/* =============================================================
   8) UTILITY — hide legacy single-featured when hero-grid is present
   (no-op if markup omits it; graceful fallback)
   ============================================================= */
.insights-featured + .insights-hero-grid { margin-top: 0; }
