/* ========== Core layout ========== */
.cpress{
  font-family:inherit;
  line-height:1.65;
  font-size:0.95em;              /* tad smaller lyrics + chords */

  /* diagram sizing vars */
  --cpress-diagram: 88px;
  --cpress-gap: .35rem;

  position: relative;            /* NEW – anchor for the print button */
}

/* Single Song page: reduce the default block-gap above the shortcode output
   (closes the empty space between the metadata line and the PRINT/SAVE row) */
body.single-song:not(.cpress-print-view) .cpress{ margin-top:-.8rem; }
@media (max-width:640px){ body.single-song:not(.cpress-print-view) .cpress{ margin-top:-.6rem; } }

/* Slightly wider song area on larger screens (helps the right-side buttons breathe) */
@media (min-width: 1100px){
  .cpress{ max-width: 1100px; margin-left:auto; margin-right:auto; }
}

.cpress-section{margin-top:1rem;margin-bottom:.35rem;font-weight:700;letter-spacing:.2px}
.cpress-line{white-space:pre-wrap;margin:.1rem 0}

/* ===== Chords above (toggle) ===== */
.cpress-lyrics-above{display:none;}
.cpress.cpress-above-on .cpress-lyrics-inline{display:none;}
.cpress.cpress-above-on .cpress-lyrics-above{display:block;}

.cpress-line-above{white-space:normal;margin:.15rem 0;}
.cpress-line-above .cpress-seg{display:inline-flex;flex-direction:column;align-items:flex-start;vertical-align:bottom;}
.cpress-line-above .cpress-seg-text{white-space:pre;}


/* Inline chord chips (Stu’s formatting) */
.cpress-chord{
  background:#fff3b0;
  border-radius:6px;
  padding:0 .35rem;
  font-weight:700;
  border-bottom:none;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
  display:inline-block
}

