/* Trading Risk Lab market-cap-crypto page CSS moved from inline <style> blocks and style attributes. */
#trl-desktop-cta,#trl-mobile-cta{visibility:hidden}

/* ---- Inline <style> block moved from original HTML ---- */
html, body {
      scroll-behavior: smooth;
      background-color: #030712;
      overflow-x: hidden;
    }

    /* Hero orb animations (replacing framer-motion) */
    .hero-orb-1 {
      animation: hero-orb-1 20s ease-in-out infinite;
    }
    @keyframes hero-orb-1 {
      0%   { transform: translateX(0) scale(1); }
      50%  { transform: translateX(30px) scale(1.15); }
      100% { transform: translateX(0) scale(1); }
    }

    .hero-orb-2 {
      animation: hero-orb-2 15s ease-in-out infinite;
    }
    @keyframes hero-orb-2 {
      0%   { transform: translateY(0) scale(1); }
      50%  { transform: translateY(-20px) scale(1.1); }
      100% { transform: translateY(0) scale(1); }
    }

    /* Generic fade-in-up animation for sections (replacing initial/whileInView) */
    .fade-in-up {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .fade-in-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Card hover motion replacements */
    .lift-hover {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .lift-hover:hover {
      transform: translateY(-8px);
    }

    .icon-pop {
      transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
      transform-origin: center;
    }
    .group:hover .icon-pop {
      transform: scale(1.15) rotate(8deg);
    }

    /* Topic button selected state (JS toggles this class) */
    .topic-selected {
      background-image: linear-gradient(to right, rgb(59 130 246), rgb(34 211 238));
      color: #fff;
      box-shadow: 0 10px 25px rgba(59,130,246,0.35);
      border-color: transparent;
    }

    /* Simple transition for article cards when topic changes */
    .article-card {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .article-card.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Ensure the particles canvas doesn't swallow pointer events */
    #hero-particles {
      pointer-events: none;
      display: block;
      max-width: 100%;
    }

/* ---- Inline <style> block moved from original HTML ---- */
html,
      body {
        background-color: #030712;
      }

      /* Generic fade-up animation used across the page */
      .fade-up {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.6s ease, transform 0.6s ease;
      }

      .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .hover-raise {
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
          background-color 0.25s ease;
      }

      .hover-raise:hover {
        transform: translateY(-4px);
      }

      .faq-item {
        transition: transform 0.25s ease;
      }

      .faq-toggle {
        transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
      }

      .faq-toggle:hover {
        transform: translateY(-2px);
      }

      .faq-chevron {
        transition: transform 0.3s ease;
      }

      .faq-item.open .faq-chevron {
        transform: rotate(180deg);
      }

      .faq-content {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(4px);
        transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
      }

      .faq-item.open .faq-content {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
      }

      /* Button helper */
      .btn-primary-gradient {
        @apply bg-gradient-to-r from-blue-500 to-cyan-500 hover:from-blue-400 hover:to-cyan-400 text-white border-0 shadow-lg rounded-xl;
      }
        /* ---- Imported header/footer + hero background from  ---- */

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: #030712;
      color: #e5e7eb;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    }
    /* Sticky header background & scrolled state */
    #site-header {
      background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.90));
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(30,64,175,0.45);
    }

    #site-header.header-scrolled {
      background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
      box-shadow: 0 18px 45px rgba(15,23,42,0.95);
      border-bottom-color: rgba(37,99,235,0.7);
    }


    /* Generic scroll animations */
    .js-animate {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .js-animate[data-animate="left"] {
      transform: translateX(-40px);
    }

    .js-animate[data-animate="right"] {
      transform: translateX(40px);
    }

    .js-animate.animate-visible {
      opacity: 1;
      transform: translateX(0) translateY(0);
    }

    /* Hero orbs */
    .hero-orb {
      position: absolute;
      border-radius: 9999px;
    }

    .hero-orb-1 {
      top: -10rem;
      left: -10rem;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
      animation: hero-orb-1 15s ease-in-out infinite;
    }

    .hero-orb-2 {
      top: 25%;
      right: -5rem;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
      animation: hero-orb-2 12s ease-in-out infinite;
    }

    .hero-orb-3 {
      bottom: -10rem;
      left: 33%;
      width: 700px;
      height: 700px;
      background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
      animation: hero-orb-3 18s ease-in-out infinite;
    }

    @keyframes hero-orb-1 {
      0% { transform: translate(0,0) scale(1); }
      50% { transform: translate(50px,30px) scale(1.2); }
      100% { transform: translate(0,0) scale(1); }
    }

    @keyframes hero-orb-2 {
      0% { transform: translate(0,0) scale(1.2); }
      50% { transform: translate(-30px,50px) scale(1); }
      100% { transform: translate(0,0) scale(1.2); }
    }

    @keyframes hero-orb-3 {
      0% { transform: translate(0,0) scale(1); }
      50% { transform: translate(-40px,0) scale(1.3); }
      100% { transform: translate(0,0) scale(1); }
    }

    /* Hero glowing lines */
    .hero-lines svg {
      width: 100%;
      height: 100%;
    }

    .hero-line {
      stroke-width: 1;
      fill: none;
      stroke-dasharray: 2000;
      stroke-dashoffset: 2000;
      animation: draw-line 2s ease-in-out forwards;
    }

    .hero-line.second {
      animation-delay: 0.3s;
    }

    @keyframes draw-line {
      to { stroke-dashoffset: 0; }
    }

    /* Feature cards details expansion */
    .feature-card .feature-details {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, opacity 0.35s ease;
    }

    .feature-card.active .feature-details {
      max-height: 360px;
      opacity: 1;
    }

    .feature-card {
      position: relative;
    }


    .feature-card.active {
      transform: translateY(-4px);
    }

    .feature-card.active[data-color="blue"] {
      box-shadow: 0 0 0 1px rgba(59,130,246,0.8), 0 0 40px rgba(59,130,246,0.7);
    }

    .feature-card.active[data-color="cyan"] {
      box-shadow: 0 0 0 1px rgba(34,211,238,0.8), 0 0 40px rgba(34,211,238,0.7);
    }

    .feature-card.active[data-color="purple"] {
      box-shadow: 0 0 0 1px rgba(168,85,247,0.8), 0 0 40px rgba(168,85,247,0.7);
    }

    .feature-card.active[data-color="indigo"] {
      box-shadow: 0 0 0 1px rgba(79,70,229,0.8), 0 0 40px rgba(79,70,229,0.7);
    }

    .feature-card.active[data-color="pink"] {
      box-shadow: 0 0 0 1px rgba(236,72,153,0.8), 0 0 40px rgba(236,72,153,0.7);
    }

    .feature-card.active[data-color="rose"] {
      box-shadow: 0 0 0 1px rgba(244,63,94,0.8), 0 0 40px rgba(244,63,94,0.7);
    }
    
    .feature-card.active[data-color="emerald"] {
      box-shadow: 0 0 0 1px rgba(16,185,129,0.85), 0 0 40px rgba(16,185,129,0.75);
    }

    /* FAQ accordion */
    .faq-item .faq-content {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .faq-item.open .faq-content {
      max-height: 400px;
      opacity: 1;
    }

    /* Progress bar animation */
    .js-progress {
      width: 0%;
    }

    .js-progress.animate-progress {
      animation: load-progress 5s linear infinite;
    }

    @keyframes load-progress {
      from { width: 0%; }
      to { width: 100%; }
    }


    /* Generic floating animations for background orbs */
    .float-slow {
      animation: float-slow 18s ease-in-out infinite;
    }

    .float-slower {
      animation: float-slower 26s ease-in-out infinite;
    }

    @keyframes float-slow {
      0% { transform: translate3d(0, 0, 0); }
      50% { transform: translate3d(0, -10px, 0); }
      100% { transform: translate3d(0, 0, 0); }
    }

    @keyframes float-slower {
      0% { transform: translate3d(0, 0, 0); }
      50% { transform: translate3d(10px, 10px, 0); }
      100% { transform: translate3d(0, 0, 0); }
    }

    /* Subtle moving grid for lower sections */
    .lower-grid {
      animation: grid-move 40s linear infinite;
    }

    @keyframes grid-move {
      0% {
        background-position: 0 0, 0 0;
      }
      50% {
        background-position: 40px 40px, -40px 40px;
      }
      100% {
        background-position: 0 0, 0 0;
      }
    }
    /* Markets ambient orbs */
    .markets-orb-1 {
      position: absolute;
      top: 0;
      left: 25%;
      width: 24rem;
      height: 24rem;
      border-radius: 9999px;
      background-color: rgba(59,130,246,0.07);
      filter: blur(100px);
      animation: float-orb-1 20s ease-in-out infinite;
    }

    .markets-orb-2 {
      position: absolute;
      bottom: 0;
      right: 25%;
      width: 24rem;
      height: 24rem;
      border-radius: 9999px;
      background-color: rgba(147,51,234,0.06);
      filter: blur(100px);
      animation: float-orb-2 25s ease-in-out infinite;
    }

    @keyframes float-orb-1 {
      0% { transform: translate(0,0); }
      50% { transform: translate(100px,-50px); }
      100% { transform: translate(0,0); }
    }

    @keyframes float-orb-2 {
      0% { transform: translate(0,0); }
      50% { transform: translate(-100px,50px); }
      100% { transform: translate(0,0); }
    }

    /* Large glowing orb in Features */
    .features-orb {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 1000px;
      height: 1000px;
      border-radius: 9999px;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle at center, rgba(59,130,246,0.35), rgba(139,92,246,0.05));
      filter: blur(40px);
      opacity: 0.03;
      animation: features-orb 10s ease-in-out infinite;
    }

    @keyframes features-orb {
      0% { transform: translate(-50%, -50%) scale(1); opacity: 0.03; }
      50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.06; }
      100% { transform: translate(-50%, -50%) scale(1); opacity: 0.03; }
    }

    /* How it works glowing orb */
    .how-orb {
      position: absolute;
      top: 50%;
      left: 0;
      width: 600px;
      height: 600px;
      transform: translate(-50%, -50%);
      border-radius: 9999px;
      background-color: rgba(59,130,246,0.4);
      filter: blur(96px);
      opacity: 0.03;
      animation: how-orb 8s ease-in-out infinite;
    }

    @keyframes how-orb {
      0%,100% { opacity: 0.03; }
      50% { opacity: 0.06; }
    }

    /* Subtle hover transitions for buttons */
    .btn-primary {
      transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.2s ease;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 20px 45px rgba(59,130,246,0.45);
    }

    .btn-outline {
      transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .btn-outline:hover {
      transform: translateY(-1px);
    }

    .shadow-soft-blue {
      box-shadow: 0 25px 60px rgba(59,130,246,0.35);
    }

    /* Footer social hover */
    .social-btn {
      transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .social-btn:hover {
      transform: translateY(-1px) scale(1.05);
    }
  
    /* === PATCH: underline + hover details + pricing glow === */
    .underline-hero {
      transform-origin: center;
      animation: underline-wipe 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    }
    @keyframes underline-wipe {
      0% { transform: scaleX(0); opacity: 0; }
      10% { transform: scaleX(1); opacity: 1; }
      90% { transform: scaleX(1); opacity: 1; }
      100% { transform: scaleX(0); opacity: 0; }
    }
    /* Hover to reveal feature bullets */
    .feature-card:hover .feature-details {
      max-height: 360px;
      opacity: 1;
    }
    .feature-card.active:hover { transform: translateY(-6px) scale(1.03); }
    .feature-card[data-color="blue"]:hover {
      box-shadow: 0 0 0 1px rgba(59,130,246,0.8), 0 0 40px rgba(59,130,246,0.7);
    }
    .feature-card[data-color="cyan"]:hover {
      box-shadow: 0 0 0 1px rgba(34,211,238,0.8), 0 0 40px rgba(34,211,238,0.7);
    }
    .feature-card[data-color="purple"]:hover {
      box-shadow: 0 0 0 1px rgba(168,85,247,0.8), 0 0 40px rgba(168,85,247,0.7);
    }
    .feature-card[data-color="indigo"]:hover {
      box-shadow: 0 0 0 1px rgba(79,70,229,0.8), 0 0 40px rgba(79,70,229,0.7);
    }
    .feature-card[data-color="pink"]:hover {
      box-shadow: 0 0 0 1px rgba(236,72,153,0.8), 0 0 40px rgba(236,72,153,0.7);
    }
    .feature-card[data-color="rose"]:hover {
      box-shadow: 0 0 0 1px rgba(244,63,94,0.8), 0 0 40px rgba(244,63,94,0.7);
    }
    .feature-card[data-color="emerald"]:hover {
      box-shadow: 0 0 0 1px rgba(16,185,129,0.85), 0 0 40px rgba(16,185,129,0.75);
    }
    /* Pricing "Pro" glow pulse */
    .glow-pulse { animation: glowPulse 4.5s ease-in-out infinite; }
    @keyframes glowPulse {
      0% { opacity: .25; filter: blur(16px) saturate(1); }
      50% { opacity: .6; filter: blur(24px) saturate(1.25); }
      100% { opacity: .25; filter: blur(16px) saturate(1); }
    }

    /* Pricing toggle + yearly highlight */
    #billing-toggle {
      transform-origin: center;
      background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,0.96));
      box-shadow: 0 14px 35px rgba(15,23,42,0.9);
      transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
      position: relative;
      overflow: hidden;
    }
    #billing-toggle::before {
      content: "";
      position: absolute;
      inset: 2px;
      border-radius: 9999px;
      background: radial-gradient(circle at left, rgba(59,130,246,0.25), transparent 60%);
      opacity: 0.9;
      transform: translateX(0);
      transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
      pointer-events: none;
    }
    #billing-toggle .billing-label-month,
    #billing-toggle .billing-label-year {
      position: relative;
      z-index: 1;
      transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    }
    #billing-toggle.is-yearly {
      background-image: linear-gradient(to right, rgba(37,99,235,0.9), rgba(56,189,248,0.95));
      border-color: rgba(191,219,254,0.95);
      box-shadow: 0 20px 55px rgba(37,99,235,0.65);
      color: #eff6ff;
      transform: translateY(-1px);
    }
    #billing-toggle.is-yearly::before {
      background: radial-gradient(circle at right, rgba(16,185,129,0.35), transparent 60%);
      transform: translateX(4px);
    }
    #billing-toggle.is-yearly .billing-label-month {
      opacity: 0.7;
      transform: translateX(-2px);
    }
    #billing-toggle.is-yearly .billing-label-year {
      text-transform: uppercase;
      letter-spacing: 0.08em;
      transform: translateX(2px);
    }

    .price-change {
      animation: priceChange 0.35s ease-out;
    }
    @keyframes priceChange {
      0% { transform: scale(0.9); opacity: 0; }
      60% { transform: scale(1.06); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }

    .pricing-card.pricing-yearly {
      box-shadow: 0 30px 80px rgba(59,130,246,0.4);
      border-color: rgba(59,130,246,0.95);
      transform: translateY(-6px) scale(1.02);
      background-image: radial-gradient(circle at top, rgba(59,130,246,0.18), transparent 55%);
      animation: pricingYearlyGlow 0.6s ease-out;
    }
    @keyframes pricingYearlyGlow {
      0% {
        box-shadow: 0 0 0 rgba(59,130,246,0);
        transform: translateY(-2px) scale(1);
      }
      60% {
        box-shadow: 0 35px 95px rgba(59,130,246,0.5);
        transform: translateY(-7px) scale(1.03);
      }
      100% {
        box-shadow: 0 30px 80px rgba(59,130,246,0.4);
        transform: translateY(-6px) scale(1.02);
      }
    }

    #pricing.pricing-yearly-mode {
      animation: pricingModeFlash 0.5s ease-out;
    }
    @keyframes pricingModeFlash {
      0% {
        box-shadow: 0 0 0 rgba(59,130,246,0);
      }
      40% {
        box-shadow: 0 0 80px rgba(59,130,246,0.35);
      }
      100% {
        box-shadow: 0 0 0 rgba(59,130,246,0);
      }
    }


    /* Pricing plan glows: blue for Pro, purple for Prop */
    .pricing-glow {
      position: absolute;
      inset: -0.75rem;
      border-radius: 1.75rem;
      filter: blur(28px);
      opacity: 0;
      transition: opacity 0.35s ease, transform 0.35s ease;
      pointer-events: none;
    }
    .pricing-glow-pro {
      background: radial-gradient(circle at top, rgba(59,130,246,0.55), transparent 65%);
    }
    .pricing-glow-prop {
      background: radial-gradient(circle at top, rgba(147,51,234,0.55), transparent 65%);
    }
    /* Monthly: only Prop glows (purple). Yearly: Pro (blue) and Prop (purple) */
    #pricing .pricing-glow-prop {
      opacity: 0.55;
    }
    #pricing.pricing-yearly-mode .pricing-glow-pro {
      opacity: 0.55;
    }

    /* Disable extra Prop hover overlay in yearly mode */
    #pricing.pricing-yearly-mode .prop-hover-overlay {
      opacity: 0 !important;
    }

    /* Yearly mode specific glows per plan */
    #pricing .pricing-card.pricing-yearly.pro-yearly {
      box-shadow: 0 30px 80px rgba(59,130,246,0.55);
      border-color: rgba(59,130,246,0.98);
      transform: translateY(-6px) scale(1.02);
      background-image: radial-gradient(circle at top, rgba(59,130,246,0.24), transparent 55%);
      animation: pricingYearlyGlowBlue 0.6s ease-out;
    }
    #pricing .pricing-card.pricing-yearly.prop-yearly {
      box-shadow: 0 30px 80px rgba(147,51,234,0.55);
      border-color: rgba(147,51,234,0.98);
      transform: translateY(-6px) scale(1.02);
      background-image: radial-gradient(circle at top, rgba(147,51,234,0.24), transparent 55%);
      animation: pricingYearlyGlowPurple 0.6s ease-out;
    }
    @keyframes pricingYearlyGlowBlue {
      0% {
        box-shadow: 0 0 0 rgba(59,130,246,0);
        transform: translateY(-2px) scale(1);
      }
      60% {
        box-shadow: 0 35px 95px rgba(59,130,246,0.55);
        transform: translateY(-7px) scale(1.03);
      }
      100% {
        box-shadow: 0 30px 80px rgba(59,130,246,0.5);
        transform: translateY(-6px) scale(1.02);
      }
    }
    @keyframes pricingYearlyGlowPurple {
      0% {
        box-shadow: 0 0 0 rgba(147,51,234,0);
        transform: translateY(-2px) scale(1);
      }
      60% {
        box-shadow: 0 35px 95px rgba(147,51,234,0.55);
        transform: translateY(-7px) scale(1.03);
      }
      100% {
        box-shadow: 0 30px 80px rgba(147,51,234,0.5);
        transform: translateY(-6px) scale(1.02);
      }
    }

    /* Hover pop-up for yearly Pro & Prop */
    #pricing .pricing-card.pricing-yearly.pro-yearly:hover {
      transform: translateY(-10px) scale(1.04);
      box-shadow: 0 40px 110px rgba(59,130,246,0.65);
    }
    #pricing .pricing-card.pricing-yearly.prop-yearly:hover {
      transform: translateY(-10px) scale(1.04);
    }
