.tool__box {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  flex-grow: 1;
  min-width: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tool__content {
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tool__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .tool__container {
    flex-direction: row;
  }
}

.bg-tool {
  background: var(--tool-color) !important;
}
/* Ad space base styles - Standard Medium Rectangle (300x250) */
.ad-space {
    --ad-width: 300px;
    --ad-height: 250px;
    width: var(--ad-width);
    height: var(--ad-height);
    min-height: var(--ad-height);
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

/* Desktop ad size variations using IAB standard sizes */
@media (min-width: 1024px) {
    /* Normal: Medium Rectangle 300x250 (default) */
    .ad-space.normal {
        --ad-width: 300px;
        --ad-height: 250px;
    }
    
    /* Tall: Half Page 300x600 */
    .ad-space.tall {
        --ad-width: 300px;
        --ad-height: 600px;
    }

    /* Slim: Medium Rectangle 336x280 */
    .ad-space.slim {
        --ad-width: 336px;
        --ad-height: 280px;
        margin-left: auto;
    }
}

/* Mobile behavior - force all ads to 300x250 */
@media (max-width: 1023px) {
    .ad-space {
        width: 300px !important;
        height: 250px !important;
        min-height: 250px !important;
        max-width: 300px;
        margin: 0 auto;
    }
}

.tool-box {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tool-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--tool-rgb, 30, 184, 84), 0.3);
    outline: none;
    border-color: var(--tool-color, #1eb854);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* For styling markdown content */
/* Prose styles for markdown content */
.tool-instructions.prose,
.tool__instructions.prose {
    width: 100%;
}

.prose p {
    margin-bottom: 1.25em;
    line-height: 1.7;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose > :first-child {
    margin-top: 0;
}

.prose > :last-child {
    margin-bottom: 0;
}

.about-tool h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
}

.about-tool h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.about-tool h4 {
    font-size: 1.25rem;
    line-height: 1.75rem;
}