.tool-article {
  --accent: #0071e3;
  --accent-2: #58a6ff;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.78;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.1s linear;
}

.article-hero {
  background: #fff;
  padding: 82px 24px 92px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent), transparent);
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 64% 42% at 50% 0%, var(--accent-soft) 0%, transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 790px;
  margin: 0 auto;
}

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-soft);
  padding: 5px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  margin-bottom: 20px;
}

.article-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 12px;
}

.article-subtitle {
  font-size: 15px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 18px;
}

.article-lead {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.78;
}

.article-meta {
  margin-top: 24px;
  font-size: 13px;
  color: #86868b;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toc-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  margin-top: -30px;
  margin-bottom: 48px;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.06);
  position: relative;
}

.toc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.toc-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink);
}

.toc-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.toc-num {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 850;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 82px;
  background: #fff;
}

[data-paywall-preview] {
  min-height: 0;
}

.section {
  margin-bottom: 58px;
}

.section-header {
  margin-bottom: 24px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}

.section-title-line {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
  margin-top: 8px;
}

.article-body p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.86;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 850;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-body strong {
  color: var(--accent);
  font-weight: 800;
}

.article-body code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mini-card,
.step-item,
.template-box,
.concept-box,
.warning-box,
.source-box,
.summary-box {
  border-radius: 16px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.mini-card {
  background: #fff;
  padding: 18px 17px;
}

.mini-card::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 12px;
}

.mini-card h4 {
  font-size: 14px;
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 8px;
}

.mini-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0;
}

.step-item {
  background: #fff;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 13px;
}

.step-title {
  font-size: 15px;
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.74;
}

.concept-box,
.source-box,
.summary-box {
  background: var(--soft);
  padding: 24px 28px;
  margin: 22px 0;
}

.warning-box {
  background: #fff9e8;
  border-color: rgba(255, 149, 0, 0.24);
  padding: 24px 28px;
  margin: 22px 0;
}

.concept-box::before,
.source-box::before,
.summary-box::before,
.template-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.warning-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff9500, #ffcc00);
}

.box-title,
.summary-box-title {
  font-size: 16px;
  font-weight: 850;
  color: var(--accent);
  margin-bottom: 12px;
}

.warning-box .box-title {
  color: #b45309;
}

.concept-box p,
.warning-box p,
.source-box p {
  font-size: 14px;
  line-height: 1.78;
  margin-bottom: 10px;
}

.template-box {
  background: #1d1d1f;
  padding: 20px 22px;
  margin: 18px 0;
}

.template-label {
  font-size: 11px;
  font-weight: 850;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.template-box pre {
  margin: 0;
  white-space: pre-wrap;
}

.template-box code {
  display: block;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0;
  font-size: 13px;
  line-height: 1.72;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  font-size: 13px;
  line-height: 1.68;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

.compare-table th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 850;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 850;
  color: var(--accent);
}

.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.summary-list li {
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.68;
}

.summary-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 850;
  flex-shrink: 0;
}

.source-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.source-list li {
  font-size: 14px;
  line-height: 1.72;
  margin-bottom: 8px;
}

.source-list a {
  color: var(--accent);
  font-weight: 700;
}

[data-paywall-box] {
  max-width: 780px;
  margin: 0 auto 62px;
  padding: 0 24px;
}

.footer {
  text-align: center;
  padding: 40px 24px 80px;
  font-size: 13px;
  color: #86868b;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer a {
  color: var(--muted);
}

@media (max-width: 768px) {
  .article-hero {
    padding: 60px 16px 64px;
  }

  .article-title {
    font-size: 27px;
  }

  .article-subtitle {
    font-size: 14px;
  }

  .toc-wrap {
    padding: 0 12px;
  }

  .toc {
    margin-top: 0;
    padding: 14px 15px;
  }

  .toc-list a {
    align-items: flex-start;
    font-size: 14px;
  }

  .article-body {
    padding: 0 12px 34px;
  }

  .section {
    margin-bottom: 38px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .step-item {
    padding: 16px;
  }

  .concept-box,
  .warning-box,
  .source-box,
  .summary-box {
    padding: 20px 18px;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }

  .footer {
    padding: 28px 12px 48px;
  }
}
