/* GolfRaw in-article Tool CTA system. Keep this layer small and page-agnostic. */
.tool-cta {
  margin: 32px 0;
  padding: 18px 20px;
  border: 1px solid var(--gr-line, #e2e8f0);
  border-radius: 12px;
  background: var(--white, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
  color: var(--ink, #0f172a);
}

.tool-cta__top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.tool-cta__kicker,
.tool-cta__availability {
  color: var(--flag, #147a3b);
  font: 600 10px/1.2 var(--gr-meta, Inter, system-ui, sans-serif);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tool-cta__availability {
  color: var(--grey, #475569);
  letter-spacing: .08em;
}

.tool-cta__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  font: 700 10px/1 var(--gr-meta, Inter, system-ui, sans-serif);
  letter-spacing: .12em;
}

.tool-cta__badge--free {
  color: #166534;
  background: #dcfce7;
}

.tool-cta__badge--pro {
  color: #92400e;
  background: #fffbeb;
}

.tool-cta__title {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.article-body .tool-cta__title::before {
  content: none;
}

.tool-cta__hook {
  max-width: 62ch;
  margin: 0 0 12px;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
}

.tool-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--flag, #147a3b);
  border-radius: 10px;
  background: var(--flag, #147a3b);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.tool-cta__link:hover {
  background: var(--fairway, #166534);
  border-color: var(--fairway, #166534);
}

.tool-cta__link:focus-visible {
  outline: 3px solid var(--flag, #147a3b);
  outline-offset: 3px;
}

.tool-cta--inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  align-items: end;
}

.tool-cta--inline .tool-cta__top,
.tool-cta--inline .tool-cta__title,
.tool-cta--inline .tool-cta__hook {
  grid-column: 1;
}

.tool-cta--inline .tool-cta__link {
  grid-column: 2;
  grid-row: 2 / span 3;
}

.tool-cta--card {
  max-width: 560px;
}

.tool-cta--banner {
  border-color: var(--fairway, #166534);
  background: var(--fairway, #166534);
  color: #fff;
}

.tool-cta--banner .tool-cta__kicker,
.tool-cta--banner .tool-cta__hook {
  color: #cbd5e1;
}

.tool-cta--banner .tool-cta__availability {
  color: #dcfce7;
}

.tool-cta--banner .tool-cta__link {
  border-color: #fff;
  background: var(--flag, #147a3b);
}

@media (max-width: 600px) {
  .tool-cta {
    margin: 28px 0;
    padding: 16px;
  }

  .tool-cta--inline {
    display: block;
  }

  .tool-cta--inline .tool-cta__link {
    margin-top: 2px;
  }

  .tool-cta__link {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-cta__link {
    transition: none;
  }
}
