.catalog-section { background: #0f1511; border-bottom: 1px solid var(--line); scroll-margin-top: 112px; }
.catalog-intro { align-items: end; display: grid; gap: 48px; grid-template-columns: 1fr 1fr; margin-bottom: 30px; }
.catalog-intro h2 { font-size: clamp(34px,3.6vw,48px); margin: 0; }
.catalog-intro h2 span { color: var(--green-bright); }
.catalog-intro-copy { max-width: 460px; justify-self: end; }
.catalog-intro-copy > p { color: #b9c5bc; font-size: 16px; line-height: 1.7; }
.catalog-intro-copy .catalog-download { align-items: center; color: var(--green-bright); display: inline-flex; gap: 14px; margin-top: 12px; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }
.catalog-mount { min-width: 0; }
.catalog-reader { background: #101310; border: 1px solid #394339; display: flex; flex-direction: column; height: clamp(540px,59vw,760px); min-width: 0; overflow: hidden; }
.catalog-reading-note { color: #99ad9e; font-size: 12px; margin-top: 14px; text-align: center; }
.catalog-reading-note a { text-decoration: underline; }
.catalog-dialog { background: #101310; border: 1px solid #394339; color: #fff; height: min(960px,96dvh); margin: auto; max-height: 100dvh; max-width: 100vw; padding: 0; width: min(1440px,96vw); overflow: hidden; box-shadow: 0 20px 90px #0009; }
.catalog-dialog[open] { display: flex; flex-direction: column; }
.catalog-dialog .catalog-reader { border: 0; flex: 1 1 auto; height: auto; min-height: 0; }
.catalog-dialog .catalog-expand { display: none; }
.catalog-dialog::backdrop { background: rgba(0,0,0,.84); backdrop-filter: blur(5px); }
.catalog-reader, .catalog-reader *, .catalog-dialog, .catalog-dialog * { cursor: auto; }
.catalog-reader button, .catalog-reader a, .catalog-reader select, .catalog-dialog button, .catalog-dialog a { cursor: pointer; }
.catalog-header { align-items: center; border-bottom: 1px solid #ffffff1c; display: flex; flex: 0 0 auto; gap: 20px; justify-content: space-between; padding: 16px 22px; }
.catalog-kicker { color: #76cf85; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.catalog-header h2 { font-family: Georgia,serif; font-size: 24px; line-height: 1.2; margin: 4px 0 0; }
.catalog-header-actions { align-items: center; display: flex; gap: 20px; }
.catalog-download { color: #d1dbd1; font-size: 13px; white-space: nowrap; }
.catalog-download:hover { color: #76cf85; }
.catalog-reader button, .catalog-dialog button { align-items: center; background: #1a201b; border: 1px solid #ffffff30; color: #fff; display: inline-flex; font: inherit; line-height: 1; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px; }
.catalog-reader button:hover:not(:disabled), .catalog-dialog button:hover:not(:disabled) { background: #27372a; border-color: #76cf85; }
.catalog-reader button:disabled, .catalog-dialog button:disabled { cursor: default; opacity: .35; }
.catalog-reader button[hidden] { display: none; }
.catalog-close svg { height: 20px; width: 20px; }
.catalog-expand svg { height: 18px; width: 18px; }
.catalog-zoom .catalog-expand { margin-left: 8px; }
.catalog-viewport { --catalog-gutter: 24px; background: radial-gradient(ellipse at center,#2c342e 0%,#151b17 78%); flex: 1 1 auto; min-height: 0; overflow: auto; position: relative; touch-action: pan-y pinch-zoom; }
.catalog-dialog .catalog-viewport { overscroll-behavior: contain; }
.catalog-viewport.is-zoomed { touch-action: pan-x pan-y pinch-zoom; }
.catalog-canvas { align-items: center; display: grid; justify-items: center; width: max(100%,calc(var(--catalog-page-width,600px) + var(--catalog-gutter) * 2)); height: max(100%,calc(var(--catalog-page-height,467px) + var(--catalog-gutter) * 2)); padding: var(--catalog-gutter); }
.catalog-book { background: #fff; flex: none; height: var(--catalog-page-height,467px); isolation: isolate; position: relative; width: var(--catalog-page-width,600px); box-shadow: 2px 2px 0 #cecfc8,4px 4px 0 #6b716b,6px 6px 0 #bdc3bc,0 14px 45px #0009; perspective: 1600px; }
.catalog-book::after { background: linear-gradient(90deg,#00000016,transparent 2.5%,transparent 98%,#0000000c); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 3; }
.catalog-page, .catalog-turning-page { display: block; height: 100%; object-fit: contain; user-select: none; width: 100%; }
.catalog-turning-page { backface-visibility: hidden; box-shadow: 8px 0 18px #0004; inset: 0; position: absolute; transform-origin: left center; z-index: 2; }
.catalog-load-error { background: #18251c; border: 1px solid #76cf85; font-size: 14px; left: 50%; max-width: calc(100% - 32px); padding: 16px; position: absolute; top: 35%; transform: translateX(-50%); z-index: 4; }
.catalog-load-error a { color: #76cf85; text-decoration: underline; }
.catalog-footer { align-items: center; border-top: 1px solid #ffffff1c; display: flex; flex: 0 0 auto; gap: 20px; justify-content: space-between; padding: 12px 22px max(12px,env(safe-area-inset-bottom)); }
.catalog-pagination, .catalog-zoom { align-items: center; display: flex; gap: 6px; }
.catalog-pagination > button { font-size: 23px; }
.catalog-page-picker select { background: #1a201b; border: 1px solid #ffffff30; border-radius: 0; color: #fff; font: inherit; font-size: 13px; max-width: 220px; min-height: 44px; padding: 8px 28px 8px 12px; }
.catalog-footer > p { color: #b5c1b7; font-size: 12px; text-align: center; }
.catalog-zoom button { font-size: 20px; }
.catalog-zoom [data-catalog-zoom="fit"] { font-size: 12px; min-width: 48px; }
.catalog-sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
@media(max-width:1040px) {
  .catalog-footer > p { display: none; }
}
@media(max-width:720px) {
  .catalog-section { scroll-margin-top: 76px; }
  .catalog-intro { gap: 16px; grid-template-columns: 1fr; margin-bottom: 22px; }
  .catalog-intro h2 { font-size: 34px; }
  .catalog-intro-copy { justify-self: start; }
  .catalog-intro-copy > p { font-size: 15px; }
  .catalog-intro-copy .catalog-download { margin-top: 6px; max-width: none; font-size: 13px; }
  .catalog-reader { height: 480px; }
  .catalog-viewport { --catalog-gutter: 16px; }
  .catalog-reading-note { font-size: 11px; max-width: 280px; margin-inline: auto; }
  .catalog-dialog { border: 0; height: 100dvh; width: 100vw; }
  .catalog-header { gap: 10px; padding: max(14px,env(safe-area-inset-top)) 14px 14px; }
  .catalog-kicker { font-size: 8px; letter-spacing: .08em; }
  .catalog-header h2 { font-size: 19px; max-width: 210px; }
  .catalog-header-actions { gap: 10px; }
  .catalog-download { font-size: 11px; max-width: 58px; white-space: normal; text-align: center; }
  .catalog-footer { flex-wrap: wrap; gap: 10px; justify-content: center; padding: 10px 12px max(12px,env(safe-area-inset-bottom)); }
  .catalog-footer > p { flex-basis: 100%; font-size: 11px; order: 3; }
  .catalog-page-picker select { max-width: min(196px,calc(100vw - 164px)); font-size: 12px; }
  .catalog-pagination { flex: 1 1 auto; justify-content: center; }
  .catalog-zoom { justify-content: center; }
}
