/* ==========================================================================
   THSinvestor - Monochrome Design System
   Light / Dark theme tokens and the component layer that applies them.

   Loaded LAST (priority 99 in inc/assets.php) so it always wins the cascade.
   Inspired by tipsheet.markets (editorial monochrome, hairline rules) and
   polar.sh (restrained motion, clean surfaces).

   Rules for anyone editing this file:
   1. Colour lives in the token block below. Do not hardcode hex in components.
   2. Colour is only allowed where it means something: market direction
      (--up / --down / --warn) and the chart data series. Everything else is
      ink on paper.
   3. Never go below 12px text or a 44px tap target.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS - LIGHT
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Surfaces */
  --paper: #ffffff;
  --paper-2: #f5f5f5;
  --paper-3: #ebebeb;
  --surface-glass: rgba(255, 255, 255, 0.9);

  /* Ink */
  --ink: #161616;
  --ink-2: #474747;
  --ink-3: #6b6b6b;
  --ink-inverse: #ffffff;

  /* Hairlines */
  --rule: #e3e3e3;
  --rule-2: #d2d2d2;
  --rule-strong: #161616;
  --grid-line: #ececec;

  /* Meaning-carrying colour.
     The brand green is the logo teal, sampled from logo-128.webp (#099895).
     --brand is the mark colour used for dots and rings; --up is the darkened
     shade of the same hue that passes contrast as small text on paper. */
  --brand: #099895;
  --brand-strong: #077a72;
  --brand-bg: rgba(9, 152, 149, 0.10);
  /* Text-safe shades. The heat tints in the returns table sit under these,
     so they are darker than the mark colour rather than the same. */
  --up: #056b66;
  --up-bg: var(--brand-bg);
  --down: #a83a33;
  --down-bg: rgba(192, 73, 65, 0.08);
  --warn: #ad7c1d;
  --warn-bg: rgba(173, 124, 29, 0.08);

  /* Pro gold. The fifth colour, used only for THSinvestor Plus.
     --pro is the text-safe shade on paper; --pro-accent is the mark shade
     for fills, rules and dots; --pro-on is the ink that sits on a gold fill. */
  --pro: #8a6500;
  --pro-accent: #c9a227;
  --pro-bg: rgba(201, 162, 39, 0.12);
  --pro-on: #1a1405;

  /* The exact gold ramp used on the Plus page, shared so the homepage
     advertises Plus in the same metal. */
  --gold: #c49946;
  --gold-light: #e3bc6b;
  --gold-deep: #a87c2e;

  /* Data series */
  --series-1: #161616;
  --series-2: #3d7abc;
  --series-3: #0b6f7a;
  --series-4: #cb6443;
  --focus: #3b59d9;


  /* Legacy aliases: every old template keeps working, values now monochrome */
  --color-surface: var(--paper);
  --color-dark: var(--ink);
  --color-slate: var(--ink-2);
  --color-muted: var(--ink-3);
  --color-primary: var(--ink);
  --color-primary-light: var(--ink-2);
  --color-primary-glow: rgba(22, 22, 22, 0.08);
  --color-secondary: var(--ink);
  --color-secondary-light: var(--ink-2);
  --color-secondary-glow: rgba(22, 22, 22, 0.08);
  --color-ink: var(--ink);
  --color-rule: var(--rule);

  /* Tailwind-ish slate scale the old templates reference */
  --color-slate-50: var(--paper-2);
  --color-slate-100: var(--paper-3);
  --color-slate-200: var(--rule);
  --color-slate-300: var(--rule-2);
  --color-slate-400: var(--ink-3);
  --color-slate-500: var(--ink-3);
  --color-slate-600: var(--ink-2);
  --color-slate-700: var(--ink-2);
  --color-slate-800: var(--ink);
  --color-slate-900: var(--ink);

  /* Shadows: crisp, no neon */
  --shadow-soft: 0 8px 24px -8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 10px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px -12px rgba(0, 0, 0, 0.1);
  --shadow-glow: none;
  --shadow-glow-secondary: none;

  /* Type */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   2. TOKENS - DARK
   Two triggers: the OS preference (unless the visitor forced light) and the
   explicit data-theme attribute set by the toggle.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;

    --paper: #151515;
    --paper-2: #1d1d1d;
    --paper-3: #262626;
    --surface-glass: rgba(21, 21, 21, 0.9);

    --ink: #ededed;
    --ink-2: #b8b8b8;
    --ink-3: #979797;
    --ink-inverse: #151515;

    --rule: #2b2b2b;
    --rule-2: #383838;
    --rule-strong: #ededed;
    --grid-line: #222222;

    --brand: #3ecfc7;
    --brand-strong: #52dbd2;
    --brand-bg: rgba(62, 207, 199, 0.14);
    --up: var(--brand-strong);
    --up-bg: var(--brand-bg);
    --down: #df6c62;
    --down-bg: rgba(223, 108, 98, 0.14);
    --warn: #c7943c;
    --warn-bg: rgba(199, 148, 60, 0.14);

    --pro: #e8c46a;
    --pro-accent: #f2d488;
    --pro-bg: rgba(232, 196, 106, 0.16);
    --pro-on: #151515;

    --series-1: #ededed;
    --series-2: #508ed1;
    --series-3: #3fb3bd;
    --series-4: #c65f3f;
    --focus: #8ea2ff;



    --color-primary-glow: rgba(237, 237, 237, 0.08);
    --color-secondary-glow: rgba(237, 237, 237, 0.08);

    --shadow-soft: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 2px 10px -2px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #151515;
  --paper-2: #1d1d1d;
  --paper-3: #262626;
  --surface-glass: rgba(21, 21, 21, 0.9);

  --ink: #ededed;
  --ink-2: #b8b8b8;
  --ink-3: #979797;
  --ink-inverse: #151515;

  --rule: #2b2b2b;
  --rule-2: #383838;
  --rule-strong: #ededed;
  --grid-line: #222222;

  --brand: #3ecfc7;
  --brand-strong: #52dbd2;
  --brand-bg: rgba(62, 207, 199, 0.14);
  --up: var(--brand-strong);
  --up-bg: var(--brand-bg);
  --down: #e8817a;
  --down-bg: rgba(223, 108, 98, 0.14);
  --warn: #c7943c;
  --warn-bg: rgba(199, 148, 60, 0.14);

  --pro: #e8c46a;
  --pro-accent: #f2d488;
  --pro-bg: rgba(232, 196, 106, 0.16);
  --pro-on: #151515;

  --gold: #c49946;
  --gold-light: #e3bc6b;
  --gold-deep: #a87c2e;

  --series-1: #ededed;
  --series-2: #508ed1;
  --series-3: #3fb3bd;
  --series-4: #c65f3f;
  --focus: #8ea2ff;

  --color-primary-glow: rgba(237, 237, 237, 0.08);
  --color-secondary-glow: rgba(237, 237, 237, 0.08);

  --shadow-soft: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 2px 10px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */
html {
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}.footer-bg{
  display: none !important;
  animation: none !important;
}

/* The old neon text sweep becomes solid ink. */
.emerald-glow-text {
  display: inline;
  color: var(--ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

.gradient-text {
  color: var(--ink) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION
   -------------------------------------------------------------------------- */
.nav-wrapper {
  padding: 0.75rem 1rem;
}

.glass,
.glass-card {
  background: var(--surface-glass) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
}

.nav-inner {
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  border-radius: 999px;
  min-height: 56px;
}

@media (min-width: 1024px) {
  .nav-inner {
    min-height: 62px;
  }
}

.logo-text {
  color: var(--ink) !important;
  font-weight: 700;
}

.logo-text-light {
  color: var(--ink-3) !important;
  font-weight: 400;
}

.nav-link {
  color: var(--ink-2) !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--ink) !important;
}

.nav-link-underline {
  background: var(--ink) !important;
  box-shadow: none !important;
  height: 1.5px !important;
}

.menu-toggle {
  color: var(--ink) !important;
  border: 1px solid var(--rule-2) !important;
  background: transparent !important;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle:hover {
  border-color: var(--ink) !important;
}.btn-primary, .btn-primary-sm, .cta-btn-primary{
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-weight: 600;
}.btn-primary:hover, .btn-primary-sm:hover, .cta-btn-primary:hover{
  opacity: 0.86;
  transform: translateY(-1px);
  background: var(--ink) !important;
  color: var(--paper) !important;
}.btn-primary svg, .btn-primary-sm svg, .cta-btn-primary svg{
  stroke: currentColor !important;
}.cta-btn-secondary{
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--rule-2) !important;
  box-shadow: none !important;
}.cta-btn-secondary:hover{
  border-color: var(--ink) !important;
  color: var(--ink) !important;
  background: var(--paper-2) !important;
}.cta-btn-secondary svg{
  stroke: currentColor !important;
}

/* Mobile menu */
.mobile-menu {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 14px 14px 16px !important;
}

.mobile-nav-link {
  color: var(--ink) !important;
  border-bottom: 1px solid var(--rule);
}

/* The last row is the Plus CTA, so it keeps the inverted treatment. */
.mobile-nav-link.btn-primary,
.mobile-nav-link.mobile-cta,
.mobile-nav-link.btn-primary span,
.mobile-nav-link.mobile-cta span {
  color: var(--paper) !important;
  background: var(--ink) !important;
  border: 1px solid var(--ink) !important;
}

.mobile-nav-link.btn-primary:hover,
.mobile-nav-link.mobile-cta:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  opacity: 0.88;
}

.mobile-nav-link.btn-primary svg,
.mobile-nav-link.mobile-cta svg {
  stroke: var(--paper) !important;
}

/* A calm panel, no drop shadow bloom. */
.mobile-menu {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 14px 14px 16px !important;
}

/* Newsletter checkboxes: a larger hit area on the row. */
footer .newsletter-checkbox-label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

footer input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: none;
}

.mobile-nav-link:hover {
  color: var(--ink) !important;
  background: var(--paper-2);
}

/* Theme toggle button (header) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.theme-toggle:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: block;
}

/* Light mode: offer the moon (go dark). Dark mode: offer the sun (go light). */
.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .theme-toggle .icon-sun {
    display: block;
  }

  :root:where(:not([data-theme="light"])) .theme-toggle .icon-moon {
    display: none;
  }
}

@media (max-width: 480px) {
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
}

/* Footer text pill toggle */
.theme-switch-pill {
  font: inherit;
  font-size: 12px;
  color: var(--ink-2);
  background: none;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.theme-switch-pill:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   5. FOOTER
   -------------------------------------------------------------------------- */
footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

footer .brand-name,
footer .disclaimer-title,
footer h4,
footer h3 {
  color: var(--ink) !important;
}

footer .brand-name-light {
  color: var(--ink-3) !important;
}

footer .brand-description,
footer .footer-link,
footer .newsletter-description,
footer .disclaimer-text,
footer .footer-bottom,
footer .footer-bottom-right,
footer .newsletter-checkbox-label {
  color: var(--ink-2) !important;
}

footer .footer-link:hover {
  color: var(--ink) !important;
}

footer .social-icon {
  color: var(--ink-2) !important;
  border: 1px solid var(--rule-2) !important;
  background: transparent !important;
  min-width: 44px;
  min-height: 44px;
}

footer .social-icon:hover {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  background: var(--paper-3) !important;
}

footer .glass-card,
footer .disclaimer-card {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
}.glass-input, footer input[type="email"], footer input[type="text"]{
  background: var(--paper) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
  min-height: 44px;
}

.glass-input::placeholder,
footer input::placeholder {
  color: var(--ink-3) !important;
}

.glass-input:focus,
footer input:focus {
  border-color: var(--ink) !important;
  outline: none;
}

footer input[type="checkbox"] {
  accent-color: var(--ink);
}

footer .submit-btn {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  font-weight: 600;
}

footer .submit-btn:hover {
  opacity: 0.86;
}

footer .live-indicator {
  background: var(--up) !important;
  box-shadow: none !important;
}.premium-card, .archive-card, .lesson-card, .info-card, .contact-form-wrapper, .sp-card, .sidebar-card, .toc-content{
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: var(--shadow-card) !important;
  color: var(--ink) !important;
}.premium-card:hover, .archive-card:hover, .lesson-card:hover{
  border-color: var(--rule-strong) !important;
}.hero-section, .archive-hero{
  background: var(--paper-2) !important;
  border-bottom: 1px solid var(--rule) !important;
  color: var(--ink) !important;
  animation: none !important;
}.hero-title, .archive-title, .hero-ta .hero-title, .hero-title .text-white, .hero-title span, .hero-subtitle, .archive-desc, .hero-badge, .archive-badge{
  color: var(--ink) !important;
}.hero-subtitle, .archive-desc{
  color: var(--ink-2) !important;
}.archive-note{
  color: var(--ink-3) !important;
}

.hero-badge,
.archive-badge {
  background: var(--paper) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
}.archive-badge::before, .live-dot{
  background: var(--ink-3) !important;
  box-shadow: none !important;
}

/* Section headers */
.section-title,
.section-subtitle,
.section-header h2,
.section-header p {
  color: var(--ink) !important;
}

.section-subtitle,
.section-header p {
  color: var(--ink-2) !important;
}.section-header-line{
  background: var(--ink) !important;
  box-shadow: none !important;
  width: 3px !important;
  border-radius: 0 !important;
}.badge-green, .badge, .archive-start-eyebrow{
  background: var(--paper-2) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

/* Tables and meta strips */
table {
  border-color: var(--rule) !important;
}

th,
td {
  border-color: var(--rule) !important;
  color: var(--ink) !important;
}

thead th {
  background: var(--paper-2) !important;
  color: var(--ink-2) !important;
}

/* --------------------------------------------------------------------------
   7. TEMPLATE-SCOPED ALIASES
   The Indian weekly wrap stylesheet and the Plus landing page each declare
   their own prefix (--ind-*, --bp-*). They lost their colour :root blocks in
   the migration, so the aliases live here. One definition, both themes.
   -------------------------------------------------------------------------- */
:root {
  --ind-primary: var(--ink);
  --ind-light: var(--ink-2);
  --ind-secondary: var(--ink-2);
  --ind-dark: var(--ink);
  --ind-slate: var(--ink-2);
  --ind-muted: var(--ink-3);
}

/* --------------------------------------------------------------------------
   8. THEME TRANSITION SUPPORT
   Chart.js cannot read CSS variables, so it listens for this event.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   9. HOME HERO - MARKET TERMINAL
   Two panels of real published numbers, separated by hairlines. No glow,
   no orbit rings, tabular numerals so the figures line up.
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 0 !important;
  padding: clamp(96px, 12vw, 132px) 1rem clamp(40px, 6vw, 72px) !important;
  background: var(--paper) !important;
  border-bottom: 1px solid var(--rule) !important;
}

/* One column at every width: the promise on top, the dashboard underneath.
   The two-column version left the headline floating in the middle of an empty
   left half on anything wider than 1000px. */
/* The hero uses the same gutter and max width as every .section, so the live
   cards and the strategy cards below start and end on the same lines. */
@media (min-width: 1024px) {
  .hero-section {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

.hero-container {
  max-width: 72rem;
  margin-inline: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}

/* The copy block never runs the full width of a 1440 screen. */
.hero-content {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    margin-inline: 0;
    text-align: left;
  }
}

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin: 0 0 18px !important;
}

.hero-title span {
  display: block;
  color: var(--ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
  line-height: 1.6 !important;
  color: var(--ink-2) !important;
  max-width: 34rem;
  margin: 0 0 28px !important;
}

.hero-animate-badge {
  display: block;
  margin: 0 0 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 14px 6px 12px !important;
  border-radius: 999px !important;
  background: var(--paper-2) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink-2) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* The label sits beside a live dot that radiates two green rings, so the
   badge reads as "this data is current" rather than as decoration. */
.hero-badge .live-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink-2) !important;
  background: transparent !important;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  padding-left: 20px;
}

/* --------------------------------------------------------------------------
   THE LIVE DOT - one pattern, used everywhere on the site
   A solid brand dot with a ring that expands and fades. Any element that
   carries `data-dot` and has room for a 8px marker can use it, so the hero
   badge, both market-state chips and the footer indicator all pulse in the
   same rhythm.
   -------------------------------------------------------------------------- */
@keyframes ths-live-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(3.2);
    opacity: 0;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}.hero-badge .live-dot, footer .live-indicator{
  --dot-color: var(--brand);
  --dot-size: 8px;
}.hero-badge .live-dot::before, footer .live-indicator::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--dot-size);
  height: var(--dot-size);
  margin-top: calc(var(--dot-size) / -2);
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 6px var(--brand-bg);
}.hero-badge .live-dot::after, footer .live-indicator::after{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--dot-size);
  height: var(--dot-size);
  margin-top: calc(var(--dot-size) / -2);
  border-radius: 50%;
  background: var(--dot-color);
  animation: ths-live-ring 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

/* A closed or quiet market keeps the dot but stops the ring. */
.terminal-state.is-closed,
.terminal-state.is-weekly {
  --dot-color: var(--ink-3);
}

.terminal-state.is-closed::after,
.terminal-state.is-weekly::after {
  animation: none;
  opacity: 0;
}

.terminal-state.is-delayed {
  --dot-color: var(--warn);
}

.hero-badge .live-dot::before,
.hero-badge .live-dot::after {
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {.hero-badge .live-dot::after, footer .live-indicator::after{
    animation: none;
    opacity: 0.22;
    transform: scale(2);
  }
}

/* The headline must start on its own baseline, never share a line with the
   badge or wrap into an orphan word on a phone. */
.hero-title {
  margin-top: 0 !important;
  text-wrap: balance;
}

/* The hero calls to action: a circle button for Plus and an underline link
   for the free course. Both use the site ink so the pair stays in the same
   palette in light and dark. */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.learn-more {
  position: relative;
  display: inline-block;
  width: 13rem;
  height: 2.75rem;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}

.learn-more:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

.learn-more .circle {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  border-radius: 1.5rem;
  background: var(--ink);
  transition: all 0.65s cubic-bezier(0.65, 0, 0.076, 1);
}

.learn-more .circle .icon {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: var(--paper);
  transition: all 0.65s cubic-bezier(0.65, 0, 0.076, 1);
}

.learn-more .circle .icon.arrow {
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
  transition: all 0.65s cubic-bezier(0.65, 0, 0.076, 1);
}

.learn-more .circle .icon.arrow::before {
  content: "";
  position: absolute;
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid var(--paper);
  border-right: 0.125rem solid var(--paper);
  transform: rotate(45deg);
}

.learn-more .button-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: 100%;
  padding: 0.7rem 0;
  margin: 0;
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.65s cubic-bezier(0.65, 0, 0.076, 1);
}

.learn-more:hover .circle {
  width: 100%;
}

.learn-more:hover .circle .icon.arrow {
  background: var(--paper);
  transform: translate(0.5rem, 0);
}

.learn-more:hover .button-text {
  color: var(--paper);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.cta span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-right: 15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cta svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transform: translateX(-8px);
  transition: all 0.45s ease;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active svg {
  transform: scale(0.9);
}

.hover-underline-animation {
  position: relative;
  padding-bottom: 0;
  color: var(--ink);
}

.hover-underline-animation::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.4s ease-out;
}

.cta:hover .hover-underline-animation::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@media (prefers-reduced-motion: reduce) {
  .learn-more .circle,
  .learn-more .circle .icon,
  .learn-more .circle .icon.arrow,
  .learn-more .button-text,
  .cta svg,
  .hover-underline-animation::after {
    transition: none;
  }
}

.terminal-state.is-live {
  color: var(--up);
}

.terminal-state.is-delayed {
  color: var(--warn);
}

.terminal-change.is-small {
  font-size: 12px;
  padding: 1px 6px;
}

.terminal-change.is-up {
  color: var(--up);
  background: var(--up-bg);
}

.terminal-change.is-down {
  color: var(--down);
  background: var(--down-bg);
}

.terminal-cell dd .is-up {
  color: var(--up);
}

.terminal-cell dd .is-down {
  color: var(--down);
}

/* The two live cards switch to a pair at the same width as the two strategy
   cards above, so the page has one rhythm rather than four. */
@media (min-width: 900px) {
}

/* On phones the card padding is still 20px. */
@media (max-width: 899px) {
}

/* Below 700px the cards stack: crypto first, Indian markets underneath,
   exactly as the DOM order now reads. */
@media (max-width: 899px) {
}

/* Between 1000 and 1279 the hero is two columns, so each market card is
   around 340px wide. Step the internal type down a notch and keep every
   value on one line. */
@media (min-width: 1000px) and (max-width: 1279px) {
}

