:root {
  --serif: Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --reading: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --utility: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-pad-x: 46px;
  --page-pad-y: 54px;
  --book-cloth: #101820;
  --page-edge: #b9ad91;
  --library-paper: #d8ccb0;
}

.book-app *,
.skip-link {
  letter-spacing: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #0b1015;
  background: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

[tabindex="-1"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

.shelf-book:is(button) {
  appearance: none;
  text-align: inherit;
}

.bookshelf-row.is-main .shelf-book-title {
  font-size: 1.2rem;
}

.bookshelf-row.is-top .shelf-book-title,
.bookshelf-row.is-bottom .shelf-book-title {
  font-size: 0.78rem;
}

.shelf-book:is(button):not(.shelf-book-featured)::after {
  content: "";
  position: absolute;
  inset: 7px 5px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 160ms ease;
}

.shelf-book:is(button):not(.shelf-book-featured):hover::after,
.shelf-book:is(button):not(.shelf-book-featured):focus-visible::after {
  border-color: rgba(242, 204, 114, 0.28);
}

.cover-screen.is-selecting .bookshelf-table {
  filter: none;
}

.cover-book {
  width: min(78vw, 920px);
  height: min(82svh, 730px);
  min-height: 560px;
  border: 1px solid rgba(242, 204, 114, 0.34);
  background:
    linear-gradient(100deg, rgba(255,255,255,0.04), transparent 22%),
    repeating-linear-gradient(92deg, rgba(255,255,255,0.016) 0 1px, transparent 1px 5px),
    var(--book-cloth);
  box-shadow:
    9px 8px 0 -3px #988f79,
    13px 12px 0 -5px #5e584b,
    22px 28px 70px rgba(0,0,0,0.62),
    inset 12px 0 22px rgba(0,0,0,0.28),
    inset 0 0 42px rgba(0,0,0,0.28);
  transform: perspective(1600px) rotateY(-1.2deg);
}

.cover-book::before {
  inset: 38px;
  border-color: rgba(212, 173, 98, 0.36);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.018),
    0 0 0 8px rgba(212, 173, 98, 0.018);
}

.cover-book::after {
  content: "";
  position: absolute;
  top: 13px;
  right: -8px;
  bottom: 13px;
  width: 7px;
  background: repeating-linear-gradient(180deg, #b8ad95 0 2px, #8f866f 2px 3px);
  opacity: 0.78;
  pointer-events: none;
}

.cover-center {
  max-width: 680px;
  gap: 22px;
  padding: 56px;
  transform: none;
}

.brand-title {
  font-size: 5rem;
}

.cover-subtitle {
  font-size: 2rem;
}

.cover-note {
  max-width: 560px;
  font-family: var(--reading);
  font-size: 1.08rem;
}

.cover-actions {
  margin-top: 22px;
}

.cover-shelf-return {
  position: absolute;
  bottom: 19px;
  left: 50%;
  color: rgba(232, 224, 208, 0.42);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.cover-shelf-return:hover {
  color: var(--gold-bright);
}

.side-rail,
.book-footer {
  display: none !important;
}

.book-frame {
  --reader-inline: 56px;
  min-height: 100svh;
  margin-left: 0;
  padding: 48px var(--reader-inline) 34px;
  align-content: center;
}

.reader-status {
  top: 15px;
  right: var(--reader-inline);
  left: var(--reader-inline);
  grid-template-columns: minmax(0, 1fr) minmax(190px, 300px) minmax(0, 1fr);
  color: rgba(240, 238, 232, 0.48);
  font-size: 0.66rem;
}

.progress-meter {
  grid-template-columns: minmax(96px, 1fr) auto;
  max-width: 290px;
}

.progress-track {
  position: relative;
  height: 9px;
  border: 1px solid rgba(185, 173, 145, 0.34);
  background:
    repeating-linear-gradient(90deg, rgba(224, 214, 191, 0.18) 0 8px, rgba(70, 66, 57, 0.34) 8px 9px),
    #12171a;
  box-shadow: 0 3px 0 -1px rgba(119, 109, 88, 0.34);
}

.progress-track i {
  height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(199, 218, 199, 0.74) 0 8px, rgba(68, 104, 75, 0.7) 8px 9px);
  box-shadow: none;
  transform: scaleX(0.1);
  transition: transform 280ms cubic-bezier(0.22, 0.7, 0.25, 1);
}

.reader-percent {
  min-width: 6ch;
  color: rgba(232, 224, 208, 0.68);
  font-size: 0.64rem;
}

.book-stage {
  width: min(100%, 1500px);
  height: min(820px, calc(100svh - 92px));
  min-height: 560px;
  perspective: 2400px;
}

.book-spread {
  border-color: rgba(212, 173, 98, 0.32);
  background: #10161c;
  box-shadow:
    0 34px 80px rgba(0,0,0,0.58),
    0 4px 0 -1px rgba(137, 126, 101, 0.34),
    0 8px 0 -3px rgba(71, 66, 56, 0.6);
}

.book-spread::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 4;
  border: 1px solid rgba(212, 173, 98, 0.08);
  pointer-events: none;
}

.page {
  padding: var(--page-pad-y) var(--page-pad-x);
  overflow: hidden;
  font-family: var(--reading);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.016), transparent 24%),
    linear-gradient(90deg, rgba(255,255,255,0.012), transparent 16%, transparent 84%, rgba(0,0,0,0.12)),
    rgba(12, 17, 22, 0.84);
}

