
.ggt-tab { scroll-margin-top: 12px; }

@supports selector(:has(*)) {
  .ggt-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    width: 100%;
    margin-top: 14px;
  }

  .ggt-item { display: contents; }

  .ggt-tab { order: 0; }

  .ggt-panel {
    order: 1;
    flex: 1 0 100%;

    min-width: 0;
    display: none;
    margin-top: 8px;
  }

  .ggt-switch:not(:has(.ggt-tab:target)) .ggt-item:has(#forecast_out) .ggt-panel { display: block; }

  .ggt-item:has(.ggt-tab:target) .ggt-panel { display: block; }

  .ggt-switch:not(:has(.ggt-tab:target)) #forecast_out,
  .ggt-tab:target {
    color: var(--primary);
    border-bottom-color: var(--primary);
  }

  .page--find .ggt-item,
  .page--find .ggt-panel { display: block; flex: none; order: 0; }

  .page--find .ggt-panel { margin-top: 0; }
}

@media print {
  .ggt-item,
  .ggt-panel { display: block; flex: none; order: 0; }

  .ggt-panel { margin-top: 0; }
}