/* Hero entrance: short and calm */
@keyframes ths-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate-title,
.hero-animate-desc,
.hero-animate-cta,
.hero-animate-badge {
  opacity: 0;
  animation: ths-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate-badge {
  animation-delay: 0.02s;
}

.hero-animate-title {
  animation-delay: 0.08s;
}

.hero-animate-desc {
  animation-delay: 0.16s;
}

.hero-animate-cta {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate-title,
  .hero-animate-desc,
  .hero-animate-cta,
  .hero-animate-badge {
    opacity: 1;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   10. HOME: CTA BAND, FEATURED CARD, SECTION SHELLS
   -------------------------------------------------------------------------- */

/* The closing CTA is a quiet paper band with ink text. */
.cta-section {
  background: var(--paper-2) !important;
  border-top: 1px solid var(--rule) !important;
  color: var(--ink) !important;
}

/* .cta-bg is hidden in the reset above, so the band paints its own colour. */
.cta-section .cta-container {
  position: relative;
  z-index: 1;
}

.cta-badge {
  background: var(--paper) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
}

.cta-title,
.cta-title .emerald-glow-text,
.cta-title span {
  color: var(--ink) !important;
}

.cta-desc {
  color: var(--ink-2) !important;
}

.trust-badge {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  color: var(--ink-2) !important;
  backdrop-filter: none !important;
}

.trust-badge svg {
  stroke: var(--ink-2) !important;
}

/* Section shells: alternating paper, hairline separators, no glow. */
.section,
.section-crypto,
.section-indian {
  background: var(--paper) !important;
  border-top: 1px solid var(--rule) !important;
}

.section-crypto,
.section-indian {
  background: var(--paper-2) !important;
}

.section-raised {
  background: transparent !important;
}

/* Hook cards */
.hook-card-title {
  color: var(--ink) !important;
}

.hook-card-desc,
.bullet-desc {
  color: var(--ink-2) !important;
}

.bullet-title {
  color: var(--ink) !important;
}

.bullet-icon {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule) !important;
}

.feature-icon {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule) !important;
  color: var(--ink) !important;
}

.feature-icon svg,
.bullet-icon svg {
  stroke: var(--ink) !important;
}

.learn-more-link {
  color: var(--ink) !important;
  border-bottom: 1px solid var(--rule-2);
}

.learn-more-link:hover {
  border-bottom-color: var(--ink);
}

.learn-more-link svg {
  stroke: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   11. BRAND MARK
   The logo keeps its emerald gradient: it is the one brand colour on the
   page and the monochrome ink around it makes it read as a mark, not a
   decoration.
   -------------------------------------------------------------------------- */
.logo-img,
.brand-logo {
  filter: none;
}

/* On the dark surface the artwork needs a touch more lift, not desaturation. */
:root[data-theme="dark"] .logo-img,
:root[data-theme="dark"] .brand-logo {
  filter: brightness(1.12) saturate(1.05);
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .logo-img,
  :root:where(:not([data-theme="light"])) .brand-logo {
    filter: brightness(1.12) saturate(1.05);
  }
}

/* Post hero reads as an editorial masthead. */
.single-post .hero-section,
.single .hero-section,
body.single .hero-section {
  min-height: 0 !important;
  padding: clamp(112px, 12vw, 150px) 20px clamp(36px, 5vw, 56px) !important;
  background: var(--paper-2) !important;
  border-bottom: 1px solid var(--rule) !important;
  text-align: left;
}

.hero-section .hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  color: var(--ink) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}.hero-subtitle{
  color: var(--ink-2) !important;
}

/* Reading progress bar */
.scroll-progress {
  background: var(--ink) !important;
  box-shadow: none !important;
}

/* Sidebar */
.sidebar-card {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: none !important;
}

.sidebar-title {
  color: var(--ink) !important;
}

.toc-toggle {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--rule-2) !important;
  border-radius: 8px !important;
  min-height: 44px;
}

.toc-toggle:hover {
  background: var(--paper-3) !important;
  box-shadow: none !important;
  transform: none;
}

.toc-toggle svg {
  stroke: var(--ink) !important;
}

.toc-link {
  color: var(--ink-2) !important;
}

.toc-link:hover,
.toc-link.active {
  color: var(--ink) !important;
}

.toc-link.active {
  font-weight: 700;
}

/* Share buttons: network brands become neutral chips. */
.share-btn {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule) !important;
  color: var(--ink-2) !important;
  box-shadow: none !important;
}

.share-btn:hover,
.share-btn.twitter:hover,
.share-btn.facebook:hover,
.share-btn.linkedin:hover,
.share-btn.whatsapp:hover,
.share-btn.copy:hover {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--paper) !important;
  transform: none !important;
}

.share-btn svg {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Article body */
.article-content {
  color: var(--ink-2);
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content strong,
.article-content b {
  color: var(--ink);
}

.article-content h2 {
  border-left: 3px solid var(--ink);
  padding-left: 14px;
}

.article-content a {
  color: var(--ink);
  text-decoration-color: var(--rule-2);
}

.article-content a:hover {
  text-decoration-color: var(--ink);
}

.article-content blockquote,
.article-content .wp-block-quote {
  background: var(--paper-2) !important;
  border-left: 3px solid var(--ink) !important;
  color: var(--ink-2) !important;
  border-radius: 0 8px 8px 0;
}

.article-content code,
.article-content pre {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--rule) !important;
}

.article-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
}

.article-content img {
  border-radius: 8px;
  border: 1px solid var(--rule);
}

/* Jump to top */
.jump-to-top {
  background: var(--ink) !important;
  color: var(--paper) !important;
  box-shadow: var(--shadow-card) !important;
}

.jump-to-top:hover {
  background: var(--ink) !important;
  opacity: 0.86;
}

/* --------------------------------------------------------------------------
   13. WEEKLY WRAP COMPONENTS
   Scoreboards, chart cards, tables, level boxes, FAQ lists.
   -------------------------------------------------------------------------- */
.article-content .ind-scoreboard,
.article-content .ths-scoreboard {
  background: var(--rule) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 12px !important;
}

.article-content .ind-score-cell,
.article-content .ths-score-cell {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

.article-content .ind-s-label,
.article-content .s-label,
.article-content .ind-cc-sub,
.article-content .cc-sub {
  color: var(--ink-3) !important;
}

.article-content .ind-s-val,
.article-content .s-val,
.article-content .ind-cc-title,
.article-content .cc-title {
  color: var(--ink) !important;
}

.article-content .ind-chart-card,
.article-content .ths-chart-card {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
}

.article-content .ind-badge.bull,
.article-content .cc-badge.bull {
  background: var(--up-bg) !important;
  color: var(--up) !important;
}

.article-content .ind-badge.bear,
.article-content .cc-badge.bear {
  background: var(--down-bg) !important;
  color: var(--down) !important;
}

.article-content .ind-badge.mix,
.article-content .cc-badge.mix {
  background: var(--warn-bg) !important;
  color: var(--warn) !important;
}

.article-content .ind-label,
.article-content .ths-label,
.article-content .ind-intro-heading,
.article-content .ths-intro-heading {
  color: var(--ink-3) !important;
}

.article-content .ind-label::after,
.article-content .ths-label::after {
  background: var(--rule) !important;
}

.article-content .ind-intro-heading::before,
.article-content .ths-intro-heading::before {
  background: var(--ink) !important;
}

.article-content .ind-intro-text,
.article-content .ths-intro-text {
  color: var(--ink-2) !important;
}

/* Any level / outlook / highlight panel inside a wrap */
.article-content .ind-outlook,
.article-content .ths-outlook,
.article-content .ind-level-box,
.article-content .ths-level-box,
.article-content .ind-highlight,
.article-content .ths-highlight {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule) !important;
  color: var(--ink) !important;
}

.article-content .ind-outlook h2,
.article-content .ths-outlook h2 {
  color: var(--ink) !important;
}

/* Wrap tables */
.article-content .ind-table,
.article-content .ths-table {
  border: 1px solid var(--rule) !important;
  background: var(--paper) !important;
}

.article-content .ind-table th,
.article-content .ths-table th {
  background: var(--paper-2) !important;
  color: var(--ink-2) !important;
}

.article-content .ind-table thead tr,
.article-content .ths-table thead tr {
  background: var(--paper-2) !important;
}

.article-content .ind-table tbody tr:hover {
  background: var(--paper-2) !important;
}

.article-content .ind-table td,
.article-content .ths-table td {
  color: var(--ink) !important;
}

/* Up / down values stay semantic everywhere. */
.article-content .ind-up,
.article-content .ths-up {
  color: var(--up) !important;
}

.article-content .ind-down,
.article-content .ths-down {
  color: var(--down) !important;
}

.article-content .ind-neu,
.article-content .ths-neu {
  color: var(--warn) !important;
}

@media (min-width: 768px) {
}

/* Give the article a quiet gutter under the picture. */
.article-container {
  margin-top: 40px !important;
}

@media (min-width: 900px) {
  .article-container {
    margin-top: 56px !important;
  }
}

/* The pulsing radial wash behind post titles was the neon-era texture.
   The masthead is a flat paper band now. */
.hero-section::before,
.hero-section::after,
.archive-hero::before,
.archive-hero::after {
  display: none !important;
  animation: none !important;
}

/* "Start Reading" is a hairline button on paper, not glass on navy. */
.hero-content .btn-secondary {
  background: var(--paper) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
}

.hero-content .btn-secondary:hover {
  background: var(--paper-3) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
  transform: none !important;
}

.hero-content .btn-secondary svg {
  stroke: var(--ink) !important;
}

.error-page .btn-primary {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 1px solid var(--paper) !important;
}.error-page .btn-primary:hover{
  opacity: 0.85;
  transform: none !important;
}

/* Filter tabs */
.filter-tab {
  background: transparent !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink-2) !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.filter-tab:hover {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

.filter-tab.active {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--paper) !important;
}

.load-more-btn {
  background: transparent !important;
  border: 1px solid var(--ink) !important;
  color: var(--ink) !important;
  border-radius: 8px !important;
  min-height: 44px;
}

.load-more-btn:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

.load-more-btn svg {
  stroke: currentColor !important;
}

#no-more-posts {
  color: var(--ink-3) !important;
}

.section-title {
  color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   17. ARCHIVES AND SEARCH
   -------------------------------------------------------------------------- */
.archive-main {
  background: var(--paper) !important;
}

.archive-card {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
}

.archive-card-title,
.archive-card-title a {
  color: var(--ink) !important;
}

.archive-card-excerpt,
.archive-card-meta {
  color: var(--ink-2) !important;
}

.archive-card-link {
  color: var(--ink) !important;
}

.archive-card-badge {
  background: var(--paper) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
}

.archive-start {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
}

.archive-start-title {
  color: var(--ink) !important;
}

.archive-start-text {
  color: var(--ink-2) !important;
}

.archive-start-eyebrow,
.archive-note {
  color: var(--ink-3) !important;
}

/* Primary = solid ink pill with paper label. Secondary = hairline pill. */
.archive-start-primary {
  background: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  color: var(--paper) !important;
  min-height: 44px;
}

.archive-start-primary:hover {
  opacity: 0.86;
  background: var(--ink) !important;
  color: var(--paper) !important;
}

.archive-start-secondary {
  background: transparent !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
  min-height: 44px;
}

.archive-start-secondary:hover {
  background: var(--paper-2) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

.archive-pagination a,
.archive-pagination span {
  color: var(--ink-2) !important;
}

.archive-pagination .current {
  background: var(--ink) !important;
  color: var(--paper) !important;
}input[type="search"]{
  background: var(--paper) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   19. WEEKLY WRAP PANELS (ticker + outlook)
   Both blocks use the same surfaces as every other card on the site:
   paper-2 with a hairline rule, ink copy and brand accents. Nothing stays
   pinned dark, so the panels read the same in light and dark.
   -------------------------------------------------------------------------- */
.article-content .ind-ticker,
.article-content .ths-ticker {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 1px !important;
  padding: 1px !important;
  background: var(--rule) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
  overflow: hidden;
}

.article-content .ind-outlook,
.article-content .ths-outlook {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
}

.article-content .ind-ticker::before,
.article-content .ths-ticker::before,
.article-content .ind-outlook::before,
.article-content .ths-outlook::before {
  background: none !important;
}

.article-content .ind-ticker-item,
.article-content .ths-ticker-item {
  flex: 1 1 170px !important;
  min-width: 0 !important;
  padding: 12px 14px !important;
  border: 0 !important;
  background: var(--paper-2);
}

.article-content .ind-t-name,
.article-content .ths-t-name {
  color: var(--ink-3) !important;
  min-height: 2.4em;
}

.article-content .ind-t-val,
.article-content .ths-t-val {
  color: var(--ink) !important;
}

.article-content .ind-outlook h2,
.article-content .ths-outlook h2 {
  color: var(--ink) !important;
  border-left-color: var(--brand) !important;
}

.article-content .ind-outlook .ind-ob-label,
.article-content .ths-outlook .ob-label {
  color: var(--brand-strong) !important;
}

.article-content .ind-outlook > p,
.article-content .ths-outlook > p,
.article-content .ind-outlook p,
.article-content .ths-outlook p {
  color: var(--ink-2) !important;
}

.article-content .ind-key-levels,
.article-content .ths-key-levels {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  border-top-color: var(--rule) !important;
}

.article-content .ind-kl-item,
.article-content .ths-kl-item {
  border-right-color: var(--rule) !important;
  /* Bottom-align the label and the value, so a label that wraps to two
     lines on a tablet never pushes its value below the others. */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-content .ind-kl-label,
.article-content .ths-kl-label,
.article-content .ind-kl-tag,
.article-content .ths-kl-tag,
.article-content .kl-tag {
  color: var(--ink-3) !important;
}

.article-content .ind-kl-val,
.article-content .ths-kl-val,
.article-content .kl-val {
  color: var(--ink) !important;
}

@media (max-width: 767px) {
  .article-content .ind-ticker-item,
  .article-content .ths-ticker-item {
    flex-basis: 140px !important;
  }
}

@media (max-width: 529px) {
  .article-content .ind-kl-item,
  .article-content .ths-kl-item {
    border-bottom-color: var(--rule) !important;
  }
}

/* News cards inside a wrap: paper cards with ink copy. */
.article-content .ind-news-card,
.article-content .ths-news-card {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  color: var(--ink) !important;
}

.article-content .ind-news-card h3,
.article-content .ths-news-card h3 {
  color: var(--ink) !important;
}

.article-content .ind-news-card p,
.article-content .ths-news-card p {
  color: var(--ink-2) !important;
}

.article-content .ind-news-icon,
.article-content .ths-news-icon {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule) !important;
}

/* Section callouts (Best / Worst this week, chart captions) */
.article-content .ind-callout,
.article-content .ths-callout {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule) !important;
  border-left: 3px solid var(--brand) !important;
  color: var(--ink-2) !important;
}

.article-content .ind-callout strong,
.article-content .ths-callout strong {
  color: var(--ink) !important;
}

/* F&O key / value rows */
.article-content .ind-fo-key {
  color: var(--ink-3) !important;
}

.article-content .ind-fo-val {
  color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   20. COMING SOON (noindexed, kept for old links)
   Was a full-screen nebula. It is a plain paper page now.
   -------------------------------------------------------------------------- */
.coming-soon-page {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
}

.coming-soon-page::before {
  display: none !important;
}

.coming-title,
.coming-title span,
.coming-soon-page .gradient-text {
  color: var(--ink) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

.coming-badge {
  background: var(--paper) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
}

.coming-badge-icon {
  animation: none !important;
  stroke: var(--ink) !important;
}

.feature-item {
  color: var(--ink-2) !important;
}

.feature-icon {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 0 !important;
}

.feature-icon svg {
  stroke: var(--paper) !important;
}

/* Contact form submit */
.btn-submit {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  min-height: 44px;
}

.btn-submit:hover {
  opacity: 0.86;
  color: var(--paper) !important;
}

.btn-submit svg {
  stroke: currentColor !important;
}

/* Pagination */
.archive-pagination .current {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

.archive-pagination a:hover {
  border-color: var(--ink) !important;
  background: var(--paper-2) !important;
}

/* Bigger checkbox glyph inside the existing 44px label row. */
footer .newsletter-checkbox-label input[type="checkbox"],
.newsletter-checkbox-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  accent-color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   22. THE SHARED DOT, IN THE FOOTER
   The footer already had a pulsing dot with its own animation. It now uses
   the same ring as the hero badge and the market chips.
   -------------------------------------------------------------------------- */
footer .live-indicator {
  position: relative;
  display: inline-block;
  width: var(--dot-size);
  height: var(--dot-size);
  background: transparent !important;
  border-radius: 50%;
  animation: none !important;
  flex: none;
  margin-right: 9px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   24. COLOUR ON THE WEEKLY TICKER
   The ticker is a paper strip now, so its up and down values use the same
   semantic shades as the rest of the site.
   -------------------------------------------------------------------------- */
.article-content .ind-ticker .ind-up,
.article-content .ths-ticker .ths-up,
.article-content .ind-ticker .ind-sb-val.ind-up,
.article-content .ths-ticker .s-val.ths-up {
  color: var(--up) !important;
}

.article-content .ind-ticker .ind-down,
.article-content .ths-ticker .ths-down {
  color: var(--down) !important;
}

.article-content .ind-ticker .ind-neu,
.article-content .ths-ticker .ths-neu {
  color: var(--ink-3) !important;
}

/* The best and worst sector names inside the strip follow the same rule. */
.article-content .ind-ticker .ind-up,
.article-content .ind-ticker .ind-down {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   25. THE TWO STRATEGY CARDS
   The pair was loose: 32px padding, 24px between blocks, a 32px icon and a
   stray gradient bar on hover. Rebuilt as one tighter object that matches the
   market cards: hairline border, a footer band, and enough room to breathe
   without the gaps winning.
   -------------------------------------------------------------------------- */
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.hook-card {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: var(--shadow-card) !important;
}

/* The neon gradient bar on hover is gone; the border does the work. */
.hook-card::before,
.premium-card::before {
  display: none !important;
}

.hook-card:hover,
.premium-card:hover {
  transform: none !important;
  border-color: var(--rule-2) !important;
  box-shadow: var(--shadow-soft) !important;
}

.hook-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 0;
  margin-bottom: 12px;
}

.hook-card-header > div:last-child {
  min-width: 0;
}

.feature-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  background: var(--paper-2) !important;
  border: 1px solid var(--rule) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink) !important;
}

.hook-card .badge {
  display: inline-block;
  margin-bottom: 6px !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px !important;
  background: var(--brand-bg) !important;
  border: 0 !important;
  color: var(--up) !important;
}

.hook-card-title {
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  margin: 0 !important;
}

.hook-card-desc {
  padding: 0 18px;
  margin: 0 0 12px !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: var(--ink-2) !important;
}

.hook-card-bullets {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  padding: 0 10px;
  margin: 0 0 14px !important;
}

.hook-card-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px !important;
  border-radius: 8px;
  border-top: 1px solid var(--rule);
}

.hook-card-bullet:first-child {
  border-top: 0;
}

.hook-card-bullet:hover {
  background: var(--paper-2) !important;
}

.bullet-icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  background: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}

.bullet-icon svg {
  width: 12px !important;
  height: 12px !important;
  stroke: var(--ink) !important;
  stroke-width: 3 !important;
}

.bullet-title {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  line-height: 1.35;
  margin: 0 0 1px !important;
}

.bullet-desc {
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  color: var(--ink-3) !important;
  margin: 0 !important;
}

/* Footer band: the link sits on a hairline so both cards finish level. */
.hook-card-foot {
  margin-top: auto;
  padding: 10px 18px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink) !important;
  text-decoration: none;
}

.learn-more-link:hover {
  gap: 10px;
  color: var(--up) !important;
}

.learn-more-link svg {
  stroke: currentColor !important;
}

/* Tighten the band around the strategy cards so the pair sits closer to the
   counters above and the Crypto section below. */
#learn {
  padding-top: clamp(40px, 5vw, 64px) !important;
  padding-bottom: clamp(40px, 5vw, 64px) !important;
}

