/* Tool page layout, copied from the live site stylesheet */

.tool-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.ad-slot {
  display: none;
}

.ad-slot-inner {
  width: 160px;
  min-height: 600px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-light);
  font-size: 12px;
  text-align: center;
  position: sticky;
  top: 84px;
  background: #fff;
}

.ad-slot .adsbygoogle {
  position: sticky;
  top: 84px;
}

.ad-slot-mobile {
  margin: 24px auto 0;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 1100px) {
  .tool-layout {
    grid-template-columns: 160px minmax(0, 920px) 160px;
    justify-content: center;
  }
  .ad-slot {
    display: flex;
    justify-content: center;
  }
  .ad-slot-mobile {
    display: none;
  }
}

.tool-main {
  min-width: 0;
}

.tool-header {
  text-align: center;
  margin-bottom: 24px;
}

.tool-header h1 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin: 0 0 10px;
}

.tool-header p {
  color: var(--slate);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.tool-updated-date {
  color: var(--slate-light);
  font-size: 13px;
  margin: 12px 0 0;
  font-style: italic;
}

.tool-widget {
  background: var(--card-bg);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.tool-content {
  margin-top: 40px;
  color: var(--slate);
}

.tool-content h2 {
  color: var(--ink);
  font-size: 20px;
  margin-top: 32px;
}

.tool-content h2:first-child { margin-top: 0; }

.breadcrumb {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
}

.breadcrumb a { color: var(--teal-dark); }

/* No side-ad columns on dev: tool content uses one centered column */
.tool-layout {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

/* Tool box: framed, with space before the article text */
.tool-section,
.tool-widget {
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 25px;
  background: var(--bg-primary);
}

.tool-section .btn-calculate,
.tool-widget .btn-calculate {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

html:not([data-theme="dark"]) .tool-section .btn-calculate,
html:not([data-theme="dark"]) .tool-widget .btn-calculate {
  background: #0f6e56;
}

.tool-section .btn-calculate:hover,
.tool-widget .btn-calculate:hover {
  filter: brightness(1.1);
}

@media (min-width: 1100px) {
  .tool-layout {
    grid-template-columns: minmax(0, 920px);
  }
}

/* Similar tools (scoped so other pages' tool cards are unaffected) */
.similar-tools-section {
  margin-top: 40px;
}

.similar-tools-section h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

.similar-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.similar-tools-grid .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.similar-tools-grid .tool-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.similar-tools-grid .tool-card h3 {
  margin: 0;
  font-size: 17px;
  color: var(--primary-color);
}

.similar-tools-grid .tool-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.similar-tools-grid .tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.similar-tools-grid .tool-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.3em;
  cursor: pointer;
}

/* Variables used by copied live-site rules */
:root {
  --teal: #0f6e56;
  --teal-dark: #0b5440;
  --ink: var(--text-primary);
  --slate: var(--text-secondary);
  --border: var(--border-color);
  --radius: 12px;
}

/* Collection pages (copied from the live site stylesheet) */
html[data-theme="dark"] .workflow-step {
  background-color: #334155 !important;
  border-color: #475569;
  color: #f1f5f9;;
}

html[data-theme="dark"] .workflow-step h2,
html[data-theme="dark"] .workflow-step h3 {
  color: #f1f5f9;;
}

html[data-theme="dark"] .workflow-step p {
  color: #cbd5e1;;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 18px;;
}

.collection-card {
  display: block;
  padding: 22px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);;
}

.collection-card:hover {
  border-color: var(--teal);
  text-decoration: none;
  transform: translateY(-2px);;
}

.collection-card h2,.collection-card h3 {
  margin-top: 0;;
}

.collection-kicker {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;;
}

.workflow-list {
  counter-reset: workflow;
  display: grid;
  gap: 18px;;
}

.workflow-step {
  position: relative;
  padding: 20px 20px 20px 66px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--workflow-bg, #fff);
  color: var(--workflow-color, inherit);;
}

.workflow-step::before {
  counter-increment: workflow;
  content: counter(workflow);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--teal-dark);
  color:#fff;
  font-weight:800;;
}

.workflow-step h2,.workflow-step h3 {
  margin: 0 0 6px;;
}

.inline-tool-links {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;;
}

.inline-tool-links a {
  padding:7px 11px;
  border-radius:999px;
  background:#ccfbf1;
  color:var(--teal-dark);
  font-weight:700;
  font-size:13px;;
}
