/* ==========================================================================
   Shoreline — "Sterling evergreen, engineered, calm"
   A DriftWorks platform. Dark base (inherited), Sterling accent, mono data.
   Decided under SD-049. NO teal / blue / amber anywhere on this page.
   ========================================================================== */

.page-shoreline {
  /* Sterling evergreen accent system (SD-049) */
  --sl-primary: #2f6e57;   /* links, active sort, bar fills, horizon rule */
  --sl-accent: #4e9e7e;    /* hover / brighter fills */
  --sl-deep: #1e4a3a;      /* gradient anchor, ramp floor */
  --sl-light: #7fbfa0;     /* ramp ceiling */
  --sl-glow: rgba(78, 158, 126, 0.14);
  --sl-cash: #55627a;      /* neutral grey for cash / other */

  /* Allocation monochrome ramp (evergreen), cycled per segment. */
  --sl-ramp-0: #1e4a3a;
  --sl-ramp-1: #2f6e57;
  --sl-ramp-2: #3f8b6c;
  --sl-ramp-3: #4e9e7e;
  --sl-ramp-4: #63b291;
  --sl-ramp-5: #7fbfa0;

  background: var(--color-midnight);
}

/* The z-index:2 content layer (global .site-main / .site-shell) carries the
   Sterling glow and MUST stay opaque. The global .site-footer is position:fixed
   (a reveal footer that sits behind the content); a transparent content layer
   lets that footer show through as you scroll. So the gradient lives here, over
   an opaque midnight base, not on the body. */
body.page-shoreline .site-shell,
body.page-shoreline .site-main {
  background:
    radial-gradient(circle at 78% 6%, rgba(47, 110, 87, 0.12), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(30, 74, 58, 0.22), transparent 52%),
    var(--color-midnight);
}

body.page-shoreline .site-main {
  color: var(--color-white);
}

/* Sterling focus + link temperature (override the global copper) */
.page-shoreline :focus-visible {
  outline-color: var(--sl-accent);
}

.page-shoreline .section__marker-number {
  color: var(--sl-accent);
}

/* Keep the active nav link on the evergreen palette (not the global copper). */
.page-shoreline .nav__link--active {
  color: var(--sl-accent);
}

.page-shoreline .site-footer__link:hover,
.page-shoreline .site-footer__link:focus-visible {
  color: var(--sl-accent);
}

/* Header backdrop so the nav stays readable over the hero contours */
.page-shoreline .site-header {
  position: relative;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(11, 17, 32, 0.85), rgba(11, 17, 32, 0));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   0. Hero (animated tide)
   A tall, immersive masthead at product scale, in Shoreline's own evergreen
   identity. Layered contour lines drift like a slow tide, monitored "buoys"
   blink along them, and a depth-sounder line sweeps down the frame.
   ========================================================================== */

.sl-hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 88svh;
  overflow: hidden;
  padding-top: clamp(6rem, 14vh, 10rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.sl-hero__tide {
  position: absolute;
  inset: 0;
  color: var(--sl-primary);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent);
  mask-image: linear-gradient(to bottom, #000 64%, transparent);
}

.sl-hero__tide-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Each contour drifts on its own, so the lines never move as one flat sheet. */
.sl-hero__contour {
  opacity: var(--c-op, 0.2);
  transform-origin: center;
  will-change: transform;
  animation: slTideDrift 18s ease-in-out infinite;
}
.sl-hero__contour:nth-child(2n) { animation-name: slTideDriftAlt; animation-duration: 22s; }
.sl-hero__contour:nth-child(3n) { animation-duration: 26s; }
.sl-hero__contour:nth-child(2) { animation-delay: -3s; }
.sl-hero__contour:nth-child(3) { animation-delay: -6s; }
.sl-hero__contour:nth-child(4) { animation-delay: -9s; }
.sl-hero__contour:nth-child(5) { animation-delay: -5s; }
.sl-hero__contour:nth-child(6) { animation-delay: -8s; }
.sl-hero__contour:nth-child(7) { animation-delay: -11s; }
.sl-hero__contour:nth-child(8) { animation-delay: -14s; }

@keyframes slTideDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-46px, 7px, 0); }
}
@keyframes slTideDriftAlt {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(42px, -6px, 0); }
}

/* Buoys: monitored points, blinking along the lines. */
.sl-hero__buoy {
  color: var(--sl-light);
  filter: drop-shadow(0 0 5px var(--sl-glow));
  animation: slBuoyPulse 6s ease-in-out infinite;
}
.sl-hero__buoy:nth-child(2n) { animation-delay: -1.6s; animation-duration: 7s; }
.sl-hero__buoy:nth-child(3n) { animation-delay: -3.2s; animation-duration: 8s; }

