/* Editorial mobile library. Desktop museum and PDF layout retain their own styles. */
.mobile-archive {
  --mobile-ink: #19191c;
  --mobile-muted: #696b72;
  --mobile-crimson: #97051b;
  --mobile-paper: #fff;
  --mobile-gold: #a98138;
  --mobile-serif: "Times New Roman", Times, serif;
  font-family: var(--sans);
}
.mobile-archive *, .mobile-archive *::before, .mobile-archive *::after { letter-spacing: 0; }
.mobile-icon { display: inline-block; flex: 0 0 auto; width: 24px; height: 24px; background: currentColor; mask: var(--icon) center / contain no-repeat; }
.icon-book-open { --icon: url("icons/book-open.svg"); }
.icon-search { --icon: url("icons/search.svg"); }
.icon-bookmark { --icon: url("icons/bookmark.svg"); }
.icon-arrow-right { --icon: url("icons/arrow-right.svg"); }
.icon-diamond { --icon: url("icons/diamond.svg"); }
.mobile-archive .mobile-topbar,
.mobile-archive:not(.mobile-chrome-visible):not(.search-open) .mobile-topbar {
  position: relative; flex: 0 0 auto; max-height: none; padding: 10px 18px 8px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: #fff; color: var(--mobile-crimson); border: 0; box-shadow: none;
  opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
}
.mobile-topbar::before { display: none; }
.mobile-brandline { display: block; text-align: center; }
.mobile-brandline strong { font: 700 32px/1.05 var(--mobile-serif); color: var(--mobile-crimson); white-space: normal; overflow: visible; text-wrap: balance; }
.mobile-brandline .mobile-brand-subtitle { margin-top: 2px; color: #8b6828; font-size: 10px; line-height: 13px; font-weight: 700; text-transform: uppercase; }
.mobile-brandline .mobile-brand-rule { display: flex; justify-content: center; align-items: center; gap: 72px; height: 7px; margin-top: 2px; color: var(--mobile-gold); }
.mobile-brand-rule::before, .mobile-brand-rule::after { content: ""; width: 28px; border-top: 1px solid currentColor; }
.mobile-brand-rule .mobile-icon { width: 7px; height: 7px; }
.mobile-actions, .mobile-search-drawer, .mobile-archive.search-open .mobile-search-drawer { display: none; }
.mobile-archive .mobile-bottom-nav {
  left: 0; right: 0; bottom: 0; gap: 0; padding: 6px 12px max(7px, env(safe-area-inset-bottom));
  border: 0; border-top: 1px solid #dfe0e3; border-radius: 0; background: #fff; box-shadow: none;
}
.mobile-bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; padding: 0; border-radius: 4px; color: #696b72; font-size: 12px; font-weight: 500; text-transform: none; background: none; }
.mobile-bottom-nav button[aria-selected="true"] { color: var(--mobile-crimson); background: none; box-shadow: none; }
.mobile-bottom-nav .mobile-icon { width: 25px; height: 25px; }
.mobile-bottom-nav button small.sr-only { display: none; }
.mobile-archive-body { background: #fff; padding-bottom: calc(82px + env(safe-area-inset-bottom)); overscroll-behavior-y: contain; scrollbar-width: thin; }
.mobile-library-search { display: flex; align-items: center; height: 42px; margin: 4px 18px 12px; background: #f3f4f5; border: 1px solid #dfe0e3; border-radius: 8px; }
.mobile-library-search button { display: grid; place-items: center; width: 44px; height: 42px; padding: 0; border: 0; color: #6a6d72; }
.mobile-library-search input { flex: 1; min-width: 0; width: 100%; height: 40px; border: 0; background: transparent; color: var(--mobile-ink); padding: 0 10px 0 0; font-size: 16px; outline: none; }
.mobile-library-search:focus-within { outline: 2px solid var(--mobile-crimson); outline-offset: 2px; }
.mobile-library-search input::placeholder { color: #6b6e75; opacity: 1; }
.mobile-section { padding: 0 0 12px; }
.mobile-section + .mobile-section { border: 0; }
.mobile-section-head { padding: 0 18px 10px; gap: 12px; }
.mobile-section-head h3 { color: var(--mobile-ink); font: 700 26px/1.2 var(--mobile-serif); }
.mobile-section-head span { color: var(--mobile-muted); font-size: 12px; font-weight: 400; text-transform: none; }
.mobile-book-grid { gap: 22px 12px; padding: 0 18px; }
.mobile-volume { min-width: 0; flex-basis: 160px; }
.mobile-volume-cover { aspect-ratio: 3/4; border: 0; border-radius: 3px; box-shadow: 0 3px 10px #19191c18; background: #f2f2f2; }
.mobile-volume-cover::before, .mobile-volume-cover::after { display: none; }
.mobile-volume-cover .real-cover { background: #f2f2f2; }
.mobile-volume-cover .real-cover img { object-fit: contain; }
.mobile-volume-title { margin: 9px 0 4px; font: 700 16px/1.2 var(--mobile-serif); overflow-wrap: anywhere; }
.mobile-volume-meta { color: var(--mobile-muted); font-size: 12px; line-height: 1.4; }
.mobile-years { margin: 0 18px; padding-top: 20px; border-top: 1px solid #dfe0e3; }
.mobile-years .mobile-section-head, .mobile-years .mobile-book-grid { padding-left: 0; padding-right: 0; }
#mobileDecadeSelect { display: block; width: 100%; height: 44px; margin: 0 0 12px; padding: 0 12px; border: 1px solid #d2d4d8; border-radius: 6px; background: #fafafa; color: var(--mobile-ink); font-size: 16px; }
.mobile-shelf { gap: 14px; padding: 0 18px 12px; }
.mobile-book-badge { left: 6px; right: auto; bottom: 6px; padding: 4px 7px; min-height: 24px; border: 0; border-radius: 3px; background: #97051b; color: #fff; font-size: 11px; text-transform: none; box-shadow: none; }
.mobile-bookmark-dot { display: none; }
.mobile-search-page { padding: 4px 0 16px; background: #fff; }
.mobile-search-command { gap: 18px; margin: 0; padding: 4px 18px 20px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.mobile-search-command h2, .mobile-panel-intro h2 { font: 700 26px/1.2 var(--mobile-serif); margin: 0; }
.mobile-search-panelbar { grid-template-columns: minmax(0,1fr) 46px; gap: 8px; }
.mobile-search-panelbar input { height: 46px; padding: 10px 12px; border: 1px solid #d2d4d8; border-radius: 6px; font-size: 16px; box-shadow: none; }
.mobile-search-panelbar button { display: grid; place-items: center; border: 0; border-radius: 6px; color: #fff; background: var(--mobile-crimson); box-shadow: none; }
.mobile-search-state { margin: 0 18px 22px; padding: 0; border: 0; color: var(--mobile-muted); font-size: 14px; box-shadow: none; }
.mobile-search-topics { margin: 0 18px; }
.mobile-search-topics h3 { margin: 0 0 12px; font: 700 20px/1.2 var(--mobile-serif); }
.mobile-search-topics button { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 10px 0; text-align: left; border: 0; border-bottom: 1px solid #e4e4e7; color: var(--mobile-ink); font-size: 16px; }
.mobile-search-topics .mobile-icon { width: 20px; height: 20px; color: var(--mobile-crimson); }
.mobile-search-results { gap: 22px; }
.mobile-list { gap: 0; padding: 0 18px; }
.mobile-list-card { grid-template-columns: 88px minmax(0,1fr); gap: 16px; padding: 16px 0; border: 0; border-bottom: 1px solid #e4e4e7; border-radius: 0; box-shadow: none; }
.mobile-list-card .mobile-volume-cover { width: 88px; }
.mobile-list-card h4 { font: 700 18px/1.25 var(--mobile-serif); }
.mobile-list-card p { font-size: 13px; line-height: 1.45; }
.mobile-card-facts { gap: 6px; }
.mobile-card-facts span { padding: 0; border: 0; font-size: 11px; font-weight: 500; text-transform: none; }
.mobile-result { grid-template-columns: 42px minmax(0,1fr); gap: 14px; width: auto; margin: 0 18px; padding: 16px 0; border: 0; border-bottom: 1px solid #e4e4e7; border-radius: 0; box-shadow: none; }
.mobile-result-year { min-height: 30px; border: 0; border-radius: 3px; background: #f7edf0; color: var(--mobile-crimson); font: 700 13px/1 var(--sans); }
.mobile-result-title { font: 700 18px/1.25 var(--mobile-serif); }
.mobile-result-page { margin-top: 6px; padding: 0; border: 0; font-size: 12px; text-transform: none; }
.mobile-result-excerpt { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.mobile-result-excerpt mark { background: #fbebad; }
.mobile-list-card:active, .mobile-list-card:focus-visible, .mobile-result:hover, .mobile-result:focus-visible { background: #f9f9fa; box-shadow: none; transform: none; }
.mobile-panel-intro { padding: 4px 18px 22px; align-items: center; color: var(--mobile-ink); }
.mobile-back-btn { padding: 10px; min-height: 44px; border: 0; border-radius: 4px; font-size: 13px; text-transform: none; }
.mobile-empty { margin: 18px; padding: 32px 12px; border: 0; border-radius: 0; font-size: 15px; }
.mobile-empty > .mobile-icon { width: 36px; height: 36px; color: var(--mobile-crimson); }
.mobile-empty h3 { margin: 16px 0 20px; font: 700 22px/1.25 var(--mobile-serif); color: var(--mobile-ink); }
.mobile-empty button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--mobile-crimson); border-radius: 6px; font-size: 15px; color: var(--mobile-crimson); }
.mobile-search-loading { border: 0; border-radius: 4px; background: #f4f4f6; color: var(--mobile-muted); font-size: 14px; }
.mobile-account-links { display: flex; justify-content: space-between; margin: 12px 18px 0; border-top: 1px solid #e4e4e7; }
.mobile-account-links button { min-height: 48px; padding: 10px 0; border: 0; color: var(--mobile-muted); font-size: 14px; }
.mobile-archive button:focus-visible, .mobile-archive select:focus-visible, .mobile-archive input:focus-visible { outline: 2px solid var(--mobile-crimson); outline-offset: 3px; }
@media (max-width: 360px) {
  .mobile-library-search { margin-left: 14px; margin-right: 14px; }
}
@media (max-width:760px), (hover:none) and (pointer:coarse) {
  #library.mobile-library, #library.mobile-library .mobile-archive { height: 100dvh; }
  #reader .reader-ribbon, #reader .r-reader-id, #reader .r-bottom, #reader .r-actions, #reader .r-tools { border-radius: 6px; box-shadow: 0 2px 12px #19191c14; }
  #reader .reader-ribbon-btn { min-height: 44px; min-width: 44px; font-size: 12px; letter-spacing: 0; border-radius: 4px; text-transform: none; }
  #reader .r-close { width: 44px; height: 44px; }
  #reader .r-bottom .pos { font-size: 13px; }
  #reader .drawer, #reader .ocr-panel { border-radius: 8px 8px 0 0; background: #fff; }
  #reader .drawer h3, #reader .ocr-panel h3 { font: 700 24px/1.2 Georgia, serif; }
  #reader .drawer-content-row { font-size: 15px; min-height: 48px; }
  #reader .drawer-content-row small { font-size: 11px; line-height: 1.4; }
  #reader .drawer-contents h4 { font: 700 24px/1.2 "Times New Roman", serif; }
  #reader .drawer-cover-copy strong { font: 700 22px/1.15 "Times New Roman", serif; }
  #reader .ocr-actions button { min-height: 44px; font-size: 13px; padding: 10px; }
  #reader .ocr-text { font-size: 16px; line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-archive *, .mobile-archive *::before, .mobile-archive *::after { transition: none !important; scroll-behavior: auto; }
}
