/* The club file reader: Views/ClubFiles/Read.cshtml. Standalone, like print-sheet.css, because the
   page has no club shell. */

:root {
    color-scheme: light;
    --ink: #08111f;
    --muted: #516070;
    --line: #d7e0ea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #eef3f7;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.reader-toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

/* Takes what the buttons leave, and a long name ends in an ellipsis rather than pushing Download
   off a phone screen. */
.reader-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #1f2937;
    border-radius: 6px;
    color: #111827;
    background: #ffffff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn[hidden] {
    display: none;
}

.reader-pages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding: 12px;
}

.reader-status {
    margin: 32px 16px;
    color: var(--muted);
    text-align: center;
}

.reader-page {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(8, 17, 31, 0.18);
}

.reader-page canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 575.98px) {
    .reader-pages {
        gap: 8px;
        padding: 8px 0;
    }
}
