[hidden] { display: none !important; }
main { padding-top: 24px; }
.book-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.book-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 32px); }
.book-heading .meta { margin: 0; }
.book-filters { display: flex; gap: 16px; margin: 20px 0 16px; }
.book-filters label:first-child { flex: 1; }
.book-label { display: block; font-size: 12px; color: var(--content-muted); margin-bottom: 6px; }
.book-filters input, .book-filters select { width: 100%; min-height: 44px; padding: 10px 14px; color: var(--content-primary); background: var(--content-surface); border: 1px solid var(--content-border); border-radius: 8px; font: inherit; }
.book-filters select { min-width: 160px; appearance: none; padding-right: 40px; background-image: url('/assets/chevron-down.svg'); background-repeat: no-repeat; background-position: right 12px center; color-scheme: inherit; cursor: pointer; }
.book-filters select:hover { border-color: var(--content-accent-line); }
.book-filters select option { background: var(--content-surface); color: var(--content-primary); }
.book-filters input:focus-visible, .book-filters select:focus-visible { outline: 2px solid var(--content-accent); outline-offset: 3px; }
@supports (appearance: base-select) {
  .book-filters select, .book-filters select::picker(select) { appearance: base-select; }
  .book-filters select { display: flex; align-items: center; gap: 16px; padding-right: 14px; background-image: none; }
  .book-filters select::picker-icon { margin-left: auto; color: var(--content-muted); transition: rotate .15s; }
  .book-filters select:open { border-color: var(--content-accent); }
  .book-filters select:open::picker-icon { rotate: 180deg; }
  .book-filters select::picker(select) { margin-top: 6px; padding: 6px; border: 1px solid var(--content-border); border-radius: 10px; background: var(--content-surface); color: var(--content-primary); box-shadow: 0 12px 32px rgb(73 59 33 / 12%); }
  .book-filters select option { min-height: 40px; padding: 9px 12px; gap: 10px; border-radius: 6px; font: inherit; }
  .book-filters select option:checked { background: var(--content-surface-active); color: var(--content-primary); }
  .book-filters select option:hover, .book-filters select option:focus-visible { outline: none; background: var(--content-surface-active); }
  .book-filters select option::checkmark { color: var(--content-accent); }
}
#book-count:empty { display: none; }
.book-list { margin: 16px 0 0; padding: 0; list-style: none; }
.book-group { margin-top: 32px; }
.book-group:first-child { margin-top: 24px; }
.book-group > h2 { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 20px; font-weight: 550; }
.book-group-count { color: var(--content-muted); font-size: 13px; font-weight: 400; }
.book-list li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--content-border-soft); }
.book-list h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.6; }
.book-list p { margin: 5px 0 0; }
.book-author { color: var(--content-muted); font-size: 13px; }
.book-description { max-width: 64ch; color: var(--content-muted); font-size: 14px; line-height: 1.7; }
.book-download { flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 9px 14px; border: 1px solid var(--content-border); border-radius: 8px; font-size: 13px; }
.book-download:hover { background: var(--content-surface-active); text-decoration: none; }
@media (max-width: 520px) { .book-filters { flex-direction: column; } .book-list li { gap: 14px; } .book-download { padding: 8px 10px; gap: 8px; } }
