.mk-hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
}

.tl-stack {
  display: grid;
  gap: 22px;
  margin-top: -56px;
  position: relative;
  z-index: 1;
}

/* Category jump links */
.tl-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.tl-jump a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.tl-jump a:hover { background: #dbeafe; text-decoration: none; }
.tl-jump span {
  background: #fff;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 12px;
  color: #2563eb;
}

/* Groups */
.tl-group {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  scroll-margin-top: 20px;
}
.tl-group-head h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: #0f172a; }
.tl-group-head p { margin: 0 0 18px; font-size: 15px; color: #64748b; line-height: 1.6; }

/* Cards */
.tl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tl-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tl-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tl-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.tl-ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tl-c-temp .tl-ico     { background: #dbeafe; color: #1d4ed8; }
.tl-c-ai .tl-ico       { background: #ede9fe; color: #6d28d9; }
.tl-c-check .tl-ico    { background: #dcfce7; color: #15803d; }
.tl-c-dns .tl-ico      { background: #e0f2fe; color: #0369a1; }
.tl-c-identity .tl-ico { background: #fef3c7; color: #b45309; }

.tl-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl-name { font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.3; }
.tl-desc { font-size: 14px; color: #64748b; line-height: 1.55; }
.tl-open { font-size: 13px; font-weight: 700; color: #2563eb; margin-top: 2px; }
.tl-new {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* "Which tool" table */
.tl-table-wrap { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; margin: 8px 0 22px; }
.tl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tl-table th, .tl-table td { padding: 10px 14px; border-bottom: 1px solid #eef0f4; text-align: left; }
.tl-table tr:last-child td { border-bottom: 0; }
.tl-table thead th { background: #f8fafc; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
.tl-table td:last-child { white-space: nowrap; font-weight: 600; }

/* "More free tools" row on tool pages */
.tl-more { padding: 40px 0; background: #f8fafc; border-top: 1px solid #eef0f4; }
.tl-more-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tl-more-head h2 { font-size: 22px; font-weight: 800; margin: 0; color: #0f172a; }
.tl-more-head a { font-weight: 700; color: #2563eb; text-decoration: none; }
.tl-more-head a:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .tl-grid, .tl-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .tl-stack { margin-top: -40px; }
  .tl-group { padding: 18px; }
}
@media (max-width: 575px) {
  .tl-grid, .tl-grid-4 { grid-template-columns: 1fr; }
  .tl-table td:last-child { white-space: normal; }
}

/* Content: three audience cards in a row */
.mk-cards.tl-cards-3 { grid-template-columns: repeat(3, 1fr); }
.tl-table-2 td:last-child { font-weight: 700; color: #1d4ed8; }
@media (max-width: 767px) {
  .mk-cards.tl-cards-3 { grid-template-columns: 1fr; }
}

/* AdSense fix: an ad inside the grid must fill the full width.
   (auto margins on a grid item stop it stretching, which gave AdSense availableWidth=96) */
.tl-stack > .mk-ad { width: 100%; max-width: none; margin: 0; padding: 0; }
.mk-ad-inner { display: block; width: 100%; }
.mk-ad-inner ins.adsbygoogle { display: block; width: 100%; }