.songwriting-guide { max-width: 100%; overflow-x: hidden; background: #f5f7fb; color: #1f2937; }
.guide-breadcrumb, .guide-article { max-width: 900px; margin: 0 auto; }
.guide-article { width: 100%; min-width: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 24px; box-shadow: 0 18px 50px rgba(15, 23, 42, .08); overflow: hidden; }
.guide-header, .guide-section, .quick-answer, .guide-toc, .guide-cta, .structure-table-wrap { margin-right: 7%; margin-left: 7%; }
.guide-header { padding: 4.5rem 0 2rem; }
.guide-kicker { color: #4f46e5; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-header h1 { max-width: 760px; margin: .75rem 0 1rem; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.guide-deck { max-width: 720px; color: #526077; font-size: 1.2rem; line-height: 1.75; }
.guide-header h1, .guide-deck, .guide-section, .quick-answer, .guide-toc, .guide-cta, .guide-figure figcaption { min-width: 0; overflow-wrap: anywhere; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: #64748b; font-size: .92rem; }
.guide-figure { margin: 0; }
.guide-figure img { display: block; width: 100%; height: auto; }
.guide-figure figcaption { padding: .75rem 7%; color: #64748b; background: #f8fafc; font-size: .85rem; }
.quick-answer { margin-top: 3rem; padding: 1.75rem; border-left: 5px solid #4f46e5; border-radius: 14px; background: #eef2ff; }
.quick-answer h2, .guide-toc h2 { font-size: 1.3rem; }
.quick-answer ol { columns: 2; margin-bottom: 0; }
.quick-answer li { margin: .45rem 0; }
.guide-toc { margin-top: 2rem; padding: 1.75rem; border: 1px solid #dbe3ef; border-radius: 16px; }
.guide-toc ol { margin: 1rem 0 0; padding-left: 1.4rem; }
.guide-toc li { padding: .3rem 0; }
.guide-section { position: relative; padding: 4rem 0 0; }
.guide-section h2 { margin-bottom: 1.25rem; padding: .75rem 1rem; border-left: 5px solid #4f46e5; background: #f1f5f9; font-size: clamp(1.55rem, 3vw, 2.05rem); }
.guide-section p, .guide-section li { font-size: 1.05rem; line-height: 1.8; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-bottom: .65rem; border-radius: 50%; color: #fff; background: #4f46e5; font-weight: 800; }
.guide-checklist { padding-left: 1.3rem; }
.tool-link { padding: 1rem 1.2rem; border-radius: 12px; background: #f8fafc; }
.guide-body-figure { margin-top: 3.5rem; }
.structure-table-wrap { padding-top: 2rem; overflow-x: auto; }
.structure-table caption { color: #475569; caption-side: top; font-weight: 700; }
.structure-table th { color: #fff; background: #334155; }
.worked-example dl { display: grid; gap: .8rem; }
.worked-example dl div { padding: 1rem 1.2rem; border-radius: 12px; background: #f8fafc; }
.worked-example dt { color: #4f46e5; font-weight: 800; }
.worked-example dd { margin: .35rem 0 0; }
.mistake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mistake-card { padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 14px; }
.mistake-card h3 { font-size: 1.1rem; }
.guide-faq details { border-bottom: 1px solid #e2e8f0; }
.guide-faq summary { padding: 1.15rem 0; cursor: pointer; font-size: 1.08rem; font-weight: 700; }
.guide-cta { margin-top: 4rem; padding: 2.25rem; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #312e81, #4f46e5); }
.guide-cta p { color: #e0e7ff; }
.guide-cta .btn-outline-primary { color: #fff; border-color: #fff; }
.guide-cta .btn-outline-primary:hover { color: #312e81; background: #fff; }
@media (max-width: 767px) {
  .guide-article { border-radius: 16px; }
  .guide-header, .guide-section, .quick-answer, .guide-toc, .guide-cta, .structure-table-wrap { margin-right: 5%; margin-left: 5%; }
  .guide-header { padding-top: 3rem; }
  .guide-header h1 { max-width: 100%; font-size: clamp(2rem, 9vw, 2.65rem); line-height: 1.12; }
  .guide-deck { max-width: 100%; font-size: 1.05rem; line-height: 1.65; }
  .quick-answer ol { columns: 1; }
  .mistake-grid { grid-template-columns: 1fr; }
}
