/* stage-44-dashboard-calendar-proportions: make the calendar the primary dashboard object. */

@media (min-width: 761px) {
  .app-shell {
    grid-template-columns: var(--sidebar-polish-width, var(--focus-sidebar-expanded, 280px)) minmax(0, 1fr);
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: var(--sidebar-polish-collapsed, var(--focus-sidebar-collapsed, 72px)) minmax(0, 1fr);
  }
}

.main-surface {
  width: min(100%, 1480px);
  justify-self: center;
}

.focus-dashboard {
  grid-template-columns: minmax(620px, 1.7fr) minmax(280px, 340px);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

.dashboard-main {
  gap: clamp(12px, 1.25vw, 18px);
}

.dashboard-rail {
  max-width: 340px;
  justify-self: stretch;
  gap: clamp(14px, 1.6vw, 20px);
}

.dashboard-main .focus-labels-row#markerLegend {
  max-width: min(100%, 960px);
  justify-self: stretch;
}

.dashboard-main .calendar-sheet {
  width: 100%;
  min-height: clamp(620px, 58vw, 760px);
  justify-self: stretch;
}

:root[data-theme="dark"] .focus-dashboard {
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.12));
}

@media (max-width: 1240px) {
  .focus-dashboard {
    grid-template-columns: minmax(540px, 1.6fr) minmax(260px, 320px);
    gap: 18px;
  }

  .dashboard-main .calendar-sheet {
    min-height: clamp(560px, 60vw, 700px);
  }
}

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

  .dashboard-main {
    order: 2;
  }

  .dashboard-rail {
    order: 1;
    max-width: 100%;
  }

  .dashboard-main .focus-labels-row#markerLegend {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .main-surface {
    width: 100%;
  }

  .dashboard-main .calendar-sheet {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .focus-dashboard,
  .dashboard-main,
  .dashboard-rail,
  .dashboard-main .calendar-sheet {
    transition: none;
  }
}
