/* Premium depth r47: static, additive polish with no layout or feed changes. */
:root {
  --depth-line: rgba(255, 255, 255, 0.115);
  --depth-line-hover: rgba(241, 201, 40, 0.34);
  --depth-highlight: rgba(255, 255, 255, 0.045);
  --depth-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.2);
  --depth-shadow-raised: 0 18px 42px rgba(0, 0, 0, 0.3);
}

body {
  background:
    radial-gradient(ellipse 72% 34% at 50% -10%, rgba(241, 201, 40, 0.035), transparent 68%),
    radial-gradient(circle at 88% 27rem, rgba(255, 255, 255, 0.018), transparent 28rem),
    radial-gradient(circle at 8% 55rem, rgba(241, 201, 40, 0.012), transparent 32rem),
    linear-gradient(180deg, #0a0c0d 0, #080a0b 43rem, #050607 100%);
}

.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.018),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.market-ticker {
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.018),
    0 7px 18px rgba(0, 0, 0, 0.13);
}

/* Keep every asset mark on one fixed visual rail regardless of label length. */
.asset-scroll .asset-identity {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 8px;
  justify-content: stretch;
}

.asset-scroll .asset-icon {
  justify-self: center;
}

.asset-scroll .asset-copy {
  min-width: 0;
  text-align: left;
}

/* The top story has the strongest elevation; companion panels stay quieter. */
.lead-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(241, 201, 40, 0.055), transparent 41%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.034), transparent 58%),
    #121617;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.52),
    0 20px 44px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(241, 201, 40, 0.025);
}

.certain-panel,
.asset-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.022), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 58%),
    #121617;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.048),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48),
    0 15px 34px rgba(0, 0, 0, 0.23);
}

.certain-panel .intel-scroll-sequence > .intel-row,
.asset-scroll .asset-row,
.asset-scroll .asset-row:nth-child(odd) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48),
    0 6px 14px rgba(0, 0, 0, 0.19);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.primary-window-grid::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.042),
    inset 0 -1px 0 rgba(0, 0, 0, 0.46),
    0 11px 28px rgba(0, 0, 0, 0.2);
}

.market-card,
.primary-window-grid .market-card,
.window-market-grid .market-card {
  border-color: var(--depth-line);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.025), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 60%),
    #171b1c;
  box-shadow:
    inset 0 1px 0 var(--depth-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.46),
    var(--depth-shadow-soft);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease;
}

.window-market-grid .market-card {
  border-radius: 13px;
}

.card-source-button,
.view-all,
.back-link,
.window-switcher a,
.about-r28 .about-social-links a,
.socials a {
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.view-all,
.back-link,
.window-switcher a {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 4px 12px rgba(0, 0, 0, 0.16);
}

.window-page-hero {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.view-all-page .window-page-hero {
  border-bottom-color: rgba(255, 255, 255, 0.17);
}

.view-all-page .window-count-pill {
  text-shadow: 0 0 18px rgba(241, 201, 40, 0.16);
}

.about-r28 > section {
  border-color: var(--depth-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    0 18px 38px rgba(0, 0, 0, 0.23);
}

.about-r28 .about-cycle,
.about-r28 .about-event-map,
.about-r28 .about-steps {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.038),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.about-r28 .about-steps li,
.about-r28 .event-input,
.about-r28 .event-output {
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.site-footer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

@media (hover: hover) and (pointer: fine) {
  .market-card:hover,
  .primary-window-grid .market-card:hover,
  .window-market-grid .market-card:hover {
    transform: translateY(-2px);
    border-color: var(--depth-line-hover);
    background:
      radial-gradient(circle at 100% 0, rgba(241, 201, 40, 0.045), transparent 43%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 61%),
      #1a1f20;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.058),
      inset 0 -1px 0 rgba(0, 0, 0, 0.48),
      var(--depth-shadow-raised);
  }

  .certain-panel .intel-row:hover,
  .asset-scroll .asset-row:hover {
    border-color: rgba(241, 201, 40, 0.31);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      inset 0 -1px 0 rgba(0, 0, 0, 0.46),
      0 8px 18px rgba(0, 0, 0, 0.24);
  }

  .card-source-button:hover,
  .view-all:hover,
  .back-link:hover,
  .window-switcher a:hover,
  .about-r28 .about-social-links a:hover,
  .socials a:hover {
    transform: translateY(-1px);
  }

  .about-r28 .about-steps li:hover,
  .about-r28 .event-input:hover {
    background-color: #101516;
    box-shadow: inset 3px 0 0 rgba(241, 201, 40, 0.28);
  }
}

@media (max-width: 760px) {
  .asset-scroll .asset-identity {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 8px;
  }

  .lead-panel,
  .certain-panel,
  .asset-panel,
  .about-r28 > section {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      inset 0 -1px 0 rgba(0, 0, 0, 0.45),
      0 12px 26px rgba(0, 0, 0, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-card,
  .primary-window-grid .market-card,
  .window-market-grid .market-card,
  .certain-panel .intel-scroll-sequence > .intel-row,
  .asset-scroll .asset-row,
  .card-source-button,
  .view-all,
  .back-link,
  .window-switcher a,
  .about-r28 .about-social-links a,
  .socials a,
  .about-r28 .about-steps li,
  .about-r28 .event-input,
  .about-r28 .event-output {
    transition: none;
  }

  .market-card:hover,
  .primary-window-grid .market-card:hover,
  .window-market-grid .market-card:hover,
  .card-source-button:hover,
  .view-all:hover,
  .back-link:hover,
  .window-switcher a:hover,
  .about-r28 .about-social-links a:hover,
  .socials a:hover {
    transform: none;
  }
}
