/* The offline page (offline.html) and the offline-books parts of js/offline.js (docs/APP.md). No framework: it has to
   look right with nothing else loaded. */
.jo-body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0f253d; background: #f7f8fa; }
.jo-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.25rem; background: #0f253d; color: #fff; }
.jo-brand { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; }
.jo-main { max-width: 40rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.jo-main h1 { font-size: 1.75rem; margin: 0 0 0.5rem; }
.jo-main h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.jo-button { font: inherit; padding: 0.55rem 1.1rem; border-radius: 0.4rem; border: 1px solid #0f253d; background: #0f253d; color: #fff; cursor: pointer; }
.jo-button:focus-visible, .jo-link:focus-visible { outline: 3px solid #14b8a6; outline-offset: 2px; }
.jo-note { color: #4b5563; }

/* A saved book, here and on My books. */
.jo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.jo-item { display: flex; gap: 0.85rem; align-items: center; padding: 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; background: #fff; }
.jo-cover { width: 3rem; height: 4.5rem; object-fit: cover; border-radius: 0.2rem; background: #e5e7eb; flex: none; }
.jo-text { flex: 1; min-width: 0; }
.jo-title { font-weight: 600; color: #0f253d; text-decoration: none; }
.jo-title:hover { text-decoration: underline; }
.jo-meta { display: block; font-size: 0.875rem; color: #4b5563; }
.jo-link { font: inherit; font-size: 0.9rem; background: none; border: 0; padding: 0; color: #b42318; cursor: pointer; text-decoration: underline; }

/* The Save for offline control on a book's page. */
.jo-save { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.75rem; }
.jo-save label { font-size: 0.9rem; }
.jo-progress { width: 10rem; height: 0.5rem; }
.jo-status { font-size: 0.9rem; color: #4b5563; }