@keyframes slBuoyPulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.9; }
}

/* Depth-sounder scan, sweeping top to bottom. */
.sl-hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26%;
  background: linear-gradient(to bottom, transparent, rgba(78, 158, 126, 0.10) 55%, rgba(127, 191, 160, 0.20));
  border-bottom: 1px solid rgba(127, 191, 160, 0.35);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: slScan 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes slScan {
  0%   { transform: translateY(-120%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(400%); opacity: 0; }
}

.sl-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  max-width: 48rem;
}

.sl-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sl-accent);
  opacity: 0.85;
  margin: 0;
}

.sl-hero__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.25rem, 3rem + 6.5vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
  background: linear-gradient(100deg, var(--sl-light) 0%, var(--sl-accent) 28%, var(--sl-primary) 52%, var(--sl-light) 78%, var(--sl-deep) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 42px rgba(47, 110, 87, 0.35));
  animation: slSheen 12s ease-in-out infinite;
}

@keyframes slSheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.sl-hero__asof {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-1) 0 0;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-surface-10);
  border-radius: 999px;
  background: rgba(30, 74, 58, 0.18);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--color-mist);
}

.sl-hero__asof::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sl-accent);
  box-shadow: 0 0 0.6rem var(--sl-accent);
}

.sl-hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: var(--leading-tight);
  color: var(--color-white);
  margin: var(--space-3) 0 0;
  max-width: 46rem;
  text-wrap: balance;
}

.sl-hero__subhead {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-mist);
  margin: 0;
  max-width: 42rem;
}

/* Scroll cue at the foot of the hero */
.sl-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3.5vh, 2.5rem);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-fog);
  text-decoration: none;
  transform: translateX(-50%);
  animation: slScrollHint 2.4s ease-in-out infinite;
}

.sl-hero__scroll:hover,
.sl-hero__scroll:focus-visible { color: var(--sl-accent); }

.sl-hero__scroll-arrow {
  position: relative;
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(to bottom, transparent, var(--sl-accent));
}

.sl-hero__scroll-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid var(--sl-accent);
  border-bottom: 1px solid var(--sl-accent);
  transform: translate(-50%, 30%) rotate(45deg);
}

@keyframes slScrollHint {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* DEMO / placeholder-data ribbon (rendered only when data_class == DEMO) */
.sl-demo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px dashed rgba(127, 191, 160, 0.5);
  border-radius: var(--radius-sharp);
  background: var(--sl-glow);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sl-light);
}

.sl-demo__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sl-light);
}

.sl-rule {
  width: min(var(--container-max), calc(100% - (2 * var(--container-padding))));
  margin: clamp(1rem, 4vh, 3rem) auto 0;
  height: 1px;
  border: 0;
  background: linear-gradient(to right, transparent, var(--sl-primary), transparent);
  opacity: 0.5;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.sl-section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.sl-prose .section__body,
.sl-prose .sl-facts {
  max-width: 65ch;
}

.sl-intro {
  max-width: 60ch;
  color: var(--color-mist);
  margin: 0 0 var(--space-8);
}

.sl-link {
  color: var(--sl-accent);
  font-weight: 600;
  transition: color var(--duration-fast) var(--ease-out);
}

.sl-link:hover,
.sl-link:focus-visible {
  color: var(--sl-light);
}

/* Capability row: the three things Shoreline shows (section 01) */
.sl-cap {
  list-style: none;
  padding: 0;
  margin: var(--space-10) 0 0;
  display: grid;
  gap: var(--space-4);
}

.sl-cap__item {
  position: relative;
  padding: var(--space-5) var(--space-6) var(--space-5) var(--space-7);
  background:
    radial-gradient(circle at 0% 50%, rgba(47, 110, 87, 0.10), transparent 62%),
    var(--color-deep);
  border: 1px solid var(--color-surface-10);
  border-radius: var(--radius-sharp);
  transition: border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.sl-cap__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-5);
  bottom: var(--space-5);
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--sl-accent), var(--sl-deep));
}

.sl-cap__item:hover {
  border-color: rgba(78, 158, 126, 0.4);
  box-shadow: 0 0 40px rgba(47, 110, 87, 0.12);
}

