/* 吉他和弦查询 /tool/guitar-chord —— 指法图与品位谱样式 */

.gc-diagram {
    display: flex;
    justify-content: center;
    margin: 4px 0 12px;
}

.gc-diagram svg {
    width: 100%;
    max-width: 290px;
    height: auto;
}

.gc-str { stroke: var(--c-text-muted); stroke-width: 1; }
.gc-fret { stroke: var(--c-border); stroke-width: 1.2; }
.gc-nut { stroke: var(--c-text); stroke-width: 5; }

.gc-dot { fill: var(--c-primary); }
.gc-dot text { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; }
.gc-dottxt { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; }
.gc-barre { fill: var(--c-text); opacity: .82; }
.gc-mark { fill: var(--c-text-sub); font-size: 13px; font-weight: 700; text-anchor: middle; }
.gc-lbl { fill: var(--c-text-muted); font-size: 11px; text-anchor: middle; }
.gc-fretnum { fill: var(--c-text-sub); font-size: 12px; font-weight: 700; text-anchor: end; }

/* 竖排品位谱 */
.gc-tab {
    margin: 0 0 4px;
    padding: 12px 14px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--c-text);
    white-space: pre;
    overflow-x: auto;
    text-align: left;
}

.gc-tab-head {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--c-text);
    font-size: 13px;
}

/* 可点选的按法行 */
.calc-table tbody tr.gc-row { cursor: pointer; }
.calc-table tbody tr.gc-row:hover { background: var(--c-bg-soft); }
.calc-table tbody tr.gc-row td:first-child { white-space: nowrap; }

.gc-pick {
    font-size: 11.5px;
    color: var(--c-primary);
    white-space: nowrap;
}

[data-theme="dark"] .gc-dot { fill: var(--c-primary); }
[data-theme="dark"] .gc-barre { opacity: .9; }
