/* ══════════════════════════════
   inner-pages.css
   Shared styles for inner pages (calculators, contact, legal)
   ══════════════════════════════ */

.content-wrap > section { margin-bottom: 32px; }

.card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

/* ══════════════════════════════
   HOW-TO STEPS
   ══════════════════════════════ */
.how-bare { padding-bottom: 8px; }

.how-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--accent-border);
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 6px;
}

/* ══════════════════════════════
   MID TEXT (free WP content between How-to and FAQ)
   ══════════════════════════════ */
.mid-text {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════
   FAQ
   ══════════════════════════════ */
.faq-bare { padding-bottom: 8px; }

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid rgba(13,148,136,0.12);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  gap: 16px;
  user-select: none;
}
.faq-question:hover { color: var(--accent); }

.faq-caret {
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-caret { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer .wp-content {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 18px;
}

/* ══════════════════════════════
   QUICK TOOLS (max 6, 3 per row)
   ══════════════════════════════ */
.quick-tools-section { margin-top: 8px; }

.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.qt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.qt-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  color: var(--accent);
  box-shadow: 0 6px 14px rgba(13,148,136,0.10);
}
.qt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.qt-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

/* ══════════════════════════════
   SEO TEXT BLOCK
   ══════════════════════════════ */
.seo-text {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 16px;
}
body.theme-dark .seo-text { background: rgba(13,40,40,0.5); }

.seo-text h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 14px;
}
.seo-text p {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 10px;
}
.seo-text p:last-child { margin-bottom: 0; }

/* ── Quick link buttons under SEO text ── */
.seo-qlb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.seo-qlb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--card-stroke);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.seo-qlb-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}
.seo-qlb-icon { display: inline-flex; }
.seo-qlb-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

/* ══════════════════════════════
   FEATURED BUTTONS shortcode
   ══════════════════════════════ */
.cb-featured-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cb-fb-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
.cb-fb-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.14); }
.cb-fb-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 20px; }
.cb-fb-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.cb-fb-text { flex: 1; }

/* ══════════════════════════════
   Desktop overrides
   ══════════════════════════════ */
@media (min-width: 769px) {
  .quick-tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .qt-btn { padding: 16px 18px; font-size: 14px; }

  .cb-featured-buttons { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cb-featured-buttons.cb-fb-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
