/* ─── SEO Content Section — Tool Static Pages ─────────────────────────────
   Visible below the tool panel on each static tool page.
   Uses the same CSS custom properties (--primary, --surface, --text, etc.)
   defined in 00-theme-variables.css so it automatically respects all themes.
   ─────────────────────────────────────────────────────────────────────── */

.tool-seo-section {
  max-width: 1080px;
  margin: 0 auto 48px;
  padding: 0 16px;
  display: grid;
  gap: 16px;
  isolation: isolate;
  position: relative;
}

/* Full-width tools (SQL/JSON/PDF) widen the whole cohesive column. */
body:has(.panel-full.active) .tool-seo-section {
  max-width: none;
}

/* Section header --------------------------------------------------------- */
.seo-head {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  padding: 28px 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.seo-head h1 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 10px;
}

.seo-intro {
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
  max-width: 820px;
  margin: 0;
}

/* Two-column grid for How-to + Use cases --------------------------------- */
.seo-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Individual cards ------------------------------------------------------- */
.seo-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 22px 24px;
}

.seo-card h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* How-to ordered list ---------------------------------------------------- */
.seo-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  counter-reset: step-counter;
}

.seo-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 38px;
  min-height: 26px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.seo-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* kbd key styling -------------------------------------------------------- */
.seo-steps kbd,
.seo-card kbd {
  display: inline;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
  color: var(--text);
  vertical-align: middle;
}

/* Use cases list --------------------------------------------------------- */
.seo-uses {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.seo-uses li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
}

.seo-uses li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* FAQ accordion ---------------------------------------------------------- */
.seo-faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 3%, var(--card));
  margin-bottom: 8px;
  overflow: hidden;
}

.seo-faq details:last-child {
  margin-bottom: 0;
}

.seo-faq summary {
  padding: 13px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text);
  line-height: 1.5;
}

.seo-faq summary::-webkit-details-marker { display: none; }

.seo-faq summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.seo-faq details[open] summary::after { content: '−'; }

.seo-faq details p {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* Related tools ---------------------------------------------------------- */
.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.seo-related-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.seo-related-link:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
  transform: translateY(-1px);
}

.seo-related-link .srl-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
}

.seo-related-link .srl-name {
  font-weight: 700;
  font-size: 13px;
}

.seo-related-link .srl-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 760px) {
  .seo-two-col {
    grid-template-columns: 1fr;
  }

  .seo-head {
    padding: 20px 18px;
  }

  .seo-card {
    padding: 16px 18px;
  }

  .seo-related-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