/* Trust badges + generic hover glow */
    .trust-badge {
      position: relative;
      flex: 0 0 auto;
      min-width: 170px;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
      will-change: transform, box-shadow;
      transform-origin: center;
    }
    .trust-badge.animate-visible {
      /* keep scroll fade-in from .js-animate, but no extra color animation */
      animation: none;
    }
    .trust-badges-viewport {
      overflow: hidden;
      mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
    .trust-badge-marquee {
      display: flex;
      align-items: stretch;
      gap: 1rem;
      width: max-content;
      will-change: transform;
      animation: trustBadgeMarquee 38s linear infinite;
    }
    @keyframes trustBadgeMarquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
@keyframes badgeIdle {
      0%, 100% {
        background-color: rgba(15,23,42,0.92);
        border-color: rgba(15,23,42,0.85);
      }
      50% {
        background-color: rgba(15,23,42,0.98);
        border-color: rgba(51,65,85,0.8);
      }
    }
    @keyframes badgeIntro {
      0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
      }
      60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .hover-glow {
      transition: box-shadow 0.25s ease, transform 0.25s ease;
    }
    .hover-glow:hover {
      box-shadow: 0 20px 50px rgba(59,130,246,0.35);
      transform: translateY(-3px);
    }
    .faq-trigger-glow {
      transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    }
    .faq-trigger-glow:hover {
      transform: translateY(-1px);
      background-color: transparent;
      box-shadow: none;
      border-radius: 0.75rem;
    }



    
    /* Page transition overlay */
    .page-transition-overlay {
      position: fixed;
      inset: 0;
      background-color: #030712;
      opacity: 0;
      pointer-events: none;
      transition: opacity 170ms cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 9999;
    }

    .page-transition-overlay.is-active {
      opacity: 1;
      pointer-events: auto;
    }

/* ---- Inline <style> block moved from original HTML ---- */
/* --- TRL PATCH: prevent BFCache snapshot content flash on mobile Back (hide restored snapshot) */
  html.trl-bfcache-hide body { opacity: 0 !important; }
  html.trl-bfcache-hide .page-transition-overlay { opacity: 1 !important; pointer-events: auto !important; }

/* ---- Inline <style> block moved from original HTML ---- */
body {
      background-color: #030712;
      color: #e5e7eb;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    }

    #site-header {
      background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.92));
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(30,64,175,0.45);
    }

    
    
    
    /* Article body — professional, readable blog/news layout */
    .article-shell{
      max-width: 1320px;
      margin: 0 auto;
      padding: 0 1.25rem;
    }
    @media (min-width: 768px){
      .article-shell{ padding: 0 2rem; }
    }

    .article-layout{
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 2.5rem;
      align-items: start;
    }
    @media (min-width: 1024px){
      .article-layout{
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 3.5rem;
      }
    }

    /* Main reading column */
    .article-body{ background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }

    .article-content{
      /* Keep the page wide, but keep line-length readable */
      max-width: 80ch;
      margin: 0;
      color: rgba(226,232,240,0.90);
      font-size: 1.08rem;
      line-height: 1.95;
      letter-spacing: 0.001em;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      font-kerning: normal;
    }
    @media (min-width: 1024px){
      .article-content{ font-size: 1.18rem; line-height: 2.0; }
    }

    .article-content .lede{
      font-size: 1.20rem;
      line-height: 1.9;
      color: rgba(248,250,252,0.97);
      margin: 0 0 1.05rem;
    }
    @media (min-width: 1024px){
      .article-content .lede{ font-size: 1.26rem; }
    }

    /* Headings */
    .article-content h2{
      font-size: 2.05rem;
      line-height: 1.15;
      color: #ffffff;
      margin: 2.35rem 0 0.95rem;
      letter-spacing: -0.022em;
      position: relative;
      padding-top: 0.25rem;
    }
    .article-content h2::after{
      content: "";
      position: absolute;
      left: 0;
      bottom: -0.45rem;
      width: 96px;
      height: 2px;
      border-radius: 9999px;
      background: linear-gradient(to right, rgba(59,130,246,0.85), rgba(34,211,238,0.10));
      opacity: 0.9;
    }

    .article-content h3{
      font-size: 1.24rem;
      line-height: 1.45;
      color: rgba(255,255,255,0.96);
      margin: 1.55rem 0 0.55rem;
      letter-spacing: -0.01em;
    }

    .article-content p{ margin: 0.95rem 0; }

    /* Lists */
    .article-content ul{
      margin: 0.95rem 0 1.15rem 1.25rem;
      list-style: disc;
    }
    .article-content li{
      margin: 0.55rem 0;
      color: rgba(226,232,240,0.88);
    }

        /* Checklist lists: avoid double bullet + checkmark (auto-applied via JS) */
    .article-content ul.trl-checklist{
      list-style: none;
      margin-left: 0;
      padding-left: 0;
    }
    .article-content ul.trl-checklist{list-style:none;margin-left:0;padding-left:0;}
    .article-content ul.trl-checklist li{padding-left:0;margin:0.6rem 0;}

    /* Icon lists (e.g., ❌ / ⚠️) rendered without default bullets */
    .article-content ul.trl-iconlist{
      list-style: none;
      margin-left: 0;
      padding-left: 0;
    }
    .article-content ul.trl-iconlist li{
      padding-left: 0;
      margin: 0.6rem 0;
      color: rgba(226,232,240,0.88);
    }
