/*
 * Palette/depth pass r12
 *
 * Chosen after a 50-variant visual study against the live homepage data.
 * The material system intentionally keeps the canvas almost black, then steps
 * through charcoal panels, raised cards, and near-black data tiles. This is a
 * surface hierarchy, not a decorative gradient treatment.
 */

:root {
  --bg: #070809;
  --bg-raised: #0c0f10;
  --surface: #131617;
  --surface-strong: #171b1c;
  --surface-soft: #090b0c;
  --ink: #f5f6f2;
  --ink-soft: #d4d8d4;
  --muted: #909894;
  --muted-strong: #b9c0bb;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.125);
  --accent: #f1c928;
  --accent-bright: #ffdc3d;
  --accent-soft: rgba(241, 201, 40, 0.075);
  --accent-line: rgba(241, 201, 40, 0.34);
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

html {
  background: var(--bg);
  scrollbar-color: #303536 #060708;
}

body {
  background:
    radial-gradient(circle at 82% -16%, rgba(255, 255, 255, 0.022), transparent 34rem),
    radial-gradient(circle at 12% 24rem, rgba(255, 255, 255, 0.012), transparent 30rem),
    linear-gradient(180deg, #0a0c0d 0, #080a0b 42rem, #050607 100%);
}

body::before {
  opacity: 0.055;
}

.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.075);
  background: rgba(8, 10, 11, 0.965);
}

.search-shell,
.search-results {
  border-color: rgba(255, 255, 255, 0.1);
  background: #101314;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 4px 12px rgba(0, 0, 0, 0.16);
}

.search-shell:focus-within {
  border-color: rgba(241, 201, 40, 0.46);
  background: #141819;
}

.socials a {
  border-color: rgba(255, 255, 255, 0.1);
  background: #080a0b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 3px 7px rgba(0, 0, 0, 0.22);
}

.socials a:hover {
  background: #121516;
}

/* Certain News is deliberately a full-bleed signal strip. Its contents still
   align with the dashboard's reading edge, while the material runs edge to edge. */
.market-ticker {
  --ticker-page-edge: max(20px, calc((100vw - var(--page)) / 2));
  grid-template-columns: calc(var(--ticker-page-edge) + 136px) minmax(0, 1fr);
  padding: 0;
  border-bottom-color: rgba(255, 255, 255, 0.075);
  background: #080a0b;
}

.market-ticker::before {
  inset: 0;
  border: 0;
  background: #080a0b;
}

.ticker-status {
  padding: 0 14px 0 var(--ticker-page-edge);
  border-right-color: rgba(255, 255, 255, 0.075);
  background: transparent;
}

.ticker-viewport {
  padding-right: var(--ticker-page-edge);
  background: transparent;
}

.ticker-item {
  background: transparent;
}

.panel,
.window-column,
.window-continuation,
.content-panel,
.about-proof,
.about-process,
.about-manifesto,
.window-page-notes,
.about-proof article,
.about-principles article,
.window-switcher a {
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.024), transparent 54%),
    #131617;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.about-hero,
.window-page-hero {
  border-color: rgba(241, 201, 40, 0.3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 58%),
    #111415;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.46),
    0 14px 32px rgba(0, 0, 0, 0.22);
}

.lead-panel {
  border-color: rgba(241, 201, 40, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 56%),
    #121516;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 15px 34px rgba(0, 0, 0, 0.23);
}

.certain-panel,
.asset-panel {
  border-color: rgba(241, 201, 40, 0.27);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 56%),
    #121516;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48),
    0 14px 30px rgba(0, 0, 0, 0.21);
}

/* A unified gold mark keeps the three top panels in one product language. */
.lead-kicker > .surface-icon,
.certain-panel .panel-title .surface-icon,
.asset-panel .panel-title .surface-icon {
  border-color: rgba(241, 201, 40, 0.25) !important;
  background: #0a0c0d !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 2px 5px rgba(0, 0, 0, 0.2);
  color: var(--accent) !important;
}

.certain-panel .intel-scroll-sequence > .intel-row,
.asset-scroll .asset-row,
.asset-scroll .asset-row:nth-child(odd),
.certain-panel .intel-row,
.asset-row,
.asset-row:nth-child(odd) {
  border-color: rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 72%),
    #090b0c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.44),
    0 5px 12px rgba(0, 0, 0, 0.17);
}

.certain-panel .intel-row:hover,
.asset-row:hover {
  border-color: rgba(241, 201, 40, 0.3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 72%),
    #101314;
}

.primary-window-grid::before {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 85%),
    #0d1011;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 7px 16px rgba(0, 0, 0, 0.15);
}

.window-head {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: transparent;
}

.market-card,
.primary-window-grid .market-card,
.window-market-grid .market-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 60%),
    #171b1c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.042),
    inset 0 -1px 0 rgba(0, 0, 0, 0.44),
    0 9px 19px rgba(0, 0, 0, 0.22);
}

.market-card:hover,
.primary-window-grid .market-card:hover,
.window-market-grid .market-card:hover {
  border-color: rgba(241, 201, 40, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 60%),
    #1b2021;
}

.window-switcher a.active,
.window-switcher a:hover {
  border-color: rgba(241, 201, 40, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 64%),
    #171a17;
}

.site-footer {
  border-top-color: rgba(255, 255, 255, 0.075);
  background: #060809;
}

@media (max-width: 760px) {
  .market-ticker {
    --ticker-page-edge: 16px;
    grid-template-columns: calc(var(--ticker-page-edge) + 108px) minmax(0, 1fr);
  }

  .ticker-status {
    padding-left: var(--ticker-page-edge);
  }
}
