/* ============================================
   R.I.T.H.M - Music Theory Guide Styles
   Container, header, and section base styles
   are inherited from .page-container, .page-header,
   and .content-section in base.css.
   ============================================ */

/* Aliases: guide uses the shared page patterns */
.guide-container { /* extends .page-container via HTML class */ }
.guide-header    { /* extends .page-header via HTML class */ }
.guide-section   { /* extends .content-section via HTML class */ }

.note-example {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  margin: 0 0.25rem;
}

.interval-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

.interval-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.interval-table th,
.interval-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.interval-table th {
  color: var(--text-primary);
  font-weight: 600;
}

.interval-table td {
  color: var(--text-muted);
}

.chord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.chord-card {
  background: var(--input-bg);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.chord-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.chord-card p {
  font-size: 0.9rem;
  margin: 0;
}

.try-it-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Shared CTA links row for guide + tips pages */
.cta-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
