/* Tool pages: shared content styles (not per tool). Tool-specific CSS is scoped under .tool-app. */
.tool-page { padding: 24px 0 60px; }
.tool-page .tool-h1 { font-size: 30px; font-weight: 700; line-height: 1.25; margin: 0 0 10px; }
.tool-page .tool-lead { font-size: 17px; color: #4b5563; margin: 0 0 22px; max-width: 860px; }
.tool-page .tool-lead p:last-child { margin-bottom: 0; }
.tool-draft-note { background: #fff7e0; border: 1px solid #f0d98a; color: #6b5300; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }

/* breadcrumb (digitalstore has no shared .category-breadcrumb rule) */
.tool-page .category-breadcrumb { gap: 8px; flex-wrap: wrap; font-size: 14px; color: #6b7280; }
.tool-page .category-breadcrumb a { color: #6b7280; text-decoration: none; }
.tool-page .category-breadcrumb a:hover { color: var(--primary-color); }
.tool-page .category-breadcrumb strong { color: #12131a; font-weight: 600; }

.tool-app { margin: 0 0 16px; }

/* tool page header: icon + H1 on the left, share button on the right */
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 6px; }
.tool-head-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tool-head-icon { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; display: block; }
.tool-page .tool-head .tool-h1 { margin: 0; min-width: 0; }
@media (max-width: 575px) {
  .tool-head-icon { flex-basis: 44px; width: 44px; height: 44px; }
}
.tsh-btn { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #e6e7ee; background: #fff; display: flex; align-items: center; justify-content: center; color: #12131a; font-size: 16px; cursor: pointer; padding: 0; transition: all .2s ease; }
.tsh-btn:hover, .tsh-btn:focus-visible { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* share modal */
.tsh-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99999; align-items: center; justify-content: center; padding: 16px; }
.tsh-overlay.active { display: flex; }
.tsh-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 480px; padding: 22px 24px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.tsh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tsh-title { margin: 0; font-size: 19px; font-weight: 700; color: var(--text-color, #12131a); }
.tsh-close { border: none; background: none; font-size: 18px; color: #888; cursor: pointer; line-height: 1; padding: 4px; }
.tsh-close:hover { color: #222; }
.tsh-icons { display: flex; flex-wrap: nowrap; gap: 10px; justify-content: space-between; }
.tsh-item { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1 1 0; min-width: 0; background: none; border: none; cursor: pointer; text-decoration: none; padding: 0; }
.tsh-circle { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; color: #fff; transition: transform .15s ease; }
.tsh-item:hover .tsh-circle { transform: scale(1.07); }
.tsh-whatsapp .tsh-circle { background: #25d366; }
.tsh-facebook .tsh-circle { background: #1877f2; }
.tsh-twitter .tsh-circle { background: #000; }
.tsh-telegram .tsh-circle { background: #229ed9; }
.tsh-email .tsh-circle, .tsh-copy .tsh-circle { background: #fff; color: #444; border: 2px solid #ddd; }
.tsh-item.copied .tsh-circle { background: #e6f4ea; border-color: #1e7e34; color: #1e7e34; }
.tsh-label { font-size: 11px; font-weight: 600; color: #444; text-align: center; white-space: nowrap; }
@media (max-width: 420px) {
  .tsh-modal { padding: 18px 14px 22px; }
  .tsh-icons { gap: 4px; }
  .tsh-circle { width: 40px; height: 40px; font-size: 16px; }
  .tsh-label { font-size: 9.5px; }
}

/* category grid */
.tool-search { display: flex; gap: 8px; max-width: 520px; margin: 0 0 24px; }
.tool-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #d9dde7; border-radius: 10px; font-size: 15px; }
.tool-search button { padding: 10px 18px; border: 0; border-radius: 10px; background: var(--primary-color); color: #fff; font-weight: 600; cursor: pointer; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: #fff; border: 1px solid #eef0f5; border-radius: 14px; box-shadow: 0 4px 14px rgba(17,24,39,.05); text-decoration: none; color: #12131a; transition: transform .15s, box-shadow .15s; }
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17,24,39,.1); color: #12131a; }
.tool-tile { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.tool-tile svg { width: 24px; height: 24px; }
.tool-tile-img { background: transparent; border-radius: 0; }
.tool-tile-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tool-tile-svg { background: transparent; border-radius: 0; color: #12131a; }
.tool-tile-svg svg { width: 36px; height: 36px; }
.tool-card-body { display: flex; flex-direction: column; min-width: 0; }
.tool-card-body strong { font-size: 17px; font-weight: 700; line-height: 1.3; }
.tool-card-body small { color: #6b7280; font-size: 11.5px; line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-empty { grid-column: 1 / -1; text-align: center; padding: 50px 0; color: #9ca3af; }

/* All Tools page */
.tool-all-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.tool-all-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid #dfe4fb; background: #fff; border-radius: 999px; font-size: 14px; font-weight: 500; color: #12131a; text-decoration: none; transition: transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.tool-all-jump a span { font-size: 12px; color: #6b7280; background: #f3f4f6; border-radius: 20px; padding: 1px 8px; }
.tool-all-jump a:hover, .tool-all-jump a:focus-visible { transform: translateY(-2px); border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 6px 16px rgba(17,24,39,.08); }
.tool-all-section { margin: 0 0 40px; scroll-margin-top: 110px; }
.tool-all-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.tool-all-head h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.tool-all-head h2 a { display: inline-flex; align-items: center; gap: 10px; color: #12131a; text-decoration: none; }
.tool-all-head h2 a:hover { color: var(--primary-color); }
.tool-all-head h2 img { width: 32px; height: 32px; object-fit: contain; display: block; }
.tool-all-ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.tool-all-ico svg { width: 18px; height: 18px; }
.tool-all-viewall { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--primary-color); text-decoration: none; white-space: nowrap; }
.tool-all-viewall:hover { text-decoration: underline; }
.tool-all-more { margin: 14px 0 0; text-align: center; }
.tool-all-more a { display: inline-block; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--primary-color); color: var(--primary-color); font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.tool-all-more a:hover { background: var(--primary-color); color: #fff; }
@media (max-width: 575px) {
  .tool-all-head h2 { font-size: 19px; }
  .tool-all-viewall { display: none; }
}

/* desktop: fixed 280px sidebar, the tool takes all remaining width */
@media (min-width: 992px) {
  .tool-page .tool-main-col { flex: 1 1 0; width: auto; max-width: 100%; min-width: 0; }
  .tool-page .tool-side-col { flex: 0 0 280px; width: 280px; max-width: 280px; }
}

/* right sidebar (same look as the blog sidebar) */
.tool-side-card { background: #fff; border-radius: 16px; border: 1px solid #e6e7ee; padding: 24px; margin-bottom: 24px; }
.tool-side-card:last-child { margin-bottom: 0; }
.tool-side-card h5 { font-size: 1.25rem; line-height: 1.2; font-weight: 700; margin: 0 0 16px; color: var(--text-color, #12131a); }
.tool-side-link { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--text-color, #12131a); font-size: 13.5px; line-height: 19px; transition: color .2s ease; }
.tool-side-link:hover { color: var(--primary-color); }
.tool-side-name { flex: 1 1 auto; min-width: 0; }
.tool-side-count { flex: 0 0 auto; font-size: 12px; color: #6b7280; background: #f3f4f6; border-radius: 20px; padding: 1px 9px; }
.tool-side-tile { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; }
.tool-side-tile svg { width: 20px; height: 20px; }
.tool-side-tile.tool-tile-svg svg { width: 30px; height: 30px; }

/* article content under the tool */
.tool-content { margin-top: 28px; max-width: 100%; line-height: 1.7; }
.tool-main-col .tool-content { margin-top: 0; background: #fff; border: 1px solid #e6e7ee; border-radius: 16px; padding: 32px 36px; }
@media (max-width: 767px) { .tool-main-col .tool-content { padding: 20px; } }
.tool-all-page .tool-content { margin-top: 8px; background: #fff; border: 1px solid #e6e7ee; border-radius: 16px; padding: 32px 36px; }
@media (max-width: 767px) { .tool-all-page .tool-content { padding: 20px; } }
.tool-all-page .tool-content > :first-child { margin-top: 0; }
.tool-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; }
.tool-content h3 { font-size: 19px; font-weight: 700; margin: 24px 0 10px; }
.tool-content p, .tool-content ul, .tool-content ol { margin: 0 0 14px; }
.tool-content ul, .tool-content ol { padding-left: 22px; }
.tool-content img { max-width: 100%; height: auto; }
.tool-content a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 2px; }
.tool-content a:hover, .tool-content a:focus-visible { filter: brightness(.85); }
.tool-content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; display: block; overflow-x: auto; }
.tool-content th, .tool-content td { border: 1px solid #e3e6ee; padding: 8px 12px; text-align: left; font-size: 15px; }
.tool-content th { background: #f5f6fa; font-weight: 600; }
.tool-content .box1 { background: #f5f7ff; border: 1px solid #dfe4fb; border-radius: 12px; padding: 16px 18px; margin: 0 0 18px; }
.tool-content .toc { background: #fafbfd; border: 1px solid #eef0f5; border-radius: 12px; padding: 12px 18px; margin: 0 0 18px; }
.tool-content .toc ul { margin: 0; }
.tool-content .sc { font-size: 14px; color: #6b7280; }
.tool-content details { border: 1px solid #e3e6ee; border-radius: 10px; padding: 0; margin: 0 0 10px; background: #fff; }
.tool-content details summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; }
.tool-content details summary::-webkit-details-marker { display: none; }
.tool-content details summary::after { content: '+'; float: right; font-weight: 400; }
.tool-content details[open] summary::after { content: '\2212'; }
.tool-content .tool-faq-a { padding: 0 16px 14px; }
.tool-content .rel { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-content .rel a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border: 1px solid #dfe4fb; background: #f5f7ff; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: #12131a; box-shadow: 0 1px 2px rgba(17,24,39,.04); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.tool-content .rel a:hover, .tool-content .rel a:focus-visible { transform: translateY(-2px); background: #fff; border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 6px 16px rgba(17,24,39,.10); }
.tool-content .rel a:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(17,24,39,.06); }
.tool-content .rel a img { flex: 0 0 26px; width: 26px; height: 26px; object-fit: contain; margin: 0; transition: transform .25s ease; }
.tool-content .rel .rel-svg { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .25s ease; }
.tool-content .rel .rel-svg svg { width: 15px; height: 15px; }
.tool-content .rel .rel-svg-plain { background: transparent; border-radius: 0; color: #12131a; }
.tool-content .rel .rel-svg-plain svg { width: 24px; height: 24px; }
.tool-content .rel a:hover img, .tool-content .rel a:hover .rel-svg, .tool-content .rel a:focus-visible img, .tool-content .rel a:focus-visible .rel-svg { transform: scale(1.1) rotate(-4deg); }
.tool-content .rel a.rel-all { padding-left: 16px; background: var(--primary-color); border-color: var(--primary-color); color: #fff; font-weight: 600; }
.tool-content .rel a.rel-all::after { content: '\2192'; display: inline-block; transition: transform .2s ease; }
.tool-content .rel a.rel-all:hover { background: var(--primary-color); color: #fff; filter: brightness(1.1); }
.tool-content .rel a.rel-all:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .tool-content .rel a, .tool-content .rel a img, .tool-content .rel .rel-svg, .tool-content .rel a.rel-all::after { transition: none; }
  .tool-content .rel a:hover, .tool-content .rel a:focus-visible, .tool-content .rel a:hover img, .tool-content .rel a:hover .rel-svg { transform: none; }
}

@media (max-width: 575px) {
  .tool-page .tool-h1 { font-size: 24px; }
  .tool-grid { grid-template-columns: 1fr; }
}
