/* Print styling for the standalone Input Guide PDF. It mirrors the manual's clean print look
   (the manual's own rules live in manuals/manual/extra-print.css) but drops the manual-only
   pieces: there is no title page, table of contents, or section numbering because the guide is
   a single, deliberately short document. */

@page {
    font-family: "Roboto", sans-serif;
    font-size: 9pt;

    @bottom-center {
        content: "RhYMe Input Guide — v0.9.0";
        font-size: 8pt;
        font-family: "Roboto", sans-serif;
        color: #666;
    }
}

@media print {
    table { border-spacing: 0; break-inside: avoid; }
    th, td { padding: 1px 4px; line-height: 1.2; }

    /* The theme lets a wide table scroll sideways, which on paper cuts off its right side.
       Printed, a table takes the page width and wraps its cells to fit instead. The cell rules
       repeat the theme's selectors so they win over its larger padding and over the minimum
       width it gives every header cell, which alone makes a table of many columns too wide. */
    .md-typeset__scrollwrap,
    .md-typeset__table {
        overflow: visible;
    }

    .md-typeset table:not([class]) {
        display: table;
        width: 100%;
        max-width: 100%;
    }

    .md-typeset table:not([class]) th,
    .md-typeset table:not([class]) td {
        min-width: 0;
        padding: 0.5em 0.8em;
        overflow-wrap: break-word;
    }
    h1, h2, h3 { break-after: avoid; }

    /* Make links black like body text */
    a {
        color: #000;
        text-decoration: none;
    }
}

th, td { padding: 1px 4px; }

/* The logo opening the guide. It is pixel art, staged four times its own size and drawn without
   smoothing, so each of its pixels stays a sharp square. It stands on the slightly rounded dark box
   the user manual's title page gives it, the background it is drawn for, scaled down with it. */
.md-typeset img.document-logo {
    display: block;
    box-sizing: border-box;
    width: 6cm;
    padding: 0.3cm;
    border-radius: 0.15cm;
    background-color: #000020;
    image-rendering: pixelated;
}

/* On a beta, a BETA badge stands over the bottom right corner of the logo, as it does over the
   logo on the application's toolbars, in the logo's own colors. The logo's paragraph is as wide as
   the logo, so the badge is placed against the logo's corner. */
.md-typeset p:has(> img.document-logo) {
    position: relative;
    width: fit-content;
}

.md-typeset .beta-badge {
    position: absolute;
    right: 0.3cm;
    bottom: 0.3cm;
    padding: 0.03cm 0.13cm;
    border-radius: 0.05cm;
    background-color: #FF77CC;
    color: #000024;
    font-size: 9pt;
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0.05em;
}
