/**
 * RapidTables-inspired minimal tool hub layout — vanilla, speed-first.
 * Use with site-enhancer.css + mobile.css on utility pages.
 */

.cxz-tool-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.cxz-tool-wrap h1.title,
.cxz-tool-wrap h1 {
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
  color: var(--cxz-text, #0f172a);
}

.cxz-tool-wrap .desc,
.cxz-tool-wrap > p.lead {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cxz-muted, #475569);
}

.cxz-panel {
  background: var(--cxz-surface, #fff);
  border: 1px solid var(--cxz-border, #e2e8f0);
  border-radius: 12px;
  padding: 18px 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.cxz-panel label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 12px;
  color: var(--cxz-text, #0f172a);
}

.cxz-panel label:first-child {
  margin-top: 0;
}

.cxz-panel input[type="text"],
.cxz-panel input[type="number"],
.cxz-panel input[type="search"],
.cxz-panel textarea,
.cxz-panel select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 14px 14px;
  font-size: 1rem;
  border: 1px solid var(--cxz-border-strong, #cbd5e1);
  border-radius: 10px;
  font-family: inherit;
  min-height: 48px;
}

.cxz-panel textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.45;
}

.cxz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cxz-btn {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 18px;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--cxz-border-strong, #cbd5e1);
  background: #fff;
  color: var(--cxz-text, #0f172a);
  cursor: pointer;
}

.cxz-btn--primary {
  background: var(--cxz-accent, #1d4ed8);
  border-color: transparent;
  color: #fff;
}

.cxz-btn:focus-visible {
  outline: 2px solid var(--cxz-accent, #1d4ed8);
  outline-offset: 2px;
}

.cxz-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5f9;
  font-weight: 600;
  word-break: break-word;
}

/* Long-form SEO blocks */
.cxz-seo-prose {
  max-width: 920px;
  margin: 36px auto 0;
  padding: 0 18px 48px;
  line-height: 1.75;
  font-size: 1rem;
  color: #334155;
}

.cxz-seo-prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: #0f172a;
}

.cxz-seo-prose h3 {
  font-size: 1.1rem;
  margin: 1.35rem 0 0.5rem;
  color: #1e293b;
}

.cxz-seo-prose p {
  margin: 0 0 1rem;
}

.cxz-seo-prose ul {
  margin: 0 0 1rem 1.15rem;
  padding: 0;
}

.cxz-related {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 20px 18px;
  border-top: 1px solid var(--cxz-border, #e2e8f0);
}

.cxz-related h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.cxz-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.cxz-related a {
  color: var(--cxz-accent, #1d4ed8);
  font-weight: 600;
  text-decoration: none;
}

.cxz-related a:hover {
  text-decoration: underline;
}

.cxz-ad-slot {
  max-width: 1000px;
  margin: 16px auto;
  min-height: 100px;
  text-align: center;
}

html[data-theme="dark"] .cxz-panel {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .cxz-tool-wrap h1,
html[data-theme="dark"] .cxz-seo-prose h2,
html[data-theme="dark"] .cxz-seo-prose h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .cxz-tool-wrap .desc,
html[data-theme="dark"] .cxz-seo-prose {
  color: #cbd5e1;
}

html[data-theme="dark"] .cxz-panel input,
html[data-theme="dark"] .cxz-panel textarea,
html[data-theme="dark"] .cxz-panel select {
  background: #0f172a;
  border-color: #475569;
  color: #f1f5f9;
}

html[data-theme="dark"] .cxz-result {
  background: #334155;
  color: #f8fafc;
}
