/* Main container */
.keysignary-description {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  position: relative;
}

/* Accent bar */
.keysignary-description::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #4f7cff, #6bd6ff);
  border-radius: 10px 0 0 10px;
}

/* Paragraph spacing */
.keysignary-description p {
  margin: 0 0 0.9rem;
  padding-left: 0.4rem;
  line-height: 1.7;
  color: #2f2f2f;
}

/* Intro stronger */
.ks-intro {
  font-size: 1.05rem;
  font-weight: 500;
}

/* Section tones */
.ks-harmony { color: #3b3b3b; }
.ks-rhythm  { color: #363636; }
.ks-theory  { color: #333; }
.ks-dj      { color: #2c2c2c; }

/* Strong highlights */
.keysignary-description strong {
  font-weight: 600;
  color: #111;
}

/* OpenKey highlight */
.keysignary-description .key-open {
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  background: rgba(79, 124, 255, 0.12);
}

/* Credit section */
.ks-credit {
  margin-top: 1.2rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  color: #555;
  background: #f2f2f2;
  border-radius: 6px;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .keysignary-description {
    padding: 1.2rem;
  }
}



.key-open {
      border-radius: 10px;
    font-weight: 600;
    display: inline-block;
    min-width: 52px;
    text-align: center!important;
    color:white;
}

.hk-1  { background: #ec83db; } 
.hk-2  { background: #cd90ff; }  
.hk-3  { background: #a1b7fe; }  
.hk-4  { background: #57d9f8; }  
.hk-5  { background: #0beceb; }  
.hk-6  { background: #0bedca; }  
.hk-7  { background: #3fee81; }  
.hk-8  { background: #8af150; }  
.hk-9  { background: #ffcb49; }  
.hk-10 { background: #fe9f7b; }  
.hk-11 { background: #ff80b4; }  
.hk-12 { background: #ff80b4; } 

.notation-header h5 {margin-top: .5rem;line-height:0;}

/* Key Signature Context Box */
.key-signature-context {
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    border-left: 4px solid #3b82f6;
}

.context-inner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.context-icon {
    background: #3b82f6;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: serif;
    font-style: italic;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 14px;
}

.context-text {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Professional Tone Disclaimer */
.professional-disclaimer {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .music-heading { font-size: 1.6rem; }
    .key-signature-context { padding: 12px 15px; }
    .context-text { font-size: 0.85rem; }
}
/* Container */
.mode-table thead {
    text-align: center;
}
#chord-table-container {
    margin-top: 32px;
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
}

/* Table */
.mode-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header */
.mode-table th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ffffff;
    padding: 14px 12px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Cells */
.mode-table td {
    padding: 18px 10px;
    text-align: center;
    font-size: 0.95rem;
    color: #2c3e50;
    border-bottom: 1px solid #f1f3f5;
}

/* Remove last border */
.mode-table tr:last-child td {
    border-bottom: none;
}

/* Hover effect */
.mode-table tbody tr {
    transition: background-color 0.2s ease;
}

.mode-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Chord Name Highlight */
.chord-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e74c3c;
}

/* Optional: tonal center emphasis */
.chord-name.is-tonal-center {
    background: rgba(231, 76, 60, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    display: inline-block;
}

/* Mobile */
@media (max-width: 600px) {
    #chord-table-container {
        border-radius: 10px;
    }

    .mode-table th {
        padding: 10px 6px;
        font-size: 0.65rem;
    }

    .mode-table td {
        padding: 14px 6px;
        font-size: 0.85rem;
    }

    .chord-name {
        font-size: 1rem;
    }
}

	.song-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.song-image img {
    width: 120px;
    height: auto;
    border-radius: 5px;
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.song-artist span {
    display: inline-block;
    font-size: 1.2rem;
    color: #555;
    margin-right: 10px;
}

  border-radius: 12px;
}
@media (max-width: 768px) {
    .song-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .song-title {
        font-size: 1.8rem;
    }

    .song-artist span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .song-title {
        font-size: 1rem;
    }
    {line-height: 1.2;}

    .song-artist span {
        font-size: 0.9rem;
    }
    .chord {display:none;}
    .song-container {gap:10px}
}
.chord{color:#1db3a5}


/* =============================
   Layout
============================= */
.cmain{
  display:grid;
  grid-template-columns:minmax(320px, 420px) 1fr;
  gap:32px;
  align-items:start;
}

@media(max-width:900px){
  .cmain{
    grid-template-columns:1fr;
    gap:24px;
  }
}

/* =============================
   Wheel Wrapper & SVG
============================= */
.wheel-svg{
  width:100%;
  max-width:420px;     /* Desktop size */
  height:auto;
  display:block;
  margin-inline:auto;  /* Center */
  filter:drop-shadow(0 12px 24px rgba(15,23,42,.15));
}

/* Mobile: prevent overflow */
@media(max-width:480px){
  .wheel-svg{
    max-width:320px;
  }
}

/* =============================
   Wheel segments
============================= */
.wheel-segment{
  cursor:pointer;
  transition:.2s;
}

.wheel-segment:hover{
  filter:brightness(1.1);
}

.wheel-segment.selected{
  filter:brightness(1.25);
}

.wheel-segment.compatible{
  opacity:.9;
}

.wheel-segment.dimmed{
  opacity:.18;
}

/* =============================
   Segment text (FIXED SIZE)
============================= */
.seg-text{
  pointer-events:none;
  fill:#020617;
  text-anchor:middle;
  dominant-baseline:middle;
  font-family:'JetBrains Mono',monospace;
}

.seg-text.code{
  font-size:13px;   /* was 11px */
  font-weight:700;
}

.seg-text.key{
  font-size:10px;   /* was 8px */
  opacity:.7;
}

/* Mobile: slightly reduce text */
@media(max-width:480px){
  .seg-text.code{ font-size:11px; }
  .seg-text.key{ font-size:9px; }
}

/* =============================
   Hub
============================= */
.hub{
  fill:#f8fafc;
  stroke:#cbd5f5;
  stroke-width:2;
}

.hub-key{
  fill:#020617;
  font-size:24px;   /* was 22px */
  font-family:'JetBrains Mono',monospace;
  font-weight:700;
  text-anchor:middle;
}

.hub-musical{
  fill:#475569;
  font-size:13px;   /* was 12px */
  text-anchor:middle;
}

/* =============================
   Info panel
============================= */
.info{
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:16px;
}

.info h3{
  font-size:.75rem;
  color:#64748b;
  text-transform:uppercase;
  margin-bottom:10px;
  letter-spacing:.05em;
}

.display{
  display:flex;
  gap:10px;
  align-items:baseline;
}

.display .code{
  font-size:2rem;
  font-family:'JetBrains Mono',monospace;
  color:#020617;
}

.display .musical{
  color:#475569;
}

/* =============================
   Compatible chips
============================= */
.chips{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.chip{
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  border-radius:6px;
  padding:6px 10px;
  font-size:.75rem;
  cursor:pointer;
  font-family:'JetBrains Mono',monospace;
  color:#020617;
  transition:.15s;
}

.chip:hover{
  background:#e2e8f0;
  border-color:#c7d2fe;
}

.chip.same { border-color:#22c55e; color:#166534 }
.chip.up   { border-color:#3b82f6; color:#1d4ed8 }
.chip.down { border-color:#f97316; color:#9a3412 }
.chip.rel  { border-color:#ec4899; color:#9d174d }

		    /* Staff explanation note */
.ks-staff-note {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #2f2f2f;
  background: linear-gradient(180deg, #f8faff, #f1f5ff);
  border-left: 4px solid #4f7cff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Emphasis */
.ks-staff-note strong {
  font-weight: 600;
  color: #111;
}

/* Optional icon style (if added later) */
.ks-staff-note::before {
  content: "🎼";
  margin-right: 0.4rem;
}

		    .song-artist a {
    color: #F44336;
    font-weight: bold;
    font-size: medium;
}
		    #paper { width: 100%;  margin: 0px auto; }
.key-table {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.key-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f7f7;
}

.key-header {
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
}

.key-value {
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

@media (min-width: 768px) {
  .key-table {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .key-row {
    grid-column: span 1;
    display: block;
    background: none;
    padding: 0;
  }

  .key-header {
    font-size: 0.55rem;
    text-transform: uppercase;
  }

  .key-value {
    text-align: left;
    font-size: 1.1rem;
  }
}

/* Container */
.ks-more-by {
  margin-top: 1.2rem;
  text-align: center;
}

/* Button style */
.ks-more-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2f2f2f;
  background: #ffffff;
  border: 1px solid #d9e0ff;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Highlight artist name */
.ks-more-btn strong {
  font-weight: 600;
  color: #4f7cff;
}

/* Hover state */
.ks-more-btn:hover {
  background: #4f7cff;
  color: #ffffff;
  border-color: #4f7cff;
  box-shadow: 0 4px 10px rgba(79, 124, 255, 0.25);
}

.ks-more-btn:hover strong {
  color: #ffffff;
}

/* Mobile tweak */
@media (max-width: 768px) {
  .ks-more-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}
