/* Compact windows and touch tablets in either orientation. */
@media (max-width: 1024px), (max-width: 1440px) and (any-pointer: coarse) {
  body:is(.cars-edition, .cars-sales, .cars-mappa) {
    text-align: center;
  }

  body:is(.cars-edition, .cars-sales, .cars-mappa) :is(
    h1, h2, h3, h4, h5, p, label, legend, summary, button, input, textarea, select,
    th, td, [role="button"], [data-vehicle-row], .film-copy, .brand-lockup,
    .cars-platform-detail, .nav-item, .project-info, .vehicle-info
  ) {
    text-align: center;
  }

  body:is(.cars-edition, .cars-sales, .cars-mappa) :is(
    h1, h2, h3, h4, p, legend, .cars-assignment form, .cars-company-logo,
    .cars-company-logo-toggle, .mappa-intro-text, .cars-platform-context
  ) {
    margin-inline: auto;
  }

  body:is(.cars-edition, .cars-sales, .cars-mappa) :is(
    header, nav, footer, .workspace-head, .dashboard-list-head, .panel-head, .card-top,
    .capture-section-head, .capture-category-head, .review-head, .list-head,
    .cars-admin-panel-heading, .cars-admin-image-heading, .cars-admin-workflow-toggle,
    .film-photo-row-head, .film-group-head, .project-image-group-head, .cars-film-section-head,
    .publications-head, .publications-project-head, .overview-head, .public-photo-footer,
    .topbar-actions, .sales-nav, .admin-nav, .cars-company-logo-compact,
    .admin-project-delete-area, .admin-selection-footer, .mappa-images-bar, .library-toolbar,
    .project-card-actions, .public-share-actions, .dashboard-actions, .production-actions,
    .cars-install-shortcut-actions, .form-actions, .admin-form-actions,
    .cars-company-logo-actions, .library-actions, .logo-actions, .toolbar,
    .admin-production-actions, .film-photo-dialog-actions, .mappa-intro-meta,
    .capture-image-toggle, .back, .film-photo-public
  ) {
    justify-content: center;
  }

  body:is(.cars-edition, .cars-sales) :is(
    .workspace-head, .cars-auth-header, .admin-topbar, .sales-header, .cars-customer-topbar
  ) {
    align-items: center;
    flex-wrap: wrap;
  }

  body:is(.cars-edition, .cars-sales) :is(.customer-brand-group, .cars-film-order-control) { align-items: center; }
  body.cars-edition .customer-brand-group .publications-nav { align-self: center; }
  body:is(.cars-edition, .cars-sales) .cars-platform-context {
    grid-template-columns: minmax(0,1fr);
    justify-items: center;
  }
  body:is(.cars-edition, .cars-sales) .cars-platform-context > :is(
    .cars-platform-name, .cars-platform-product, .cars-platform-detail, .cars-install-shortcut-actions
  ) {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  body:is(.cars-edition, .cars-sales) header > .brand-wordmark {
    flex: 0 0 100%;
    width: 100%;
    align-items: center;
    justify-items: center;
    text-align: center;
  }
  body:is(.cars-edition, .cars-sales) header .brand-home,
  body:is(.cars-edition, .cars-sales) header .brand-lockup {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  body:is(.cars-edition, .cars-sales) header .brand-wordmark .brand-name-text { transform-origin: center; }
  body.cars-edition header .admin-signout { margin-inline: 0; }
  body.cars-edition .workspace .dashboard-actions {
    width: 100%;
    justify-content: stretch;
    text-align: center;
  }
  body.cars-edition .vehicle-overview .project-info .project-card-actions { justify-content: center; }
  body:is(.cars-edition, .cars-sales) .panel-head { align-items: center; }
  body.cars-edition .cars-production-plan .cars-plan-film-choice {
    grid-template-columns: auto minmax(0, max-content);
    justify-content: center;
  }
  body.cars-edition .cars-plan-master-choice { justify-content: center; }

  body.cars-mappa .film-overview nav button {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    justify-items: center;
  }
  body.cars-mappa .film-copy { margin-inline: 0; }
  body.cars-mappa .film-copy small { padding-inline: 0; }
  body.cars-mappa .film-copy strong { white-space: normal; }
  body.cars-mappa .play-symbol { position: static; }
}

@media (max-width: 760px) {
  body.cars-edition .admin-nav a:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
}
