/* Shared styles for SEO content + calculator pages
   Heroes use .edu-hero from education.css for site consistency */

.seo-body {
  padding: var(--space-16) 0;
  background: var(--bg);
}

.seo-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.seo-prose {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  color: var(--text-secondary);
  line-height: 1.7;
}

.seo-prose h2 {
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
}

.seo-prose h2:first-child { margin-top: 0; }

.seo-prose h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}

.seo-prose p { margin: 0 0 1rem; }
.seo-prose ul, .seo-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.seo-prose li { margin-bottom: 0.4rem; }

/* Don't restyle buttons inside prose — was causing blue-on-blue */
.seo-prose a:not(.btn) {
  color: var(--blue-primary);
  font-weight: 600;
}

.seo-prose a.btn-primary,
.seo-prose a.btn-primary:hover {
  color: #fff;
}

.seo-prose a.btn-glass,
.seo-prose a.btn-glass:hover {
  color: var(--text);
}

.seo-prose a.btn-white,
.seo-prose a.btn-white:hover {
  color: var(--primary);
}

.seo-callout {
  background: rgba(10, 88, 235, 0.06);
  border: 1px solid rgba(10, 88, 235, 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin: 1.25rem 0;
  color: var(--text-secondary);
}

.seo-callout strong { color: var(--text); }

.seo-not-for {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin: 1.25rem 0;
}

.seo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: 1.25rem 0;
}

.seo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.seo-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text);
}

.seo-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.seo-review {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin: 0 0 12px;
  background: var(--bg);
}

.seo-review .stars {
  color: #f59e0b;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.seo-review .who {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
  align-items: center;
}

.tool-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-md);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.tool-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.tool-field input,
.tool-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.tool-field input:focus,
.tool-field select:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(10, 88, 235, 0.15);
}

.tool-results {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: rgba(10, 88, 235, 0.06);
  border: 1px solid rgba(10, 88, 235, 0.18);
}

.tool-results .big {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tool-results .meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 6px;
}

.free-tools {
  padding: var(--space-16) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.free-tools h2 {
  text-align: center;
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.free-tools .sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 var(--space-8);
}

.free-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 1000px;
  margin: 0 auto;
}

.free-tools-grid a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  background: var(--bg);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.free-tools-grid a:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
}

.free-tools-grid strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.free-tools-grid span {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .free-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-grid-2, .tool-grid { grid-template-columns: 1fr; }
  .seo-prose { padding: var(--space-6); }
}

@media (max-width: 560px) {
  .free-tools-grid { grid-template-columns: 1fr; }
}