.sl-cap__key {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.sl-cap__val {
  display: block;
  color: var(--color-mist);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

@media (min-width: 48rem) {
  .sl-cap { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}

/* ==========================================================================
   2a. Allocation view
   ========================================================================== */

.sl-alloc {
  margin-bottom: var(--space-12);
  padding: clamp(var(--space-4), 3vw, var(--space-8));
  background: var(--color-deep);
  border: 1px solid var(--color-surface-10);
  border-radius: var(--radius-sharp);
}

.sl-alloc__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.sl-alloc__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin: 0;
}

.sl-toggle {
  display: inline-flex;
  border: 1px solid var(--color-surface-10);
  border-radius: var(--radius-sharp);
  overflow: hidden;
}

.sl-toggle__btn {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mist);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.sl-toggle__btn + .sl-toggle__btn {
  border-left: 1px solid var(--color-surface-10);
}

.sl-toggle__btn.is-active {
  color: var(--color-abyss);
  background: var(--sl-primary);
}

.sl-alloc__view[hidden] {
  display: none;
}

/* Stacked horizontal weight bar */
.sl-stack {
  display: flex;
  width: 100%;
  height: 2.75rem;
  border-radius: var(--radius-sharp);
  overflow: hidden;
  background: var(--color-surface);
}

.sl-stack__seg {
  height: 100%;
  min-width: 2px;
  width: 0;
  transition: width var(--duration-slow) var(--ease-out);
}

.sl-reveal.is-revealed .sl-stack__seg {
  width: var(--seg-w, 0);
}

/* Legend */
.sl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-5);
  list-style: none;
  padding: 0;
}

.sl-legend__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-mist);
}

.sl-legend__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  flex: none;
}

.sl-legend__weight {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-white);
}

/* Cash chip */
.sl-cashchip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-surface-10);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-mist);
}

.sl-cashchip__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--sl-cash);
}

.sl-alloc__placeholder {
  color: var(--color-fog);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* ==========================================================================
   2b. Positions table (ARKK-style, weights only)
   ========================================================================== */

.sl-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-surface-10);
  border-radius: var(--radius-sharp);
  background: var(--color-deep);
}

.sl-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.sl-th {
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: left;
  padding: 0;
  background: #0c1526;
  border-bottom: 1px solid var(--color-surface-10);
}

.sl-sort {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mist);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.sl-th--weight .sl-sort { justify-content: flex-end; }
.sl-th--rank .sl-sort { justify-content: center; padding-inline: var(--space-2); }

.sl-sort:hover,
.sl-sort:focus-visible { color: var(--color-white); }

.sl-sort[data-active] { color: var(--sl-accent); }

.sl-sort::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0;
  transform: rotate(45deg) translateY(-0.1em);
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}

.sl-sort[data-active][data-dir="asc"]::after { opacity: 1; transform: rotate(-135deg) translateY(-0.1em); }
.sl-sort[data-active][data-dir="desc"]::after { opacity: 1; transform: rotate(45deg) translateY(-0.1em); }

.sl-table tbody tr {
  border-bottom: 1px solid var(--color-surface-10);
}
.sl-table tbody tr:last-child { border-bottom: 0; }

.sl-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-white);
  vertical-align: middle;
}

.sl-td--rank {
  font-family: var(--font-mono);
  color: var(--color-fog);
  text-align: center;
  width: 3rem;
}

.sl-td--name { font-weight: 600; }

.sl-td--ticker {
  font-family: var(--font-mono);
  color: var(--sl-accent);
  letter-spacing: 0.04em;
}

.sl-td--theme { color: var(--color-mist); }

.sl-td--weight { width: 34%; }

/* Inline weight bar behind the mono percentage (the ARKK look) */
.sl-weight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sl-weight__track {
  position: relative;
  flex: 1;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--color-surface);
  overflow: hidden;
}

.sl-weight__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--sl-primary), var(--sl-accent));
  transition: width var(--duration-slow) var(--ease-out);
}

.sl-reveal.is-revealed .sl-weight__fill {
  width: var(--bar-w, 0);
}

.sl-weight__num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-white);
  min-width: 4.25rem;
  text-align: right;
}

.sl-table__placeholder {
  padding: var(--space-6);
  color: var(--color-fog);
  font-family: var(--font-mono);
  text-align: center;
}

.sl-table__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-mist);
}

/* Product-grade depth: a soft evergreen halo under the data cards, and a
   row hover on the positions table (desktop rows only; below 45rem the table
   collapses to stacked cards). */
.sl-alloc,
.sl-perf,
.sl-table-wrap,
.sl-disclaimer {
  box-shadow: 0 0 60px rgba(30, 74, 58, 0.12);
}