@media (min-width: 1024px) {
  #learn {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}

/* --------------------------------------------------------------------------
   26. STRATEGY CARD HEADER
   The icon used to sit beside a two-line stack, so it landed in the gap
   between the badge and the title. Badge on its own row, then icon and title
   on one baseline, is the only arrangement where it cannot look misplaced.
   -------------------------------------------------------------------------- */
.hook-card-header {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 18px 0;
  margin-bottom: 10px;
}

.hook-card-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.hook-card-headline .feature-icon {
  margin: 0;
}

.hook-card-headline .hook-card-title {
  margin: 0;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   28. BLENDING THE ECOSYSTEM SECTIONS
   Both used to sit on a grey band with glow layers. They now run on paper
   with the same hairline separator the rest of the page uses, so the page
   reads as one continuous sheet.
   -------------------------------------------------------------------------- */
.section-crypto,
.section-indian {
  background: var(--paper) !important;
  border-top: 1px solid var(--rule) !important;
}

.section-crypto .section-header,
.section-indian .section-header {
  margin-bottom: 20px;
}

.terminal-meta .is-up {
  color: var(--up);
}

.terminal-meta .is-down {
  color: var(--down);
}

/* --------------------------------------------------------------------------
   31. THE HOMEPAGE UPGRADE BAND
   The same gold, so the free page advertises the paid one in its own colour.
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--paper-2) !important;
  border-top: 1px solid var(--rule) !important;
}

.cta-badge {
  background: var(--pro-bg) !important;
  border: 1px solid var(--pro-accent) !important;
  color: var(--pro) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta-title,
.cta-title span {
  color: var(--ink) !important;
}

.cta-desc {
  color: var(--ink-2) !important;
}

.cta-btn-secondary {
  background: transparent !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--ink) !important;
}

.cta-btn-secondary:hover {
  border-color: var(--ink) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
}

/* Trust row: quiet, not a second set of buttons. */
.trust-badge {
  background: transparent !important;
  border: 1px solid var(--rule) !important;
  color: var(--ink-2) !important;
}

.trust-badge svg {
  stroke: var(--pro) !important;
}

/* --------------------------------------------------------------------------
   32. FOOTER - CONDENSED
   The footer had 80px of padding, 48px between columns and a 48px row per
   link, so six links in one column made it 300px tall on their own. The
   list is now two short columns, the padding is halved, and the bottom bar
   is a three-zone grid so the theme switch has a place instead of floating.
   -------------------------------------------------------------------------- */
footer {
  padding: 44px 20px 28px !important;
  margin-top: 40px !important;
}

@media (min-width: 768px) {
  footer {
    padding: 52px 32px 32px !important;
  }
}

.footer-container {
  max-width: 1180px;
}

.footer-grid {
  gap: 28px 32px !important;
  margin-bottom: 28px !important;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.25fr) max-content max-content minmax(0, 1.45fr) !important;
    gap: 24px 32px !important;
  }

  /* The Company column grows to its longest link, not to a fixed share.
     This removes the empty strip on its right. The extra 32px before it
     gives Resources and Company more air than the other columns. */
  .company-column {
    margin-left: 32px;
  }
}

/* Tighter rows. 44px stays as the tap target, the extra margins go. */
.footer-column h4,
.footer-column h3 {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin: 0 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
}

.footer-column ul li {
  margin-bottom: 0 !important;
}

.footer-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem !important;
}

.brand-description {
  margin-bottom: 12px !important;
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
}

.social-links {
  gap: 8px !important;
}

.social-icon {
  width: 40px !important;
  height: 40px !important;
}

/* Newsletter block */
.newsletter-description {
  margin-bottom: 10px !important;
  font-size: 0.8125rem !important;
}

.newsletter-checkboxes {
  gap: 0 14px !important;
  margin-bottom: 8px !important;
}

.newsletter-checkbox-label {
  min-height: 34px !important;
  font-size: 0.8125rem !important;
}

/* Disclaimer: a note, not a section. */
.disclaimer-card,
footer .glass-card {
  padding: 14px 16px !important;
  border-radius: 10px !important;
  margin-top: 4px;
}

.disclaimer-text {
  font-size: 0.75rem !important;
  line-height: 1.55 !important;
}

.disclaimer-title {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem !important;
}

/* Bottom bar: three zones, the switch pinned right. */
.footer-bottom {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 16px;
  margin-top: 24px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--rule);
  font-size: 12px !important;
}

@media (min-width: 768px) {
  .footer-bottom {
    grid-template-columns: 1fr auto 1fr;
  }
}

.footer-bottom > span:first-child {
  order: 1;
}

.footer-bottom-right {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

@media (min-width: 768px) {
  .footer-bottom-right {
    order: 2;
    justify-self: center;
  }
}

/* The switch gets its own cell, an icon and a real hit area. */
.theme-switch-pill {
  order: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 768px) {
  .theme-switch-pill {
    order: 3;
  }
}

.theme-switch-pill:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper-3);
}

.theme-pill-icon {
  flex: none;
}

/* Same icon swap as the header button. */
.theme-switch-pill .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-switch-pill .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-switch-pill .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .theme-switch-pill .icon-sun {
    display: block;
  }

  :root:where(:not([data-theme="light"])) .theme-switch-pill .icon-moon {
    display: none;
  }
}.newsletter-form .glass-input{
  flex: 1 1 150px !important;
  min-width: 0 !important;
  width: auto !important;
}

.newsletter-form .submit-btn {
  flex: 0 0 auto !important;
}

/* --------------------------------------------------------------------------
   33. FOOTER NEWSLETTER - COMPACT ON A PHONE
   The address field used to take the full width and, because the form was a
   column, its flex-basis became a 150px height. It is now a two-column grid:
   invitation and lists on the left, address on the right, and the Join button
   full width underneath both.

   The heading and the description moved inside the form so all four pieces can
   share one grid. The form element still posts exactly the same fields.
   -------------------------------------------------------------------------- */
.newsletter-form-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  padding: 0 !important;
}

.newsletter-intro {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.newsletter-intro h4 {
  margin: 0 0 4px !important;
}

.newsletter-description {
  margin: 0 0 8px !important;
}

.newsletter-checkboxes {
  flex-direction: column !important;
  gap: 0 !important;
  margin-bottom: 0 !important;
}

.newsletter-checkbox-label {
  min-height: 32px !important;
  font-size: 12px !important;
}

/* The address field: normal height, one row, no stretching. */
.newsletter-form-wrapper input[type="email"],
.newsletter-form-wrapper .glass-input {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  flex: none !important;
  padding: 0 12px !important;
  font-size: 14px !important;
}

/* Full width under both columns. */
.newsletter-form-wrapper .submit-btn {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100% !important;
  height: 44px;
  justify-self: stretch;
}

#subscribe-msg {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
}

footer .newsletter-consent {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

footer .newsletter-consent a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* From 640px up, the invitation gets the full width again and the field and
   button share one row, which is how the footer reads on a tablet. */
@media (min-width: 640px) {
  .newsletter-form-wrapper {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 8px;
  }

  .newsletter-intro {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .newsletter-checkboxes {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0 16px !important;
  }

  .newsletter-form-wrapper input[type="email"],
  .newsletter-form-wrapper .glass-input {
    grid-column: 1;
    grid-row: 2;
  }

  .newsletter-form-wrapper .submit-btn {
    grid-column: 2;
    grid-row: 2;
    width: auto !important;
    min-width: 88px;
    padding: 0 20px !important;
  }
}

/* --------------------------------------------------------------------------
   34. COPYRIGHT - TWO LINES ON A PHONE
   -------------------------------------------------------------------------- */
.footer-bottom > span:first-child {
  line-height: 1.5;
}

.footer-copy-line {
  display: block;
}

@media (min-width: 640px) {
  .footer-copy-line {
    display: inline;
  }

  .footer-copy-line + .footer-copy-line::before {
    content: " ";
  }
}

/* The copyright sits left in its cell on a phone. */
@media (max-width: 767px) {
  .footer-bottom > span:first-child,
  .footer-copy {
    text-align: left;
    justify-self: start;
  }
}

/* --------------------------------------------------------------------------
   35. THE HOMEPAGE UPGRADE BUTTON
   The owner asked for the original gold ramp back on this one button. It is
   the only gold fill on the homepage, and it marks the one action that leads
   to Plus.
   -------------------------------------------------------------------------- */
.cta-btn-primary {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 45%, var(--gold-light) 100%) !important;
  border: 0 !important;
  color: #1b1405 !important;
  border-radius: 9999px !important;
  font-weight: 700;
  box-shadow: 0 14px 30px -14px rgba(196, 153, 70, 0.8) !important;
}

.cta-btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px) !important;
  color: #1b1405 !important;
  box-shadow: 0 18px 40px -18px rgba(227, 188, 107, 0.95) !important;
}

.cta-btn-primary svg {
  stroke: #1b1405 !important;
}

/* --------------------------------------------------------------------------
   36. HOMEPAGE LESSON DIRECTORY
   Thirty-two lessons as a directory, not a card grid. Three columns by level,
   one row per lesson: number, title, read time. The only mark is a tick for
   lessons already finished on the course page.

   The whole section is about 560px tall on desktop. The card grid on
   /tech-analysis/ is 4,500px for the same content.
   -------------------------------------------------------------------------- */
.section-lessons {
  background: var(--paper) !important;
  border-top: 1px solid var(--rule) !important;
  padding-top: clamp(40px, 5vw, 60px) !important;
  padding-bottom: clamp(40px, 5vw, 60px) !important;
  scroll-margin-top: 96px;
}

.section-lessons .section-header {
  margin-bottom: 24px;
}

.lesson-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 860px) {
  .lesson-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 44px;
  }
}

/* Column heading: level on the left, count and time on the right, over a rule
   that is heavier than the row rules so the three groups read as groups. */
.lesson-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--rule-strong);
}

.lesson-group-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.lesson-group-meta {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The row is a list item; the link and the tick are siblings, so the tick can
   be a real button without nesting one interactive element inside another. */
.lesson-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.12s ease;
}

.lesson-row:hover {
  background: var(--paper-2);
}

.lesson-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  /* Keeps the duration off the right edge, which was tight on a phone. */
  padding: 7px 12px 7px 0;
  min-height: 34px;
  text-decoration: none;
  color: var(--ink);
}

