/* Practice-first homepage hero and read-only known-chord results.
   Scoped selectors to avoid altering legacy Joomla modules / song pages. */
body.mc-home #ja-content .mc-home-practice-hero {
    --mcp-ink: #263a4e;
    --mcp-muted: #65758a;
    --mcp-accent: #d65f49;
    --mcp-line: #e6ebef;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 27px 27px 22px;
    margin: 4px 0 22px;
    border: 1px solid #e8edf1;
    border-radius: 16px;
    background: linear-gradient(137deg, #f7fbff, #fff 65%);
    box-shadow: 0 8px 22px rgba(39, 58, 78, .055);
    color: var(--mcp-ink);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
}
.mc-home-practice-hero *, .mc-practice-results * { box-sizing: border-box; }
#ja-content .mc-home-practice-kicker {
    display: block;
    color: #a65b45;
    font: 800 10px/1.6 Arial, sans-serif;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}
body.mc-home #ja-content .mc-home-practice-hero h1 {
    margin: 8px 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mcp-ink);
    font: 800 clamp(23px, 3.5vw, 34px)/1.2 Arial, sans-serif;
    letter-spacing: -.75px;
}
#ja-content .mc-home-practice-intro > p {
    margin: 0 0 22px;
    max-width: 640px;
    color: var(--mcp-muted);
    line-height: 1.65;
}
#ja-content .mc-home-practice-search {
    padding: 17px;
    border: 1px solid var(--mcp-line);
    border-radius: 12px;
    background: #fff;
}
#ja-content .mc-home-practice-search > label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 800;
    color: var(--mcp-ink);
}
#ja-content .mc-home-practice-search-row {
    display: flex;
    min-width: 0;
    align-items: stretch;
    gap: 8px;
}
#ja-content .mc-home-practice-search-row input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid #cbd6df;
    border-radius: 9px;
    background: #fff;
    color: #24364b;
    font: 14px Arial, sans-serif;
    box-shadow: none;
}
#ja-content .mc-home-practice-search-row button,
#ja-content .mc-home-practice-submit {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 47px;
    margin: 0;
    padding: 10px 17px;
    border: 0;
    border-radius: 9px;
    background: #cf5f49;
    color: #fff;
    font: 800 13px Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
}
#ja-content .mc-home-practice-search-row button:hover,
#ja-content .mc-home-practice-submit:hover { background: #b84f3a; }
#ja-content .mc-home-practice-search > p {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--mcp-muted);
}
#ja-content .mc-home-practice-search > p a,
#ja-content .mc-practice-back,
#ja-content .mc-practice-empty a {
    color: #bd543f;
    font-weight: 750;
    text-decoration: underline;
}
#ja-content .mc-home-practice-divider {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 16px 0;
    color: #97a3ad;
    font: 800 11px Arial, sans-serif;
}
#ja-content .mc-home-practice-divider:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e4e9ec;
}
#ja-content .mc-home-practice-divider span {
    position: relative;
    padding: 0 14px;
    background: #fff;
}
#ja-content .mc-home-practice-by-chord {
    border: 0;
    margin: 0;
}
#ja-content .mc-home-practice-chord-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
#ja-content .mc-home-practice-chord-heading h2 {
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #283f52;
    font: 800 19px/1.25 Arial, sans-serif;
}
#ja-content .mc-home-practice-chord-heading p {
    margin: 0;
    color: #718091;
    font-size: 12px;
}
#ja-content #mc-home-practice-chord-count {
    flex: 0 0 auto;
    color: #a65b45;
    font: 700 11px/1.5 Arial, sans-serif;
    white-space: nowrap;
}
#ja-content .mc-home-practice-hero fieldset {
    min-width: 0;
    margin: 0 0 13px;
    padding: 0;
    border: none;
}
#ja-content .mc-home-practice-hero legend {
    margin-bottom: 8px;
    padding: 0;
    color: #4d6074;
    font: 750 12px Arial, sans-serif;
}
#ja-content .mc-home-practice-instruments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
#ja-content .mc-home-practice-instruments legend { width: 100%; }
#ja-content .mc-home-practice-instruments label,
#ja-content .mc-home-practice-chord label {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}
#ja-content .mc-home-practice-instruments input,
#ja-content .mc-home-practice-chord input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}
#ja-content .mc-home-practice-instruments span,
#ja-content .mc-home-practice-chord span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid #dce4ea;
    border-radius: 9px;
    background: #fff;
    color: #465a6e;
    font: 700 13px Arial, sans-serif;
    transition: background .12s, border-color .12s;
    user-select: none;
}
#ja-content .mc-home-practice-instruments input:checked + span {
    border-color: #315d6c;
    background: #2c5061;
    color: #fff;
}
#ja-content .mc-home-practice-chord input:checked + span {
    border-color: #d1604c;
    background: #fff0eb;
    color: #ba513b;
}
#ja-content .mc-home-practice-instruments input:focus-visible + span,
#ja-content .mc-home-practice-chord input:focus-visible + span {
    outline: 2px solid #d1604c;
    outline-offset: 3px;
}
#ja-content .mc-home-practice-chord-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}
#ja-content .mc-home-practice-chord-grid .mc-home-practice-chord span {
    min-width: 44px;
    font-size: 14px;
}
#ja-content .mc-home-practice-more { margin-top: 9px; }
#ja-content .mc-home-practice-more summary {
    display: inline-block;
    color: #bd5946;
    font: 800 12px Arial, sans-serif;
    cursor: pointer;
    padding: 4px 0 9px;
}
#ja-content .mc-home-practice-more summary::-webkit-details-marker { display: none; }
#ja-content .mc-home-practice-more .mc-home-practice-chord-grid { padding: 2px 0 9px; }
#ja-content #mc-home-practice-extra-chords { margin-top: 7px; }
#ja-content .mc-home-practice-footer {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 16px;
}
#ja-content .mc-home-practice-footer p {
    flex: 1 1 260px;
    margin: 0;
    color: #718091;
    font-size: 11px;
    line-height: 1.6;
}
@media(max-width: 610px) {
    body.mc-home #ja-content .mc-home-practice-hero {
        padding: 19px 14px 17px;
        border-radius: 12px;
        margin-top: 5px;
    }
    #ja-content .mc-home-practice-search { padding: 13px; }
    #ja-content .mc-home-practice-search-row { flex-direction: column; }
    #ja-content .mc-home-practice-search-row button { width: 100%; }
    #ja-content .mc-home-practice-chord-heading { flex-direction: column; gap: 6px; }
    #ja-content .mc-home-practice-footer .mc-home-practice-submit { width: 100%; }
    #ja-content .mc-home-practice-chord-grid .mc-home-practice-chord span { min-width: 42px; }
}