.sl-table tbody tr {
  transition: background-color var(--duration-fast) var(--ease-out);
}

@media (min-width: 45.001rem) {
  .sl-table tbody tr:hover { background: rgba(47, 110, 87, 0.09); }
}

/* ==========================================================================
   2·0. Performance (percentage return since inception)
   Sterling evergreen accent only; no new brand colors.
   ========================================================================== */

/* Matched to the allocation card: same container framing (border, background,
   padding, radius, full width, space-12 rhythm) so the two data panels read as
   a consistent set. */
.sl-perf {
  margin-bottom: var(--space-12);
  padding: clamp(var(--space-4), 3vw, var(--space-8));
  background: var(--color-deep);
  border: 1px solid var(--color-surface-10);
  border-radius: var(--radius-sharp);
}

.sl-perf__stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}

/* The eyebrow carries the same header/title rhythm as .sl-alloc__title. */
.sl-perf__eyebrow {
  flex-basis: 100%;
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-white);
}

.sl-perf__figure {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--sl-light);
}

.sl-perf__vs {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-mist);
}

.sl-perf__warn {
  margin: 0 0 var(--space-3);
  font-weight: 600;
  color: var(--color-white);
}

.sl-perf__support {
  margin: 0 0 var(--space-3);
  color: var(--color-mist);
  line-height: var(--leading-normal);
  max-width: 60ch;
}

.sl-perf__method {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-fog);
}

/* ==========================================================================
   2c. Movement / drift
   ========================================================================== */

.sl-drift {
  margin-top: var(--space-12);
}

.sl-drift__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin: 0 0 var(--space-2);
}

.sl-drift__sub {
  color: var(--color-mist);
  margin: 0 0 var(--space-5);
  max-width: 60ch;
}

.sl-drift__list {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  max-width: 34rem;
}

.sl-drift__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-deep);
  border: 1px solid var(--color-surface-10);
  border-radius: var(--radius-sharp);
}

.sl-drift__name { color: var(--color-white); }

.sl-drift__delta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.sl-drift__delta--up { color: var(--sl-light); }
.sl-drift__delta--down { color: var(--color-mist); }
.sl-drift__delta--flat { color: var(--color-fog); }

/* ==========================================================================
   4. Facts list
   ========================================================================== */

.sl-facts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.sl-facts li {
  padding-left: var(--space-6);
  position: relative;
  color: var(--color-mist);
  line-height: var(--leading-normal);
}

.sl-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--sl-primary);
}

.sl-facts strong { color: var(--color-white); }

/* ==========================================================================
   5. Disclaimer
   ========================================================================== */

.sl-disclaimer {
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  background: var(--color-deep);
  border: 1px solid var(--color-surface-10);
  border-left: 3px solid var(--sl-primary);
  border-radius: var(--radius-sharp);
  max-width: 70ch;
}

.sl-disclaimer__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-white);
  margin: 0 0 var(--space-3);
}

.sl-disclaimer p {
  font-size: var(--text-sm);
  color: var(--color-mist);
  line-height: var(--leading-normal);
}

.sl-disclaimer p + p { margin-top: var(--space-3); }

/* ==========================================================================
   Footer additions
   ========================================================================== */

.sl-footer__attribution {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-mist);
}

.sl-footer__snapid {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-fog);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Reveal (IntersectionObserver, CSS-only motion)
   ========================================================================== */

.sl-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}

.sl-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive: positions table collapses to stacked cards below ~720px
   ========================================================================== */

@media (max-width: 45rem) {
  .sl-table-wrap { overflow-x: visible; border: 0; background: transparent; }
  .sl-table { min-width: 0; }
  .sl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sl-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    background: var(--color-deep);
    border: 1px solid var(--color-surface-10);
    border-radius: var(--radius-sharp);
  }
  .sl-table td { padding: 0; }
  .sl-td--rank { grid-row: 1 / span 2; align-self: start; font-size: var(--text-lg); width: auto; }
  .sl-td--name { grid-column: 2; }
  .sl-td--ticker { grid-column: 2; }
  .sl-td--theme { grid-column: 2; font-size: var(--text-xs); }
  .sl-td--weight { grid-column: 1 / -1; width: auto; margin-top: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  .sl-reveal { opacity: 1; transform: none; transition: none; }
  .sl-stack__seg,
  .sl-weight__fill { transition: none; }
  .sl-hero__contour,
  .sl-hero__buoy,
  .sl-hero__scan,
  .sl-hero__wordmark,
  .sl-hero__scroll { animation: none !important; }
  .sl-hero__scan { display: none; }
}
