.advent-book-badge { display: inline-flex; align-items: center; max-width: 100%; margin: 0 0 10px; padding: 4px 9px; border-radius: 5px; background: #274b45; color: #f5eee0; font: 500 11px/1.4 Inter, sans-serif; }
.advent-detail-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 6px 0 16px; color: var(--gold, #bfa76c); font: 400 12px/1.5 Inter, sans-serif; }
.advent-detail-inline .advent-book-badge { margin: 0; }
.advent-detail-copy { margin: 0 0 18px; color: inherit; font-size: 13px; line-height: 1.65; }
.advent-detail-copy p { margin: 0; }
.advent-detail-copy p + p { margin-top: 8px; }
.popup.book-detail-redesigned .advent-detail-inline .advent-book-badge { background: var(--book-theme-badge-bg, #274b45); color: var(--book-theme-badge-text, #f5eee0) !important; }
.advent-detail-inline [data-advent-clock]:empty, .advent-popup-clock:empty { display: none; }
.advent-home:empty { display: none; }
.advent-home { width: min(100% - 48px, 1200px); margin: 36px auto 64px; }
.advent-feature { display: grid; grid-template-columns: minmax(130px, .55fr) minmax(0, 1.45fr); gap: 26px 40px; align-items: center; box-sizing: border-box; padding: clamp(24px, 4vw, 44px); border-radius: 16px; background: #eee5d5; color: #263741; font-family: Inter, sans-serif; }
.advent-feature--archive { margin: 26px 0; }
.advent-feature-cover { display: block; width: 100%; max-width: 210px; margin: 0 auto; }
.advent-feature-cover img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 7px 10px 22px #192c362e; }
.advent-feature h2 { margin: 0 0 12px; color: #20323e; font: 500 clamp(28px, 3.5vw, 42px)/1.12 "Cormorant Garamond", Georgia, serif; text-wrap: balance; }
.advent-feature h2 a { color: inherit; text-decoration: none; }
.advent-feature p { margin: 10px 0; color: #344650; font-size: 14px; line-height: 1.65; }
.advent-feature .advent-feature-label { color: #735835; font-size: 12px; font-weight: 600; }
.advent-feature .advent-feature-summary { color: #53616a; font-size: 12px; }
.advent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.advent-feature .advent-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; box-sizing: border-box; padding: 10px 16px; border: 0; border-radius: 6px; background: #243d49; color: #fff8ec; font: 500 12px/1.4 Inter, sans-serif; text-decoration: none; }
.advent-feature .advent-button:hover { background: #3d5964; }
.advent-calendar-wrap { grid-column: 1 / -1; }
.advent-calendar-heading { margin: 0 0 12px; color: inherit; font: 500 14px/1.4 Inter, sans-serif; }
.advent-calendar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.advent-day { display: grid; place-items: center; min-width: 0; min-height: 32px; aspect-ratio: 1.5; border-radius: 4px; background: #ffffff73; color: #635d53; font: 500 14px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.advent-day.is-readable { background: #25424e; color: #fff5e1; }
.advent-clock-date { display: inline-block; margin-right: 10px; vertical-align: baseline; }
.advent-clock-digits { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-variant-numeric: tabular-nums; }
.advent-clock-unit { display: inline-flex; align-items: baseline; gap: 4px; }
.advent-clock-value, .advent-clock-unit-label { display: inline; visibility: visible; opacity: 1; font-size: inherit; color: inherit; }
.advent-feature-clock { margin-top: 14px; color: #263741; font-size: 12px; }
.advent-feature-clock .advent-clock-date { display: block; margin-bottom: 9px; }
.advent-feature-clock .advent-clock-digits { display: flex; gap: 8px; }
.advent-feature-clock .advent-clock-unit { padding: 9px 12px; border-radius: 5px; background: #fff8eebf; }
.advent-feature-clock .advent-clock-value { font-size: 24px; line-height: 1; font-weight: 500; }
.advent-feature-clock .advent-clock-unit-label { font-size: 11px; line-height: 1.2; }
.advent-feature-clock:empty { display: none; }
.advent-popup { position: fixed; z-index: 940; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); box-sizing: border-box; width: 306px; max-width: calc(100vw - 32px); max-height: min(330px, calc(100dvh - 96px)); overflow-y: auto; padding: 17px; background: #f3ecdf; color: #263741; border-radius: 10px; box-shadow: 0 9px 30px #0003; font-family: Inter, sans-serif; animation: advent-appear .2s ease both; }
.advent-close { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: #fff8ec; background: #243d49; font: 400 21px/1 Inter, sans-serif; cursor: pointer; }
.advent-popup-intro { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding-right: 13px; align-items: start; }
.advent-popup-intro img { width: 48px; height: auto; margin-top: 3px; border-radius: 2px; box-shadow: 2px 3px 7px #243d4926; }
.advent-popup h2 { margin: 0 0 7px; color: #243d49; font: 500 21px/1.1 "Cormorant Garamond", Georgia, serif; text-wrap: balance; }
.advent-popup p { margin: 0; color: #43535d; font-size: 11px; line-height: 1.5; }
.advent-popup p.advent-popup-label { font-weight: 600; }
.advent-popup p.advent-popup-copy { margin-top: 12px; }
.advent-popup-clock { margin-top: 11px; font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.advent-popup a.advent-button { display: flex; align-items: center; justify-content: center; min-height: 34px; margin-top: 10px; padding: 6px 12px; box-sizing: border-box; border: 0; border-radius: 5px; background: #243d49; color: #fff8ec; font: 500 12px/1.4 Inter, sans-serif; text-decoration: none; }
.advent-popup a.advent-button:hover { background: #3d5964; }
.advent-button:focus-visible, .advent-close:focus-visible { outline: 3px solid #a47a38; outline-offset: 3px; }
.book-reader-preview p.indent { text-indent: 1.25em; }
.book-reader-preview p.no-indent { text-indent: 0; }
.book-blurb-content p, .book-excerpt-content p, .book-reader-preview p, .book-reader-preview div { margin-block: 0 !important; }
.book-blurb-content p:empty, .book-excerpt-content p:empty, .book-reader-preview p:empty, .book-reader-preview div:empty, .book-reader-preview .book-scene-break { min-height: 1lh; }
.book-reader-preview .book-scene-break { text-indent: 0; }
.expose-image-stack .expose-image-caption { grid-column: 1 / -1; margin: 0; color: inherit; font-size: 12px; line-height: 1.5; }
@keyframes advent-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .advent-popup { width: 284px; padding: 15px; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); } }
@media (max-width: 700px) { .advent-home { width: calc(100% - 32px); margin: 28px auto 44px; } .advent-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px 20px; } .advent-feature-cover { max-width: 145px; } .advent-calendar { grid-template-columns: repeat(8, minmax(0, 1fr)); } .advent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .advent-popup { animation: none; } }
