.tool-section {
  /* Tool page palette (also used by the article section) */
  --accent: #D97742;
  --accent-light: #F4A261;
  --border: #E0DCD5;
  --text-primary: #2D2A26;
  --text-secondary: #6B6760;
}

.wc-shell {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
}

.wc-input {
  padding: 18px 18px 10px;
}

.wc-textarea {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  outline: none;
}

.wc-textarea:focus {
  border-color: var(--blue-35);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
}

.wc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 10px 18px 18px;
}

@media (max-width: 980px) {
  .wc-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .wc-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .wc-stat {
    padding: 16px 14px 14px;
  }

  .wc-stat-label {
    letter-spacing: 0.12em;
  }
}

@media (max-width: 380px) {
  .wc-stat-value {
    font-size: 30px;
  }

  .wc-stat-timeValue {
    font-size: 30px;
  }

  .wc-stat-time {
    gap: 8px;
    min-height: 30px;
  }
}

.wc-stat {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.82) 100%);
  padding: 18px 18px 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wc-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.wc-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(10, 5, 35, 0.06);
  border-color: var(--accent-light);
}

.wc-stat:hover::before {
  transform: scaleX(1);
}

.wc-stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}

.wc-stat-value {
  margin-top: 10px;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  transition: all 0.3s ease;
}

.wc-stat:hover .wc-stat-value {
  transform: scale(1.08);
}

.wc-stat-time {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
}

.wc-clock {
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.wc-stat-timeValue {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.wc-stat:hover .wc-stat-timeValue {
  transform: scale(1.06);
}

@media (max-width: 720px) {
  .wc-stat-value {
    font-size: 34px;
  }

  .wc-stat-timeValue {
    font-size: 34px;
  }

  .wc-stat-time {
    min-height: 34px;
  }

  .wc-clock {
    width: 22px;
    height: 22px;
  }
}

.wc-details {
  margin: 0 18px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  padding: 16px 18px 8px;
}

.wc-details-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
}

.wc-metrics {
  display: block;
}

.wc-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.wc-metric-row:first-child {
  border-top: 0;
}

.wc-metric-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
}

.wc-metric-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.wc-clear {
  display: block;
  width: calc(100% - 36px);
  margin: 0 18px 32px;
  border-radius: 12px;
  padding: 16px 18px;
  border: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 66, 0.3);
}

.wc-clear:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 66, 0.4);
}

.wc-clear:active {
  transform: translateY(0);
}

.wc-clear:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(217, 119, 66, 0.25);
}

/* --- Article section typography (match SERP tool page) --- */
.content-card {
  margin-top: 100px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.content-card h2 {
  margin: 0 0 12px 0;
  color: var(--text-primary);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

.content-card h3 {
  margin: 18px 0 8px;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.content-card p {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.content-card ol,
.content-card ul {
  margin: 0 0 12px;
  padding-left: 26px;
  list-style-position: outside;
  color: var(--text-primary);
  line-height: 1.55;
}

.content-card ul {
  list-style: disc;
}

.content-card ol {
  list-style: decimal;
}

.content-card li {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  display: list-item;
  padding-left: 6px;
}

.wc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Remove the global container bottom gap for this tool page */
        .main > .container{
          margin-bottom: 0;
        }