/* Channel-only cards. Tool workspaces and printed designs stay unchanged. */
main { max-width: 1236px; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 42px;
}
.tool-grid > a {
  --card-bg: #eef8f2;
  --icon-bg: #dcefe4;
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  padding: 20px;
  border: 2px solid #34413e;
  border-radius: 28px;
  background: var(--card-bg);
  box-shadow: 6px 6px 0 rgba(24, 34, 32, .16);
  color: #1f2733;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.tool-grid > a:nth-child(6n + 2) { --card-bg: #eef4fc; --icon-bg: #dbe9f8; }
.tool-grid > a:nth-child(6n + 3) { --card-bg: #f4f0fb; --icon-bg: #e7def5; }
.tool-grid > a:nth-child(6n + 4) { --card-bg: #fff2ea; --icon-bg: #f8dfd0; }
.tool-grid > a:nth-child(6n + 5) { --card-bg: #fff9e8; --icon-bg: #f5eabf; }
.tool-grid > a:nth-child(6n) { --card-bg: #fbeff3; --icon-bg: #f2dce5; }
.tool-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 17px;
  border: 1px solid rgba(31, 39, 51, .08);
  border-radius: 13px;
  background: var(--icon-bg);
  color: #344255;
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-grid svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-grid h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: normal;
}
.tool-grid p {
  margin: 8px 0 18px;
  color: #5f6b78;
  font-size: 15px;
  line-height: 1.55;
}
.tool-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: #2f3c4d;
  font-size: 15px;
  font-weight: 600;
}
.tool-action svg { width: 18px; height: 18px; max-width: 18px; flex: 0 0 18px; }
.tool-grid > a:focus-visible { outline: 3px solid #2867d8; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .tool-grid > a:hover {
    box-shadow: 8px 8px 0 rgba(24, 34, 32, .2);
    transform: translate(-2px, -2px);
  }
}
@media (max-width: 1023px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tool-grid > a {
    min-height: 0;
    padding: 18px;
    border-radius: 24px;
    box-shadow: 5px 5px 0 rgba(24, 34, 32, .15);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tool-grid > a { transition: none; }
  .tool-grid > a:hover { transform: none; }
}
@media print {
  @page { size: letter; margin: 12mm; }
  .site-header, .site-footer, .breadcrumb { display: none; }
  main { max-width: none; padding: 0; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 0; }
  .tool-grid > a {
    break-inside: avoid;
    min-height: 0;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    padding: 12px;
  }
  .tool-grid p { margin-bottom: 0; }
  .tool-grid > a span { display: none; }
}
