.books-page .section { padding: 20px 0 28px; }
.books-container { max-width: 1160px; }
.books-heading { font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.books-intro { font-size: 14px; line-height: 1.6; margin: 0 0 20px; color: var(--body-text); }
.books-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.book-entry { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-content: start; gap: 18px; padding: 18px 0; border-top: 1px solid var(--rule); }
.catalog-cover { display: block; align-self: start; }
.cover-hint { display: block; margin-top: 7px; font-size: 12px; line-height: 1.4; color: var(--ci-amber); }
.cover-dialog { margin: auto; padding: 16px; border: 1px solid var(--rule); background: var(--ci-navy); color: var(--ink); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; }
.cover-dialog::backdrop { background: rgba(3, 9, 16, .9); }
.cover-toolbar { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.cover-toolbar h2 { max-width: 420px; font-size: 16px; line-height: 1.4; }
.cover-toolbar button { border: 1px solid var(--rule); padding: 6px 10px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.cover-dialog #coverDialogSubtitle { max-width: 540px; font-size: 18px; line-height: 1.5; color: var(--ink); margin: 0 0 16px; }
.cover-dialog #largeCover { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 155px); object-fit: contain; margin: 0 auto; }
.cover-dialog #originalCover { display: block; padding-top: 12px; font-size: 14px; color: var(--ci-amber); }
body:has(.cover-dialog[open]) { overflow: hidden; }
.books-page .catalog-cover img { display: block; width: 160px !important; height: auto !important; max-height: 256px; object-fit: contain; object-position: top; margin: 0; box-shadow: none; }
.book-content { min-width: 0; }
.book-title { font-size: 20px; font-weight: 650; line-height: 1.25; margin: 0 0 5px; color: var(--ink); }
.book-subtitle { font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0 0 8px; }
.book-description { font-size: 15px; line-height: 1.55; color: var(--body-text); margin: 0 0 9px; }
.book-formats { font-size: 12px; line-height: 1.4; color: var(--quiet); margin: 0 0 5px; }
.book-action { margin: 0; }
.book-link { display: inline-block; padding: 5px 0; color: var(--ci-amber); font-size: 13px; font-weight: 600; line-height: 1.4; }
.book-link:hover { color: var(--navy-dark); text-decoration: underline; text-underline-offset: 3px; }
.book-link:focus-visible, .catalog-cover:focus-visible { outline: 2px solid var(--ci-amber); outline-offset: 4px; }
.books-contact { padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--rule); }
.books-contact p { font-size: 13px; line-height: 1.55; margin: 0 0 6px; color: var(--body-text); }
.books-contact p:first-child { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--quiet); }
@media (max-width: 850px) {
  .books-grid { grid-template-columns: 1fr; }
  .book-entry { grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
  .books-page .catalog-cover img { width: 140px !important; max-height: 224px; }
}
@media (max-width: 480px) {
  .books-heading { font-size: 19px; }
  .books-intro { font-size: 13px; }
  .book-entry { grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: min-content auto; gap: 8px 14px; padding: 16px 0; }
  .book-content { display: contents; }
  .catalog-cover { grid-column: 1; grid-row: 1 / span 2; }
  .book-title, .book-subtitle { grid-column: 2; margin: 0; }
  .book-subtitle { align-self: start; }
  .book-description, .book-formats, .book-action { grid-column: 1 / -1; margin: 0; }
  .books-page .catalog-cover img { width: 110px !important; max-height: 176px; }
  .book-title { font-size: 18px; }
}