/* Scoped search-results styling; it never changes legacy /search results. */
#ja-content .mc-practice-results {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 15px 10px 28px;
    color: #293c50;
    font: 14px/1.6 Arial, sans-serif;
}
#ja-content .mc-practice-results-header {
    padding: 16px 0;
    border-bottom: 1px solid #e7ecef;
}
#ja-content .mc-practice-results-header h1 {
    color: #293f52;
    padding: 0;
    margin: 6px 0 8px;
    font: 800 27px/1.2 Arial, sans-serif;
}
#ja-content .mc-practice-results-header p { margin: 0 0 11px; color: #586a7e; }
#ja-content .mc-practice-sample-note {
    margin: 14px 0 20px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #f4f7f9;
    color: #67798b;
    font-size: 12px;
}
#ja-content .mc-practice-result-section { margin: 23px 0 29px; }
#ja-content .mc-practice-result-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
#ja-content .mc-practice-result-heading h2 {
    margin: 0;
    padding: 0;
    color: #2e465b;
    font: 800 20px/1.3 Arial, sans-serif;
}
#ja-content .mc-practice-result-heading span { color: #778899; font-size: 12px; }
#ja-content .mc-practice-result-section > p { margin: 5px 0 12px; color: #6c7e8d; font-size: 12px; }
#ja-content .mc-practice-result-list {
    border: 1px solid #e6edf1;
    border-radius: 11px;
    background: #fff;
    overflow: hidden;
}
#ja-content .mc-practice-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid #edf1f4;
}
#ja-content .mc-practice-result-row:last-child { border-bottom: none; }
#ja-content .mc-practice-result-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    overflow-wrap: break-word;
}
#ja-content .mc-practice-song-title {
    color: #2f4558;
    font-weight: 800;
    text-decoration: none;
}
#ja-content .mc-practice-artist, #ja-content .mc-practice-chords {
    color: #6f8192;
    font-size: 12px;
}
#ja-content .mc-practice-missing { color: #b85d44; font-size: 12px; }
#ja-content .mc-practice-go {
    flex: 0 0 auto;
    border: 1px solid #e8c7ba;
    border-radius: 7px;
    padding: 7px 11px;
    color: #b95740;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
#ja-content .mc-practice-go:hover { background: #fff5ef; }
#ja-content .mc-practice-empty {
    margin-top: 18px;
    border: 1px solid #e6edf1;
    border-radius: 12px;
    padding: 22px;
    background: #fcfdfe;
}
#ja-content .mc-practice-empty h2 {
    margin: 0 0 6px;
    font-size: 19px;
    color: #344e63;
}
#ja-content .mc-practice-empty p { color: #677c8d; }
@media(max-width: 540px) {
    #ja-content .mc-practice-result-row { align-items: flex-start; flex-direction: column; padding: 13px 11px; }
    #ja-content .mc-practice-go { align-self: flex-start; }
    #ja-content .mc-practice-results { padding-left: 4px; padding-right: 4px; }
}