/*
 * Thème tabs-ocarina : reprise du thème Drupal « themecomposer » (2014-2018),
 * restructurée : en-tête (logo, recherche, compte, ruban du menu avec menus
 * déroulants), page sur une colonne et pied de page en colonnes. Couleurs et
 * ruban d'origine conservés, dessinés en CSS. Menu replié sous 860 px.
 */

:root {
    --page-width: 1024px;
    --gutter: 32px;
    --ribbon-overhang: 0px;
    --accent-top: #ffd27a;
    --accent-bottom: #f39a12;
    --footer-top: #0a5070;
    --footer-bottom: #013a50;
    --blue-dark: #015a7c;
    --blue-light: #cfe2e9;
    --blue-ribbon: #3cc6ef;
    --ribbon-top: #74e4ff;
    --ribbon-bottom: #19a9db;
    --ribbon-fold: #0a5f7d;
    --link: #0071b3;
    --menu-hover: #ffcd8d;
    --page-bg: #f9f9fa;
    --border: #dfdfdf;
    --muted: #68696b;
    --tab-bg: #e7f4f5;
    --control-height: 34px;
    --font: Arial, 'Trebuchet MS', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; background: var(--blue-light); }

body {
    font: 14px/1.45 var(--font);
    color: #000;
    background: linear-gradient(var(--blue-dark), var(--blue-light) 1100px) no-repeat;
    min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
p { line-height: 20px; margin: 0 0 1.2em; }
h1 { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.4; margin: 1.2em 0 .4em; }
h3 { font-size: 16px; margin: 1em 0 .4em; }
ul, ol { padding-left: 2.5em; margin: 1em 0; }
table { border-spacing: 0; width: 100%; border: 1px solid var(--border); margin: 4px 0; }
table td, table th { border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: left; }
table tbody tr:nth-child(odd) td { background: #f5f5f5; }
table thead { background: linear-gradient(var(--border), #f1f2f2); }
.visually-hidden { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; height: 1px; width: 1px; white-space: nowrap; }
.muted { color: var(--muted); font-size: 12px; }
.skip-link { position: absolute; left: 8px; top: -40px; z-index: 10; padding: 6px 12px; background: #fff; border-radius: 4px; }
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------ Mise en page */

.container { width: min(100% - 32px, var(--page-width)); margin: 0 auto; }

/* En-tête : logo, recherche et compte sur une ligne, ruban du menu en dessous. */
.header-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search account" "nav nav nav";
    align-items: center;
    column-gap: 20px;
    padding-top: 14px;
}
.site-nav { display: contents; }
.logo { grid-area: logo; display: block; line-height: 0; }
.logo img { display: block; width: auto; height: 58px; }
.menu-toggle { display: none; }

.header-search { grid-area: search; justify-self: end; display: flex; gap: 6px; width: min(100%, 300px); }
.header-search input { flex: 1; min-width: 0; border-color: transparent; }
.search-button { flex: 0 0 var(--control-height); display: inline-grid; place-items: center; height: var(--control-height); border: 1px solid #b4b4b4; border-radius: 8px; background: linear-gradient(#fff, #e3e3e3); color: #333; cursor: pointer; }
.search-button:hover { background: linear-gradient(#fff, #d6eef6); }

.account-nav { grid-area: account; display: flex; align-items: center; gap: 14px; }
.header-link { color: #fff; font-weight: bold; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.button.accent { background: linear-gradient(var(--accent-top), var(--accent-bottom)); border-color: #d9890c; color: #3a2400; font-weight: bold; }
.account-menu > summary { display: flex; align-items: center; gap: 6px; min-height: var(--control-height); padding: 4px 12px; border-radius: 17px; background: rgba(255, 255, 255, .15); color: #fff; font-weight: bold; }
.account-menu > summary:hover { background: rgba(255, 255, 255, .25); }

/* Ruban bleu du menu : il déborde de la page et ses extrémités se replient derrière elle. */
.main-menu {
    grid-area: nav;
    position: relative;
    z-index: 5;
    margin: 14px calc(-1 * var(--ribbon-overhang)) 0;
    border-radius: 3px 3px 0 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, 0) 90%),
        linear-gradient(var(--ribbon-top), var(--blue-ribbon) 45%, var(--ribbon-bottom));
    box-shadow: 0 4px 6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.main-menu::before, .main-menu::after { content: ''; position: absolute; top: 100%; border-top: 10px solid var(--ribbon-fold); }
.main-menu::before { left: 0; border-left: var(--ribbon-overhang) solid transparent; }
.main-menu::after { right: 0; border-right: var(--ribbon-overhang) solid transparent; }
.main-menu > ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(8px, 1.6vw, 20px); margin: 0; padding: 0 12px; }
.main-menu > ul > li { position: relative; }
.main-menu > ul > li > a, .main-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 52px;
    padding: 0 6px;
    font-size: clamp(15px, 1.8vw, 19px);
    text-transform: uppercase;
    color: #000;
    text-shadow: #fff 0 1px 1px;
}
.main-menu > ul > li > a:hover, .main-menu summary:hover, .main-menu .active, .main-menu details[open] > summary {
    color: var(--menu-hover); text-shadow: #00435f 1px 1px 0; text-decoration: none;
}

/* Menus déroulants (<details>) : chevron, panneau blanc souligné d'orange. */
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary::after { content: ''; width: 7px; height: 7px; margin: -4px 0 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.dropdown[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.dropdown-panel {
    position: absolute;
    z-index: 10;
    top: calc(100% + 6px);
    min-width: 200px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border-top: 3px solid var(--accent-bottom);
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    text-align: left;
    text-transform: none;
    text-shadow: none;
}
.account-menu { position: relative; }
.account-menu .dropdown-panel { right: 0; }
.dropdown-panel a { display: block; padding: 6px 16px; color: #1d1d1d; }
.dropdown-panel a:hover { background: #e6f6fb; color: var(--blue-dark); text-decoration: none; }
.dropdown-panel.mega { left: 0; display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 0 8px; width: max-content; max-width: min(640px, 92vw); padding: 14px 8px; }
.dropdown-panel h2 { margin: 6px 16px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dropdown-panel h2:not(:first-child) { margin-top: 14px; }
.dropdown-panel section ul { list-style: none; margin: 0; padding: 0; }
.dropdown-panel.mega a { padding: 4px 16px; font-size: 14px; }

/* Page : une seule colonne, sur fond clair, collée sous le ruban. */
.page { min-height: 50vh; padding: 34px var(--gutter) 40px; background: var(--page-bg); box-shadow: 0 6px 30px 4px rgba(0, 0, 0, .55); border-radius: 0 0 6px 6px; }
.page > :first-child { margin-top: 0; }

/* Pied de page en colonnes, sur bande bleu foncé. */
.site-footer { margin-top: 44px; padding: 36px 0 20px; background: linear-gradient(var(--footer-top), var(--footer-bottom)); color: var(--blue-light); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.site-footer h2 { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--menu-hover); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; color: var(--blue-light); }

/* -------------------------------------------------------------- Formulaires */

input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
    font: inherit;
    min-height: var(--control-height);
    padding: 6px 8px;
    border: 1px solid;
    border-color: #d2d2d2 #d2d2d2 #b4b4b4;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .25) inset;
    background: #fff;
}
select { padding-right: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #1aa8d6; outline-offset: 1px; }
.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--control-height);
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    padding: 4px 18px;
    border-radius: 17px;
    border: 1px solid #d2d2d2;
    border-bottom-color: #b4b4b4;
    background: linear-gradient(#fff, #e8e8e8);
    color: #3a3a3a;
}
.button:hover { box-shadow: 1px 1px 4px #333 inset; text-decoration: none; }

.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; padding: 12px; margin: 10px 0 16px; background: #eef6f8; border: 1px solid var(--border); border-radius: 8px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: bold; }
.filters input, .filters select { width: 100%; font-weight: normal; }
.filters .button { justify-self: start; }

/* ------------------------------------------------------------------ Accueil */

.home-title { font-size: 40px; line-height: 1.1; }
.ocarina-buttons { display: grid; grid-template-columns: repeat(auto-fit, 88px); justify-content: center; gap: 0; margin: 10px 0 20px; }
.ocarina-buttons a {
    display: grid;
    justify-items: center;
    width: 110px;
    height: 117px;
    margin: 0 -11px;
    padding-top: 26px;
    background: url("../images/socle-seul-UOS077h.png") no-repeat;
}
.ocarina-buttons a:hover { background-image: url("../images/socle-hover2-tlmlKM2.png"); text-decoration: none; }

.home-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; margin: 20px 0; }
.home-columns section { display: flex; flex-direction: column; }
.home-columns h2 { margin-top: 0; font-size: 16px; border-bottom: 2px solid var(--blue-ribbon); }
.home-columns ul { flex: 1; padding-left: 1.2em; margin: 6px 0; font-size: 13px; }
.home-columns li { margin: 3px 0; }
.more-link { text-align: right; font-size: 12px; margin-bottom: 0; }

/* ------------------------------------------------------- Listes de contenus */

.tab-list td { vertical-align: top; }
.tab-list .title a { font-weight: bold; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 16px 0; list-style: none; padding: 0; }
.pager a, .pager span { display: inline-block; min-width: 32px; padding: 5px 8px; text-align: center; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.pager .current { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }

.stars { color: #e8a317; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #ccc; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; background: #e0eef2; font-size: 12px; line-height: 1.4; }
.badge.ok { background: #e0f8d8; }

/* -------------------------------------------------------- Fiche d'une tab */

.meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.meta a { color: inherit; font-weight: bold; }
.tab-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }

.fingerings { text-align: center; margin: 10px 0 20px; }
.fingerings-scroll { overflow-x: auto; padding: 0 0 10px; }
/* Grille à nombre de colonnes fixe (--columns) : pas de retour à la ligne décalé quand la grille est réduite (zoom) sur mobile. */
.part_table {
    display: inline-grid;
    grid-template-columns: repeat(var(--columns, 13), 54px);
    list-style: none;
    margin: 0 auto 10px;
    padding: 45px 4px 4px;
    border-radius: 9px;
    border-left: 1px solid #dbdbdb;
    background: var(--tab-bg);
    box-shadow: 2px 5px 3px #404040;
    text-align: left;
}
.part_table li { width: 54px; }
.part_table .bind { display: block; height: 12px; }
.part_table .b1 { background: url("../images/bind1-3aOn1A9.png"); }
.part_table .b2 { background: url("../images/bind2-TxTgcmC.png"); }
.part_table .b3 { background: url("../images/bind3-NHQgQzY.png"); }
.part_table .sprite { display: block; }

/* Convertisseur de doigtés : barre orange posée sur le haut de la grille. */
.converter {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto -18px;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(#ffd27a, #f7a51c 55%, #e48900);
    box-shadow: 0 3px 5px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.converter[hidden] { display: none; }
.converter button { width: 28px; height: 28px; border: 0; border-radius: 4px; cursor: pointer; background: url("../images/sprite3_13_08-NRoBixa.png") no-repeat; opacity: .35; transition: opacity .3s; }
.converter button:hover, .converter button[aria-pressed=true] { opacity: 1; }
.converter [data-type=note] { background-position: 0 -120px; }
.converter [data-type="10"] { background-position: 0 -153px; }
.converter [data-type="12"] { background-position: 0 -186px; }
.converter [data-type="4"] { background-position: 0 -219px; }
.converter [data-type="5"] { background-position: 0 -252px; }
.converter [data-type="6"] { background-position: 0 -285px; }
.converter [data-type="8"] { background-position: 0 -318px; }
.converter [data-type="9"] { background-position: 0 -351px; }
.converter [data-type=double] { background-position: 0 -384px; }

.tab-text { margin: 0 0 20px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.tab-text summary { cursor: pointer; font-weight: bold; }
.tab-text p { margin: 6px 0; }
.tab-text pre { overflow-x: auto; margin: 0; font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }

.video { position: relative; aspect-ratio: 16 / 9; max-width: 640px; margin: 16px auto; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rich-text img { max-width: min(350px, 100%); }
.page-body img { max-width: 100%; }
.audio-player { width: 100%; max-width: 480px; }

/* ------------------------------------------------------------ Commentaires */

.comments { margin-top: 30px; }
.comment { display: flex; gap: 20px; margin-bottom: 16px; }
.comment.reply { margin-left: calc(min(40px, 6vw) * var(--depth, 1)); }
.comment .who { flex: 0 0 120px; font-size: 13px; overflow-wrap: anywhere; }
.comment .who time { display: block; color: var(--muted); font-size: 11px; }
.comment .bubble { position: relative; flex: 1; min-width: 0; padding: 10px 18px; border: 1px solid #d3d7d9; border-radius: 4px; background: #fff; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
/* Flèche de la bulle vers l'auteur (bordure puis fond). */
.comment .bubble::before, .comment .bubble::after { content: ''; position: absolute; top: 12px; border: 10px solid transparent; border-left-width: 0; }
.comment .bubble::before { left: -11px; border-right-color: #d3d7d9; }
.comment .bubble::after { left: -10px; border-right-color: #fff; }
.comment .bubble p:last-child { margin-bottom: 0; }

/* --------------------------------------------------- Comptes et communauté */

.flash { padding: 8px 12px; border-radius: 6px; border: 1px solid; margin: 0 0 14px; }
.flash-success { background: #e9f8e4; border-color: #9fd38d; color: #24561a; }
.flash-error { background: #fdecea; border-color: #f0a29b; color: #8a1f15; }

.form .form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form .form-row:has(> input[type=checkbox]) { flex-direction: row; align-items: center; gap: 6px; }
.form .form-row > label { font-weight: bold; font-size: 13px; }
.form .form-group { margin-bottom: 0; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url], .form textarea { width: 100%; max-width: 460px; }
.form textarea { max-width: 100%; }
.form.narrow { max-width: 460px; }
.form .help-text, .form [id$=_help] { color: var(--muted); font-size: 12px; }
.form-errors { list-style: none; margin: 2px 0; padding: 0; color: #b3261e; font-size: 13px; }
.has-error input, .has-error textarea { border-color: #e0786f; }
.form-links { list-style: none; padding: 0; }
.form-links li { margin: 4px 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


.tab-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: center; margin: 0 0 20px; }
.rating { display: flex; align-items: center; gap: 2px; }
.rating-label { font-size: 13px; margin-right: 4px; }
.rating .star { border: 0; background: none; cursor: pointer; font-size: 22px; line-height: 1; padding: 0 1px; color: #ccc; transition: color .15s; }
.rating .star.on { color: #e8a317; }
.rating:hover .star { color: #e8a317; }
.rating .star:hover ~ .star { color: #ccc; }
.rating .muted { margin-left: 6px; }
.button.favorite.on { background: linear-gradient(#fff2f5, #fbd6df); border-color: #e8a0b0; }

.comment-actions { font-size: 12px; text-align: right; margin: 6px 0 0; }
.comment-form textarea { width: 100%; }
#comment-form { margin-top: 20px; }
.account-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 30px; }
.avatar { border-radius: 6px; box-shadow: 1px 1px 3px #999; }

/* ----------------------------------------------------------- Grand écran */

/* Le ruban ne déborde de la page que s'il reste de la place de chaque côté. */
@media (min-width: 1080px) {
    :root { --ribbon-overhang: 20px; }
}

/* ------------------------------------------------- Tablette et mobile */

@media (max-width: 860px) {
    :root { --gutter: 18px; }
    .container { width: 100%; }
    .header-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo toggle" "panel panel"; padding: 10px 16px; row-gap: 10px; }
    .logo img { height: 42px; max-width: 100%; object-fit: contain; object-position: left; }
    .collapsible .menu-toggle { grid-area: toggle; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 22px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-weight: bold; text-transform: uppercase; cursor: pointer; }

    /* Panneau du menu : recherche, rubriques, compte. */
    .site-nav { grid-area: panel; display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
    .collapsible:not(.open) .site-nav { display: none; }
    .header-search { order: 1; width: 100%; justify-self: stretch; }
    .main-menu { order: 2; margin: 0; border-radius: 8px; }
    .main-menu::before, .main-menu::after { display: none; }
    .main-menu > ul { flex-direction: column; padding: 4px 0; }
    .main-menu > ul > li + li { border-top: 1px solid rgba(0, 0, 0, .1); }
    .main-menu > ul > li > a, .main-menu summary { min-height: 46px; padding: 0 18px; font-size: 16px; justify-content: space-between; }
    .main-menu > ul > li > a { justify-content: flex-start; }
    .account-nav { order: 3; justify-content: center; flex-wrap: wrap; }
    .account-menu { width: 100%; }
    .account-menu > summary { justify-content: center; }

    .dropdown-panel { position: static; box-shadow: none; border-radius: 0 0 8px 8px; }
    .dropdown-panel.mega { width: auto; max-width: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 8px 8px; }
    .account-menu .dropdown-panel { margin-top: 6px; border-radius: 8px; }

    .page { border-radius: 0; box-shadow: none; padding-top: 24px; }
    .site-footer { margin-top: 0; padding-inline: 18px; }
    .home-title { font-size: 30px; }
    .tab-list .hide-mobile { display: none; }
}

@media (max-width: 640px) {
    .comment { flex-direction: column; gap: 4px; }
    .comment .who { flex-basis: auto; }
    .comment .bubble::before, .comment .bubble::after { display: none; }
    .ocarina-buttons { grid-template-columns: repeat(auto-fit, 72px); }
    .ocarina-buttons a { zoom: .8; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 24px; }
    .home-title { font-size: 26px; }
}

/* ------------------------------------------------------- Éditeur de tabs */

.notice { padding: 8px 12px; border: 1px solid #f0d78c; border-radius: 6px; background: #fff8e1; }
.button.secondary { background: linear-gradient(#fdfdfd, #f0f0f0); color: #555; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.form-columns { display: flex; flex-wrap: wrap; gap: 0 20px; }
.form select { max-width: 100%; }
.current-image { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.tab-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tab-tools[hidden], .tab-tools:not(:has(> :not([hidden]))) { display: none; }
.request-cta { margin: 20px 0; }
.request-links { margin: 10px 0 20px; }
.request-links summary { cursor: pointer; font-weight: bold; }
.editor-preview { margin: 0 0 24px; padding: 10px 16px; border: 2px dashed #9ccbd9; border-radius: 10px; }
.editor-preview > h2 { margin-top: 0; color: var(--muted); font-size: 15px; }

.editor { margin: 6px 0 16px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #f6fafb; }
.tab-form:not(.editor-ready) .editor > :not(noscript) { display: none; }
.editor-types { margin: 0 auto 8px; }
.editor-palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.editor-palette > div[hidden] { display: none; }
.editor-palette > div { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; padding: 4px; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.palette-notes { flex: 1 1 520px; }
.palette-symbols { flex: 0 1 250px; }
.editor-palette button { padding: 0; border: 1px solid transparent; border-radius: 4px; background: none; cursor: pointer; line-height: 0; }
.editor-palette button:hover, .editor-palette button:focus-visible { border-color: var(--blue, #0f7ca4); background: #e6f4f8; }
.editor-palette button[aria-pressed=true] { border-color: #0f7ca4; background: #d3edf5; }
.editor-palette .sprite { zoom: .8; }
.palette-notes.solfege .sprite { zoom: .7; }

.editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; margin: 10px 0; }
.editor-modes { display: flex; }
.editor-modes .button { border-radius: 0; padding: 4px 14px; }
.editor-modes .button:first-child { border-radius: 15px 0 0 15px; }
.editor-modes .button:last-child { border-radius: 0 15px 15px 0; }
.editor-modes .button[aria-pressed=true] { background: linear-gradient(#5ad6ff, #1aa8d6); color: #fff; border-color: #1a8db3; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 2px; }
.editor-tools .tool { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.editor-tools .tool .sprite { zoom: .65; }
.editor-tools .tool:disabled { opacity: .3; cursor: default; }
.editor-tools .tool:not(:disabled):hover { filter: brightness(1.1) drop-shadow(0 0 2px #1aa8d6); }
.editor-columns { font-size: 13px; }
.editor-columns input { width: 4em; }

.editor-scroll { overflow: auto; max-height: 75vh; }
.editor-grid { min-height: 120px; outline: none; }
.editor-grid:focus-visible { box-shadow: 2px 5px 3px #404040, 0 0 0 3px #5ad6ff; }
.editor-grid li { cursor: pointer; position: relative; }
.editor-grid li.current { box-shadow: inset -2px 0 0 #3cb6da; }
.editor-grid:focus li.current { box-shadow: inset -3px 0 0 #1aa8d6; }
.editor-grid li.selected { background: rgba(90, 214, 255, .35); border-radius: 4px; }
.editor-grid li.drop-target { box-shadow: inset 3px 0 0 #e8a317; }
.editor-grid.selecting li { cursor: cell; }
.editor-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; min-height: 1.4em; margin: 0; font-size: 13px; }
.editor-status [role=status]:not(:empty):not(.quiet) { color: #8a5300; font-weight: bold; }
.editor-status .quiet { color: var(--muted); }
.editor-backups { margin: 8px 0 0; font-size: 13px; }
.editor-help { margin-top: 8px; font-size: 13px; }
.editor-help summary { cursor: pointer; }

@media (max-width: 900px) {
    .palette-notes, .palette-symbols { flex-basis: 100%; }
}

/* ------------------------------------------------------------ Impression */

@media print {
    body { background: #fff; }
    .site-header, .site-footer, footer, .flash, .converter, .tab-tools, .tab-actions,
    .comments, #comment-form, .video, .logo, .tab-text, .no-print { display: none !important; }
    .container { width: auto; }
    .page { padding: 0; box-shadow: none; background: none; }
    .fingerings-scroll { overflow: visible; }
    .part_table { box-shadow: none; border: 1px solid #ccc; padding-top: 8px; zoom: 1 !important; }
    .part_table li { break-inside: avoid; }
    a { color: inherit; text-decoration: none; }
}