.page-left {
  padding-right: 42px;
}

.page-right {
  padding-left: 42px;
}

.page h1,
.page h2,
.page h3 {
  font-family: var(--serif);
  letter-spacing: 0;
}

.page h1 {
  max-width: 690px;
  margin: 14px 0 20px;
  font-size: 3.15rem;
  line-height: 0.98;
}

.page h2 {
  margin: 12px 0 18px;
  font-size: 2.4rem;
  line-height: 1.02;
}

.page h3 {
  font-size: 1.32rem;
  line-height: 1.12;
}

.page p {
  letter-spacing: 0;
}

.page-kicker,
.entry-meta,
.evidence-line,
.featured-number,
.running-head,
.page-folio,
.case-facts dt,
.artifact-toolbar,
.artifact-result span,
.margin-note > span,
.current-line > span,
.colophon > span,
.imprint-note {
  font-family: var(--mono);
  text-transform: uppercase;
}

.running-head {
  position: absolute;
  top: 17px;
  right: var(--page-pad-x);
  left: var(--page-pad-x);
  color: rgba(232, 224, 208, 0.28);
  font-size: 0.56rem;
  letter-spacing: 0.17em;
  pointer-events: none;
}

.page-right .running-head {
  text-align: right;
}

.page-folio {
  position: absolute;
  right: var(--page-pad-x);
  bottom: 15px;
  color: rgba(212, 173, 98, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.page-left .page-folio {
  right: auto;
  left: var(--page-pad-x);
}

.page-turn {
  isolation: isolate;
  contain: layout paint style;
  animation: none;
  transform: rotateY(0deg) translateZ(1px);
}

.page-turn-forward {
  animation: none;
}

.page-turn-backward {
  animation: none;
}

.page-turn-forward.is-running {
  animation: turn-forward-v2 480ms cubic-bezier(0.55, 0.03, 0.24, 1) both;
}

.page-turn-backward.is-running {
  animation: turn-backward-v2 480ms cubic-bezier(0.55, 0.03, 0.24, 1) both;
}

.page-face {
  isolation: isolate;
  contain: strict;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.018), transparent 20%, transparent 78%, rgba(0,0,0,0.16)),
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 28%),
    #11171d;
  transform: translateZ(0.5px);
}

.page-face-back {
  transform: rotateY(180deg) translateZ(0.5px);
}

.turn-leaf-head,
.turn-leaf-mark {
  position: absolute;
  color: rgba(232, 224, 208, 0.16);
  font-family: var(--mono);
  text-transform: uppercase;
}

.turn-leaf-head {
  top: 18px;
  right: var(--page-pad-x);
  left: var(--page-pad-x);
  font-size: 0.54rem;
}

.page-left .turn-leaf-head {
  text-align: left;
}

.page-right .turn-leaf-head {
  text-align: right;
}

.turn-leaf-mark {
  top: 50%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(212, 173, 98, 0.12);
  border-radius: 50%;
  color: rgba(212, 173, 98, 0.2);
  font-family: var(--serif);
  font-size: 0.74rem;
  transform: translate(-50%, -50%);
}

.page-face::after {
  display: none;
}

.turn-shadow {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.62), transparent 52%);
  animation: none;
}

.page-turn.is-running .turn-shadow {
  animation: turn-shadow-v2 480ms ease-in-out both;
}

.page-turn-backward .turn-shadow {
  transform: scaleX(-1);
}

@keyframes turn-forward-v2 {
  from { transform: rotateY(0deg) translateZ(1px); }
  to { transform: rotateY(-180deg) translateZ(1px); }
}

@keyframes turn-backward-v2 {
  from { transform: rotateY(0deg) translateZ(1px); }
  to { transform: rotateY(180deg) translateZ(1px); }
}