.article-content strong{ color:#ffffff; font-weight: 650; }

    /* Links */
    .article-content a{
      color: #93c5fd;
      text-decoration: underline;
      text-decoration-color: rgba(147,197,253,0.40);
      text-underline-offset: 3px;
      transition: color 0.2s ease, text-decoration-color 0.2s ease;
    }
    .article-content a:hover{
      color:#dbeafe;
      text-decoration-color: rgba(219,234,254,0.85);
    }

    .article-divider{
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(59,130,246,0.45), transparent);
      margin: 1.45rem 0 1.75rem;
      opacity: 0.95;
    }

    /* Clean “info” blocks (flat, high-contrast, not glassy) */
    .highlight-box{
      background: rgba(2,6,23,0.42);
      border: 1px solid rgba(148,163,184,0.22);
      border-radius: 14px;
      padding: 1.05rem 1.15rem;
      margin: 1.25rem 0;
    }
    .highlight-box p{
      margin: 0.42rem 0;
      color: rgba(248,250,252,0.95);
      font-variant-numeric: tabular-nums;
    }

    .key-box{
      background: rgba(2,132,199,0.12);
      border: 1px solid rgba(34,211,238,0.24);
      border-left: 4px solid rgba(34,211,238,0.9);
      border-radius: 14px;
      padding: 1.05rem 1.15rem;
      margin: 1.25rem 0;
    }
    .key-box p{ margin:0; color: rgba(248,250,252,0.95); }

    /* Scroll offset for in-page anchors */
    :root{--trl-scroll-offset:96px;}
    @media (max-width:1023px){:root{--trl-scroll-offset:84px;}}
    .article-content h2,.article-content h3{scroll-margin-top:calc(var(--trl-scroll-offset) + 14px);}    #what-is-the-sharpe-ratio,#why-risk-adjusted-metrics-matter,#what-is-considered-a-good-sharpe-ratio,#why-traders-track-sharpe-ratio,#final-thoughts{scroll-margin-top:calc(var(--trl-scroll-offset) + 14px);}

    /* Desktop table of contents */
    .article-toc{
      position: sticky;
      top: 96px;
      padding: 0.9rem 0 0.9rem 1.35rem;
      border-left: 1px solid rgba(148,163,184,0.24);
      color: rgba(148,163,184,0.92);
    }
    .article-toc h4{
      color: rgba(241,245,249,0.92);
      font-size: 0.78rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      margin: 0 0 0.8rem;
    }
    .article-toc a{
      display: block;
      padding: 0.38rem 0;
      font-size: 0.96rem;
      color: rgba(148,163,184,0.92);
      text-decoration: none;
      transition: color 0.18s ease, transform 0.18s ease;
    }
    .article-toc a:hover{
      color: rgba(226,232,240,0.96);
      transform: translateX(2px);
    }

/* ---- Inline style="" attributes moved from original HTML ---- */
.trl-inline-style-1{background: transparent;}
.trl-inline-style-2{background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);}
.trl-inline-style-3{background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);}
.trl-inline-style-4{background-image:
             linear-gradient(rgba(59, 130, 246, 0.5) 1px, transparent 1px),
             linear-gradient(90deg, rgba(59, 130, 246, 0.5) 1px, transparent 1px);
             background-size: 60px 60px;}
.trl-inline-style-5{background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 60%); filter: blur(40px); opacity: 0.18;}
.trl-inline-style-6{background: radial-gradient(circle, rgba(139,92,246,0.09) 0%, transparent 60%); filter: blur(50px); opacity: 0.14;}

/* Home-style mobile side-menu auth layout */
#mobile-menu #trl-mobile-cta{display:flex;flex-direction:column;gap:1rem;}
#mobile-menu #trl-mobile-cta a{width:100%;}
