/* The tools an article of ConectaPages' own carries (articles.tools): one box
   per tool, its fields, its buttons. Loaded by blog_detail.html for our articles. */
.tool {
    margin: 2.5rem 0;
    padding: 1.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    background: var(--light);
    box-shadow: var(--shadow);
}
.article-content .tool-title { margin: 0 0 1.25rem; font-size: 1.35rem; }
.tool-form { display: grid; gap: 1rem; }
.tool-field { display: grid; gap: 0.35rem; font-size: 1rem; font-weight: 600; }
.tool-field small { font-weight: 400; color: var(--gray); }
.tool-field input {
    width: 100%; padding: 0.8rem 0.9rem; border: 1px solid #cbd5e1; border-radius: var(--radius);
    background: #fff; font: inherit; font-weight: 400;
}
.tool-field input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.article-content .tool-error { margin: 0.75rem 0 0; color: #b91c1c; font-size: 1rem; }
.tool-result { margin-top: 1.25rem; }
.article-content .tool-label { margin: 0 0 0.25rem; font-size: 1rem; color: var(--gray); }
.article-content .tool-link {
    margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-radius: var(--radius); background: #fff;
    border: 1px dashed #cbd5e1; font-size: 1rem; word-break: break-all;
}
.tool-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tool-copy, .tool-test {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0.6rem 1.2rem;
    border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.tool-copy { border: 0; background: var(--whatsapp); color: #fff; }
.tool-copy:hover { background: var(--whatsapp-dark); }
.tool-test { border: 1px solid var(--whatsapp); color: var(--whatsapp); background: #fff; }
.article-content .tool-note { margin: 1.5rem 0 0; font-size: 1rem; color: var(--gray); }
.card-tool-preview { display: block; width: 100%; height: auto; margin: 0 0 0.75rem; border: 1px solid var(--gray-light); border-radius: var(--radius); }
.article-content .card-tool-legend { margin: 0 0 1.25rem; font-size: 1rem; color: var(--gray); }
/* The article's link colour must not reach a tool's buttons. */
.article-content a.tool-copy { color: #fff; }
.article-content a.tool-test { color: var(--whatsapp); }
.tool-main, .tool-alt {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0.6rem 1.2rem;
    border-radius: 999px; font-size: 1rem; font-weight: 600; text-decoration: none;
}
.article-content .tool-main { border: 0; cursor: pointer; font-family: inherit; background: var(--primary); color: #fff; }
.article-content .tool-main:hover { background: var(--primary-dark); }
.article-content .tool-alt { cursor: pointer; font-family: inherit; border: 1px solid var(--primary); background: #fff; color: var(--primary); }
.tool-field select {
    width: 100%; min-width: 0; padding: 0.8rem 0.9rem; border: 1px solid #cbd5e1; border-radius: var(--radius);
    background: #fff; font: inherit; font-weight: 400;
}
.tool-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 1rem; }
.tool-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.3rem; flex: none; }
.tool-sign-preview {
    display: block; width: 70%; max-width: 300px; height: auto; margin: 1.5rem auto 1rem;
    border: 1px solid var(--gray-light); border-radius: 6px; box-shadow: var(--shadow);
}
.article-content .tool-sign-check { margin: 0 0 1rem; }
.article-content .tool-subtitle { margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-light); font-size: 1.15rem; }
.tool-sign { margin-top: 1rem; }
.tool-message {
    display: block; width: 100%; margin: 0 0 1rem; padding: 0.8rem 0.9rem; border: 1px solid #cbd5e1;
    border-radius: var(--radius); background: #fff; font: inherit; font-size: 1rem; line-height: 1.6; resize: vertical;
}
.tool-field[hidden] { display: none; }
.article-content .tool-subtitle-first { margin-top: 0; padding-top: 0; border-top: 0; }
.tool-field textarea {
    width: 100%; padding: 0.8rem 0.9rem; border: 1px solid #cbd5e1; border-radius: var(--radius);
    background: #fff; font: inherit; font-weight: 400; resize: vertical;
}
.quote-items { display: grid; gap: 0.6rem; }
.quote-item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 0.5rem; align-items: center;
    padding-bottom: 0.6rem; border-bottom: 1px dashed var(--gray-light);
}
.quote-item [data-description] { grid-column: 1 / -1; }
@media (min-width: 600px) {
    .quote-item { grid-template-columns: minmax(0, 1fr) 8.5rem auto; padding-bottom: 0; border-bottom: 0; }
    .quote-item [data-description] { grid-column: auto; }
}
.quote-item input {
    width: 100%; min-width: 0; padding: 0.7rem 0.8rem; border: 1px solid #cbd5e1; border-radius: var(--radius);
    background: #fff; font: inherit;
}
.article-content .quote-remove {
    min-height: 44px; padding: 0 0.6rem; border: 0; background: none; color: var(--gray);
    font: inherit; font-size: 0.95rem; text-decoration: underline; cursor: pointer;
}
.article-content .quote-add { margin-top: 0.8rem; }
.article-content .quote-total { margin: 1rem 0 0; font-size: 1.1rem; }
.quote-preview {
    display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto 1rem;
    border: 1px solid var(--gray-light); border-radius: 6px; box-shadow: var(--shadow);
}
.article-content .tool-notice { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--gray-light); font-size: 0.9rem; color: var(--gray); }
.article-content .tool-unavailable {
    margin: 2rem 0; padding: 1rem 1.25rem; border: 1px dashed var(--gray-light); border-radius: var(--radius-lg);
    color: var(--gray); font-size: 1rem;
}
