/* ============================================================================
   responsive.css — Desktop / laptop / tablet / large monitor.
   The org chart keeps its hierarchy at every size; narrow viewports scroll
   the chart horizontally rather than reflowing the tree.
   ========================================================================== */

/* ---- Large monitor ---- */
@media (min-width: 1800px) {
  :root {
    --docs-w: 400px;
  }
  .layout,
  .investors,
  .copyright {
    max-width: 1920px;
  }
}

/* ---- Laptop ---- */
@media (max-width: 1280px) {
  :root {
    --docs-w: 320px;
  }
}

/* ---- Tablet: documents panel moves below the chart ---- */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .docs-panel {
    position: static;
    max-height: none;
  }
  .docs-panel__body {
    max-height: 460px;
  }
  body.has-focus .docs-panel {
    opacity: 1;
  }
  /* stack the investor profile so the stats sit below the bio */
  .investor-profile {
    flex-wrap: wrap;
  }
  .investor-profile__stats {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--glass-border);
    padding-top: var(--sp-3);
    width: 100%;
  }
}

/* ---- Small tablet / large phone ---- */
@media (max-width: 720px) {
  :root {
    --glass-blur: 12px;
    --glass-blur-strong: 20px;
  }
  .treefe-btn {
    padding: 14px 26px;
  }
  .layout {
    padding: var(--sp-2);
  }
  .investors,
  .copyright {
    padding-left: var(--sp-3);
    padding-right: var(--sp-3);
  }
  .investor-profile {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .investor-profile__stats {
    gap: var(--sp-4);
  }
  .popup {
    width: min(340px, calc(100vw - 24px));
  }
}

/* ---- Touch devices: lighten the focus blur ---- */
@media (hover: none) {
  body.has-focus .node:not(.is-focused) {
    filter: blur(3px);
    opacity: 0.35;
  }
}
