/* Extracted from `VintageStoryEconomics.html` on 2026-02-13. Keep selectors unchanged. */

body {
    background: #efe6d6;
    font-family: "EB Garamond", Georgia, serif;
    color: #2b2318;
margin: 0;
    padding: 2rem;
}

.book {
    width: 780px;
    margin: 0 auto;
background: linear-gradient(180deg, #fbf6ef 0%, #f7efe0 100%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    padding: 48px 60px;
    border: 1px solid rgba(0,0,0,0.06);
}

.cover {
text-align: center;
    margin-bottom: 24px;
}

.title {
    font-family: "Playfair Display", serif;
    font-size: 40px;
margin: 8px 0;
}

.subtitle {
    font-size: 14px;
color: #5a4b3b;
    margin-bottom: 4px;
}

h2 {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    margin-top: 24px;
    color: #3b2f24;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    padding-bottom: 8px;
}

h3 {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    margin-top: 12px;
    color: #483428;
}

p {
    line-height: 1.65;
    font-size: 16px;
    margin: 0 0 1em 0;
    text-align: justify;
}

.toclist {
    background: transparent;
    border: none;
    font-family: monospace;
font-size: 14px;
}

.colophon ul {
    padding-left: 1em;
}

@media print {
    body {
        background: white;
  padding: 0;
    }

    .book {
        box-shadow: none;
   border: none;
    width: auto;
   padding: 24mm;
    margin: 0;
    }

    .chapter, .preface, .toc {
    page-break-before: always;
    }

    @page {
    size: A5;
    margin: 18mm;
    }
}

/* Shared top bar styling */
#topBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    font-size: 14px;
    gap: 12px;
}

#topBar a, #topBar button {
color: #fff;
    text-decoration: none;
    margin-right: 16px;
    background: none;
    border: none;
    cursor: pointer;
}

#topBar .right {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

body.withTopBar {
    padding-top: 72px;
}

.balance-chip {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    white-space: nowrap;
}

.balance-you.positive {
    color: #2ecc71;
}

.balance-you.negative {
    color: #ff5252;
}

.balance-target {
    color: #f0c200;
}

#orderPopup {
    position: absolute;
    top: 52px;
    right: 100px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    display: none;
    min-width: 260px;
    z-index: 1100;
    color: #000;
}

#orderStatusBall {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #777;
    cursor: pointer;
}

.status-pending {
    background: #f0c200 !important;
}

.status-error {
    background: #e74c3c !important;
}

.status-none {
    background: #777 !important;
}

.order-link {
    color: #66c;
text-decoration: underline;
    cursor: pointer;
}
