/* Loaded by channel directories. Keep wider layouts and workspaces separate. */
@media (max-width: 680px) {
  body main :is(
    .card-grid, .cg-cards, .cleaning-sample-grid, .cleaning-template-grid,
    .coloring-card-grid, .dc-category-grid, .dc-tool-grid, .direction-grid,
    .el-category-grid, .el-discovery-grid, .el-sub-related, .el-tool-grid,
    .ev2-tool-grid, .feature-grid, .font-grid, .food-tools,
    .hs-overview-tools, .image-channel-grid, .job-stages, .link-grid,
    .maker-grid, .measurement-cards, .production-grid, .section-grid,
    .small-grid, .social-grid, .system-grid, .template-grid, .tool-cards,
    .tool-grid, .tool-list, .trade-grid, .typing-card-grid, .women-grid,
    .women-shelf-grid, .workflow-grid, .ws-tool-grid
  ) {
    /* The directories load older, more specific phone rules in their own sheets. */
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  body main :is(
    .card-grid, .cg-cards, .cleaning-sample-grid, .cleaning-template-grid,
    .coloring-card-grid, .dc-category-grid, .dc-tool-grid, .direction-grid,
    .el-category-grid, .el-discovery-grid, .el-sub-related, .el-tool-grid,
    .ev2-tool-grid, .feature-grid, .font-grid, .food-tools,
    .hs-overview-tools, .image-channel-grid, .job-stages, .link-grid,
    .maker-grid, .measurement-cards, .production-grid, .section-grid,
    .small-grid, .social-grid, .system-grid, .template-grid, .tool-cards,
    .tool-grid, .tool-list, .trade-grid, .typing-card-grid, .women-grid,
    .women-shelf-grid, .workflow-grid, .ws-tool-grid
  ) > :is(a, article, li, .font-card) {
    grid-column: auto;
    min-inline-size: 0;
    min-block-size: 44px;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
  }

  body main .image-tool-card h3 {
    margin-inline: 11px;
    font-size: 16px;
    line-height: 1.3;
  }

  body main :is(.image-tool-card p, .image-tool-card__action) {
    margin-inline: 11px;
    font-size: 13px;
    line-height: 1.45;
  }

  body main .tool-shelf .tool-card {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 12px;
  }

  body main .link-grid .card-top {
    flex-wrap: wrap;
    gap: 6px;
  }

  body.home-catalog main :is(.section-grid, .trade-grid, .tool-list) .card-copy {
    padding: 12px;
    gap: 7px;
  }

  body.home-catalog main :is(.section-grid, .trade-grid, .tool-list) .card-copy h3 {
    font-size: 16px;
    line-height: 1.3;
  }
}
