/* TechCapital — small custom layer on top of Tailwind (CDN). */

[x-cloak] { display: none !important; }

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

/* Horizontal category nav without visible scrollbar. */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Headline ticker in the top bar (content is duplicated for a seamless loop). */
.ticker { mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.ticker-track { animation: tc-ticker 70s linear infinite; will-change: transform; }
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes tc-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Bloomberg-style section heading: heavy rule + small caps label. */
.section-title { border-top: 3px solid #111; padding-top: .6rem; }
.section-title h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #111;
}

/* Placeholder when an article has no cover image. */
.cover-fallback {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.12) 0, transparent 45%),
    linear-gradient(135deg, #0b3d91 0%, #082c69 55%, #111 100%);
}

/* Round share buttons. */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  border: 1px solid #e5e5e5; color: #111; transition: all .15s ease;
}
.share-btn:hover { border-color: #0b3d91; color: #0b3d91; }

/* Honeypot field: off-screen, not display:none (some bots skip hidden inputs). */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Article body refinements. */
.article-body > p:first-of-type::first-letter {
  float: left; font-size: 3.6em; line-height: .85; font-weight: 700;
  padding: .06em .08em 0 0; color: #0b3d91;
}
.article-body a.tag-link { color: inherit; text-decoration-color: #0b3d91; text-decoration-style: dotted; }
.article-body a.tag-link:hover { color: #0b3d91; }
.article-body table { font-family: Inter, system-ui, sans-serif; font-size: .9em; }
.article-body h2, .article-body h3 { scroll-margin-top: 1.5rem; }
.prose table { font-family: Inter, system-ui, sans-serif; font-size: .9em; }

/* Reading progress bar (article pages). */
#read-progress { box-shadow: 0 0 6px rgba(11,61,145,.35); }

/* Line clamp fallbacks for older browsers. */
.line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

/* Comments: highlighted permalink target. */
.cm-target > div { animation: tc-flash 2.4s ease-out 1; }
@keyframes tc-flash { from { background: #e9eef8; box-shadow: 0 0 0 8px #e9eef8; } to { background: transparent; box-shadow: 0 0 0 8px transparent; } }
.cm { scroll-margin-top: 5rem; }

@media print {
  header, footer, nav, aside, #comments, #read-progress, .react-box, .share-btn, .cm-react { display: none !important; }
  .prose { max-width: none !important; }
}
