/* Jukebox Title Maker (/jukebox/titles) - phone fixes, screen only. Linked only from Pages/Jukebox/Titles.razor.
   Print (8.5x11 letter sheet from app.css @media print) is untouched: everything narrow-screen sits in "@media screen",
   and the long page-header text is the one shown in print. */

.title-maker .page-header-text .phx-short { display: none; }

@media screen and (max-width: 700px) {
    /* Sheet header: logo + short "JUKEBOX TITLE STRIPS" on one line, scaled to the width, never past the edge. */
    .title-maker .page-block { padding: 1rem 0.6rem 1.25rem; }
    .title-maker .page-header-wrap { overflow: hidden; }
    .title-maker .page-header,
    .title-maker .page-header > tbody,
    .title-maker .page-header tr { display: flex; align-items: center; justify-content: center; max-width: 100%; min-width: 0; }
    .title-maker .page-header td { display: block; }
    .title-maker .page-header-logo-cell { flex: none; width: auto; padding-right: 0.4rem !important; }
    .title-maker .page-header-logo { max-height: 24px; max-width: 72px; }
    .title-maker .page-header-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: clamp(11px, 3.7vw, 15px);
        letter-spacing: 0.02em;
    }
    .title-maker .page-header-text .phx-long { display: none; }
    .title-maker .page-header-text .phx-short { display: inline; }
    .title-maker .page-footer-bar { font-size: 0.68rem; overflow-wrap: anywhere; }

    /* "Blank song sheets": the global .form-check flex row put the label and its help text in two squeezed columns. */
    .title-maker .tm-blank-songs { flex-wrap: wrap; }
    .title-maker .tm-blank-songs .form-check-label { flex: 1 1 0; min-width: 0; }
    .title-maker .tm-blank-songs .form-text { flex: 1 1 100%; margin-top: 0.25rem; }
}

/* On-screen strip cards on small phones: long song titles wrapped into the next row and ran under the A-SIDE / B-SIDE
   tags. Let the card grow and scale the type a little (screen only; print keeps its fixed 3in x 1in strips). */
@media screen and (max-width: 430px) {
    .title-maker .title-strip { height: auto; min-height: 88px; }
    .title-maker .strip-a,
    .title-maker .strip-b {
        min-height: 30px;
        padding: 9px 12px 3px;
        line-height: 1.15;
        text-align: center;
        font-size: clamp(11px, 3.6vw, 15px) !important;
        overflow-wrap: anywhere;
    }
    .title-maker .strip-b { padding: 3px 12px 9px; }
    .title-maker .strip-center { min-height: 28px; height: auto; padding: 2px 30px; line-height: 1.15; text-align: center; }
    .title-maker .side-label { top: 1px; }
    .title-maker .side-label-b { top: auto; bottom: 1px; }
}