@keyframes turn-shadow-v2 {
  0%, 100% { opacity: 0; }
  48% { opacity: 0.76; }
}

.thumb-index {
  position: absolute;
  top: 38px;
  right: -46px;
  z-index: 7;
  display: grid;
  gap: 4px;
  pointer-events: auto;
}

.thumb-index button {
  width: 50px;
  min-height: 34px;
  padding: 5px 4px 5px 9px;
  border: 1px solid rgba(212, 173, 98, 0.24);
  border-left: 0;
  color: rgba(235, 228, 215, 0.62);
  background: #182026;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-align: left;
  transition: width 140ms ease, color 140ms ease, background 140ms ease;
}

.thumb-index button:nth-child(3n + 2) { background: #1d241d; }
.thumb-index button:nth-child(3n) { background: #261f24; }

.thumb-index button:hover,
.thumb-index button.is-active {
  width: 58px;
  color: var(--gold-bright);
  background: #263129;
}

.page-edge {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 34px;
  height: 122px;
  border: 1px solid rgba(212, 173, 98, 0.24);
  color: rgba(240, 238, 232, 0.48);
  background: #11181d;
  transform: translateY(-50%);
  transition: color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.page-edge-prev { left: -29px; border-right: 0; }
.page-edge-next {
  top: auto;
  right: -29px;
  bottom: 42px;
  height: 104px;
  border-left: 0;
  transform: none;
}

.page-edge span {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.page-edge-prev span { transform: rotate(180deg); }

.page-edge:hover {
  color: var(--gold-bright);
  background: #1c252a;
}

.page-edge:disabled {
  opacity: 0.14;
  cursor: default;
}

.frontispiece-leaf {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
}

.portrait-frontispiece {
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.portrait-frontispiece img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(212, 173, 98, 0.25);
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(0.72) contrast(1.05);
}

.portrait-frontispiece figcaption,
.artifact figcaption {
  color: rgba(232, 224, 208, 0.58);
  font-family: var(--reading);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.35;
}

.imprint-note {
  margin: 0 0 16px;
  color: rgba(212, 173, 98, 0.64);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.book-prose {
  display: grid;
  gap: 11px;
  max-width: 650px;
}

.book-prose p {
  margin: 0;
  color: #d9d1c4;
  font-size: 1.03rem;
  line-height: 1.5;
}

.book-prose .lead,
.lead {
  color: #eee9df;
  font-size: 1.18rem;
  line-height: 1.48;
}

.compact-lead {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.45;
}

.current-line {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.current-line span,
.margin-note > span {
  color: var(--gold-bright);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.current-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.margin-note {
  position: relative;
  margin: 18px 0 0 36px;
  padding: 11px 15px 11px 18px;
  border-left: 2px solid rgba(212, 173, 98, 0.6);
  background: rgba(255,255,255,0.025);
}

.margin-note::before {
  content: "";
  position: absolute;
  top: 20px;
  right: calc(100% + 10px);
  width: 25px;
  border-top: 1px solid rgba(212, 173, 98, 0.32);
}

.margin-note p {
  margin: 6px 0 0;
  color: #d7cfc1;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.38;
}

.short-note {
  margin-top: 18px;
}

.book-toc {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.book-toc li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.book-toc button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 19px 0;
  color: var(--text);
  text-align: left;
}

.book-toc button > span {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.book-toc strong {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.book-toc small {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.74rem;
}

.book-toc button:hover strong,
.book-toc button.is-active strong {
  color: var(--gold-bright);
}

.subject-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.subject-map button {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 15px 18px 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  text-align: left;
}

.subject-map button:nth-child(2n) {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.subject-map strong {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.subject-map span {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.72rem;
}

.subject-map button:hover strong {
  color: var(--gold-bright);
}

.reader-tip,
.chapter-preface {
  color: var(--muted);
  font-family: var(--reading);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.45;
}

.reader-tip {
  margin-top: 17px;
}

.chapter-preface {
  margin: 0 0 12px;
}

.featured-list {
  display: grid;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.featured-entry {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.featured-number {
  padding-top: 5px;
  color: rgba(212, 173, 98, 0.66);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.featured-entry h3 {
  margin: 0;
  font-size: 1.42rem;
}

.featured-entry p {
  margin: 6px 0 8px;
  color: #d6cec1;
  font-size: 0.87rem;
  line-height: 1.42;
}

.evidence-line {
  color: rgba(121, 185, 135, 0.9);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ink-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ink-link {
  padding: 5px 0;
  border-bottom: 1px solid rgba(212, 173, 98, 0.42);
}

.ink-link:hover,
.text-link:hover {
  color: #ffe19a;
}

.artifact {
  height: min(490px, 61vh);
  min-height: 330px;
  margin: 8px 0 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid rgba(212, 173, 98, 0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 28%),
    #0b1218;
  overflow: hidden;
}

.artifact-real {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  background: #080d12;
}

.artifact-real img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.artifact-real figcaption {
  padding: 9px 12px 10px;
  border-top: 1px solid rgba(212, 173, 98, 0.18);
  background: #0b1218;
}

.artifact-real-market img {
  object-position: 66% 24%;
}

.artifact-real-import img {
  object-position: 50% 36%;
}

.artifact-real-pareto img {
  object-fit: contain;
  background: #07111d;
}

.artifact-real-aggiequant img {
  object-position: 50% 0;
}

.artifact-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(212, 173, 98, 0.78);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.status-light {
  color: #89c495;
}

.status-light::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px rgba(121, 185, 135, 0.5);
}

.market-columns {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  color: rgba(232, 224, 208, 0.45);
  font-family: var(--mono);
  font-size: 0.55rem;
  text-align: center;
}

.price-ladder {
  align-self: center;
  display: grid;
  gap: 9px;
}

.ladder-row {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  gap: 9px;
}

.ladder-row i {
  width: var(--depth);
  height: 15px;
  background: linear-gradient(90deg, rgba(121,185,135,0.12), rgba(121,185,135,0.65));
  justify-self: end;
}

.ladder-row i:last-child {
  justify-self: start;
  background: linear-gradient(90deg, rgba(157,79,88,0.65), rgba(157,79,88,0.12));
}

.ladder-row b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-align: center;
}

.ladder-row.is-fair b {
  color: var(--gold-bright);
}

.ladder-row.is-fair {
  padding: 8px 0;
  border-top: 1px solid rgba(212,173,98,0.18);
  border-bottom: 1px solid rgba(212,173,98,0.18);
}

.risk-console {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.risk-console span {
  display: grid;
  gap: 5px;
  padding: 13px;
  color: #e0d9cd;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
}

.risk-console span + span {
  border-left: 1px solid rgba(255,255,255,0.08);
}

.risk-console small {
  color: rgba(232,224,208,0.42);
  font-size: 0.5rem;
  text-transform: uppercase;
}

.evidence-map {
  position: relative;
  min-height: 255px;
  align-self: center;
}

.evidence-node {
  position: absolute;
  z-index: 2;
  min-width: 98px;
  padding: 11px 14px;
  border: 1px solid rgba(212,173,98,0.28);
  color: #ddd5c8;
  background: #121b21;
  font-family: var(--mono);
  font-size: 0.63rem;
  text-align: center;
}

.node-core {
  top: 50%; left: 50%;
  min-width: 78px;
  color: var(--gold-bright);
  transform: translate(-50%, -50%);
}

.node-company { top: 8%; left: 7%; }
.node-supplier { top: 8%; right: 7%; }
.node-shipment { bottom: 8%; left: 7%; }
.node-market { right: 7%; bottom: 8%; }

.map-line {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 36%;
  height: 1px;
  background: rgba(121,185,135,0.32);
  transform-origin: left center;
}

.line-a { transform: rotate(-143deg); }
.line-b { transform: rotate(-37deg); }
.line-c { transform: rotate(143deg); }
.line-d { transform: rotate(37deg); }

.evidence-trace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: rgba(232,224,208,0.56);
  font-family: var(--mono);
  font-size: 0.5rem;
}

.evidence-trace i,
.system-flow i {
  min-width: 10px;
  flex: 1;
  border-top: 1px solid rgba(212,173,98,0.32);
}

.artifact-image {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.artifact-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #07111d;
}

.artifact-caption-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(212,173,98,0.72);
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.aq-network {
  position: relative;
  min-height: 250px;
  align-self: center;
}

.aq-network::before,
.aq-network::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68%;
  height: 1px;
  background: rgba(212,173,98,0.24);
  transform: translate(-50%, -50%) rotate(28deg);
}

.aq-network::after {
  transform: translate(-50%, -50%) rotate(-28deg);
}

.aq-core,
.aq-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212,173,98,0.3);
  background: #121b21;
  font-family: var(--mono);
  font-size: 0.6rem;
}

.aq-core {
  top: 50%; left: 50%;
  width: 76px; height: 76px;
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.5rem;
  transform: translate(-50%, -50%);
}

.aq-node { width: 104px; min-height: 40px; }
.aq-one { top: 6%; left: 8%; }
.aq-two { top: 6%; right: 8%; }
.aq-three { right: 8%; bottom: 6%; }
.aq-four { bottom: 6%; left: 8%; }

.firm-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.firm-shelf span {
  padding: 10px 5px;
  color: rgba(232,224,208,0.62);
  font-family: var(--mono);
  font-size: 0.48rem;
  text-align: center;
}

.firm-shelf span + span {
  border-left: 1px solid rgba(255,255,255,0.08);
}

.artifact-result {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: baseline;
  margin-top: 16px;
}

.artifact-result span {
  color: var(--gold-bright);
  font-size: 0.54rem;
  letter-spacing: 0.11em;
}

.artifact-result strong {
  font-family: var(--reading);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.case-deck {
  max-width: 680px;
  margin: 0 0 14px;
  color: #e4ded3;
  font-size: 0.98rem;
  line-height: 1.42;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.case-facts div {
  min-width: 0;
  padding: 9px 12px 9px 0;
}

.case-facts div + div {
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.case-facts dt {
  margin-bottom: 5px;
  color: var(--gold-bright);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.case-facts dd {
  margin: 0;
  color: #d4ccbf;
  font-family: var(--utility);
  font-size: 0.68rem;
  line-height: 1.35;
}

.case-section h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1.08rem;
}

.case-section p {
  margin: 0;
  color: #d5ccbf;
  font-size: 0.84rem;
  line-height: 1.42;
}

.system-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: rgba(232,224,208,0.65);
  font-family: var(--mono);
  font-size: 0.5rem;
  text-transform: uppercase;
}

.case-links {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
}

.private-note {
  color: rgba(232,224,208,0.42);
  font-family: var(--mono);
  font-size: 0.5rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.appendix-list {
  display: grid;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.appendix-entry {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.appendix-entry .entry-meta {
  display: block;
  margin-bottom: 6px;
  color: rgba(212,173,98,0.72);
  font-size: 0.51rem;
  letter-spacing: 0.09em;
}

.appendix-entry h3 {
  margin: 0;
  font-size: 1.15rem;
}

.appendix-entry p {
  margin: 6px 0 0;
  color: #d4ccbf;
  font-size: 0.79rem;
  line-height: 1.42;
}

.appendix-entry .text-link {
  margin-top: 8px;
  font-size: 0.52rem;
}

.intro-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin: 24px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.intro-index span {
  padding: 11px 0;
  color: rgba(232,224,208,0.68);
  font-family: var(--mono);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.intro-index span:nth-child(2n) {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.intro-index span:nth-child(n + 3) {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.career-timeline {
  position: relative;
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.career-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.career-timeline li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 83px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  background: #10161c;
}

.career-timeline time,
.recognition-list time {
  color: rgba(212,173,98,0.78);
  font-family: var(--mono);
  font-size: 0.54rem;
  text-transform: uppercase;
}

.career-timeline strong,
.now-ledger strong,
.recognition-list strong {
  color: #eee8dc;
  font-family: var(--serif);
  font-size: 1rem;
}

.career-timeline p,
.now-ledger p,
.recognition-list p {
  margin: 4px 0 0;
  color: #cfc6b8;
  font-size: 0.78rem;
  line-height: 1.38;
}

.now-ledger {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.now-ledger article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.now-ledger article > span {
  padding-top: 2px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.timeline-note {
  margin: 24px 0 20px 30px;
  padding: 12px 16px;
  border-left: 2px solid rgba(212,173,98,0.58);
  color: #d8d0c3;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.42;
}

.project-leaf h1 {
  margin-bottom: 12px;
  font-size: 2.75rem;
}

.project-summary {
  max-width: 640px;
  margin: 0;
  color: #ddd5c9;
  font-size: 0.92rem;
  line-height: 1.42;
}

.project-leaf .artifact {
  height: min(330px, 39vh);
  min-height: 220px;
  margin-top: 14px;
  padding: 14px;
  gap: 10px;
}

.project-leaf .artifact-real {
  padding: 0;
  gap: 0;
}

.project-leaf .evidence-map,
.project-leaf .aq-network {
  min-height: 155px;
}

.project-leaf .risk-console span {
  padding: 9px;
}

.project-leaf .artifact figcaption {
  font-size: 0.67rem;
}

.project-proof {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  margin-top: 14px;
}

.project-proof span {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.project-proof strong {
  color: #e2dbcf;
  font-family: var(--reading);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.38;
}

.project-stack {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: rgba(232,224,208,0.44);
  font-family: var(--mono);
  font-size: 0.49rem;
  text-transform: uppercase;
}

.project-stack i {
  width: 12px;
  border-top: 1px solid rgba(212,173,98,0.34);
}

.project-actions {
  margin-top: 10px;
}

.recognition-list {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.recognition-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.shelf-note {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  margin-top: 23px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.shelf-note span {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.shelf-note p {
  margin: 0;
  color: #d0c7ba;
  font-size: 0.79rem;
  line-height: 1.4;
}

.alphabet-index {
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.alphabet-index > div {
  display: grid;
  grid-template-columns: 34px 1fr 1fr;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.alphabet-index span {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.alphabet-index button {
  color: #ddd5c8;
  font-family: var(--reading);
  font-size: 0.94rem;
  text-align: left;
}

.alphabet-index button:hover {
  color: var(--gold-bright);
}

.errata-list {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.errata-list article {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.errata-list span {
  color: rgba(212,173,98,0.78);
  font-family: var(--mono);
  font-size: 0.54rem;
  text-transform: uppercase;
}

.errata-list p {
  margin: 0;
  color: #d6cec1;
  font-size: 0.84rem;
  line-height: 1.44;
}

.closing-note {
  margin: 20px 0 0 44px;
  padding: 12px 0 12px 20px;
  border-left: 2px solid rgba(121,185,135,0.55);
  color: #e0d8cb;
  font-family: var(--reading);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.46;
}

.resume-ledger {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.resume-ledger > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.resume-ledger span {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
}

.resume-ledger p {
  margin: 0;
  color: #d8d0c3;
  font-size: 0.82rem;
  line-height: 1.4;
}

.resume-download {
  margin-top: 20px;
}

.library-card {
  padding: 24px;
  border: 1px solid #8d826a;
  color: #222019;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(69,91,110,0.17) 31px 32px),
    var(--library-paper);
  box-shadow: 7px 8px 0 rgba(0,0,0,0.16);
  transform: rotate(-0.35deg);
}

.library-card-head {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(67,57,42,0.52);
}

.library-card-head span,
.checkout-lines span {
  font-family: var(--mono);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.library-card-head strong {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.library-card > p {
  margin: 14px 0 18px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.checkout-lines {
  display: grid;
}

.checkout-lines a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(67,57,42,0.32);
  color: #24211a;
}

.checkout-lines strong {
  font-family: var(--mono);
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.colophon {
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.colophon > span {
  color: var(--gold-bright);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.colophon p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.42;
}

.return-shelf {
  margin-top: 20px;
}

@media (max-width: 1260px) and (min-width: 881px) {
  :root {
    --page-pad-x: 32px;
    --page-pad-y: 48px;
  }

  .book-frame {
    --reader-inline: 42px;
  }

  .page h1 { font-size: 2.65rem; }
  .page h2 { font-size: 2.1rem; }
  .artifact { height: min(445px, 58vh); }
  .case-deck { font-size: 0.94rem; }
  .margin-note { margin-left: 24px; }
  .thumb-index { right: -40px; }
  .thumb-index button { width: 44px; }
}

@media (max-height: 760px) and (min-width: 881px) {
  :root {
    --page-pad-y: 36px;
  }

  .book-stage {
    height: calc(100svh - 82px);
    min-height: 510px;
  }

  .page-kicker { margin-bottom: 9px; }
  .page h1 { margin: 7px 0 10px; font-size: 2.2rem; }
  .page h2 { margin: 7px 0 10px; font-size: 1.9rem; }
  .case-deck { margin-bottom: 9px; font-size: 0.82rem; line-height: 1.32; }
  .case-facts { margin-bottom: 11px; }
  .case-facts div { padding-top: 7px; padding-bottom: 7px; }
  .case-section h3 { margin-bottom: 5px; font-size: 1rem; }
  .case-section p { font-size: 0.75rem; line-height: 1.34; }
  .system-flow { margin-top: 8px; }
  .margin-note { margin-top: 9px; padding-top: 7px; padding-bottom: 7px; }
  .margin-note p { font-size: 0.72rem; line-height: 1.32; }
  .case-links { margin-top: 8px; }
  .private-note { font-size: 0.45rem; }
  .artifact { height: min(365px, 54vh); min-height: 280px; }
  .artifact-result { margin-top: 10px; }
  .appendix-entry { padding: 10px 0; }
  .appendix-entry p { font-size: 0.73rem; }

  .career-timeline { margin-top: 10px; }
  .career-timeline li { padding: 9px 0; }
  .career-timeline li::before { top: 17px; }
  .career-timeline p,
  .now-ledger p,
  .recognition-list p { font-size: 0.7rem; }
  .now-ledger { margin-top: 10px; }
  .now-ledger article { padding: 11px 0; }
  .timeline-note { margin-top: 14px; margin-bottom: 12px; padding: 9px 13px; font-size: 0.78rem; }

  .project-leaf .artifact { height: min(250px, 38vh); min-height: 200px; }
  .project-leaf .evidence-map,
  .project-leaf .aq-network { min-height: 125px; }
  .project-summary { font-size: 0.78rem; line-height: 1.34; }
  .project-proof { margin-top: 9px; }
  .project-stack,
  .project-actions { margin-top: 7px; }

  .recognition-list { margin-top: 10px; }
  .recognition-list article { padding: 11px 0; }
  .shelf-note { margin-top: 13px; padding-top: 11px; }

  .book-app[data-view="contents"] .subject-map button {
    min-height: 62px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .book-app[data-view="contents"] .reader-tip {
    margin-top: 9px;
  }

  .book-app[data-view="work"] .featured-entry {
    padding: 13px 0;
  }

  .book-app[data-view="work"] .featured-entry h3 {
    font-size: 1.2rem;
  }

  .book-app[data-view="work"] .featured-entry p {
    margin: 4px 0 6px;
    font-size: 0.76rem;
  }

  .book-app[data-view="work"] .short-note {
    margin-top: 8px;
  }

  .book-app[data-view="index"] .alphabet-index {
    margin-top: 12px;
  }

  .book-app[data-view="index"] .alphabet-index > div {
    min-height: 47px;
  }

  .book-app[data-view="index"] .errata-list {
    margin-top: 10px;
  }

  .book-app[data-view="index"] .errata-list article {
    padding: 9px 0;
  }

  .book-app[data-view="index"] .closing-note {
    margin-top: 9px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .book-app[data-view="resume"] .resume-ledger {
    margin-top: 10px;
  }

  .book-app[data-view="resume"] .resume-ledger > div {
    padding: 8px 0;
  }

  .book-app[data-view="resume"] .resume-download {
    margin-top: 12px;
  }

  .book-app[data-view="resume"] .library-card {
    padding: 15px 18px;
  }

  .book-app[data-view="resume"] .library-card > p {
    margin: 9px 0 11px;
    font-size: 0.78rem;
  }

  .book-app[data-view="resume"] .checkout-lines a {
    padding: 7px 0;
  }

  .book-app[data-view="resume"] .colophon {
    margin-top: 12px;
    padding-top: 10px;
  }

  .book-app[data-view="resume"] .colophon p {
    margin-top: 5px;
    font-size: 0.7rem;
  }

  .book-app[data-view="resume"] .return-shelf {
    margin-top: 10px;
  }
}

@media (max-width: 880px) {
  body.reader-open {
    overflow-y: auto;
  }

  .cover-book {
    width: min(88vw, 620px);
    height: min(80svh, 680px);
    min-height: 520px;
    transform: none;
  }

  .cover-center {
    padding: 44px 28px;
  }

  .cover-shelf-return {
    bottom: 15px;
  }

  .brand-title { font-size: 3.25rem; }
  .cover-subtitle { font-size: 1.45rem; }
  .cover-note { font-size: 1rem; }

  .mobile-top {
    min-height: calc(56px + env(safe-area-inset-top));
    border-bottom-color: rgba(212,173,98,0.18);
    background: #0c1116;
    backdrop-filter: none;
  }

  .book-frame {
    --reader-inline: 12px;
    padding: 58px 12px calc(82px + env(safe-area-inset-bottom));
  }

  .reader-status {
    top: 17px;
  }

  .book-stage {
    height: auto;
    min-height: 0;
  }

  .book-spread {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    box-shadow: 0 22px 52px rgba(0,0,0,0.52), 0 4px 0 -1px rgba(137,126,101,0.34);
  }

  .thumb-index,
  .page-edge {
    display: none;
  }

  .page {
    min-height: auto;
    padding: 52px 28px 58px;
    overflow: visible;
  }

  .page-left,
  .page-right {
    padding-right: 28px;
    padding-left: 28px;
    border: 0;
  }

  .page-right {
    border-top: 1px solid rgba(212,173,98,0.22);
  }

  .running-head {
    top: 19px;
    right: 28px;
    left: 28px;
  }

  .page-folio {
    right: 28px;
    bottom: 20px;
  }

  .page-left .page-folio {
    left: 28px;
  }

  .page h1 { font-size: 2.8rem; }
  .page h2 { font-size: 2.15rem; }

  .frontispiece-leaf {
    min-height: 620px;
  }

  .portrait-frontispiece img {
    max-height: 520px;
  }

  .artifact {
    height: 390px;
    min-height: 0;
  }

  .artifact-result {
    margin-bottom: 4px;
  }

  .mobile-dock {
    background: #0b1015;
    backdrop-filter: none;
  }

  .mobile-dock button.is-active {
    color: #9bc8a4;
  }

  .bookshelf-row.is-main .shelf-book-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 520px) {
  .cover-book {
    width: calc(100vw - 34px);
    height: min(78svh, 620px);
    min-height: 500px;
    box-shadow:
      5px 6px 0 -2px #988f79,
      9px 10px 0 -4px #5e584b,
      18px 24px 56px rgba(0,0,0,0.62);
  }

  .cover-book::before { inset: 22px; }
  .cover-book::after { right: -5px; width: 5px; }
  .cover-center { padding: 36px 23px; gap: 16px; }
  .brand-title { font-size: 2.75rem; }
  .cover-subtitle { font-size: 1.25rem; }
  .cover-note { font-size: 0.92rem; line-height: 1.45; }
  .cover-actions { gap: 8px; margin-top: 10px; }
  .cover-open { min-width: 100%; }
  .cover-link { flex: 1; min-width: 92px; padding: 0 12px; }

  .bookshelf-row.is-main .shelf-book-title {
    font-size: 0.88rem;
  }

  .reader-status {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .progress-meter {
    max-width: none;
  }

  .page,
  .page-left,
  .page-right {
    padding-right: 21px;
    padding-left: 21px;
  }

  .running-head { right: 21px; left: 21px; }
  .page-folio { right: 21px; }
  .page-left .page-folio { left: 21px; }
  .page h1 { font-size: 2.35rem; }
  .page h2 { font-size: 1.9rem; }
  .lead, .book-prose .lead { font-size: 1.05rem; }
  .book-prose p { font-size: 0.96rem; }
  .frontispiece-leaf { min-height: 540px; }

  .intro-index {
    grid-template-columns: 1fr;
  }

  .intro-index span,
  .intro-index span:nth-child(2n) {
    padding: 10px 0;
    border-left: 0;
  }

  .intro-index span:nth-child(n + 2) {
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .career-timeline li {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }

  .career-timeline li::before {
    left: 66px;
  }

  .now-ledger article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .timeline-note {
    margin-left: 16px;
  }

  .project-leaf .artifact {
    height: 300px;
    min-height: 0;
  }

  .project-proof,
  .shelf-note {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-stack {
    flex-wrap: wrap;
  }

  .recognition-list article {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
  }

  .current-line {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .margin-note {
    margin-left: 18px;
  }

  .book-toc button {
    grid-template-columns: 28px 1fr;
  }

  .book-toc small {
    grid-column: 2;
  }

  .subject-map {
    grid-template-columns: 1fr;
  }

  .subject-map button,
  .subject-map button:nth-child(2n) {
    min-height: 72px;
    padding: 13px 0;
    border-left: 0;
  }

  .featured-entry {
    grid-template-columns: 24px 1fr;
  }

  .featured-entry .ink-link {
    grid-column: 2;
    justify-self: start;
  }

  .artifact {
    height: 310px;
    padding: 14px;
  }

  .artifact-toolbar { font-size: 0.48rem; }
  .risk-console span { padding: 9px 3px; font-size: 0.58rem; }
  .evidence-node { min-width: 74px; padding: 9px 7px; font-size: 0.5rem; }
  .aq-node { width: 78px; font-size: 0.5rem; }
  .firm-shelf span { font-size: 0.4rem; }

  .artifact-result {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .case-facts {
    grid-template-columns: 1fr;
  }

  .case-facts div,
  .case-facts div + div {
    padding: 9px 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .case-facts div:first-child { border-top: 0; }

  .system-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .system-flow span {
    padding-top: 7px;
    border-top: 1px solid rgba(212,173,98,0.26);
  }

  .system-flow i {
    display: none;
  }

  .appendix-entry p { font-size: 0.82rem; }

  .alphabet-index > div {
    grid-template-columns: 28px 1fr;
    padding: 9px 0;
  }

  .alphabet-index button:last-child {
    grid-column: 2;
  }

  .errata-list article,
  .resume-ledger > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .closing-note {
    margin-left: 18px;
  }

  .library-card {
    padding: 19px;
  }

  .checkout-lines a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-turn,
  .turn-shadow,
  .book-spread.is-mobile-turn-forward,
  .book-spread.is-mobile-turn-backward {
    animation: none !important;
  }
}