.lesson-link:hover .lesson-name {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.lesson-num {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.lesson-name {
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 500;
  min-width: 0;
}

.lesson-time {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* A 44px target around a 14px mark, so it is tappable on a phone without
   making the row taller. The ring only shows on hover or when done. */
.lesson-tick {
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: -14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  justify-self: start;
}

.lesson-tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  /* Visible but quiet: a grey ring reads as "not read yet" at a glance, and
     darkens on hover. It fills once the lesson is done. */
  border: 1px solid var(--rule-2);
  background: var(--paper);
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.lesson-row:hover .lesson-tick::before,
.lesson-tick:hover::before,
.lesson-tick:focus-visible::before {
  border-color: var(--ink-3);
}

.lesson-row.is-done .lesson-tick::before {
  background: var(--brand);
  border-color: var(--brand);
}

.lesson-row.is-done .lesson-tick::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 7px;
  margin: -4px 0 0 -2px;
  border: solid var(--paper);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.lesson-tick:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -6px;
  border-radius: 50%;
}

.lesson-row.is-done .lesson-name {
  color: var(--ink-2);
}

/* On a phone the title column has about 200px, so the number and time shrink
   to their smallest readable size rather than pushing the title to two lines. */
@media (max-width: 400px) {
  /* Two children, two columns. This used to declare four, so the row kept
     14px plus two gaps on the right for nothing and the times stopped short
     of the rule above them. */
  .lesson-row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    padding: 6px 0;
  }

  .lesson-name {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   38. THE WORD "FREE" IN THE LESSON HEADER
   It is the one word on that line a reader cares about, so it is the one word
   that gets the brand colour.
   -------------------------------------------------------------------------- */
.section-lessons .section-subtitle .is-free {
  display: inline-block;
  color: var(--up);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05em;
}

/* --------------------------------------------------------------------------
   39. GENERATED POST COVERS
   A soft tinted panel with a small data mark, the category and the week.
   Replaces the uploaded artwork: no file, no crop, no second version for dark
   mode, and about 1 KB. The tint comes from the post id so a grid of covers
   is varied by construction, not by hand.
   -------------------------------------------------------------------------- */
.post-cover {
  display: block;
  width: 100% !important;
  /* The artwork is 1200x675. Keeping the image at its own ratio is what lets
     the chips and the week stay whole in every slot. */
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
  object-fit: initial !important;
  background: var(--paper-2);
}


/* Four accents, deliberately no gold: on this site gold means Plus. */
.post-cover .cover-bar--1 { fill: var(--brand); }
.post-cover .cover-bar--2 { fill: var(--series-2); }
.post-cover .cover-bar--3 { fill: var(--series-4); }
.post-cover .cover-bar--4 { fill: var(--down); }

.post-cover .cover-dot {
  fill: var(--brand);
}

.post-cover .cover-kicker {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.post-cover .cover-sub {
  fill: var(--ink-2);
  font-family: var(--font-sans);
  font-weight: 600;
}

.post-cover .cover-date {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   42. TABLES INSIDE A POST
   The market studies are mostly tables, so they need to read on a phone
   without pushing the page sideways. The table scrolls inside its own box.
   -------------------------------------------------------------------------- */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content thead {
  display: table-header-group;
}

.article-content tbody {
  display: table-row-group;
}

.article-content tr {
  display: table-row;
}

.article-content th,
.article-content td {
  display: table-cell;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.article-content th:first-child,
.article-content td:first-child {
  white-space: normal;
  min-width: 120px;
}

.article-content thead th {
  background: var(--paper-2) !important;
  color: var(--ink-2) !important;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content em {
  color: var(--ink-3);
}

@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    column-gap: 56px;
    align-items: start;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (min-width: 560px) {
}

/* Wide but not in the hero column: one row of twelve per market. */
@media (min-width: 900px) and (max-width: 1199px) {
}

@media (min-width: 1200px) {
}

.month-tile.is-up {
  background: color-mix(in srgb, var(--up) calc(7% + var(--heat, 0.5) * 38%), var(--paper));
}

.month-tile.is-down {
  background: color-mix(in srgb, var(--down) calc(7% + var(--heat, 0.5) * 38%), var(--paper));
}

.month-tile.is-up .month-pct {
  color: var(--up);
}

.month-tile.is-down .month-pct {
  color: var(--down);
}

.month-tile.is-current {
  border-color: currentColor;
  border-style: dashed;
}

.month-tile.is-current.is-up {
  color: var(--up);
}

.month-tile.is-current.is-down {
  color: var(--down);
}

/* One line per study from 760px up, which is how a research index should read. */
@media (min-width: 760px) {
}

@media (min-width: 900px) {
}

/* --------------------------------------------------------------------------
   45. COVERS INSIDE LISTING CARDS
   The card image box is a fixed aspect box, so the cover fills it and the SVG
   crops. No upload, and the picture never changes size between pages.
   -------------------------------------------------------------------------- */
.blog-card-image .post-cover,
.featured-card .blog-card-image .post-cover {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  /* The base cover caps itself at 300px; inside a card it must fill the slot. */
  max-height: none !important;
  display: block;
}

.blog-card:hover .blog-card-image .post-cover {
  transform: none !important;
}

/* Stacked below 768: the picture gets a definite ratio of its own. */
@media (max-width: 767px) {
}

/* Two columns from 768: the copy sets the row height and the picture fills it. */
@media (min-width: 768px) {
}

/* The listing card's cover is a dated panel, not a headline. The date is the
   only thing that differs card to card, so it carries the weight. */
.post-cover .cover-date--card {
  fill: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
}

.post-cover .cover-date--feature {
  fill: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}


/* --------------------------------------------------------------------------
   48. MARKET SECTION HEADER - VIEW ALL
   The archive link moves into the header. A centred button under the list was
   a second ending for a section that already had one.
   -------------------------------------------------------------------------- */
.section-crypto .section-header,
.section-indian .section-header {
  flex-wrap: wrap;
  row-gap: 8px;
  align-items: flex-start;
}

/* The vertical rule marks the headline, so it is drawn from the headline
   itself. A fixed-height div beside the text could never line up at every
   size: it was centred on title plus subtitle, and it drifted as soon as the
   title wrapped. As a pseudo-element it takes the title's own line box. */
.section-crypto .section-header-line,
.section-indian .section-header-line,
.section-lessons .section-header-line {
  display: none;
}

.section-crypto .section-header-copy,
.section-indian .section-header-copy,
.section-lessons .section-header-copy {
  padding-left: 22px;
}

.section-crypto .section-title,
.section-indian .section-title,
.section-lessons .section-title {
  position: relative;
}

.section-crypto .section-title::before,
.section-indian .section-title::before,
.section-lessons .section-title::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0.1em;
  bottom: 0.1em;
  width: 4px;
  border-radius: 4px;
  background: var(--ink);
}

.section-header-copy {
  min-width: 0;
}

/* One button under each group, not one for the whole section. */
.home-group-foot {
  margin-top: 12px;
}

.home-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.home-group-btn:hover {
  border-color: var(--ink);
  background: var(--paper-2);
  color: var(--ink);
}

.home-group-btn svg {
  flex: none;
  transition: transform 0.15s ease;
}

.home-group-btn:hover svg {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .home-group-btn svg {
    transition: none;
  }
}

.chart-shell {
  padding: 10px 16px 0;
}

.chart-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 2px;
}

.chart-range {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.chart-range:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.chart-range[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chart-range:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Without scripting the box would be 260px of nothing above a caption that
   already states the numbers, so it stays hidden until the chart draws. */
.chart-shell:not(.is-ready) .chart-plot {
  display: none;
}

.chart-plot {
  position: relative;
  height: 260px;
}

@media (max-width: 600px) {
  .chart-plot {
    height: 220px;
  }
}

.chart-cursor[hidden] {
  display: none;
}

.chart-cursor-line {
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.chart-cursor-dot {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 2;
}

.chart-tip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: calc(100% - 8px);
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-card);
  pointer-events: none;
  white-space: nowrap;
}

.chart-tip[hidden] {
  display: none;
}

.featured-image-wrapper--cover .post-cover {
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* --------------------------------------------------------------------------
   52. PLUS PAGE - MONOCHROME, GOLD TRACES
   The Plus page kept its own navy and gold design after the rest of the site
   went monochrome, so it read as a different website. The page is now paper,
   ink and hairlines like everything else.

   Gold survives in two places, both deliberate: the book itself (the hero
   illustration and the edition covers, which are the product) and the price.
   The page's own stylesheet nests selectors three deep, so the rules below
   state their intent with !important rather than chase specificity.
   -------------------------------------------------------------------------- */
.bundle-page .bp-hero {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
}

.bundle-page .bp-hero-bg-glow,
.bundle-page .bp-hero-particles,
.bundle-page .bp-hero-particle {
  display: none !important;
}

.bundle-page .bp-hero .bp-hero-title,
.bundle-page .bp-hero .bp-glow,
.bundle-page .bp-glow {
  color: var(--ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

.bundle-page .bp-hero .bp-hero-h2,
.bundle-page .bp-hero .bp-hero-h3 {
  color: var(--ink-2) !important;
}

.bundle-page .bp-hero-h2-rule {
  background: var(--ink) !important;
  box-shadow: none !important;
}

.bundle-page .bp-hero .bp-trust,
.bundle-page .bp-hero .bp-trust svg {
  color: var(--ink-3) !important;
}

/* The live dot follows the one sitewide rule: teal, not gold. */
.bundle-page .bp-dot {
  background: var(--up) !important;
}

.bundle-page .bp-hero .bp-badge {
  background: linear-gradient(
    15deg,
    #5c3d00,
    #7a5200,
    #9a6b00,
    #b8860b,
    #d4af37,
    #b8860b,
    #9a6b00,
    #7a5200,
    #5c3d00
  ) no-repeat !important;
  background-image: linear-gradient(
    15deg,
    #5c3d00,
    #7a5200,
    #9a6b00,
    #b8860b,
    #d4af37,
    #b8860b,
    #9a6b00,
    #7a5200,
    #5c3d00
  ) !important;
  background-size: 300% auto !important;
  background-position: left center !important;
  border: 0 !important;
  border-radius: 30px;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: 2px 2px 3px rgba(45, 28, 0, .55);
}

/* The ticker under the hero was white on navy. */
.bundle-page .bp-hero .bp-strip {
  border-top-color: var(--rule) !important;
  border-bottom-color: var(--rule) !important;
}

.bundle-page .bp-hero .bp-strip-item,
.bundle-page .bp-strip-item {
  color: var(--ink-3) !important;
}

.bundle-page .bp-hero .bp-strip-item b,
.bundle-page .bp-strip-item b {
  color: var(--ink) !important;
}

/* Buttons: ink fill, paper text. No gradient, no glow. */
.bundle-page .bp-btn,
.bundle-page .bp-btn-primary,
.bundle-page .bp-hero .bp-btn-primary {
  background: var(--ink) !important;
  background-image: none !important;
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  box-shadow: none !important;
}

.bundle-page .bp-btn:hover,
.bundle-page .bp-btn-primary:hover,
.bundle-page .bp-hero .bp-btn-primary:hover {
  background: var(--ink-2) !important;
  border-color: var(--ink-2) !important;
  color: var(--paper) !important;
}

.bundle-page .bp-btn-ghost,
.bundle-page .bp-btn-outline-light {
  background: transparent !important;
  background-image: none !important;
  color: var(--ink) !important;
  border: 1px solid var(--rule-2) !important;
  box-shadow: none !important;
}

.bundle-page .bp-btn-ghost:hover,
.bundle-page .bp-btn-outline-light:hover {
  background: var(--paper-2) !important;
  border-color: var(--ink-3) !important;
  color: var(--ink) !important;
}

/* Section surfaces: paper and paper-2 only. */
.bundle-page .bp-section {
  background: var(--paper) !important;
}

.bundle-page .bp-section-alt,
.bundle-page #is-this-for-you,
.bundle-page #roadmap {
  background: var(--paper-2) !important;
}

.bundle-page .bp-dark-section,
.bundle-page .bp-final,
.bundle-page .bp-notfor-light {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
}

.bundle-page .bp-dark-section::before,
.bundle-page .bp-dark-section::after {
  display: none !important;
}

.bundle-page .bp-dark-section .bp-title,
.bundle-page .bp-final .bp-title,
.bundle-page .bp-dark-section .bp-lead,
.bundle-page .bp-final .bp-prose,
.bundle-page .bp-final .bp-guarantee,
.bundle-page .bp-final .bp-post {
  color: var(--ink) !important;
}

.bundle-page .bp-final .bp-prose p,
.bundle-page .bp-final .bp-post p,
.bundle-page .bp-final .bp-guarantee p,
.bundle-page .bp-dark-section .bp-subtitle {
  color: var(--ink-2) !important;
}

/* Eyebrows carried the gold. They are labels, not jewellery. */
.bundle-page .bp-eyebrow,
.bundle-page .bp-section .bp-eyebrow,
.bundle-page .bp-section:not(.bp-dark-section) .bp-eyebrow,
.bundle-page .bp-hero .bp-eyebrow,
.bundle-page .bp-book-now {
  color: var(--ink-3) !important;
}

.bundle-page .bp-head-line {
  background: var(--ink) !important;
  box-shadow: none !important;
}

/* Cards and panels: hairline, no tinted gradients. */
.bundle-page .bp-cta-box {
  background: var(--paper) !important;
  background-image: none !important;
  border: 1px solid var(--rule) !important;
  box-shadow: none !important;
}

.bundle-page .bp-cta-box.is-primary {
  border-color: var(--ink) !important;
}

.bundle-page .bp-cta-box p {
  color: var(--ink-2) !important;
}

/* ---- the two gold traces ---- */
.bundle-page .bp-book-price {
  color: var(--pro) !important;
}

.bundle-page .bp-book-price small {
  color: var(--ink-3) !important;
}

/* The edition covers are the product, so they keep their own art. Nothing
   else on the page is allowed a gradient. */
.bundle-page .bp-book-media img {
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

/* The market switch: ink pill, paper label. */
.bundle-page .bp-switch {
  background: var(--paper-2) !important;
  border-color: var(--rule) !important;
  box-shadow: none !important;
}

.bundle-page .bp-switch-pill {
  background: var(--ink) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.bundle-page .bp-switch-btn.is-active,
.bundle-page .bp-switch-btn.is-active:hover {
  color: var(--paper) !important;
}

/* The edition card: paper and a hairline. The cream gradient and the gold
   edge belonged to the old palette. */
.bundle-page .bp-book {
  background: var(--paper) !important;
  background-image: none !important;
  border-color: var(--rule) !important;
  box-shadow: var(--shadow-card) !important;
}

.bundle-page .bp-book::after {
  display: none !important;
}

.bundle-page .bp-book-sub,
.bundle-page .bp-book-for span,
.bundle-page .bp-market-tag {
  color: var(--ink-3) !important;
}

.bundle-page .bp-market-tag {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule) !important;
}

.bundle-page .bp-book-for {
  background: var(--paper-2) !important;
  border-color: var(--rule) !important;
}

.bundle-page .bp-book-for p {
  color: var(--ink-2) !important;
}

.bundle-page .bp-disclaimer {
  background: var(--paper-2) !important;
  background-image: none !important;
  border-color: var(--rule) !important;
}

.bundle-page .bp-disclaimer h3 {
  color: var(--ink) !important;
}

/* The final band had white headings written for a navy background. */
.bundle-page .bp-dark-section strong,
.bundle-page .bp-final strong {
  color: var(--ink) !important;
}

.bundle-page .bp-guarantee {
  background: var(--paper) !important;
  border-color: var(--rule) !important;
}

.bundle-page .bp-guarantee svg {
  color: var(--ink-3) !important;
}

.bundle-page .bp-guarantee h3 {
  color: var(--ink) !important;
}

.bundle-page .bp-guarantee p {
  color: var(--ink-2) !important;
}

.bundle-page .bp-post-item {
  background: var(--paper) !important;
  border-color: var(--rule) !important;
}

.bundle-page .bp-post-item svg {
  color: var(--up) !important;
}

.bundle-page .bp-post-item h4 {
  color: var(--ink) !important;
}

.bundle-page .bp-post-item p {
  color: var(--ink-2) !important;
}

/* ---- token remap ----
   Most of the page is drawn from these five values. Pointing them at ink and
   paper turns every gradient, border and shadow monochrome in one move. The
   gold that survives is the low-opacity rgba tints the page hardcodes, which
   is exactly the trace we want, plus the book and the price. */
.bundle-page,
.bundle-page .bp-hero {
  --bp-primary: var(--ink);
  --bp-primary-light: var(--ink-2);
  --bp-secondary: var(--ink-2);
  --bp-secondary-light: var(--ink-3);
  --bp-gold: var(--ink);
  --bp-gold-deep: var(--ink);
  --bp-gold-light: var(--ink-2);
  --bp-white-2: var(--paper);
  --bp-white-3: var(--paper-2);
}

/* Problem cards: hairline only, no gradient frame and no hover glow. */
.bundle-page .bp-problem {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: var(--shadow-card) !important;
}

.bundle-page .bp-problem::before,
.bundle-page .bp-problem-num::after {
  display: none !important;
}

.bundle-page .bp-problem-num {
  background: var(--ink) !important;
  color: var(--paper) !important;
  box-shadow: none !important;
}

.bundle-page .bp-problem h3 {
  color: var(--ink) !important;
}

/* Outcome cards follow the same rule. */
.bundle-page .bp-outcome {
  background: var(--paper) !important;
  border-color: var(--rule) !important;
  box-shadow: none !important;
}

/* Tabs: the active one is the ink pill, so its label must be paper. */
.bundle-page .bp-tab[aria-selected="true"],
.bundle-page .bp-tab[aria-selected="true"]:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  box-shadow: none !important;
}

.bundle-page .bp-tab:hover:not([aria-selected="true"]) {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
}

/* The numbered chips read as ink, not as gold coins. */
.bundle-page .bp-outcome::before {
  background: var(--paper-2) !important;
  border-color: var(--rule) !important;
  color: var(--ink-2) !important;
}

.bundle-page .bp-outcome:hover::before {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

/* The three tinted sections carried a grid overlay and a floating gold glow.
   Both are decoration the rest of the site removed. */
.bundle-page #is-this-for-you::before,
.bundle-page #learn::before,
.bundle-page #transformation::before,
.bundle-page #is-this-for-you::after,
.bundle-page #learn::after,
.bundle-page #transformation::after {
  display: none !important;
}

/* Before / after rows: paper, and the ticks follow the site's own colours
   (teal for a positive, red for a negative). The warm gradient made the
   "after" column sit on cream. */
.bundle-page .bp-ba-row {
  background: var(--paper) !important;
  border-color: var(--rule) !important;
}

.bundle-page .bp-ba-row:hover {
  border-color: var(--ink-3) !important;
  box-shadow: var(--shadow-card) !important;
}

.bundle-page .bp-ba-row::before {
  background: var(--rule) !important;
}

.bundle-page .bp-ba-cell.is-after svg {
  color: var(--up) !important;
}

.bundle-page .bp-ba-cell.is-before svg {
  color: var(--down) !important;
}

/* The page's own dark shims pin the final band to navy. The site's dark is
   carbon, not navy, so the shim is replaced at the same specificity. */
:root[data-theme="dark"] .bundle-page .bp-dark-section,
:root[data-theme="dark"] .bundle-page .bp-final {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
}

:root[data-theme="dark"] .bundle-page .bp-dark-section .bp-title,
:root[data-theme="dark"] .bundle-page .bp-dark-section h1,
:root[data-theme="dark"] .bundle-page .bp-dark-section h2,
:root[data-theme="dark"] .bundle-page .bp-dark-section h3,
:root[data-theme="dark"] .bundle-page .bp-dark-section h4,
:root[data-theme="dark"] .bundle-page .bp-dark-section .bp-lead,
:root[data-theme="dark"] .bundle-page .bp-dark-section strong,
:root[data-theme="dark"] .bundle-page .bp-final h1,
:root[data-theme="dark"] .bundle-page .bp-final h2,
:root[data-theme="dark"] .bundle-page .bp-final h3,
:root[data-theme="dark"] .bundle-page .bp-final h4 {
  color: var(--ink) !important;
}

:root[data-theme="dark"] .bundle-page .bp-dark-section p,
:root[data-theme="dark"] .bundle-page .bp-dark-section li,
:root[data-theme="dark"] .bundle-page .bp-final p,
:root[data-theme="dark"] .bundle-page .bp-final li {
  color: var(--ink-2) !important;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-final {
    background: var(--paper-2) !important;
    color: var(--ink) !important;
  }

  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section .bp-title,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section h1,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section h2,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section h3,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section h4,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section .bp-lead,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section strong,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-final h1,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-final h2,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-final h3,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-final h4 {
    color: var(--ink) !important;
  }

  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section p,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-dark-section li,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-final p,
  :root:where(:not([data-theme="light"])) .bundle-page .bp-final li {
    color: var(--ink-2) !important;
  }
}

/* The buying modal rows carried a gold edge. The price is the trace here, not
   the frame, and a disabled row should read as quiet, not as gold. */
.buy-modal .buy-store {
  border-color: var(--rule) !important;
  background: var(--paper) !important;
}

.buy-modal .buy-store:not(.buy-store-disabled):hover {
  border-color: var(--ink-3) !important;
}

.buy-modal .buy-store-disabled {
  opacity: 1 !important;
  background: var(--paper-2) !important;
}

.buy-modal .buy-store-disabled .buy-store-name,
.buy-modal .buy-store-disabled .buy-store-note,
.buy-modal .buy-store-disabled .buy-store-price,
.buy-modal .buy-store-disabled .buy-store-original {
  color: var(--ink-3) !important;
}

/* --------------------------------------------------------------------------
   53. HOME - TWO GROUPS PER MARKET, PICTURE ON THE LEFT
   Research above weekly. Every row carries the generated cover as its
   picture, the headline, one line of description and the date. The number
   column is gone: the picture does that job now.
   -------------------------------------------------------------------------- */
.home-group + .home-group {
  margin-top: 30px;
}

.home-group-title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-row {
  border-bottom: 1px solid var(--rule);
}

.post-row-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb title meta"
    "thumb desc desc";
  column-gap: 18px;
  row-gap: 4px;
  align-items: center;
  padding: 14px 6px 14px 0;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.12s ease;
}

.post-row-link:hover {
  background: var(--paper-2);
}

.post-row-thumb {
  grid-area: thumb;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

/* The SVG keeps its own 16:10 ratio at whatever width the column gives it. */
.post-row-thumb .post-cover {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
  display: block;
}

.post-row-title {
  grid-area: title;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row-link:hover .post-row-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-row-desc {
  grid-area: desc;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row-meta {
  grid-area: meta;
  align-self: center;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 639px) {
  .post-row-link {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      "thumb title"
      "thumb meta"
      "desc desc";
    column-gap: 14px;
    row-gap: 2px;
    padding: 13px 4px 13px 0;
  }

  .post-row-thumb {
    align-self: start;
  }

  .post-row-meta {
    align-self: start;
    text-align: left;
  }

  .post-row-desc {
    margin-top: 6px;
  }
}.archive-card-image{
  aspect-ratio: 16 / 9 !important;
}

.related-card-image .post-cover,
.archive-card-image .post-cover {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: initial !important;
}

.related-card:hover .related-card-image .post-cover,
.archive-card:hover .archive-card-image .post-cover {
  transform: none !important;
}

/* --------------------------------------------------------------------------
   55. HERO ORDER BELOW 1200
   The hero children carry explicit order values (copy 1, cards 2). The range
   panel defaulted to 0 and jumped to the top, above the headline. It belongs
   between the copy and the cards. From 640px the four bars sit two by two so
   the panel does not become a tall stack.
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .hero-content {
    order: 1;
  }
}

/* --------------------------------------------------------------------------
   56. THE CARD TAG SITS WHERE THE COVER CHIPS SIT
   A grid card already carries the post's tag in the top-left corner. The
   cover's own chips land in the same place, so on the grid cards only, the
   tag wins and the chips step aside. The featured card has no tag over the
   artwork, so its chips stay.
   -------------------------------------------------------------------------- */
.blog-card:not(.featured-card) .blog-card-image .cover-chips {
  display: none;
}

/* --------------------------------------------------------------------------
   57. MARKET PAGES - DATA HERO AND THREE SECTIONS
   Charts, Research, Weekly posts. The hero is numbers: the headline quote,
   its 52-week range, the twelve monthly returns and the second and third
   instrument. No prose paragraph, no marketing badge.
   -------------------------------------------------------------------------- */
.market-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: clamp(96px, 12vw, 132px) 1rem clamp(40px, 6vw, 72px);
}

@media (min-width: 1024px) {
  .market-hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.market-hero .section-container,
.market-section .section-container {
  max-width: 72rem;
}

.market-hero-head {
  display: block;
  margin-bottom: 24px;
}

.market-title {
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.market-subtitle {
  margin: 12px 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.market-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 20px;
}

.market-hero-actions .learn-more {
  width: 14.5rem;
}

.market-hero .hero-status {
  margin-top: 12px;
}

@media (max-width: 899px) {
}

.quote-change.is-up {
  color: var(--up);
}

.quote-change.is-down {
  color: var(--down);
}

.quote-range {
  margin-top: 18px;
}

.quote-range-head,
.quote-range-bounds {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.quote-range-head {
  margin-bottom: 7px;
}

.quote-range-bar {
  position: relative;
  height: 6px;
  margin: 0 6px;
  border-radius: 999px;
  background: var(--paper-3);
}

.quote-range-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.28;
}

.quote-range-dot {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-sizing: content-box;
}

.quote-range-bounds {
  margin-top: 7px;
  padding: 0 6px;
}

@media (min-width: 900px) {
}

@media (max-width: 559px) {
}

/* ---- the three sections ---- */
.market-section {
  padding: 40px 16px;
  background: var(--paper);
}

/* The floating nav sits over the top of the page, so a jumped-to section
   starts below it instead of under it. */
.market-section[id] {
  scroll-margin-top: 96px;
}

/* Old #blogs links land on the weekly section, which is now #digest. */
.anchor-alias {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.market-section + .market-section {
  border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .market-section {
    padding: 48px 24px;
  }
}

.market-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
}

.market-section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.market-section-note {
  font-size: 12px;
  color: var(--ink-3);
}

.market-section-head .filter-tabs {
  margin-left: auto;
}

@media (max-width: 767px) {
  /* One swipeable row instead of three wrapped rows of chips. */
  .market-section-head .filter-tabs {
    margin-left: 0;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .market-section-head .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .market-section-head .filter-tab {
    flex: none;
  }
}

.blog-list {
  margin-top: 4px;
  border-top: 1px solid var(--rule);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Research keeps the first eight rows; the button reveals the rest. */
#research-posts:not(.is-expanded) > li:nth-child(n+9) {
  display: none;
}

/* The fetch that swaps the list fades it. */
.blog-list.loading-content {
  opacity: 0.2;
  transform: translateY(10px);
  pointer-events: none;
}

.load-more {
  margin-top: 24px;
  text-align: left;
}

#no-more-posts {
  margin: 10px 0 0;
  font-size: 12px;
}

/* The empty state is a row inside the list. */
.blog-list .empty-state {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.listing-pages .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.listing-pages .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   58. SINGLE POST - COLOURED HERO, COMPACT DIRECTORY
   The hero wears the post's own cover palette: amber for a crypto weekly,
   violet for a crypto study, green for India weekly, blue for India study.
   The cover sits inside the hero, so the page no longer has a big empty band
   between the title and the article.
   -------------------------------------------------------------------------- */
body.single .post-hero {
  min-height: 0 !important;
  padding: clamp(96px, 11vw, 132px) 16px 40px !important;
  background: linear-gradient(135deg, var(--post-bg) 0%, var(--post-soft) 100%) !important;
  border-bottom: 1px solid var(--rule) !important;
}

@media (min-width: 768px) {
  body.single .post-hero {
    padding: 132px 24px 48px !important;
  }
}

[data-theme="dark"] body.single .post-hero {
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--post-bg) 16%, var(--paper)) 0%,
      color-mix(in srgb, var(--post-soft) 26%, var(--paper)) 100%) !important;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) body.single .post-hero {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--post-bg) 16%, var(--paper)) 0%,
        color-mix(in srgb, var(--post-soft) 26%, var(--paper)) 100%) !important;
  }
}

.post-hero-inner {
  max-width: 72rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 26px 40px;
}

@media (max-width: 899px) {
  .post-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  /* Stacked, the cover used to run the full width and read as a billboard
     at tablet sizes. It becomes a card instead. */
  .post-hero-visual {
    max-width: 500px;
    margin-inline: auto;
    width: 100%;
  }
}

.post-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.post-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--post-accent);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  color: var(--post-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* White on the raw orange accent is 2.65:1. Pulling every solid chip a
   little toward black keeps white text above 4.5:1 on all eight palettes
   and leaves the hue intact. */
.post-chip.is-solid {
  background: color-mix(in srgb, var(--post-accent) 72%, #000);
  color: #ffffff;
}

.post-title {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.post-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.post-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--paper) 85%, transparent);
  box-shadow: var(--shadow-card);
}

.post-byline-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.post-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.post-datetime {
  font-size: 12px;
  color: var(--ink-2);
}

.post-start {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--post-accent);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--post-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.post-start:hover {
  background: color-mix(in srgb, var(--post-accent) 72%, #000);
  border-color: color-mix(in srgb, var(--post-accent) 72%, #000);
  color: #ffffff;
}

.post-start svg {
  flex: none;
}

@media (max-width: 639px) {
  .post-start {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* The cover accents are drawn for a light hero. In dark mode the hero turns
   into a near-black tint of the same palette, so violet, indigo, brown and
   teal labels fall to about 3:1. The outlined chip and the start link take a
   lightened mix of the same hue. The solid chip keeps white on the accent. */
[data-theme="dark"] body.single .post-chip:not(.is-solid),
[data-theme="dark"] body.single .post-start {
  color: color-mix(in srgb, var(--post-accent) 55%, var(--ink)) !important;
  border-color: color-mix(in srgb, var(--post-accent) 55%, var(--ink)) !important;
}

[data-theme="dark"] body.single .post-start:hover {
  background: color-mix(in srgb, var(--post-accent) 72%, #000) !important;
  color: #ffffff !important;
  border-color: color-mix(in srgb, var(--post-accent) 72%, #000) !important;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) body.single .post-chip:not(.is-solid),
  :root:where(:not([data-theme="light"])) body.single .post-start {
    color: color-mix(in srgb, var(--post-accent) 55%, var(--ink)) !important;
    border-color: color-mix(in srgb, var(--post-accent) 55%, var(--ink)) !important;
  }

  :root:where(:not([data-theme="light"])) body.single .post-start:hover {
    background: color-mix(in srgb, var(--post-accent) 72%, #000) !important;
    color: #ffffff !important;
    border-color: color-mix(in srgb, var(--post-accent) 72%, #000) !important;
  }
}

.post-hero-visual .post-cover {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #000000 8%, transparent);
  box-shadow: 0 18px 44px -28px rgba(0, 0, 0, 0.45);
  height: auto !important;
}

/* The article follows the hero directly now. */
body.single .article-container {
  margin-top: 0;
  padding-top: 32px;
}

@media (min-width: 768px) {
  body.single .article-container {
    padding-top: 40px;
  }
}

/* Content: a long word must never push the measure. */
.article-content,
.article-content p,
.article-content li {
  overflow-wrap: break-word;
}

/* ---- What's Covered ---- */
.sidebar .toc-list {
  margin: 0;
  padding: 4px 0;
}

.sidebar .toc-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.sidebar .toc-item:first-child {
  border-top: 0;
}

.sidebar .toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-left: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
  text-decoration: none;
}

.sidebar .toc-num {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.sidebar .toc-link:hover {
  color: var(--ink);
}

.sidebar .toc-link.active {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--ink);
  background: var(--paper-2);
}

.sidebar .toc-content.open {
  max-height: 60vh;
}

/* The hero already states the market and the type, so the cover inside it
   only needs its date and art. */
.post-hero-visual .cover-chips {
  display: none;
}

/* On a phone the sidebar sits inside the article flow: the directory opens
   the page collapsed, the article follows, and sharing comes after reading.
   display:contents lets the two cards be reordered around the content. */
@media (max-width: 1023px) {
  .sidebar {
    display: contents;
  }

  .sidebar .sidebar-card:first-of-type {
    order: 1;
    margin-bottom: 0;
  }

  .sidebar .sidebar-card:last-of-type {
    order: 3;
    margin: 0;
  }

  .article-content {
    order: 2;
  }
}

/* Five share buttons on one row inside the 300px sidebar card, without
   dropping below the 44px target. */
.sidebar .share-buttons {
  gap: 6px;
}

/* The author archive shows the face before the name. */
.archive-avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--paper);
  box-shadow: var(--shadow-card);
}

/* The archive card already carries the tag badge; the cover chips would sit
   under it. */
.archive-card-image .cover-chips {
  display: none;
}

/* A grid item defaults to min-width:auto, so a wide table inside the article
   forced the whole column (and the page) wider than the phone. iOS then
   zoomed out to fit, which is why the hero looked narrow and the text ran off
   the screen. Let the column shrink; the table scrolls inside its own card. */
body.single .article-container > .article-content,
body.single .article-container > .sidebar {
  min-width: 0;
}

.article-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   59. ARTICLE HEADINGS - SERIOUS READING
   The body text is 17px with a generous measure, so 28px sub-headings were
   shouting over it. H2 drops to 20px and H3 to 17px: enough to navigate,
   not enough to compete with the paragraph.
   -------------------------------------------------------------------------- */
/* The block editor stamps headings with has-x-large-font-size, and that preset
   is !important. Match it with a more specific important rule. */
body.single .article-content h2 {
  font-size: 1.125rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 32px 0 10px;
  padding-left: 12px;
  border-left-width: 3px;
}

body.single .article-content h3 {
  font-size: 1rem !important;
  font-weight: 700;
  line-height: 1.4;
  margin: 24px 0 8px;
}

body.single .article-content h4 {
  font-size: 0.9375rem !important;
  font-weight: 700;
  margin: 20px 0 6px;
}

@media (min-width: 768px) {
  body.single .article-content h2 {
    font-size: 1.25rem !important;
    margin: 38px 0 12px;
  }

  body.single .article-content h3 {
    font-size: 1.0625rem !important;
    margin: 28px 0 10px;
  }
}

/* --------------------------------------------------------------------------
   60. CRYPTO WRAP: THE TICKER'S REAL CLASS NAMES
   The crypto template prints .t-name, .t-val and .kl-val. They now follow the
   paper strip and the card surface like every other label and value.
   -------------------------------------------------------------------------- */
.article-content .ths-ticker .t-name {
  color: var(--ink-3) !important;
}

.article-content .ths-ticker .t-val {
  color: var(--ink) !important;
}

.article-content .ths-outlook .kl-val {
  color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   61. PHONE MARGINS ON THE ARTICLE
   The article card sat 10px from the screen edge with 10px of its own padding,
   while every section on the site uses 16. Both are 16 now, so the text has a
   readable gutter and the card lines up with the rest of the page.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.single .article-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.single .article-content {
    /* A legacy 10px !important rule for small screens was beating this. */
    padding: 18px 16px !important;
  }
}

/* --------------------------------------------------------------------------
   62. ABOUT PAGE
   One author, four numbers, four short sections. The same hairlines and
   small-caps labels as the market pages, so it belongs to the same site.
   -------------------------------------------------------------------------- */
.about-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  padding: clamp(96px, 10vw, 128px) 16px 40px;
}

.about-hero .section-container {
  max-width: 72rem;
  margin-inline: auto;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 48px;
}

@media (max-width: 767px) {
  .about-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

.about-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.about-name {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.about-role {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
}

.about-line {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.about-portrait img {
  display: block;
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
}

@media (max-width: 767px) {
  .about-portrait img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }
}

/* Four facts */
.about-stats {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 28px 16px;
}

.about-stats .section-container {
  max-width: 72rem;
  margin-inline: auto;
}

/* Six counters now: decades, lessons, studies, charts, posts, one author. */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 24px;
}

@media (max-width: 479px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-3);
}

/* Sections: label left, body right */
.about-section {
  padding: 40px 16px;
  background: var(--paper);
}

.about-section + .about-section {
  border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .about-section {
    padding: 48px 24px;
  }
}

.about-section .section-container {
  max-width: 72rem;
  margin-inline: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px 40px;
  align-items: start;
}

@media (max-width: 899px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

.about-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}

.about-body p {
  margin: 0 0 14px;
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-body strong {
  color: var(--ink);
}

/* Method list */
.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 70ch;
}

.about-list li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.about-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Beliefs: numbered rows */
.about-beliefs {
  list-style: none;
  counter-reset: belief;
  margin: 0;
  padding: 0;
  max-width: 70ch;
}

.about-beliefs li {
  counter-increment: belief;
  position: relative;
  padding: 14px 0 14px 42px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.about-beliefs li:first-child {
  border-top: 0;
  padding-top: 0;
}

.about-beliefs li::before {
  content: counter(belief, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.about-beliefs li:first-child::before {
  top: 2px;
}

/* The disclaimer */
.about-warning {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
  background: var(--paper-2);
}

.about-warning p {
  margin: 0;
  max-width: 70ch;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.about-signoff {
  font-size: 13px;
  color: var(--ink-3);
}

/* Next links */
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.about-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}

.about-links a:hover {
  border-bottom-color: var(--ink);
}

/* --------------------------------------------------------------------------
   63. RELATED ARTICLES ON A POST
   Three big cards became six compact rows: the same component, the same
   112px cover and the same rhythm as the homepage and the market pages.
   Two columns from 900px, one below, so the section does not become a wall.
   -------------------------------------------------------------------------- */
body.single .related-section {
  padding: 44px 16px 48px;
}

body.single .related-section .related-inner {
  max-width: 1200px;
  margin-inline: auto;
}

body.single .related-section h3 {
  margin: 0 0 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-3);
}

body.single .related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  border-top: 1px solid var(--rule-strong);
  margin-top: 12px;
}

@media (max-width: 899px) {
  body.single .related-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.single .related-list .post-row-link {
  padding-block: 14px;
}

body.single .related-empty {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

@media (max-width: 767px) {
  body.single .related-section {
    padding: 36px 16px 40px;
  }

  body.single .related-list {
    column-gap: 0;
  }
}

/* --------------------------------------------------------------------------
   64. WEEKLY WRAP DASHBOARDS: ONE COLOUR LANGUAGE
   The two wrap stylesheets came from the old design. Amber was doing three
   jobs at once: neutral data, "mixed" badges and the Indian outlook labels.
   Amber is not a data colour on this site, so neutral values are grey now
   and the labels wear the brand teal. The numbers that carry meaning keep
   the market colours: up teal and down red.
   -------------------------------------------------------------------------- */

/* Neutral readings: spread, breadth ratio, dominance. Not a warning. */
.article-content .ths-neu,
.article-content .ind-neu,
.article-content .ind-sub-neu {
  color: var(--ink-3) !important;
  background: transparent !important;
}

/* A mixed signal is not a warning either. */
.article-content .cc-badge.mix,
.article-content .ind-badge.mix {
  background: var(--paper-3) !important;
  color: var(--ink-2) !important;
}

/* Emphasis inside a callout is emphasis, not a colour. */
.article-content .ths-callout strong,
.article-content .ind-callout strong {
  color: var(--ink) !important;
}

/* Ticker values keep the site's semantic shades on paper. */
.article-content .ths-ticker .t-val.ths-up,
.article-content .ths-ticker .t-val.ths-down {
  font-weight: 700;
}

.article-content .ths-ticker .t-val.ths-up {
  color: var(--up) !important;
}

.article-content .ths-ticker .t-val.ths-down {
  color: var(--down) !important;
}

/* Outlook labels wear the brand teal at text-safe strength. */
.article-content .ths-outlook .ob-label,
.article-content .ths-outlook .kl-tag,
.article-content .ind-outlook .ind-ob-label,
.article-content .ind-outlook .ind-kl-tag {
  color: var(--brand-strong) !important;
}

/* Outlook heading and body read as ink on paper. */
.article-content .ind-outlook h2,
.article-content .ths-outlook h2 {
  color: var(--ink) !important;
}

.article-content .ind-outlook > p,
.article-content .ths-outlook > p {
  color: var(--ink-2) !important;
}

.article-content .ind-kl-val,
.article-content .ths-kl-val {
  color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   65. LEGAL AND CONTACT PAGES
   These five templates carried the old design: gradient heroes, floating
   particles and a table of contents stacked above the text. They now use the
   same head as a market page and a sticky contents rail, so a policy reads
   like the rest of the site. New class names keep the old stylesheets out of
   the way.
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  padding: clamp(96px, 10vw, 124px) 16px 32px;
}

@media (min-width: 768px) {
  .page-head {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 40px;
  }
}

.page-head .section-container {
  max-width: 1200px;
  margin-inline: auto;
}

.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
}

.page-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.page-title .gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--ink);
}

.page-updated {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-lede {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Contents rail plus the text. */
.legal-section {
  padding: 36px 16px 64px;
  background: var(--paper);
}

@media (min-width: 768px) {
  .legal-section {
    padding: 44px 24px 80px;
  }
}

.legal-section .section-container {
  max-width: 1200px;
  margin-inline: auto;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px 56px;
  align-items: start;
}

@media (max-width: 899px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

.legal-toc {
  position: sticky;
  top: 108px;
}

@media (max-width: 899px) {
  .legal-toc {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
  }
}

.legal-toc h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legal-toc ol {
  counter-reset: legal;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-toc li {
  counter-increment: legal;
}

.legal-toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 44px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.legal-toc a::before {
  content: counter(legal, decimal-leading-zero);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-content {
  max-width: 70ch;
}

.legal-content h2,
.legal-content h3 {
  color: var(--ink);
}

.legal-content h2 {
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  margin: 26px 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

/* The little heading icons belong to the old design. */
.legal-content .section-icon {
  display: none;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--ink);
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--brand-strong);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 0.9375rem;
}

.legal-content th,
.legal-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legal-content .info-box {
  margin: 18px 0 22px;
  padding: 14px 16px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
}

.legal-content .info-box p {
  margin: 0;
  font-size: 0.9375rem;
}

.legal-content .contact-box {
  margin: 32px 0 0;
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.legal-content .contact-box h3 {
  margin-top: 0;
}

.legal-content .contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  margin-top: 6px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-content .contact-cta:hover {
  color: var(--paper);
  background: var(--ink-2);
}

.legal-content .contact-cta-icon {
  width: 16px;
  height: 16px;
}

/* Contact page */
.contact-section {
  padding: 32px 16px 64px;
  background: var(--paper);
}

@media (min-width: 768px) {
  .contact-section {
    padding: 40px 24px 80px;
  }
}

.contact-section .section-container {
  max-width: 1200px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
}

@media (max-width: 899px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-section .info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: none;
}

.contact-section .info-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--paper-3);
  color: var(--ink);
}

.contact-section .info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-section .info-content h3 {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-section .info-content p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.contact-section .info-content a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}

.contact-section .info-content a:hover {
  border-bottom-color: var(--ink);
}

.contact-section .social-section {
  margin-top: 16px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.contact-section .social-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-section .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-section .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.contact-section .social-link:hover {
  border-color: var(--ink);
}

.contact-section .contact-form-wrapper {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: none;
}

@media (min-width: 768px) {
  .contact-section .contact-form-wrapper {
    padding: 28px;
  }
}

.contact-section .form-header {
  margin-bottom: 18px;
}

.contact-section .form-header h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-section .form-header p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.contact-section .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.contact-section .form-label span {
  color: var(--down);
}

.contact-section .form-input,
.contact-section .form-select,
.contact-section .form-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 8px;
}

.contact-section .form-textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-section .form-input::placeholder,
.contact-section .form-textarea::placeholder {
  color: var(--ink-3);
}

.contact-section .form-input:focus,
.contact-section .form-select:focus,
.contact-section .form-textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.contact-section .form-group {
  margin-bottom: 14px;
}

.contact-section .form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 599px) {
  .contact-section .form-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-section .form-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.contact-section .form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
}

.contact-section .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  justify-self: start;
  min-height: 44px;
  padding: 0 22px;
  margin-top: 6px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-section .btn-submit:hover {
  background: var(--ink-2);
}

.contact-section .success-message {
  display: none;
}

.contact-section .success-message.is-visible {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 24px;
  z-index: 9999;
  width: auto;
  max-width: 560px;
  margin-inline: auto;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--up);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* The refund page's three delivery facts and its final-sale note. */
.legal-content h4 {
  margin: 20px 0 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-content .highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

@media (max-width: 767px) {
  .legal-content .highlight-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.legal-content .highlight-item {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

/* The old icon tiles said nothing the heading does not. */
.legal-content .highlight-icon {
  display: none;
}

.legal-content .highlight-item h4 {
  margin: 0 0 4px;
}

.legal-content .highlight-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.legal-content .alert-box {
  margin: 18px 0 22px;
  padding: 14px 16px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
}

.legal-content .alert-box p {
  margin: 0;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   66. RETURNS TABLE
   One row per instrument: a 52-week line, then the trailing windows. The
   ticksheet shape, in the site's own language. Numbers are tabular so the
   columns line up, and the colour meaning is the market's: teal up, red down.
   -------------------------------------------------------------------------- */
.returns-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -2px;
}

.returns-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.returns-table thead th {
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  white-space: nowrap;
}

.returns-table tbody th,
.returns-table tbody td {
  padding: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

.returns-table tbody tr:hover {
  background: var(--paper-2);
}

/* Sortable returns headers */
.returns-sort {
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 4px;
  margin: -10px 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.returns-sort:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Simple up and down arrows, in ink, say the head sorts before it is clicked. */
.returns-table th[data-sort] .returns-sort::after {
  content: "↑↓";
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}

.returns-table th[aria-sort="ascending"] .returns-sort::after,
.returns-table th[aria-sort="descending"] .returns-sort::after {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}

.returns-table th[aria-sort="ascending"] .returns-sort::after {
  content: "↑";
}

.returns-table th[aria-sort="descending"] .returns-sort::after {
  content: "↓";
}

.returns-table tbody tr.is-cross-hot > .returns-name {
  box-shadow: inset 3px 0 0 var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.returns-table tbody tr:focus-visible > .returns-name {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.compare-line.is-cross-hot {
  stroke-width: 3;
}

.compare-key.is-cross-hot {
  color: var(--ink);
}

.returns-table .returns-name {
  text-align: left;
  color: var(--ink);
  font-weight: 600;
}

.returns-table thead .returns-name {
  color: var(--ink-3);
}

.returns-spark-col {
  width: 104px;
  text-align: left !important;
  color: var(--ink-3);
}

.returns-spark {
  display: block;
}

.returns-num.is-up {
  color: var(--up);
}

.returns-num.is-down {
  color: var(--down);
}

.returns-num.is-flat {
  color: var(--ink-3);
}

.returns-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

@media (max-width: 767px) {
  .returns-table {
    min-width: 540px;
  }

  /* The name stays put while the windows scroll under it. */
  .returns-table .returns-name {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--paper);
    box-shadow: 1px 0 0 var(--rule);
    padding-right: 12px;
  }

  .returns-table tbody tr:hover .returns-name {
    background: var(--paper-2);
  }
}

/* Eight windows cannot fit on a phone. The table scrolls sideways with the
   name pinned, and the sparkline is the only column that goes. */
@media (max-width: 519px) {
  .returns-spark-col {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   67. HOMEPAGE: FOUR CARDS IN THE HERO
   The month tiles and the two big terminal panels moved to the market pages.
   What is left is the pulse: four instruments, today's session and 1D.
   -------------------------------------------------------------------------- */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  width: 100%;
  /* Copy first on a phone. The cards are the second thing to read. */
  order: 2;
}

.hero-card {
  padding: 14px 16px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.hero-card-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-card-price {
  margin: 6px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-card-foot dd.is-up {
  color: var(--up);
}

.hero-card-foot dd.is-down {
  color: var(--down);
}

@media (max-width: 519px) {
  .hero-cards,
  .desk-cards {
    gap: 10px;
  }

  .hero-card {
    padding: 12px 12px 10px;
  }

  .hero-card-price {
    font-size: 1.25rem;
  }

  /* A two-line name, such as Bank Nifty, must not push the price down while
     the card beside it keeps a one-line name. Reserve the taller line. */
  .hero-card-top {
    min-height: 44px;
    align-items: flex-start;
  }
}

.desk-jump .section-container {
  display: flex;
  gap: 2px;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.desk-jump .section-container::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .desk-jump .section-container {
    padding: 0 24px;
  }
}

.daily-change.is-up {
  color: var(--up);
}

.daily-change.is-down {
  color: var(--down);
}

.year-fill.is-up {
  left: 50%;
  background: var(--up);
  border-radius: 0 3px 3px 0;
}

.year-fill.is-down {
  right: 50%;
  background: var(--down);
  border-radius: 3px 0 0 3px;
}

.year-value.is-up {
  color: var(--up);
}

.year-value.is-down {
  color: var(--down);
}

.compare-figure {
  margin: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 12px;
}

.compare-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
}

.compare-key i {
  display: inline-block;
  width: 20px;
  height: 0;
  border-top: 3px solid var(--ink);
}

.compare-key.is-btc i {
  border-color: var(--ink);
}

.compare-key.is-eth i {
  border-color: var(--brand);
}

.compare-key.is-bnb i {
  border-color: var(--ink-3);
  border-top-style: dashed;
}

.compare-key.is-xrp i {
  border-color: var(--ink-3);
  border-top-style: dotted;
}

.compare-key.is-sol i {
  border-color: var(--rule-2);
  border-top-style: dashed;
}

.compare-ranges {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.compare-range {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 99px;
  cursor: pointer;
}

.compare-range.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.compare-svg {
  display: block;
  width: 100%;
  height: 260px;
}

.compare-line {
  stroke-width: 2;
}

.compare-line.is-btc {
  stroke: var(--ink);
}

.compare-line.is-eth {
  stroke: var(--brand);
}

.compare-line.is-bnb {
  stroke: var(--ink-3);
  stroke-dasharray: 6 4;
}

.compare-line.is-xrp {
  stroke: var(--ink-3);
  stroke-dasharray: 2 3;
}

.compare-line.is-sol {
  stroke: var(--rule-2);
  stroke-dasharray: 8 4 2 4;
}

.compare-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

@media (max-width: 767px) {
  .compare-svg {
    height: 200px;
  }

  .compare-ranges {
    width: 100%;
    margin-left: 0;
  }
}

.compare-ref {
  stroke: var(--rule-2);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

/* 69. HERO CARD CHART: DAILY, WITH PRICES AND DATES */
.hero-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.hero-card-change {
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-card-change.is-up {
  color: var(--up);
}

.hero-card-change.is-down {
  color: var(--down);
}

/* The card carries one line: today's session, from the open to the live
   price. The year strip was removed on 23 Nov 2026. */

.mini-chart {
  margin: 8px 0 2px;
}

.mini-plot {
  position: relative;
  height: 56px;
  padding-right: 58px;
  color: var(--ink-3);
}

.mini-svg-wrap {
  position: relative;
  height: 56px;
}

.mini-svg-wrap svg {
  display: block;
  width: 100%;
  height: 56px;
}

.mini-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.4px solid var(--ink);
  pointer-events: none;
}

.mini-y {
  position: absolute;
  right: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mini-y-max {
  top: 4px;
}

.mini-y-min {
  bottom: 4px;
}

.mini-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding-right: 58px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* A year-to-date card puts a year at each end. The label is one line or
   none, never two. */
.mini-axis span {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   70. DESK HERO: TWO LIVE CARDS AND A 52-WEEK CHART
   The quote panel and the month tiles leave the hero. The cards are the same
   component as the homepage, so a price can never look different in two
   places. The tiles move next to the yearly bars, where they belong.
   -------------------------------------------------------------------------- */
.desk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 899px) {
  .desk-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.desk-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* The market page cards stretch to the 52-week figure. A taller line fills
   the extra height so the card does not end in empty space. */
.desk-cards .mini-chart .mini-plot,
.desk-cards .mini-chart .mini-svg-wrap,
.desk-cards .mini-chart .mini-svg-wrap svg {
  height: 140px;
}

.desk-52 {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

/* The 52-week line is compressed so the two live cards and this figure end
   on the same lines. The card row sets the height; the chart takes what is
   left after the header and the range bar. */
.desk-52 .mini-chart--large {
  flex: 1;
  min-height: 0;
  margin: 6px 0 0;
}

.desk-52 .mini-chart--large .mini-plot,
.desk-52 .mini-chart--large .mini-svg-wrap,
.desk-52 .mini-chart--large .mini-svg-wrap svg {
  height: 82px;
}

.desk-52-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.desk-52-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 8px 0 2px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.desk-52-marks span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.desk-52-marks i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.desk-52-marks .is-low {
  background: var(--down);
}

.desk-52-marks .is-high {
  background: var(--up);
}

.desk-52-marks .is-now {
  background: var(--ink);
}

.desk-52-title {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.mini-chart--large .mini-plot,
.mini-chart--large .mini-svg-wrap,
.mini-chart--large .mini-svg-wrap svg {
  height: 190px;
}

/* One year bar per column, full width. */
.season-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
}

.season-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.year-fill.is-ink {
  background: var(--ink-3);
}

/* Ten data series: distinct hues, with dashes on the last three so a
   crossing line can be told apart even when the colours sit close. */
.compare-key i.series-0 { border-color: var(--ink); }
.compare-key i.series-1 { border-color: #0b8f95; }
.compare-key i.series-2 { border-color: #a569c9; }
.compare-key i.series-3 { border-color: #f0a202; }
.compare-key i.series-4 { border-color: #4a90d9; }
.compare-key i.series-5 { border-color: #d64545; }
.compare-key i.series-6 { border-color: #4caf50; }
.compare-key i.series-7 { border-color: #95a5a6; }
.compare-key i.series-8 { border-color: #d4b106; }
.compare-key i.series-9 { border-color: #e84a7a; }

.compare-key i.series-1,
.compare-key i.series-3,
.compare-key i.series-7 { border-top-style: dashed; }
.compare-key i.series-8,
.compare-key i.series-9 { border-top-style: dotted; }

.compare-line.series-0 { stroke: var(--ink); }
.compare-line.series-1 { stroke: #0b8f95; stroke-dasharray: 6 3; }
.compare-line.series-2 { stroke: #a569c9; }
.compare-line.series-3 { stroke: #f0a202; stroke-dasharray: 6 3; }
.compare-line.series-4 { stroke: #4a90d9; }
.compare-line.series-5 { stroke: #d64545; }
.compare-line.series-6 { stroke: #4caf50; }
.compare-line.series-7 { stroke: #95a5a6; stroke-dasharray: 6 3; }
.compare-line.series-8 { stroke: #d4b106; stroke-dasharray: 2 3; }
.compare-line.series-9 { stroke: #e84a7a; stroke-dasharray: 2 3; }

/* A paper-coloured line under every series keeps a crossing readable. */
.compare-halo {
  fill: none;
  stroke: var(--paper);
  stroke-width: 6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.compare-figure.is-focusing .compare-line,
.compare-figure.is-focusing .compare-halo {
  opacity: 0.14;
}

.compare-figure.is-focusing .compare-line.is-hot {
  opacity: 1;
  stroke-width: 3;
}

.compare-hint {
  font-size: 11px;
  color: var(--ink-3);
}

/* Eight windows need room, so the table scrolls sideways on a phone with the
   name pinned. The heat tint is the magnitude, column by column. */
.returns-table {
  min-width: 560px;
}

@media (max-width: 767px) {
  .returns-table {
    min-width: 560px;
  }
}

.returns-num {
  transition: background-color 0.12s ease;
}

/* 71. STATUS LINES: OPEN OR CLOSED, IST AND UTC, DATA BUILD TIME */
.hero-status {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.market-state-line.is-live .market-state-dot {
  background: var(--brand);
  animation: ths-breathe 3.2s ease-in-out infinite;
}

.market-state-line.is-closed .market-state-dot,
.market-state-line.is-delayed .market-state-dot,
.market-state-line.is-weekly .market-state-dot {
  background: var(--ink-3);
}

@media (max-width: 767px) {
}

/* 72. YEAR BARS: VERTICAL, RED AND GREEN, WITH AXES
   Monthly on the left and yearly on the right now share a height. Years run
   along the bottom, returns up the side, and the zero line sits where the
   data puts it rather than in the middle. */
.season-grid {
  align-items: stretch;
}

.season-years {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.year-chart {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  height: 304px;
  margin-top: 2px;
}

.year-yaxis {
  position: relative;
  /* The axis covers the plot only. The year labels sit below it. */
  height: calc(100% - 22px);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.year-yaxis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  white-space: nowrap;
}

.year-yaxis span[style*="top:0"] {
  transform: none;
}

.year-yaxis-min {
  transform: translateY(-100%) !important;
}

.year-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.year-plot {
  position: relative;
  flex: 1;
  min-height: 0;
}

.year-zero {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule-2);
  z-index: 1;
}

.year-cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  height: 100%;
}

.year-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.year-half {
  position: relative;
  display: block;
}

.year-bar {
  position: absolute;
  left: 20%;
  width: 60%;
}

.year-half-top .year-bar.is-up {
  bottom: 0;
  background: var(--up);
  border-radius: 3px 3px 0 0;
}

.year-half-bottom .year-bar.is-down {
  top: 0;
  background: var(--down);
  border-radius: 0 0 3px 3px;
}

.year-val {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.year-val.is-up {
  color: var(--up);
  margin-bottom: 3px;
}

.year-val.is-down {
  color: var(--down);
  margin-top: 3px;
}

.year-xaxis {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: flex-end;
  height: 22px;
}

.year-xaxis span {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 699px) {
  .year-val {
    display: none;
  }

  .year-chart {
    height: 260px;
  }
}

.desk-range {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.desk-range .quote-range-head,
.desk-range .quote-range-bounds {
  font-size: 12px;
}

/* Axes for the rebased line chart. The SVG stretches, so the labels are HTML. */
.compare-plot {
  position: relative;
  padding-left: 44px;
}

.compare-yaxis {
  position: absolute;
  left: 0;
  top: 0;
  height: 300px;
  width: 38px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.compare-yaxis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  white-space: nowrap;
}

.compare-yaxis span:first-child {
  transform: none;
}

.compare-yaxis span:last-child {
  transform: translateY(-100%);
}

.compare-canvas {
  position: relative;
}

.compare-canvas .compare-svg {
  height: 300px;
}

.compare-xaxis {
  margin: 6px 0 0 44px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.compare-xaxis > div {
  display: flex;
  justify-content: space-between;
}

/* A short fade and lift when the 1 year, 3 year or 5 year range changes. */
.compare-figure.is-swapping .compare-plot,
.compare-figure.is-swapping .compare-canvas,
.compare-figure.is-swapping .compare-xaxis {
  animation: candle-swap 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  .compare-figure.is-swapping .compare-plot,
  .compare-figure.is-swapping .compare-canvas,
  .compare-figure.is-swapping .compare-xaxis {
    animation: none;
  }
}

@media (max-width: 767px) {
  .compare-yaxis,
  .compare-canvas .compare-svg {
    height: 220px;
  }
}

/* Card state: a dot and one word, under the daily change. */
.hero-card-top {
  align-items: flex-start;
}

.hero-card-name {
  padding-top: 2px;
}

.hero-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}

.card-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-3);
}

.card-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
}

.card-state.is-live i {
  background: var(--brand);
  animation: ths-breathe 3.2s ease-in-out infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .card-state.is-live i {
    animation: none;
  }
}

@media (max-width: 899px) {
}

.bubble-label i.is-up {
  color: var(--up);
}

.bubble-label i.is-down {
  color: var(--down);
}

.eco-dot-cells i.is-up {
  background: var(--up);
}

.eco-dot-cells i.is-down {
  background: var(--down);
}

.eco-dot-cells i.is-flat {
  background: var(--rule-2);
}

.eco-table .returns-table tbody th,
.eco-table .returns-table tbody td {
  padding: 7px 8px;
  font-size: 0.875rem;
}

.eco-table .returns-note {
  margin-top: 6px;
}

.eco-streaks-wide .eco-dot-cells i.is-last {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}

@media (max-width: 519px) {
}

.pulse-btn.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.pulse-range.is-active {
  display: block;
}

@media (max-width: 519px) {
}

/* 76. RANGE STRIPS
   A dot between the 52-week low and high, with the middle half of closes
   shaded. HTML rather than SVG, so the dot stays round and the labels stay
   at 12px while the track stretches. */
.strip-head,
.strip-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
}

.strip-head {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--ink-3);
}

.strip-ends {
  display: flex;
  justify-content: space-between;
}

.strip-now-head {
  text-align: right;
}

.strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.strip-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.strip-row[data-key] {
  cursor: pointer;
}

.strip-row.is-hot {
  background: var(--paper-2);
}

.strip-row:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.strip-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.strip-track {
  position: relative;
  height: 18px;
}

.strip-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--rule-2);
}

.strip-band {
  position: absolute;
  top: 5px;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.strip-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: color-mix(in srgb, var(--down) 55%, var(--paper));
}

.strip-name i {
  display: block;
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.strip-dot {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--paper);
}

.strip-now {
  text-align: right;
  font-size: 12px;
  line-height: 1.25;
}

.strip-now b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.strip-now i {
  display: block;
  font-style: normal;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 519px) {
  .strip-head,
  .strip-row {
    grid-template-columns: 46px minmax(0, 1fr) 100px;
    gap: 8px;
  }
}

/* The fall marker on the year bars, and the negative-year label above zero. */
.year-val-zero {
  top: auto !important;
  bottom: 3px;
}

.year-dd-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  background: var(--down);
  opacity: 0.35;
  z-index: 0;
}

.year-dd-dot {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--down);
  box-shadow: 0 0 0 2px var(--paper);
  z-index: 2;
}

/* Twelve year labels cannot sit under twelve narrow bars on a phone. */
@media (max-width: 519px) {
  .year-xaxis span:nth-child(even) {
    visibility: hidden;
  }
}

/* 78. DRAWDOWN
   Distance below the running peak. The fill hangs from the zero line, so the
   shape of a fall reads at a glance. */
.dd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 2px 0 16px;
}

.dd-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 11px;
  border-left: 2px solid var(--rule-2);
}

.dd-stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dd-stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.dd-stat-value.is-down {
  color: var(--down);
}

.dd-stat-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.dd-figure {
  margin: 0;
}

.dd-plot {
  position: relative;
  height: 200px;
  padding-right: 56px;
}

.dd-plot svg {
  display: block;
  width: 100%;
  height: 200px;
}

.dd-area {
  fill: color-mix(in srgb, var(--down) 11%, transparent);
}

.dd-line {
  stroke: var(--down);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.dd-y {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dd-marks {
  position: absolute;
  inset: 0 56px 0 0;
  pointer-events: none;
}

.dd-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--down);
  box-shadow: 0 0 0 2px var(--paper);
}

.dd-x {
  position: relative;
  height: 16px;
  margin-top: 6px;
  margin-right: 56px;
}

.dd-x span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.dd-x span:first-child {
  transform: none;
}

.dd-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

@media (max-width: 519px) {
  .dd-stats {
    gap: 10px;
  }

  .dd-stat-value {
    font-size: 18px;
  }

  .dd-plot,
  .dd-plot svg {
    height: 170px;
  }

  .dd-x span:nth-child(even) {
    visibility: hidden;
  }
}

/* 79. CHART PAGES: HERO AND MEASURE
   The sections used to sit hard against the left edge while the page head
   was centred, and every plot ran the full 1152px. Every chart now reads as
   one column at 800px, the returns table included. */
.market-section .section-container {
  margin-inline: auto;
}

.page-head .section-container {
  max-width: 72rem;
}

.charts-page .market-section .section-container {
  max-width: 50rem;
}

.charts-page .market-section {
  padding-top: 36px;
  padding-bottom: 36px;
}

.charts-hero {
  /* The band is dark in both themes, so the ramp reads the way the
     reference does: near-black on the left, white on the right. */
  background: #101114;
  padding-bottom: 34px;
  border-bottom: 0;
}

/* The hero shares the 800px measure of the charts below. */
.charts-hero .section-container {
  max-width: 50rem;
}

/* Twelve bars, rising in height and tone. A graphic, not a reading. */
.charts-ramp {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 148px;
  margin: 0 0 26px;
}

.charts-ramp-bar {
  flex: 1 1 0;
  min-width: 0;
}

.charts-hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #f5f5f7;
}

.charts-hero-lede {
  max-width: 46ch;
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: #9aa0a8;
}

.charts-hero-lede strong {
  color: #f5f5f7;
  font-weight: 600;
}

/* The page index sits where the reference palette row sits: one cell per
   group, running from dark to light, each a link. */
.charts-hero-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin-top: 30px;
}

.charts-hero-index a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  min-height: 54px;
  padding: 8px 10px;
  background: var(--cell);
  color: var(--cell-ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.charts-hero-index a:hover span {
  text-decoration: underline;
}

.charts-hero-index em {
  font-style: normal;
  font-size: 10px;
  opacity: 0.65;
}

@media (max-width: 519px) {
  .charts-hero-index a {
    min-height: 58px;
    padding: 7px 8px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }
}

/* 80. THE SHORT POST UNDER EACH CHART
   A chart is an article here, not a widget. The chart page prints the
   opening line only: what the chart is and how to read it. */
.chart-post {
  max-width: 66ch;
  margin: 0 0 20px;
}

.chart-post p {
  margin: 0 0 9px;
}

.chart-post p:last-child {
  margin-bottom: 0;
}

.chart-post-lede {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
}

/* Plain-language footer line under a chart: how it is made. */
.chart-made {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}

.chart-made b {
  margin-right: 6px;
  font-weight: 700;
  color: var(--ink-2);
}

.chart-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Inside the 800px chart column the two seasonality blocks stack, so twelve
   year labels get the full width instead of a third of it. */
.charts-page .season-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* 81. HALVING CYCLES
   Three cycles on a doubling axis. The current one is teal, the two before it
   step back in weight so the eye lands on the line that is still moving. */
.hv-figure {
  margin: 0;
}

.hv-plot {
  position: relative;
  height: 280px;
  padding-right: 44px;
}

.hv-stage {
  position: relative;
  height: 100%;
}

.hv-stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hv-line {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hv-line.is-2024 {
  stroke: var(--brand);
  stroke-width: 2.2;
}

.hv-line.is-2020 {
  stroke: var(--ink);
  stroke-width: 1.4;
}

.hv-line.is-2016 {
  stroke: var(--ink-3);
  stroke-width: 1.4;
  stroke-dasharray: 5 3;
}

.hv-y {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hv-x {
  position: relative;
  height: 16px;
  margin-top: 6px;
  margin-right: 44px;
}

.hv-x span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.hv-x-long {
  display: inline;
}

.hv-x-short {
  display: none;
}

.hv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}

.hv-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.hv-key i {
  width: 18px;
  height: 0;
  border-top: 2px solid var(--ink-3);
}

.hv-key.is-2024 i {
  border-color: var(--brand);
}

.hv-key.is-2020 i {
  border-color: var(--ink);
}

.hv-key.is-2016 i {
  border-color: var(--ink-3);
  border-top-style: dashed;
}

.hv-key b {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 519px) {
  .hv-plot {
    height: 220px;
  }

  .hv-x-long {
    display: none;
  }

  .hv-x-short {
    display: inline;
  }
}

.hv-x span:first-child {
  transform: none;
}

.hv-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--paper);
}

/* 82. MONTH QUILT
   Twelve columns and twelve rows, so the cell carries the colour and a small
   number. Phones keep the colour and drop the number. */
.quilt-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px 4px;
}

.quilt {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font-variant-numeric: tabular-nums;
}

.quilt th {
  font-weight: 700;
  color: var(--ink-3);
}

.quilt thead th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 8px;
}

.quilt-sort {
  appearance: none;
  background: none;
  border: 0;
  width: 100%;
  margin: -10px 0;
  padding: 10px 2px;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.quilt-year-head .quilt-sort {
  justify-content: flex-start;
}

.quilt-sort::after {
  content: "↑↓";
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}

.quilt th[aria-sort="ascending"] .quilt-sort::after {
  content: "↑";
}

.quilt th[aria-sort="descending"] .quilt-sort::after {
  content: "↓";
}

.quilt-sort:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.quilt-year {
  width: 46px;
  text-align: left;
  font-size: 12px;
  color: var(--ink);
}

.quilt-year-head {
  width: 46px;
}

.quilt-cell {
  height: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--ink);
  border-radius: 3px;
}

.quilt-cell span {
  opacity: 0.85;
}

.quilt-cell.is-empty {
  background: repeating-linear-gradient(45deg, var(--rule) 0 1px, transparent 1px 5px);
}

/* Quilt readout: a ring on the cell, a marked row and column,
   and a fixed card so the table scroll does not clip it. */
.quilt-cell[data-value] {
  cursor: pointer;
}

.quilt thead th.is-hot,
.quilt-year.is-hot {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quilt-cell.is-hot {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.quilt-cell:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.quilt-cell.is-pinned {
  box-shadow: inset 0 0 0 3px var(--ink);
}

.year-col[data-year-col] {
  cursor: pointer;
}

.year-col.is-hot {
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.year-col:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.year-col.is-pinned {
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: inset 0 -2px 0 var(--ink);
}

.quilt tr.is-row-pinned .quilt-year {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.year-xaxis span.is-pinned {
  color: var(--ink);
  font-weight: 700;
}

.chart-tip {
  position: fixed;
  z-index: 80;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 132px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

.chart-tip em {
  margin-bottom: 2px;
  font-style: normal;
  font-weight: 700;
  opacity: 0.65;
}

.chart-tip span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.chart-tip i {
  font-style: normal;
  opacity: 0.7;
}

.chart-tip b {
  font-variant-numeric: tabular-nums;
}

.chart-tip small {
  display: block;
  max-width: 210px;
  margin-top: 4px;
  white-space: normal;
  opacity: 0.65;
}

@media (max-width: 519px) {
  .quilt {
    min-width: 580px;
    border-spacing: 3px;
  }

  .quilt-cell {
    height: 28px;
    font-size: 12px;
  }

  .quilt-year {
    width: 40px;
    font-size: 11px;
  }
}

.quilt thead th {
  background: none;
}

/* 84. CORRELATION MATRIX
   Lower triangle. The label column and the header carry the names, so the
   cells only carry the number. */
.corr-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.corr {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
}

.corr th {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  padding: 0;
}

.corr thead th {
  text-align: center;
  padding-bottom: 2px;
  background: none;
}

.corr tbody th {
  width: 52px;
  text-align: left;
  color: var(--ink-2);
}

.corr-cell {
  height: 34px;
  text-align: center;
  font-size: 12px;
  color: var(--ink);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

.corr-cell span {
  opacity: 0.9;
}

.corr-cell[data-value] {
  cursor: pointer;
}

.corr-cell[data-value]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.corr-cell.is-empty {
  background: transparent;
}

.corr-cell.is-self {
  color: var(--ink-3);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

@media (max-width: 519px) {
  .corr {
    min-width: 560px;
  }

  .corr-cell {
    height: 30px;
  }
}

/* 85. VIX AND THE NIFTY
   Two scales on one canvas. A label gutter on each side, because a second
   axis on the right needs its numbers on the right. */
.vix-figure {
  margin: 0;
}

.vix-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink-3);
}

.vix-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vix-key i {
  width: 18px;
  height: 0;
  border-top: 2px solid var(--ink);
}

.vix-key.is-vix i {
  border-color: var(--ink-3);
  border-top-style: dashed;
}

.vix-plot {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: stretch;
}

.vix-axis {
  position: relative;
  height: 280px;
}

.vix-axis span {
  position: absolute;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vix-axis.is-nifty span {
  right: 0;
}

.vix-axis.is-vix span {
  left: 0;
}

.vix-canvas,
.vix-canvas svg {
  height: 280px;
}

.vix-canvas svg {
  display: block;
  width: 100%;
}

.vix-line.is-nifty {
  stroke: var(--ink);
  stroke-width: 1.8;
}

.vix-line.is-vix {
  stroke: var(--ink-3);
  stroke-width: 1.6;
  stroke-dasharray: 5 3;
}

.vix-x {
  position: relative;
  height: 16px;
  margin: 6px 44px 0 58px;
}

.vix-x span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.vix-x span:first-child {
  transform: none;
}

@media (max-width: 519px) {
  .vix-plot {
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    gap: 4px;
  }

  .vix-axis,
  .vix-canvas,
  .vix-canvas svg {
    height: 220px;
  }

  .vix-x {
    margin: 6px 38px 0 48px;
  }

  .vix-x span:nth-child(even) {
    visibility: hidden;
  }
}

/* 86. ANATOMY OF FALLS
   One row per fall: when, how deep, how long to recover. The bar carries the
   depth, the right column carries the time. */
.falls-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.falls-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 104px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.falls-row[data-depth] {
  cursor: pointer;
}

.falls-row.is-hot {
  background: var(--paper-2);
}

.falls-row:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.falls-when {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
  line-height: 1.3;
}

.falls-when b {
  color: var(--ink);
  font-weight: 700;
}

.falls-when i {
  font-style: normal;
  color: var(--ink-3);
}

.falls-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.falls-bar {
  display: block;
  height: 14px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--down) 55%, transparent);
}

.falls-depth {
  font-size: 12px;
  font-weight: 700;
  color: var(--down);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.falls-back {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: right;
  font-size: 12px;
  line-height: 1.3;
}

.falls-back b {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.falls-back i {
  font-style: normal;
  color: var(--ink-3);
}

@media (max-width: 519px) {
  .falls-row {
    grid-template-columns: 86px minmax(0, 1fr) 92px;
    gap: 8px;
  }
}

/* 87. RIDGELINE
   One row per coin. The curve sits above its own baseline and fills with
   paper, so each mountain cuts the one behind it cleanly. */
.ridge-grid {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.ridge-names {
  display: flex;
  flex-direction: column;
}

.ridge-name {
  display: flex;
  align-items: flex-end;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: help;
}

.ridge-name.is-hot {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ridge-name:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.ridge-line.is-hot {
  stroke-width: 2.6;
}

.ridge-area.is-hot {
  fill: color-mix(in srgb, var(--ink) 16%, var(--paper));
}

.ridge-plot {
  position: relative;
}

.ridge-plot svg {
  display: block;
  width: 100%;
  height: 608px;
}

.ridge-band {
  fill: color-mix(in srgb, var(--ink) 5%, transparent);
}

.ridge-mark {
  stroke: var(--ink);
  stroke-opacity: 0.16;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.ridge-area {
  fill: color-mix(in srgb, var(--ink) 8%, var(--paper));
}

.ridge-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.ridge-x {
  position: relative;
  height: 16px;
  margin-top: 4px;
}

.ridge-x span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 519px) {
  .ridge-grid {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .ridge-plot svg {
    height: 608px;
  }
}

/* 91. DENSITY CLOUD */
.density-plot {
  position: relative;
  height: 300px;
  padding-right: 54px;
}

.density-plot svg {
  display: block;
  width: 100%;
  height: 300px;
}

.density-cell {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 0.5;
}

.density-cell.is-hot {
  stroke: var(--ink);
  stroke-width: 1.6;
}

.density-dot {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  pointer-events: none;
}

.density-plot[data-density] {
  cursor: crosshair;
}

.density-plot[data-density]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.density-y {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.density-x {
  position: relative;
  height: 16px;
  margin: 6px 54px 0 0;
}

.density-x span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 519px) {
  .density-plot,
  .density-plot svg {
    height: 160px;
  }
}

/* 93. ROLLING RETURNS
   One panel per holding window, each scaled to its own range. */
.roll-figure {
  margin: 0;
}

.roll-panels {
  display: grid;
}

.roll-panel {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.roll-panel:first-child {
  border-top: 0;
  padding-top: 0;
}

.roll-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 8px;
}

.roll-panel-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.roll-panel-stat {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}

.roll-panel-stat b {
  font-weight: 700;
}

.roll-panel-stat b.is-up {
  color: var(--up);
}

.roll-panel-stat b.is-down {
  color: var(--down);
}

.roll-panel-stat i {
  font-style: normal;
  margin-left: 8px;
}

.roll-panel-plot {
  position: relative;
  height: 100px;
  padding-left: 52px;
}

.roll-panel-plot svg {
  display: block;
  width: 100%;
  height: 100px;
}

.roll-line {
  stroke: var(--ink);
  stroke-width: 1.8;
}

.roll-zero {
  stroke: var(--rule-2);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.roll-panel-y {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.roll-panel-x {
  display: flex;
  justify-content: space-between;
  margin: 4px 0 0 52px;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 519px) {
  .roll-panel-plot,
  .roll-panel-plot svg {
    height: 90px;
  }

  .roll-panel-stat {
    font-size: 10px;
  }

  .roll-panel-y {
    font-size: 10px;
  }

  .roll-panel-x {
    margin-top: 3px;
    font-size: 10px;
  }

  .roll-panel-stat i {
    margin-left: 4px;
  }
}

/* 96. CHART CARDS
   Small pictures that link from the home page and the desks into the right
   chart. The thumbnail is drawn from the same data as the chart. */
.home-charts {
  margin-top: 30px;
}

.home-charts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
}

/* The column rule lives on the head, so it runs the full width like the
   Research and Digest headings. */
.home-charts-head .home-group-title {
  padding-bottom: 0;
  border-bottom: 0;
}

.chart-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

/* The desk strip prints every card and keeps eight. The script re-picks them
   on each visit, so the page cache does not freeze one set. */
.chart-strip[data-desk-charts] .chart-card:not(.is-picked) {
  display: none;
}

.chart-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.chart-card:hover {
  border-color: var(--ink-3);
}

.chart-card-thumb {
  display: block;
  flex: 0 0 96px;
  width: 96px;
  padding: 4px;
  background: var(--paper-2);
  border-radius: 6px;
}

.chart-card-thumb .thumb {
  display: block;
  width: 100%;
  height: auto;
}

.chart-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.chart-card-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
}

.thumb-line {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.thumb-fill {
  fill: color-mix(in srgb, var(--ink) 8%, transparent);
}

.thumb-cell.is-up {
  fill: color-mix(in srgb, var(--up) 30%, transparent);
}

.thumb-cell.is-down {
  fill: color-mix(in srgb, var(--down) 26%, transparent);
}

.thumb-cell.is-strong.is-up {
  fill: color-mix(in srgb, var(--up) 72%, transparent);
}

.thumb-cell.is-strong.is-down {
  fill: color-mix(in srgb, var(--down) 62%, transparent);
}

.thumb-bar.is-up {
  fill: var(--up);
}

.thumb-bar.is-down {
  fill: var(--down);
}

.thumb-dot {
  fill: var(--ink);
}

.thumb-rule {
  stroke: var(--rule-2);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

@media (max-width: 767px) {
  .chart-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-card-thumb {
    flex-basis: 84px;
    width: 84px;
  }
}

/* 97. CHART PAGE GROUPS
   Four questions instead of sixteen sections: performance, risk,
   relationships, shape. The band names the question and carries the rule
   between groups. */
.chart-group {
  border-top: 1px solid var(--rule);
}

/* The hero map jumps to a group. Leave room for the floating nav, or the
   group title lands under it. */
.chart-group[id] {
  scroll-margin-top: 112px;
}

.chart-group-head {
  padding: 34px 16px 26px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.chart-group-head .section-container {
  max-width: 50rem;
  margin-inline: auto;
}

/* Same weight and size as the home page section titles. */
.chart-group-title {
  position: relative;
  display: block;
  padding-left: 26px;
  font-size: clamp(1.875rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
}

/* The same vertical rule the home page uses on its section titles. */
.chart-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 4px;
  border-radius: 4px;
  background: var(--ink);
}

/* A phone takes 20% off the heading. */
@media (max-width: 767px) {
  .chart-group-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .chart-group-head {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.chart-strip.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.desk-charts-foot {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

@media (max-width: 899px) {
  .chart-strip.is-three {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 519px) {
  .home-charts-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .chart-card {
    padding: 8px;
    gap: 10px;
  }

  .chart-card-thumb {
    flex-basis: 78px;
    width: 78px;
  }
}

/* 98. POINTER READOUT
   A vertical guide and a small card that follows the pointer on the time
   series charts. The card is dark on both themes so it reads as an overlay. */
.readout-line {
  stroke: var(--ink);
  stroke-opacity: 0.35;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
}

.compare-canvas[data-readout] {
  cursor: crosshair;
}

[data-readout]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.readout-tip {
  position: absolute;
  top: 4px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
}

/* The compare card sits over the lines on a phone. Let them show through
   so the point under the card is still visible. */
#compare .readout-tip {
  background: color-mix(in srgb, var(--ink) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
}

.readout-tip em {
  margin-bottom: 2px;
  font-style: normal;
  font-weight: 700;
  opacity: 0.65;
}

.readout-tip span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.readout-tip i {
  font-style: normal;
  opacity: 0.7;
}

.readout-tip b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

[data-readout] {
  touch-action: pan-y;
}

.vix-canvas {
  position: relative;
}

/* 99. CHART DOWNLOAD
   A quiet button in each chart heading, and the email gate it opens. */
.market-section-head .market-section-note {
  margin-left: auto;
}

.market-section-head .chart-dl {
  margin-left: 4px;
}

/* A phone keeps the name and the button on one row and drops the stamp
   below them, so every chart head has the same three parts in the same
   places. */
@media (max-width: 767px) {
  .market-section-head .market-section-note {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .market-section-head .chart-dl {
    order: 2;
    margin-left: auto;
  }
}

.chart-dl {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.chart-dl:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.dl-modal[hidden] {
  display: none;
}

.dl-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 26px 24px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.dl-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dl-lede {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.dl-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dl-input {
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 8px;
}

.dl-input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.dl-submit {
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.dl-submit[disabled] {
  opacity: 0.6;
  cursor: default;
}

.dl-status {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.dl-fine {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

.dl-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
}

@media (max-width: 519px) {
  .chart-dl span {
    display: none;
  }

  .chart-dl {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
}

/* Highlight one coin's row and column in the matrix. */
.corr.is-focusing .corr-cell {
  opacity: 0.26;
}

.corr.is-focusing .corr-cell.is-hot {
  opacity: 1;
}

.corr.is-focusing th {
  opacity: 0.45;
}

.corr.is-focusing th.is-hot {
  opacity: 1;
}

/* Three menus instead of five links, so the bar has room to breathe. */
.desktop-nav {
  gap: clamp(16px, 2vw, 30px);
}

/* 102. SPACING PASS
   Three padded wrappers stacked at the end of an article added up to a gap
   bigger than a paragraph. The related list now follows the text closely. */
body.single .article-content {
  padding-bottom: 0;
}

body.single .related-section {
  padding-top: 30px;
}

/* The Plus hero ran to 1109px at tablet width, mostly air around the book. */
@media (max-width: 899px) {
  .bundle-page .bp-hero {
    padding-top: 88px;
    padding-bottom: 28px;
  }

  .bundle-page .bp-hero-grid {
    gap: 24px;
  }

  .bundle-page .bp-hero-media {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* 103. NAV MENUS
   Crypto and India carry their own markets, charts and research. Learn
   carries the teaching pages. Three verbs, no repeated prefix. */
.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.nav-caret {
  transition: transform 0.15s ease;
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret,
.nav-item.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 60;
  min-width: 300px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-item:hover .nav-menu,
.nav-item.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: var(--paper-2);
}

.nav-menu b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.nav-menu span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-3);
}

/* 104. MOBILE NAV: THREE GROUPS, ALL OPEN
   The same three groups as the bar, every link visible, sized to fit a phone
   without scrolling. The panel scrolls itself only if a future page pushes it
   past the screen. */
.mobile-menu {
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px 16px;
}

.mobile-menu .mobile-menu-inner {
  gap: 0;
}

.m-group {
  padding: 0 2px 6px;
}

.m-group + .m-group {
  border-top: 1px solid var(--rule);
}

.m-label {
  display: block;
  padding: 11px 8px 1px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mobile-menu .mobile-nav-link {
  min-height: 36px;
  padding: 5px 8px;
  font-size: 0.9375rem;
  border-radius: 8px;
}

.mobile-menu .mobile-cta {
  min-height: 46px;
  margin-top: 10px;
}

/* The page behind the menu does not scroll while the menu is open. */
body.menu-open {
  overflow: hidden;
}

/* 105. THE NAV PLUS BUTTON
   The supplied gradient button, in gold: white label, deep gold stops that
   keep the text readable, and a background that slides on hover. The arrow is
   white at rest and on hover. The same rule dresses the Upgrade to Plus
   button at the foot of the home page. */
.nav-actions .plus-cta,
.mobile-menu .plus-cta,
.cta-buttons .plus-cta {
  --plus-gold: linear-gradient(
    15deg,
    #5c3d00,
    #6f4a00,
    #7a5200,
    #8a5f00,
    #7a5200,
    #6f4a00,
    #5c3d00
  );

  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8em 1.1em;
  border: 0 !important;
  border-radius: 30px;
  background: var(--plus-gold) no-repeat !important;
  background-size: 300% !important;
  background-position: left center !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  font-size: 0.875rem;
  text-shadow: 2px 2px 3px rgba(45, 28, 0, 0.55) !important;
  transition: background-size 0.3s ease, background-position 0.3s ease;
}

.nav-actions .plus-cta {
  min-height: 34px;
  font-size: 0.744rem;
}

.mobile-menu .plus-cta {
  width: 100%;
  min-height: 44px;
  font-size: 0.956rem;
}

.cta-buttons .plus-cta {
  width: auto;
  min-height: 0;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.cta-buttons .plus-cta,
.cta-buttons .cta-btn-secondary {
  height: 42px;
  min-height: 42px;
  padding: 0 1.5rem;
  font-size: 14px;
}

.cta-buttons .plus-cta span {
  font-size: 14px;
}

@media (min-width: 768px) {
  .nav-actions .plus-cta {
    min-height: 42px;
    font-size: 0.914rem;
  }
}

.nav-actions .plus-cta span,
.mobile-menu .plus-cta span,
.cta-buttons .plus-cta span {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
  color: #fff !important;
}

.nav-actions .plus-cta svg,
.mobile-menu .plus-cta svg,
.cta-buttons .plus-cta svg {
  width: 1.3em;
  height: 1.3em;
  flex: 0 0 auto;
  fill: none;
  stroke: #fff !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

.nav-actions .plus-cta:hover,
.mobile-menu .plus-cta:hover,
.cta-buttons .plus-cta:hover {
  background: var(--plus-gold) no-repeat !important;
  background-size: 320% !important;
  background-position: right center !important;
  color: #fff !important;
  opacity: 1;
  transform: none;
  box-shadow: none !important;
}

.nav-actions .plus-cta:hover svg,
.mobile-menu .plus-cta:hover svg,
.cta-buttons .plus-cta:hover svg {
  stroke: #fff !important;
}

/* style.css paints a dark overlay on every .btn-primary hover. The gold
   button must keep its gradient, so the overlay is removed here. */
.nav-actions .plus-cta::before,
.mobile-menu .plus-cta::before,
.cta-buttons .plus-cta::before {
  content: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .plus-cta,
  .plus-cta svg {
    transition: none;
  }
}

/* Links in the phone menu read as a list, not as nine buttons. The gold
   call to action keeps its own fill. */
.mobile-menu .mobile-nav-link:not(.mobile-cta) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 8px;
}

.mobile-menu .mobile-nav-link:not(.mobile-cta):hover,
.mobile-menu .mobile-nav-link:not(.mobile-cta):focus-visible {
  background: var(--paper-2) !important;
}

.mobile-menu .mobile-cta {
  margin-top: 14px;
}

/* 106. CANDLE CARDS (HOME)
   Open, high, low and close for four instruments, with a period switch.
   Four across on a desktop, two rows of two on a phone, like the live cards. */
.candles-section {
  padding: 28px 16px 34px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.candles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  max-width: 72rem;
  margin-inline: auto;
}

.candles-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.candles-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.candles-periods {
  display: inline-flex;
  gap: 4px;
}

.candle-period {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.candle-period:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.candle-period.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.candles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 72rem;
  margin: 16px auto 0;
}

.candle-card {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.candle-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px 8px;
}

.candle-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.candle-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.candle-change {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.candle-change.is-up {
  color: var(--up);
}

.candle-change.is-down {
  color: var(--down);
}

.candle-change.is-flat {
  color: var(--ink-2);
}

.candle-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 12px;
  margin: 12px 0 0;
}

.candle-values div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.candle-values dt {
  font-size: 12px;
  color: var(--ink-3);
}

.candle-values dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.candle-values dd.is-up {
  color: var(--up);
}

.candle-values dd.is-down {
  color: var(--down);
}

.candle-values dd.is-flat {
  color: var(--ink);
}

.candle-range {
  position: relative;
  height: 22px;
  margin-top: 12px;
}

.candle-range::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.candle-fill {
  position: absolute;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 4px;
}

.candle-fill.is-up {
  background: color-mix(in srgb, var(--up) 40%, transparent);
}

.candle-fill.is-down {
  background: color-mix(in srgb, var(--down) 34%, transparent);
}

.candle-fill.is-flat {
  background: color-mix(in srgb, var(--ink-3) 34%, transparent);
}

.candle-open-tick {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 1.5px;
  background: var(--ink-3);
  transform: translateX(-50%);
}

.candle-close-dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--paper);
}

.candle-close-dot.is-up {
  background: var(--up);
}

.candle-close-dot.is-down {
  background: var(--down);
}

.candle-close-dot.is-flat {
  background: var(--ink-3);
}

.candle-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
}

/* A short fade and lift when the period changes. The values change at once;
   the motion is only there to show that they did. */
@keyframes candle-swap {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.candle-card.is-swapping .candle-change,
.candle-card.is-swapping .candle-values,
.candle-card.is-swapping .candle-range {
  animation: candle-swap 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  .candle-card.is-swapping .candle-change,
  .candle-card.is-swapping .candle-values,
  .candle-card.is-swapping .candle-range {
    animation: none;
  }
}

@media (max-width: 899px) {
  .candles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Narrow cards: the name and the change share one line, so the change
     stays in the top right corner instead of dropping under the name. */
  .candle-card {
    padding: 12px;
  }

  .candle-top {
    flex-wrap: nowrap;
    gap: 2px 6px;
  }

  .candle-name {
    min-width: 0;
    font-size: 11px;
    letter-spacing: 0.03em;
  }

  .candle-right {
    flex-shrink: 0;
  }

  .candle-change {
    font-size: 13px;
  }

  .card-state {
    font-size: 11px;
  }
}

@media (max-width: 519px) {
  .candles-section {
    padding: 22px 16px 26px;
  }

  .candle-card {
    padding: 12px;
  }

  .candle-period {
    padding: 0 10px;
  }
}

@media (max-width: 519px) {
  /* The four values sit two by two; stacked label over value, they never
     collide with the neighbour at 390px. The name and the change keep the
     top line, so the change stays in the corner. */
  .candle-values div {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .candle-values dd {
    font-size: 14px;
  }
}

/* 107. THE BREATH
   A slow scale on the dots that mark a live position: the 52-week dot on the
   desks, the close dot in the candle cards, and the live state dot. 3.2
   seconds, small enough to read as a pulse rather than a blink, and off for
   anyone who asks for less motion. The spark dot has its own, wider pulse in
   section 108. */
@keyframes ths-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.32);
    opacity: 0.82;
  }
}

.quote-range-dot,
.candle-close-dot,
.market-state-line.is-live .market-state-dot {
  animation: ths-breathe 3.2s ease-in-out infinite;
  will-change: transform;
}

/* Four cards breathing in unison reads as a flicker, so each starts later. */
.candles-grid .candle-card:nth-child(2) .candle-close-dot {
  animation-delay: 0.45s;
}

.candles-grid .candle-card:nth-child(3) .candle-close-dot {
  animation-delay: 0.9s;
}

.candles-grid .candle-card:nth-child(4) .candle-close-dot {
  animation-delay: 1.35s;
}

@media (prefers-reduced-motion: reduce) {
  .quote-range-dot,
  .candle-close-dot,
  .market-state-line.is-live .market-state-dot {
    animation: none;
  }
}

/* 108. THE SPARK DOT, AND WHEN THE CANDLES WERE BUILT
   The spark dot is the smallest mark on the site: six pixels of hollow ring
   at the end of a hero line. Scaling it alone is under a pixel of growth, so
   it read as still. It keeps a small scale and sends out a halo, which is
   what the eye actually catches. */
.mini-dot {
  animation: ths-spark-breathe 3.2s ease-in-out infinite;
  will-change: transform;
}

.mini-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  animation: ths-spark-halo 3.2s ease-out infinite;
  pointer-events: none;
}

@keyframes ths-spark-breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }
}

/* The halo starts just outside the dot's ring and fades as it travels, so
   the dot itself stays a crisp ring instead of a swelling black donut. */
@keyframes ths-spark-halo {
  0% {
    transform: scale(1.05);
    opacity: 0.38;
  }

  70%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* The build time for the candle data, under the four cards. */
.candles-updated {
  max-width: 72rem;
  margin: 12px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .mini-dot,
  .mini-dot::after {
    animation: none;
  }

  .mini-dot::after {
    opacity: 0;
  }
}

/* Under 520px the price gutter leaves too little room for a pair of dates,
   so the daily axis borrows the full card width. The labels sit below the
   plot, where the gutter is empty anyway. */
@media (max-width: 519px) {
  .mini-chart .mini-axis {
    padding-right: 0;
  }
}.fade-up, .bp-reveal{
  opacity: 1;
  transform: none;
}

/* The lesson cards keep their hover lift, so only the hidden start changes. */
.lesson-card {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   BUTTONS ON TOUCH
   The circle button is a hover reveal: the circle widens into a pill, the
   text turns white and the arrow slides. A phone never hovers, so the button
   now rests in that opened state. A desktop with a mouse keeps the hover.
   -------------------------------------------------------------------------- */
@media (hover: none), (max-width: 767px) {
  .learn-more .circle {
    width: 100%;
  }

  .learn-more .circle .icon.arrow {
    background: var(--paper);
    transform: translate(0.5rem, 0);
  }

  .learn-more .button-text {
    color: var(--paper);
  }
}

/* Home: two full-width buttons, one above the other. The labels are centred
   and both arrows are the same 16px, between the big circle arrow and the
   small link arrow. */
@media (max-width: 767px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-cta .learn-more {
    width: 100%;
  }

  .hero-cta .learn-more .circle .icon.arrow {
    left: auto;
    right: 1.25rem;
    width: 0.75rem;
    height: 1.5px;
    transform: none;
  }

  .hero-cta .learn-more .circle .icon.arrow::before {
    width: 0.375rem;
    height: 0.375rem;
    top: -0.17rem;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
  }

  .hero-cta .cta {
    position: relative;
    justify-content: center;
    padding: 0 40px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    text-align: center;
  }

  .hero-cta .cta svg {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
  }
}

/* Market pages: three small pills in one row, each the digest style, so the
   label and its arrow are centred together. */
@media (max-width: 767px) {
  .market-hero-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .market-hero-actions .cta {
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    min-height: 38px;
    padding: 0 6px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    justify-content: center;
    font-size: 11px;
  }

  .market-hero-actions .cta span {
    height: 38px;
    padding-right: 6px;
    font-size: 11px;
  }

  .market-hero-actions .cta svg {
    width: 14px;
    height: 14px;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   WEEKLY WRAP: ONE SNAPSHOT, PLAIN OUTLOOK, ONE MORE PANEL
   The scoreboard and ticker were two boxes with a repeated dominance value.
   They are one grid now. The outlook is body copy again and only the key
   levels keep a box. The four end blocks share one panel with hairlines.
   -------------------------------------------------------------------------- */
.article-content .weekly-snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  padding: 1px;
  margin: 32px 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.article-content .weekly-snapshot--crypto .snap-cell {
  flex: 1 1 calc(33.333% - 1px);
}

.article-content .weekly-snapshot--india .snap-cell {
  flex: 1 1 calc(25% - 1px);
}

.article-content .snap-cell {
  background: var(--paper);
  padding: 16px 18px;
  min-width: 0;
}

.article-content .snap-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink-3);
  min-height: 2.2em;
  margin-bottom: 6px;
}

.article-content .snap-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: break-word;
}

.article-content .snap-value--compact {
  font-size: 16px;
}

.article-content .snap-note {
  margin-top: 5px;
  font-size: 12px;
  font-family: monospace;
  color: var(--ink-3);
}

.article-content .snap-value.is-up,
.article-content .snap-note.is-up {
  color: var(--up);
}

.article-content .snap-value.is-down,
.article-content .snap-note.is-down {
  color: var(--down);
}

@media (max-width: 767px) {
  .article-content .weekly-snapshot--crypto .snap-cell,
  .article-content .weekly-snapshot--india .snap-cell {
    flex-basis: calc(50% - 1px);
  }

  .article-content .snap-cell {
    padding: 14px 14px 13px;
  }

  .article-content .snap-label {
    letter-spacing: .1em;
  }

  .article-content .snap-value {
    font-size: 20px;
  }

  .article-content .snap-value--compact {
    font-size: 15px;
  }
}

/* Outlook: no panel, just the label, heading and body copy. */
.article-content .ths-outlook,
.article-content .ind-outlook {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 32px 0 0 !important;
}

.article-content .ths-outlook::before,
.article-content .ind-outlook::before {
  display: none !important;
}

.article-content .ths-outlook .ob-label,
.article-content .ind-outlook .ind-ob-label {
  color: var(--brand-strong) !important;
  font-size: 12px;
  margin-bottom: 8px;
}

.article-content .ths-outlook h2,
.article-content .ind-outlook h2 {
  color: var(--ink) !important;
  border-left-color: var(--brand) !important;
}

.article-content .ths-outlook > p,
.article-content .ind-outlook > p {
  color: var(--ink-2) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

/* The one box that stays: support and resistance. */
.article-content .ths-outlook .ths-key-levels,
.article-content .ind-outlook .ind-key-levels {
  margin-top: 24px !important;
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 12px !important;
}

@media (max-width: 767px) {
  .article-content .ths-key-levels,
  .article-content .ind-key-levels {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1px !important;
    padding: 1px !important;
    background: var(--rule) !important;
  }

  .article-content .ths-kl-item,
  .article-content .ind-kl-item {
    border: 0 !important;
    background: var(--paper);
    padding: 12px 12px !important;
    text-align: left;
  }

  .article-content .ths-kl-item:last-child:nth-child(odd),
  .article-content .ind-kl-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Technical analysis: pictures and captions, no card or callout. */
.article-content .ta-figure {
  margin: 30px 0;
}

.article-content .ta-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.article-content .ta-caption {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* The four end blocks share one surface. */
.article-content .weekly-more-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 32px;
  margin: 52px 0 32px;
  padding: 6px 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.article-content .weekly-more-panel > * {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 20px 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.article-content .weekly-more-panel > * + * {
  border-top: 1px solid var(--rule) !important;
}

.article-content .weekly-more-panel > *:nth-child(-n+2) {
  border-top: 0 !important;
}

.article-content .weekly-more-panel > *:nth-child(even) {
  border-left: 1px solid var(--rule) !important;
  padding-left: 28px !important;
}

.article-content .weekly-more-panel > *:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-left: 0 !important;
}

.article-content .weekly-more-panel .ths-learn-basics-title,
.article-content .weekly-more-panel .ind-learn-basics-title,
.article-content .weekly-more-panel .ths-series-title,
.article-content .weekly-more-panel .ind-series-title,
.article-content .weekly-more-panel .ths-archive-title,
.article-content .weekly-more-panel .ind-archive-title,
.article-content .weekly-more-panel .rb-label,
.article-content .weekly-more-panel .ind-rb-label {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.article-content .weekly-more-panel p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.article-content .weekly-more-panel ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.article-content .weekly-more-panel li {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.article-content .weekly-more-panel a {
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
}

.article-content .weekly-more-panel a:hover {
  color: var(--brand-strong) !important;
  text-decoration: underline !important;
}

.article-content .weekly-more-panel .ths-learn-basics li a,
.article-content .weekly-more-panel .ind-learn-basics li a,
.article-content .weekly-more-panel .ths-series-links a,
.article-content .weekly-more-panel .ind-series-links a,
.article-content .weekly-more-panel .ths-related a,
.article-content .weekly-more-panel .ind-related a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-bottom: 0 !important;
}

.article-content .weekly-more-panel .ths-learn-basics-all,
.article-content .weekly-more-panel .ind-learn-basics-all,
.article-content .weekly-more-panel .ths-series-all,
.article-content .weekly-more-panel .ind-series-all {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2) !important;
}

@media (max-width: 1023px) {
  .article-content .weekly-more-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 18px;
  }

  .article-content .weekly-more-panel > * {
    padding: 16px 0 !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--rule) !important;
    border-left: 0 !important;
  }

  .article-content .weekly-more-panel > *:nth-child(even) {
    padding-left: 0 !important;
    border-left: 0 !important;
  }

  .article-content .weekly-more-panel > *:nth-child(-n+2) {
    border-top: 1px solid var(--rule) !important;
  }

  .article-content .weekly-more-panel > *:first-child {
    border-top: 0 !important;
  }

  .article-content .weekly-more-panel > *:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* --------------------------------------------------------------------------
   WEEKLY WRAP: ONE VERTICAL RHYTHM
   Section labels open a section at 48px. The heading sits 6px below the
   label. Body blocks sit 24px apart. Technical analysis figures use the
   stack gap only, so the old image margin cannot double the space.
   -------------------------------------------------------------------------- */
body.ths-weekly-wrap .article-content .ths-label,
body.ths-weekly-wrap .article-content .ind-label {
  margin: 48px 0 6px !important;
}

body.ths-weekly-wrap .article-content .ths-label + h2,
body.ths-weekly-wrap .article-content .ind-label + h2 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

body.ths-weekly-wrap .article-content .ths-intro-block,
body.ths-weekly-wrap .article-content .ind-intro-block {
  margin-bottom: 36px !important;
}

body.ths-weekly-wrap .article-content .ths-chart-card,
body.ths-weekly-wrap .article-content .ind-chart-card,
body.ths-weekly-wrap .article-content .ths-news-grid,
body.ths-weekly-wrap .article-content .ind-news-grid,
body.ths-weekly-wrap .article-content .ind-fo-grid,
body.ths-weekly-wrap .article-content .ind-table-wrap,
body.ths-weekly-wrap .article-content .ths-callout,
body.ths-weekly-wrap .article-content .ind-callout {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

body.ths-weekly-wrap .article-content .chart-stack {
  gap: 28px !important;
  margin: 24px 0 !important;
}

body.ths-weekly-wrap .article-content .ta-figure {
  margin: 0 !important;
}

body.ths-weekly-wrap .article-content .ta-image {
  margin: 0 !important;
}

body.ths-weekly-wrap .article-content .ta-caption {
  margin: 8px 0 0 !important;
  font-size: 1.0625rem !important;
  line-height: 1.8 !important;
}

body.ths-weekly-wrap .article-content .ths-outlook,
body.ths-weekly-wrap .article-content .ind-outlook {
  margin-top: 0 !important;
}

body.ths-weekly-wrap .article-content .ths-outlook .ths-key-levels,
body.ths-weekly-wrap .article-content .ind-outlook .ind-key-levels {
  margin-top: 20px !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel {
  margin-top: 48px !important;
}

/* The first paragraph after a heading is body copy, not smaller print. */
body.ths-weekly-wrap .article-content h2 + p,
body.ths-weekly-wrap .article-content .ths-outlook > p,
body.ths-weekly-wrap .article-content .ind-outlook > p {
  font-size: 1.0625rem !important;
  line-height: 1.8 !important;
}

@media (max-width: 767px) {
  body.ths-weekly-wrap .article-content .ths-label,
  body.ths-weekly-wrap .article-content .ind-label {
    margin-top: 40px !important;
  }

  body.ths-weekly-wrap .article-content .ths-intro-block,
  body.ths-weekly-wrap .article-content .ind-intro-block {
    margin-bottom: 28px !important;
  }

  body.ths-weekly-wrap .article-content .weekly-more-panel {
    margin-top: 40px !important;
  }

  body.ths-weekly-wrap .article-content h2 + p,
  body.ths-weekly-wrap .article-content .ths-outlook > p,
  body.ths-weekly-wrap .article-content .ind-outlook > p,
  body.ths-weekly-wrap .article-content .ta-caption {
    font-size: 1rem !important;
  }
}

/* --------------------------------------------------------------------------
   WEEKLY WRAP: INK RULES, NOT GREEN ONES
   -------------------------------------------------------------------------- */
body.ths-weekly-wrap .article-content .ths-outlook h2,
body.ths-weekly-wrap .article-content .ind-outlook h2 {
  border-left-color: var(--ink) !important;
  margin-bottom: 14px !important;
}

body.ths-weekly-wrap .article-content .ths-outlook .ob-label,
body.ths-weekly-wrap .article-content .ind-outlook .ind-ob-label,
body.ths-weekly-wrap .article-content .ths-outlook .kl-tag,
body.ths-weekly-wrap .article-content .ind-outlook .ind-kl-tag {
  color: var(--ink-3) !important;
}

body.ths-weekly-wrap .article-content .ths-callout,
body.ths-weekly-wrap .article-content .ind-callout {
  border-left-color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   WEEKLY WRAP: A CALMER MORE PANEL
   One arrow for every entry. Previous and Next stay as small labels.
   -------------------------------------------------------------------------- */
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-learn-basics li a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-learn-basics li a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .series-title::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-archive-reads li a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-archive-reads li a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-related a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-related a::before {
  content: '\2192';
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 6px;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .ths-related a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-related a {
  gap: 0 !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .weekly-series-link {
  display: block !important;
  min-height: 0 !important;
  padding: 4px 0 !important;
  line-height: 1.5 !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .series-dir {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .series-title {
  display: block;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .ths-learn-basics-all,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-learn-basics-all,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-series-all,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-series-all {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Wrapped archive titles keep their second line under the text, not under
   the arrow. */
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-archive-reads li a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-archive-reads li a {
  display: flex;
  align-items: flex-start;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .ths-archive-reads li a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-archive-reads li a::before {
  margin-top: 4px;
}

/* At 320px the longest related title needs 12px to stay on one line. */
@media (max-width: 359px) {
  body.ths-weekly-wrap .article-content .weekly-more-panel a {
    font-size: 12px !important;
  }
}

/* Entries begin immediately under their heading. The first row has no
   top padding, so there is no empty line before it. */
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-learn-basics li a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-learn-basics li a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-series-links a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-series-links a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-archive-reads li a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-archive-reads li a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-related a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-related a {
  min-height: 0 !important;
  padding: 4px 0 !important;
  align-items: flex-start !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .ths-learn-basics li:first-child a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-learn-basics li:first-child a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-archive-reads li:first-child a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-archive-reads li:first-child a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-related a:first-child,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-related a:first-child {
  padding-top: 0 !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .ths-learn-basics li a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-learn-basics li a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-archive-reads li a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-archive-reads li a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-related a::before,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-related a::before {
  margin-top: 4px;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .ths-learn-basics-all,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-learn-basics-all,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-series-all,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-series-all {
  min-height: 0 !important;
  padding: 4px 0 !important;
}

/* The more panel is a plain list. No row padding, no blank lines between
   entries and no gap before the browse links. */
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-learn-basics-title,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-learn-basics-title,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-series-title,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-series-title,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-archive-title,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-archive-title,
body.ths-weekly-wrap .article-content .weekly-more-panel .rb-label,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-rb-label {
  margin-bottom: 0 !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .ths-learn-basics li a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-learn-basics li a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-series-links a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-series-links a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-archive-reads li a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-archive-reads li a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-related a,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-related a {
  min-height: 0 !important;
  padding: 0 !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .weekly-series-link {
  padding: 0 !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .series-dir {
  margin-bottom: 0 !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .ths-series-links,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-series-links {
  margin-bottom: 0 !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .ths-learn-basics-all,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-learn-basics-all,
body.ths-weekly-wrap .article-content .weekly-more-panel .ths-series-all,
body.ths-weekly-wrap .article-content .weekly-more-panel .ind-series-all {
  min-height: 0 !important;
  margin-top: 10px !important;
  padding: 0 !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .series-title {
  display: flex !important;
  align-items: flex-start !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .series-title::before {
  margin-top: 4px !important;
}

body.ths-weekly-wrap .article-content .weekly-more-panel .series-name {
  text-wrap: balance;
}

/* Tight line spacing between panel entries. The row height is the text
   line itself, not a padded list row. */
body.ths-weekly-wrap .article-content .weekly-more-panel a,
body.ths-weekly-wrap .article-content .weekly-more-panel li {
  line-height: 1.45 !important;
}

/* The series arrow follows the direction of the post. */
body.ths-weekly-wrap .article-content .weekly-more-panel .weekly-series-link.series-prev .series-title::before {
  content: '\2192';
}

body.ths-weekly-wrap .article-content .weekly-more-panel .weekly-series-link.series-next .series-title::before {
  content: '\2192';
}

/* --------------------------------------------------------------------------
   Weekly wrap vertical rhythm (crypto and Indian)
   One scale for the whole article: 16 between paragraphs, 24 around media
   and boxes, 48 before a new section. Applied at every width so both weekly
   templates and both themes read the same. The rule set is scoped to
   body.ths-weekly-wrap, so no other template is affected.
   -------------------------------------------------------------------------- */

body.ths-weekly-wrap main.article-content > p,
body.ths-weekly-wrap main.article-content > ul,
body.ths-weekly-wrap main.article-content > ol {
  margin: 0 0 16px !important;
}

body.ths-weekly-wrap main.article-content > h2 {
  margin: 48px 0 16px !important;
}

body.ths-weekly-wrap main.article-content > .ths-intro-block,
body.ths-weekly-wrap main.article-content > .ind-intro-block {
  margin: 0 0 48px !important;
}

body.ths-weekly-wrap main.article-content > .ths-chart-card,
body.ths-weekly-wrap main.article-content > .ind-chart-card,
body.ths-weekly-wrap main.article-content > .ths-key-levels,
body.ths-weekly-wrap main.article-content > .ind-key-levels,
body.ths-weekly-wrap main.article-content > figure,
body.ths-weekly-wrap main.article-content > .ths-news-list,
body.ths-weekly-wrap main.article-content > .ind-news-list,
body.ths-weekly-wrap main.article-content > .ths-callout,
body.ths-weekly-wrap main.article-content > .ind-callout,
body.ths-weekly-wrap main.article-content > .ind-fo-grid,
body.ths-weekly-wrap main.article-content > .ind-table-wrap,
body.ths-weekly-wrap main.article-content > .ths-doughnut-outer,
body.ths-weekly-wrap main.article-content > .ths-ticker,
body.ths-weekly-wrap main.article-content > .ind-ticker {
  margin: 24px 0 !important;
}

body.ths-weekly-wrap main.article-content > .ths-outlook,
body.ths-weekly-wrap main.article-content > .ind-outlook {
  margin: 48px 0 0 !important;
}

/* The intro opens the article on its heading, not on a section gap. */
body.ths-weekly-wrap main.article-content > .ths-intro-block > h2:first-child,
body.ths-weekly-wrap main.article-content > .ind-intro-block > h2:first-child,
body.ths-weekly-wrap main.article-content > .ths-intro-block > .ths-intro-heading,
body.ths-weekly-wrap main.article-content > .ind-intro-block > .ind-intro-heading {
  margin: 0 0 16px !important;
}

body.ths-weekly-wrap main.article-content .ths-intro-text p,
body.ths-weekly-wrap main.article-content .ind-intro-text p {
  margin: 0 0 16px !important;
}

body.ths-weekly-wrap main.article-content .ths-intro-text > p:last-child,
body.ths-weekly-wrap main.article-content .ind-intro-text > p:last-child {
  margin-bottom: 0 !important;
}

body.ths-weekly-wrap main.article-content .weekly-snapshot {
  margin: 24px 0 !important;
}

/* The Outlook is a section, so its heading follows the same 16 below. */
body.ths-weekly-wrap main.article-content .ths-outlook > h2,
body.ths-weekly-wrap main.article-content .ind-outlook > h2 {
  margin: 0 0 16px !important;
}

body.ths-weekly-wrap main.article-content .ths-outlook .ths-key-levels,
body.ths-weekly-wrap main.article-content .ind-outlook .ind-key-levels {
  margin: 24px 0 !important;
}

/* Blank lines inside a text field become the same 16px gap as a paragraph. */
body.ths-weekly-wrap main.article-content .ths-para-gap {
  height: 16px;
}

body.ths-weekly-wrap main.article-content .ths-news-item,
body.ths-weekly-wrap main.article-content .ind-news-item {
  margin-bottom: 16px !important;
}

body.ths-weekly-wrap main.article-content .ths-news-list > *:last-child,
body.ths-weekly-wrap main.article-content .ind-news-list > *:last-child {
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   70. POST TABLES - FILL THE COLUMN AND WRAP
   Appended after section 42 rather than editing it, so the original rule set
   stays intact and this can be removed by deleting this block.
   Higher specificity plus later order wins without !important.
   -------------------------------------------------------------------------- */
body.single .article-content .wp-block-table {
  width: 100%;
  max-width: 100%;
  margin: 26px auto;
  overflow-x: visible;
}

body.single .article-content table {
  display: table;
  table-layout: auto;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

body.single .article-content th,
body.single .article-content td {
  white-space: normal;
  overflow-wrap: break-word;
  padding: 12px 14px;
}

body.single .article-content th:first-child,
body.single .article-content td:first-child {
  min-width: 0;
}

body.single .article-content thead th {
  white-space: normal;
}

@media (max-width: 560px) {
  body.single .article-content table {
    font-size: 0.8125rem;
    line-height: 1.4;
  }
  body.single .article-content th,
  body.single .article-content td {
    padding: 9px 7px;
  }
  body.single .article-content thead th {
    font-size: 0.6875rem;
    letter-spacing: 0.01em;
  }
}

/* --------------------------------------------------------------------------
   71. LISTS INSIDE AN ARTICLE
   The old rule put the marker inside the item and kept 20px of padding, so on a
   phone a numbered list lost a fifth of the width to indentation. Markers now sit
   outside the text and the padding is smaller on narrow screens.
   -------------------------------------------------------------------------- */
body.single .article-content ul,
body.single .article-content ol {
  padding-left: 1.25rem !important;
  margin: 0 0 1.1rem !important;
}

body.single .article-content ul li {
  list-style-type: disc !important;
  list-style-position: outside !important;
}

body.single .article-content ol li {
  list-style-type: decimal !important;
  list-style-position: outside !important;
}

@media (max-width: 560px) {
  body.single .article-content ul,
  body.single .article-content ol {
    padding-left: 0.95rem !important;
  }
}
