/* ═══════════════════════════════════════════════════════════════════════════
   M4BConvert — Tool Page Styles
   Shared by the four converter pages (m4b-to-mp3, m4b-to-m4a, m4a-to-m4b,
   mp3-to-m4b). Extracted from their previously-duplicated inline <style>
   blocks — the four were byte-for-byte identical aside from the callout
   variant below, so they're merged here into one cacheable file instead of
   being re-downloaded as inline CSS on every page load.
   Reuses the shared token system declared in sub-style.css (:root).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Content section below the tool ── */
.content-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.content-block { display: flex; flex-direction: column; gap: 1rem; }

.content-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.content-block p {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.content-block strong { color: var(--text); font-weight: 600; }

.content-block a {
  color: var(--accent-light);
  text-decoration: none;
}
.content-block a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Callout — three color variants used across the different converter pages */
.meta-callout,
.lossless-callout,
.note-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.meta-callout-icon,
.lossless-callout-icon,
.note-callout-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent-light);
  margin-top: 0.1rem;
}
.meta-callout strong,
.note-callout strong { color: var(--text); }

/* Lossless variant (M4B → M4A): green accent instead of the neutral default */
.lossless-callout {
  border: 1px solid rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.06);
}
.lossless-callout-icon { color: #34d399; }
.lossless-callout strong { color: #34d399; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 0.75rem; }
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
}
.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-light);
  margin-top: 0.1rem;
}
.step-body { flex: 1; min-width: 0; }
.step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.step-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.2s;
}
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-a {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 0.65rem;
  padding-right: 1.5rem;
}

/* Related tools */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.related-card:hover { border-color: var(--border-strong); background: var(--bg-raised); }
.related-arrow { color: var(--text-dim); transition: transform 0.15s, color 0.15s; flex-shrink: 0; }
.related-card:hover .related-arrow { color: var(--text); transform: translateX(2px); }

@media (max-width: 600px) {
  .content-section { padding: 2.5rem 1.1rem 3.5rem; gap: 2.75rem; }
}