/* Song meta injected above content on single-song (if used) */
.song-meta{margin:.5rem 0 1.25rem;color:#6b7280}

/* Hide theme author/date on Song CPT (KEEP post-terms visible) */
body.single-song .wp-block-post-author,
body.single-song .wp-block-post-author-name,
body.single-song .wp-block-post-date{display:none !important}

/* ===== Artist & Decade: inline and aligned with content/title ===== */
body.single-song .taxonomy-artist.wp-block-post-terms,
body.single-song .taxonomy-decade.wp-block-post-terms{
  display:inline-block;
  vertical-align:baseline;
  margin:0 !important;
  padding:0;
  font-size:0.9rem;
  color:#6b7280;
  line-height:1.3;
}
body.single-song .wp-block-group:has(> .taxonomy-artist.wp-block-post-terms),
body.single-song .wp-block-group:has(> .taxonomy-decade.wp-block-post-terms){
  max-width: var(--wp--style--global--content-size);
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0;
  padding-right:0;
}
body.single-song .wp-block-post-terms{ margin-left:0 !important; }

/* ===== Diagrams: max 6 per row ===== */
.cpress-diagrams{
  display:flex; flex-wrap:wrap; gap:var(--cpress-gap);
  max-width: calc(6 * var(--cpress-diagram) + 5 * var(--cpress-gap));
}
.cpress-diagram{ width:var(--cpress-diagram); height:auto; }
@media (max-width:600px){ .cpress{ --cpress-diagram:72px; } }

/* ========== Toolbar (clean + compact) ========== */
.cpress-toolbar{
  position:static;                /* no sticky */
  background:transparent;         /* clean page look */
  border:none;
  box-shadow:none;
  display:flex; flex-wrap:wrap; align-items:center; gap:.6rem .8rem;
  margin:.25rem 0 1rem;
  padding:0;
  font-size:.9rem;                /* smaller */
  line-height:1.2;
  color:#111827;                  /* darker text */
  font-weight:600;                /* slightly heavier */
}
.cpress-toolbar .left,
.cpress-toolbar .right{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}
.cpress-toolbar select,
.cpress-toolbar button,
.cpress-toolbar label,
.cpress-toolbar input{font:inherit}

/* Key dropdown — minimal grey input */
.cpress-toolbar .cpress-key-select{
  -webkit-appearance:none; appearance:none;
  background:#f3f4f6;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:.45rem .65rem;
  line-height:1.2;
  outline:none;
}
.cpress-toolbar .cpress-key-select:hover{ background:#eceff3; }
.cpress-toolbar .cpress-key-select:focus{ box-shadow:0 0 0 2px rgba(59,130,246,.25); }

/* Spelling toggle — tiny segmented pair (BUTTED TOGETHER) */
.cpress-toolbar .cpress-spell{
  display:inline-flex; align-items:stretch; gap:0 !important; /* no space between buttons */
}
.cpress-toolbar .cpress-spell > span:first-child{
  display:inline-block; margin-right:.35rem; /* spacing after 'Spelling:' label */
}
.cpress-toolbar .cpress-spell button{
  background:#f3f4f6;
  border:1px solid #d1d5db;
  margin:0 !important;                 /* kill any theme margins */
  padding:.35rem .55rem;
  line-height:1;
  cursor:pointer;
}
.cpress-toolbar .cpress-spell .cpress-spell-flat{
  border-radius:8px 0 0 8px;
  border-right:0;                       /* share border with the next button */
}
.cpress-toolbar .cpress-spell .cpress-spell-sharp{
  border-radius:0 8px 8px 0;
  border-left:0;                        /* eliminate seam */
}
.cpress-toolbar .cpress-spell button:hover{ background:#e5e7eb; }
.cpress-toolbar .cpress-spell button.active{ background:#e5e7eb; }

/* Show diagrams / Nashville labels kept simple */
.cpress-toolbar .cpress-diag,
.cpress-toolbar .cpress-nash{
  display:inline-flex; align-items:center; gap:.35rem; color:#111827;
}

/* Transpose buttons — one grey segmented control */
.cpress-toolbar .cpress-btnrow{
  display:inline-flex; overflow:hidden;
  background:#f3f4f6;
  border:1px solid #d1d5db;
  border-radius:10px;
}
.cpress-toolbar .cpress-btnrow button{
  background:transparent; border:0; margin:0;
  padding:.45rem .65rem; line-height:1.1; cursor:pointer;
}
.cpress-toolbar .cpress-btnrow button + button{ border-left:1px solid #d1d5db; }
.cpress-toolbar .cpress-btnrow button:hover{ background:#e5e7eb; }
.cpress-toolbar .cpress-btnrow button:active{ background:#dfe3e8; }
.cpress-toolbar .cpress-btnrow button:focus{ outline:none; box-shadow:inset 0 0 0 2px rgba(59,130,246,.25); }



/* Songbook action button (moved into toolbar next to Reset) */
.cpress-songbook-holder{ display:none; }

.cpress-toolbar .cpress-songbook-form{ margin:0; display:inline-flex; }
.cpress-toolbar .cpress-songbook-btn,
.cpress-toolbar .cpress-songbook-form .cpress-songbook-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.45rem 1.05rem;
  background:#fb923c;
  color:#ffffff !important;
  border:0;
  border-radius:6px;
  font-weight:600;
  font-size:0.92rem;
  line-height:1.1;
  cursor:pointer;
  white-space:nowrap;
}
.cpress-toolbar .cpress-songbook-btn:hover,
.cpress-toolbar .cpress-songbook-btn:focus{
  background:#f97316;
}
/* gap from the Reset segmented control */
.cpress-toolbar .cpress-songbook-form,
.cpress-toolbar .cpress-songbook-btn{ margin-left:.6rem; }
/* Top & bottom rows inside the toolbar */
.cpress-toolbar .cpress-top{
  display:flex; flex-wrap:wrap; align-items:center; gap:.6rem .8rem;
}
.cpress-toolbar .cpress-toggles{
  display:flex; align-items:center; gap:1rem; margin-top:.25rem;
}

/* ===== "All Songs A-Z" chip link on single Song pages ===== */
body.single-song .cpress-back-chip-wrap{
  max-width: var(--wp--style--global--content-size, 960px);
  margin: 0 auto 0.75rem auto;
}
body.single-song .cpress-back-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border-radius:999px;
  padding:0.25rem 0.75rem;
  font-size:0.78rem;
  border:1px solid #f97316;
  background:#ffedd5;
  color:#111827;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
}
body.single-song .cpress-back-chip:focus{
  outline:2px solid #f97316;
  outline-offset:2px;
}

/* ===== In-song Print tools (Songsters only) ===== */
.cpress-print-toolbar{
  margin: 1.5rem 0 0;
  text-align: right;
}

.cpress-print-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.cpress-print-btn:hover{
  background: #020617;
}

/* UG-style print panel card */
.cpress-print-panel{
  display: none;
  margin-top: 0.75rem;
}

.cpress-print-panel-open{
  display: block;
}

.cpress-print-panel-inner{
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 0.9rem 1rem 1rem;
  background: #f9fafb;
  font-size: 0.9rem;
}

/* On wider screens, let the panel hug the right side like a sidebar */
@media (min-width: 900px){
  .cpress-print-panel-inner{
    max-width: 260px;
    margin-left: auto;
  }
}

.cpress-print-panel-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.cpress-print-panel-header strong{
  font-weight: 600;
}

.cpress-print-close{
  border: none;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.cpress-print-panel-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.35rem 0;
}

.cpress-print-label{
  font-size: 0.9rem;
}

.cpress-print-controls{
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cpress-print-font-dec,
.cpress-print-font-inc{
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  line-height: 1;
}

.cpress-print-font-value{
  min-width: 3rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Footer with big yellow Print + pale PDF button */
.cpress-print-panel-footer{
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cpress-print-now{
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: #facc15;       /* yellow like UG */
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.cpress-print-now:hover{
  background: #eab308;
}

.cpress-print-pdf{
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.cpress-print-pdf:hover{
  background: #f3f4f6;
}


/* ===== Print gate modal (for non-members) ===== */
.cpress-print-gate{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.cpress-print-gate-open{
  display: block;
}

.cpress-print-gate-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.45);
}

.cpress-print-gate-dialog{
  position: relative;
  max-width: 420px;
  margin: 12vh auto 0;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15,23,42,0.35);
  text-align: center;
}

.cpress-print-gate-dialog h3{
  margin: 0 0 .5rem;
  font-size: 1.1rem;
}

.cpress-print-gate-dialog p{
  margin: 0.15rem 0;
  font-size: 0.95rem;
}

.cpress-print-gate-actions{
  margin-top: .75rem;
}

.cpress-print-gate-close{
  position: absolute;
  top: .5rem;
  right: .75rem;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}


/* ========== Print tweaks ========== */
@media print{
  .cpress-toolbar{display:none !important}
  .cpress{line-height:1.5}
  /* Respect the user's chosen diagram size (print view sets --cpress-diagram). */
  .cpress-diagram{width:var(--cpress-diagram);height:auto;}
  body{color:#000}
}
/* ===== Membership CTA on song pages ===== */
.cpress-membership-cta{
  margin-top: 2rem;
  padding: 1.25rem 1rem;
  border-radius: 0.75rem;
  background: #fff7ed;                 /* soft orange */
  border: 1px solid #fed7aa;
  text-align: center;
  font-family: inherit;
}

.cpress-membership-btnrow{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:0.5rem;
  margin-top:0.75rem;
}

.cpress-membership-btn{
  display:inline-block;
  padding:0.6rem 1.4rem;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  color:#fff;
  border:none;
  background:#ea580c; /* Intermediate (default orange) */
}
.cpress-membership-btn:hover{ background:#c2410c; }

/* Beginner (blue-green / closer to site teal) */
.cpress-membership-btn--beginner{ background:#0d9488; }
.cpress-membership-btn--beginner:hover{ background:#0f766e; }

/* Advanced (purple) */
.cpress-membership-btn--advanced{ background:#7c3aed; }
.cpress-membership-btn--advanced:hover{ background:#6d28d9; }

/* Explicit Intermediate modifier (keeps orange) */
.cpress-membership-btn--intermediate{ background:#ea580c; }
.cpress-membership-btn--intermediate:hover{ background:#c2410c; }

.cpress-membership-login{
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.cpress-membership-login a{
  color: #1d4ed8;
  text-decoration: underline;
}


/* ===== Ultimate Guitar-style control panel (print view only) ===== */
/* Print preview: hide redundant 'Show diagrams' toggle in the inline toolbar (use the print settings panel instead). */
body.cpress-print-view .cpress-toolbar .cpress-diag{display:none !important;}

body.cpress-print-view .cpress-ugbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 10px 12px;
  background: rgba(243,244,246,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}
body.cpress-print-view .cpress-ugbar-inner{
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
body.cpress-print-view .cpress-ug-settings-btn{
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
body.cpress-print-view .cpress-ug-settings-btn:hover{
  background: #f9fafb;
}
body.cpress-print-view .cpress-ug-panel{
  position: absolute;
  top: 52px;
  right: 12px;
  width: min(420px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(15,23,42,0.25);
  padding: 12px;
  display: none;
}
body.cpress-print-view .cpress-ug-panel.is-open{
  display: block;
}
body.cpress-print-view .cpress-ug-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px;
}
body.cpress-print-view .cpress-ug-label{
  font-size: 0.8rem;
  color: #6b7280;
  width: 78px;
  flex: 0 0 auto;
}
body.cpress-print-view .cpress-ug-key{
  flex: 1 1 auto;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  background: #ffffff;
}
body.cpress-print-view .cpress-ug-spell{
  display: inline-flex;
  gap: 6px;
}
body.cpress-print-view .cpress-ug-spell button{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}
body.cpress-print-view .cpress-ug-spell button[aria-pressed="true"]{
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}
body.cpress-print-view .cpress-ug-btnrow{
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
body.cpress-print-view .cpress-ug-btnrow button{
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
body.cpress-print-view .cpress-ug-btnrow button:hover{
  background: #f3f4f6;
}
body.cpress-print-view .cpress-ug-size{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.cpress-print-view .cpress-ug-size-dec,
body.cpress-print-view .cpress-ug-size-inc{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}
body.cpress-print-view .cpress-ug-size-val{
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
body.cpress-print-view .cpress-ug-toggles{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px 4px 4px;
}
body.cpress-print-view .cpress-ug-toggles label{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}
body.cpress-print-view .cpress-ug-actions{
  display: flex;
  gap: 10px;
  padding: 10px 4px 4px;
}
body.cpress-print-view .cpress-ug-print{
  flex: 1 1 auto;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: #facc15;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
}
body.cpress-print-view .cpress-ug-print:hover{
  background: #eab308;
}
body.cpress-print-view .cpress-ug-pdf{
  flex: 1 1 auto;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}
body.cpress-print-view .cpress-ug-pdf:hover{
  background: #f3f4f6;
}
/* ===== Top inline Print button (Songsters only) ===== */
.cpress-top-print-wrap{
  /* In-flow action cluster near the top of the song.
     Keeps desktop tidy and prevents overlap on mobile. */
  position: static;
  margin: 0.35rem 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
}

/* Songbook button sits alongside Print as a secondary action */
.cpress-top-print-wrap .cpress-songbook-form{ margin:0; display:flex; }
.cpress-top-print-wrap .cpress-songbook-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  min-height: 42px;
  background: #ffffff;
  color: #fb923c !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid #fb923c;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.cpress-top-print-wrap .cpress-songbook-btn:hover,
.cpress-top-print-wrap .cpress-songbook-btn:focus{
  background: #fff7ed;
}

.cpress-top-print-btn{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;      /* bigger button */
  min-height: 42px;
  background: #fb923c;           /* solid orange */
  color: #ffffff !important;
  border-radius: 6px;            /* slightly rounded, almost square */
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cpress-top-print-btn:hover,
.cpress-top-print-btn:focus{
  background: #f97316;           /* slightly darker on hover */
  text-decoration: none;
}

.cpress-top-print-icon{
  display: inline-flex;
  align-items: center;
}

.cpress-top-print-svg{
  width: 18px;
  height: 18px;
  fill: currentColor;            /* uses the button's text colour (white) */
}

.cpress-top-print-text{
  line-height: 1;
}

/* Mobile: 2-up buttons (thumb-friendly). If only one button exists, it will span full width. */
@media (max-width: 640px){
  .cpress-top-print-wrap{
    justify-content: space-between;
    width: 100%;
  }
  .cpress-top-print-wrap > a,
  .cpress-top-print-wrap > form,
  .cpress-top-print-wrap > button{
    flex: 1 1 12rem;
    min-width: 0;
  }
  /* Scope width:100% only to the legacy top-print-wrap layout.
     (The new .cpress-actions-row layout wants tight, inline buttons on mobile.) */
  .cpress-top-print-wrap .cpress-top-print-btn,
  .cpress-top-print-wrap .cpress-songbook-btn{
    width: 100%;
  }
}


/* ===== Level pill (Difficulty chip) ===== */
.cpress-level-pill{
  display:inline-block;
  margin-left:0.35rem;
  padding:0.1rem 0.55rem;
  border-radius:999px;
  font-weight:700;
  font-size:0.85em;
  border:1px solid #e5e7eb;
  background:#f3f4f6;
  color:#111827;
}
.cpress-level-pill--beginner{ border-color:#14b8a6; background:#ccfbf1; }
.cpress-level-pill--intermediate{ border-color:#fdba74; background:#ffedd5; }
.cpress-level-pill--advanced{ border-color:#d8b4fe; background:#f3e8ff; }


/* ===== Songbook (Phase 1) ===== */
.ukc-songbook-page .wp-block-post-title,
.ukc-songbook-page .entry-title{
  display:none !important;
}

.ukc-songbook{
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}
.ukc-songbook__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.75rem;
  flex-wrap:nowrap;
}
.ukc-songbook__title{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  flex: 1 1 auto;
  min-width: 0;
}
.ukc-songbook__name-row{
  display:flex;
  align-items:center;
  gap:.55rem;
  flex-wrap:wrap;
}
.ukc-songbook__name{
  font-weight:800;
  /* Make the songbook name read like the primary title of the card */
  font-size:clamp(2.0rem, 3.2vw, 2.8rem);
  line-height:1.05;
  letter-spacing:-0.01em;
}
.ukc-songbook__edit-btn{
  border:1px solid #e5e7eb;
  background:#f9fafb;
  border-radius:999px;
  padding:.22rem .6rem;
  font-weight:650;
  font-size:.85rem;
  cursor:pointer;
}
.ukc-songbook__edit-btn:hover{ background:#f3f4f6; }
.ukc-songbook__edit-form{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
}
.ukc-songbook__edit-input{
  min-width: 200px;
  max-width: 100%;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:.35rem .55rem;
  font-size:clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight:800;
  flex: 1 1 200px;
}
.ukc-songbook__edit-save,
.ukc-songbook__edit-cancel{
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:10px;
  padding:.35rem .6rem;
  font-weight:650;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  /* Defensive overrides: some themes (esp. mobile) hide button text via font/color rules */
  color:#111827 !important;
  -webkit-text-fill-color:#111827;
  font-size:1rem !important;
  line-height:1.1;
  text-indent:0 !important;
}
.ukc-songbook__edit-save:hover,
.ukc-songbook__edit-cancel:hover{ background:#f9fafb; }
.ukc-songbook__edit-msg{ color:#6b7280; font-size:.9em; display:inline-block; min-width:70px; }
.ukc-songbook__save-status{ color:#6b7280; font-size:.9em; display:inline-block; min-width:70px; }
.ukc-songbook__actions{ display:flex; align-items:flex-start; flex: 0 0 auto; }
.ukc-songbook__print{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.55rem .85rem;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  background:#f97316;
  color:#fff;
  font-weight:800;
  text-decoration:none;
}
.ukc-songbook__print:hover{ filter: brightness(0.97); }

@media (max-width: 600px){
  .ukc-songbook__header{ flex-wrap:wrap; }
  .ukc-songbook__edit-save,
  .ukc-songbook__edit-cancel{
    min-height:44px;
    padding:.55rem .9rem;
  }
}
.ukc-songbook__count{ color:#6b7280; font-size:.95em; }
.ukc-songbook__list{ margin:0; padding-left:0; list-style:none; }
.ukc-songbook__item{ display:flex; align-items:center; justify-content:flex-start; gap:.75rem; padding:.55rem .15rem; }
.ukc-songbook__link{ text-decoration:none; flex:1 1 auto; min-width:0; }

/* Drag handle (replaces up/down arrows) */
.ukc-songbook__drag-handle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  border-radius:10px;
  color:#6b7280;
  cursor:grab;
  user-select:none;
  touch-action:none;
  line-height:1;
  font-weight:800;
}
.ukc-songbook__drag-handle:active{ cursor:grabbing; }

/* jQuery UI Sortable helpers */
.ukc-songbook__placeholder{
  border:2px dashed #d1d5db;
  border-radius:12px;
  background:#f9fafb;
  height:52px;
  margin:.25rem 0;
}
.ukc-songbook__dragging-item{
  background:#fff;
  border-radius:12px;
  box-shadow:0 12px 26px rgba(0,0,0,.10);
}

/* While dragging: prevent accidental text selection */
body.ukc-songbook--dragging{ user-select:none; }
.ukc-songbook__move button{
  border:1px solid #e5e7eb;
  background:#f9fafb;
  border-radius:10px;
  padding:.15rem .45rem;
  line-height:1.2;
  cursor:pointer;
}
.ukc-songbook__move button:hover{ background:#f3f4f6; }

.ukc-songbook-btn{ margin: .5rem 0; }
.ukc-songbook-btn__button{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .85rem;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-weight:700;
  cursor:pointer;
}
.ukc-songbook-btn__button:hover{ background:#f9fafb; }


/* ===== Actions row (PRINT + SAVE/UNSAVE) ===== */
.cpress-actions-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.5rem;
  /* Sit close under the metadata line */
  margin:0 0 .45rem;
  padding-bottom:.1rem;
  flex-wrap:wrap;
}
.cpress-actions-row .cpress-songbook-form{ margin:0; display:inline-flex; }

.cpress-actions-row .cpress-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  height:44px;
  padding:0 12px;
  border-radius:6px;
  font-weight:600;
  font-size:0.95rem;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.4px;
  white-space:nowrap;
  cursor:pointer;
  transition:color .15s ease, background .15s ease, border-color .15s ease;
  text-decoration:none;
  border:1px solid transparent;
}

.cpress-actions-row .cpress-top-print-btn{
  background:#f97316;
  color:#fff;
  border-color:#f97316;

  padding:0 10px;
}
.cpress-actions-row .cpress-top-print-btn:hover,
.cpress-actions-row .cpress-top-print-btn:focus{
  background:#ea580c;
  text-decoration:none;
}

.cpress-actions-row .cpress-save-btn{
  background:transparent;
  border:1px solid transparent;
  border-radius:0;
  padding:0 8px;
  color:#111827;
}
.cpress-actions-row .cpress-save-btn:hover,
.cpress-actions-row .cpress-save-btn:focus{
  background:transparent;
  color:#f97316;
  text-decoration:none;
}
.cpress-actions-row .cpress-save-btn:focus-visible{
  outline:2px solid currentColor;
  outline-offset:2px;
}
.cpress-actions-row .cpress-save-svg{
  width:20px;
  height:20px;
  fill:currentColor;
  display:block;
}
.cpress-actions-row .cpress-save-text{
  display:inline-block;
}


.cpress-actions-row .cpress-top-print-svg{
  width:18px;
  height:18px;
  fill:currentColor;
  display:block;
}

/* Mobile: keep PRINT + SAVE side-by-side (tight like desktop) */
@media (max-width: 640px){
  .cpress-actions-row{
    flex-wrap:nowrap;
    gap:.85rem;
    margin:0 0 .4rem;
    padding-bottom:.08rem;
  }
  .cpress-actions-row .cpress-action-btn{
    height:42px;
  }
  .cpress-actions-row .cpress-top-print-btn{
    width:auto !important;
  }
  .cpress-actions-row .cpress-save-btn{
    width:auto !important;
  }
}

