/* Wikitide's knowledge atlas: warm paper, editorial type and ruled layouts. */
:root {
  --header-offset: 144px;
}
html { scroll-padding-top: calc(var(--header-offset) + 24px); }
body {
  background-color: var(--wash);
  background-image: var(--grid-image);
  background-size: var(--grid-size) var(--grid-size);
  color: var(--ink);
  font: 15px/1.8 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
::selection { background: var(--control-bg); color: var(--ink); }
a { color: inherit; }
a, button, input, summary { touch-action: manipulation; }
a, button { transition: background-color var(--theme-duration), border-color var(--theme-duration), color var(--theme-duration); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.control-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--wash); }
.topbar, .primary-nav, .shell, .footer { width: calc(100% - 128px); max-width: 1248px; margin-inline: auto; }
.topbar { position: static; height: 96px; padding: 0; gap: 26px; background: transparent; border: 0; }
.brand { min-width: 0; }
.brand-logo { display: block; width: 188px; height: 68px; object-fit: contain; }
.searchbar { flex: 1; align-items: center; max-width: none; min-width: 140px; height: 50px; margin: 0; padding: 0 0 0 15px; gap: 12px; border: 1px solid var(--control-border); border-radius: 0; background: var(--paper); overflow: visible; }
.searchbar:focus-within { outline: 0; border-color: var(--accent); box-shadow: var(--shadow); }
.search-icon { width: 18px; height: 18px; flex: none; stroke: var(--muted); stroke-width: 1.5; }
.searchbar input:not([type=checkbox]) { padding: 8px 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: var(--ink); font: 15px var(--font-serif); }
.searchbar input:focus { outline: 0; }
.searchbar input::placeholder { color: var(--muted); opacity: 1; }
.searchbar button { display: grid; place-items: center; flex: none; align-self: center; width: 49px; height: 34px; min-width: 0; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); }
.searchbar button:hover { background: var(--hover); }
.search-shortcut { font: 11px var(--font-ui); color: var(--muted); }
.account { gap: 14px; font-size: 13px; }
.account-menu { position: relative; flex: none; }
.account .account-name { display: flex; align-items: center; max-width: 180px; min-height: 44px; padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); font: 700 18px/1.4 var(--font-serif); cursor: pointer; list-style: none; }
.account-name::-webkit-details-marker { display: none; }
.account-username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name:hover, .account-menu[open] .account-name { border-color: var(--line); }
.account-dropdown { position: absolute; top: calc(100% + 12px); right: 0; z-index: 30; display: flex; flex-direction: column; width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.account-dropdown::before { content: ""; position: absolute; top: -6px; right: 24px; width: 10px; height: 10px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--paper); transform: rotate(45deg); }
.account-dropdown a, .account-dropdown button { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 9px 10px; border: 0; border-radius: var(--radius); background: transparent; color: inherit; font: 14px/1.4 var(--font-serif); text-align: left; white-space: nowrap; text-decoration: none; cursor: pointer; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--hover); text-decoration: none; }
.account-dropdown .control-icon { width: 16px; height: 16px; }
.account-dropdown .account-logout { color: var(--warn); }
@media (max-width: 820px) {
  .account-dropdown { right: auto; left: 0; }
  .account-dropdown::before { right: auto; left: 24px; }
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border: 0; background: transparent; color: var(--ink); padding: 5px 3px; font: 13px var(--font-serif); }
.theme-toggle:hover, .login-link:hover, .link-button:hover { color: var(--accent); text-decoration: none; }
.theme-icon { display: flex; }
.sun-icon { display: none; }
.login-link { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 3px; white-space: nowrap; font: 17px var(--font-ui); }
.link-button { min-height: 34px; padding: 5px 3px; color: var(--ink); font-family: var(--font-serif); }
.library-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 11px 19px; min-height: 45px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); box-shadow: none; font: 600 14px/1.4 var(--font-serif); white-space: nowrap; }
.library-cta { flex: none; gap: 13px; padding-inline: 17px; }
.library-cta:hover, .button:hover { background: var(--hover); border-color: var(--line-strong); color: var(--button-ink); text-decoration: none; }
.button-light { background: transparent; color: var(--ink); border-color: var(--line); }
.button-light:hover { background: var(--hover); border-color: var(--ink); color: var(--ink); }
.primary-nav { display: flex; align-items: center; gap: 28px; height: 45px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav > a { position: relative; flex: none; display: flex; align-items: center; align-self: stretch; color: var(--muted); font-size: 15px; }
.primary-nav > a:hover { text-decoration: none; color: var(--ink); }
.primary-nav > a[aria-current] { color: var(--ink); }
.primary-nav > a[aria-current]::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 2px; background: var(--ink); }
.nav-edition { margin-left: auto; color: var(--muted); font: 10px var(--font-ui); letter-spacing: .1em; }
.shell { display: block; min-height: calc(100vh - 141px); }
.content { padding: 50px 0 84px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
.eyebrow { margin: 0 0 17px; color: var(--accent); font: 600 12px/1.6 var(--font-serif); letter-spacing: .05em; text-transform: none; }
.atlas-hero { display: grid; grid-template-columns: 46% 54%; position: relative; align-items: center; min-height: 570px; }
.hero-copy { position: relative; z-index: 1; padding-block: 10px 45px; }
.hero-number { font: 600 calc(clamp(110px, 11.4vw, 170px) * var(--hero-stats-scale))/1 var(--font-serif); letter-spacing: -.055em; font-variant-numeric: lining-nums tabular-nums; margin-left: -5px; }
.hero-number > span { font: 600 35px var(--font-serif); letter-spacing: 0; margin-left: 8px; }
.atlas-hero h1 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.4; letter-spacing: -.035em; margin: 18px 0 21px; }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; max-width: 470px; border-top: 1px solid var(--line); margin-bottom: 22px; }
.hero-facts > div { padding-top: 13px; }
.hero-facts > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-facts strong { display: block; font-size: 23px; font-weight: 600; }
.hero-facts span { display: block; color: var(--muted); font-size: 12px; }
.hero-description { margin: 0 0 7px; font-size: 15px; }
.hero-detail { margin: 0 0 25px; color: var(--muted); font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; align-self: stretch; display: grid; place-items: center; margin: -24px -28px 0 -38px; min-width: 0; }
.hero-art img { display: block; width: 100%; max-width: 690px; height: auto; filter: saturate(.75); }
.art-caption { position: absolute; bottom: 21px; right: 36px; font: 9px var(--font-ui); color: var(--muted); letter-spacing: .14em; }
.edition-band { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 16px 0; }
.edition-band > p { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; font-size: 12px; }
.edition-mark { font: 10px var(--font-ui); letter-spacing: 2px; color: var(--muted); }
.edition-band > p > span:last-child { color: var(--muted); }
.edition-band dl { display: flex; margin: 0; }
.edition-band dl > div { display: flex; flex-direction: column-reverse; min-width: 112px; padding-inline: 27px; border-left: 1px solid var(--line); }
.edition-band dl > div:last-child { padding-right: 0; }
.edition-band dt { color: var(--muted); font-size: 11px; }
.edition-band dd { margin: 0; font: 600 25px/1.2 var(--font-serif); }
.section { margin-top: 58px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading > div { min-width: 0; }
.section-heading .eyebrow { margin-bottom: 8px; font: 10px var(--font-display); letter-spacing: .14em; }
.section-heading h2 { font-size: 35px; font-weight: 650; line-height: 1.4; margin: 0; }
.section-description { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.section-heading a, .text-link { font: 600 13px var(--font-display); color: var(--ink); white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.text-link:hover { text-decoration: none; border-color: var(--ink); }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.collection-card { display: flex; flex-direction: column; min-width: 0; padding: 28px 26px 20px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); }
.collection-card:first-child { border-left: 0; padding-left: 0; }
.collection-card:last-child { padding-right: 0; }
.collection-card:hover { background: var(--hover); text-decoration: none; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.collection-heading h3 { margin: 0; font: 600 25px/1.4 var(--font-display); overflow-wrap: anywhere; }
.collection-number { font: 11px var(--font-serif); color: var(--muted); }
.collection-total { margin: 16px 0 13px; font: 600 48px/1.1 var(--font-serif); }
.collection-total > span { font: 12px var(--font-serif); color: var(--muted); margin-left: 10px; }
.coverage-meter { height: 3px; background: var(--line); }
.coverage-meter > span { display: block; height: 100%; background: var(--accent); }
.collection-card > p { margin: 13px 0 25px; color: var(--muted); font-size: 13px; }
.collection-bottom { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; margin-top: auto; }
.library-journal { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 46px; }
.library-journal .section-heading h2 { font-size: 29px; }
.journal-guides { border-left: 1px solid var(--line); padding-left: 30px; }
.note-list { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; box-shadow: none; overflow: visible; }
.note-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 21px 13px; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; }
.note-row > :first-child { min-width: 0; }
.recent-section .note-row { grid-template-columns: 26px minmax(0, 1fr) 20px; }
.note-row:last-child { border-bottom: 1px solid var(--line); }
.note-row:hover { background: var(--hover); text-decoration: none; }
.note-index { font: 13px var(--font-serif); color: var(--muted); align-self: start; padding-top: 5px; }
.note-row:hover .note-index, .note-row:hover .arrow { color: var(--accent); }
.note-main { min-width: 0; }
.note-row strong { font: 600 18px/1.6 var(--font-serif); overflow-wrap: anywhere; }
.note-row small { color: var(--muted); font: 12px/1.7 var(--font-ui); margin-top: 5px; overflow-wrap: anywhere; }
.note-row em { color: var(--muted); font: 13px/1.8 var(--font-ui); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arrow { color: var(--ink); font: 20px var(--font-ui); }
.journal-guide-list { border-top: 2px solid var(--ink); }
.journal-guide { display: grid; grid-template-columns: 20px minmax(0, 1fr) 12px; align-items: start; gap: 13px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.journal-guide:hover { background: var(--hover); text-decoration: none; }
.guide-number { color: var(--muted); font: 12px var(--font-serif); padding-top: 4px; }
.journal-guide strong { display: block; font-size: 19px; line-height: 1.5; }
.journal-guide small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font: 12px/1.8 var(--font-ui); margin-top: 8px; }
.library-manifesto { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; border-top: 1px solid var(--line); margin-top: 76px; padding-top: 52px; }
.library-manifesto h2 { font-size: 42px; line-height: 1.5; margin: 0 0 18px; }
.library-manifesto p { color: var(--muted); font-size: 14px; margin: 0 0 23px; }
.library-manifesto .eyebrow { color: var(--accent); }
.library-manifesto ol { list-style: none; margin: 0; padding: 0; }
.library-manifesto li { display: flex; gap: 26px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.library-manifesto li > span { color: var(--muted); font: 13px var(--font-serif); padding-top: 7px; }
.library-manifesto h3 { margin: 0 0 9px; font-size: 21px; }
.library-manifesto li p { font-size: 12px; margin: 0; }
.catalog-top { display: flex; justify-content: space-between; gap: 50px; align-items: start; margin-bottom: 48px; min-height: 185px; }
.page-head { margin-bottom: 35px; min-width: 0; }
.page-head h1 { margin: 0 0 16px; font-size: 42px; font-weight: 650; line-height: 1.5; }
.page-head p:last-child { color: var(--muted); font-size: 14px; }
.catalog-total { flex: none; min-width: 240px; border-left: 1px solid var(--line); padding-left: 40px; text-align: right; }
.catalog-total > span { color: var(--accent); font-size: 12px; }
.catalog-total > strong { display: block; white-space: nowrap; font: 600 104px/1.2 var(--font-serif); }
.catalog-total small { font: 24px var(--font-serif); margin-left: 7px; }
.catalog-total p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.catalog-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 36px; align-items: start; }
.directory-tree { position: sticky; top: calc(var(--header-offset) + 25px); max-height: calc(100vh - var(--header-offset) - 60px); overflow: auto; margin: 0; padding: 0 20px 0 0; border-right: 1px solid var(--line); font-size: 14px; }
.directory-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); min-height: 49px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.directory-title::-webkit-details-marker { display: none; }
.directory-title .control-icon { width: 14px; }
.directory-panel:not([open]) .directory-title .control-icon { transform: rotate(-90deg); }
.directory-tree ul { list-style: none; padding: 0; margin: 14px 0; }
.directory-tree ul ul { border-left: 1px solid var(--line); margin: 6px 0 9px 7px; padding-left: 12px; }
.directory-tree li { margin: 3px 0; }
.directory-tree li summary { cursor: pointer; list-style-position: inside; min-height: 40px; padding: 7px 2px; color: var(--ink); }
.directory-tree li summary:hover, .tree-leaf:hover { background: var(--hover); }
.tree-count { float: right; color: var(--muted); font: 11px/2.5 var(--font-ui); margin-left: 8px; }
.tree-view-all { display: inline-block; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); margin: 4px 0 6px 13px; }
.tree-leaf { display: block; padding: 9px 7px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.tree-leaf.selected { background: var(--hover); color: var(--ink); font-weight: 600; border-left: 2px solid var(--accent); }
.catalog-results { min-width: 0; }
.list-heading, .browse-page .note-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 148px 16px; gap: 18px; }
.list-heading { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 12px; font-size: 12px; font-weight: 600; }
.browse-page .note-list { border-top: 0; }
.browse-page .note-row { padding: 19px 12px; }
.browse-page .note-row:nth-child(even) { background: var(--paper); }
.browse-page .note-row:hover { background: var(--hover); }
.browse-page .note-category { display: block; margin: 0; align-self: center; font-size: 11px; color: var(--muted); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 28px; }
.pagination a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 15px; background: transparent; border: 1px solid var(--line); border-radius: 0; font-size: 12px; font-weight: 500; width: max-content; }
.pagination a:hover { background: var(--hover); color: var(--ink); text-decoration: none; border-color: var(--ink); }
.page-prev { justify-self: start; }
.page-next { justify-self: end; }
.page-position { font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); padding: 28px 10px; }
.form-wrap, .admin-section, .permission-form { background: var(--paper); border-color: var(--line); border-radius: 0; box-shadow: none; }
.form-wrap { max-width: 460px; padding: 38px; margin: 15px auto; }
.form-wrap h1 { font-size: 36px; }
.stack-form .button { margin-top: 9px; }
input:not([type=checkbox]), select, textarea { min-width: 0; border-color: var(--control-border); background: var(--paper); color: var(--ink); border-radius: 0; }
input:focus, select:focus, textarea:focus { outline-color: var(--accent); }
.checkbox input { accent-color: var(--accent); }
.admin-list, .admin-note-list { border-color: var(--line); border-radius: 0; }
.admin-note:hover { background: var(--hover); }
.admin-note, .admin-user, .sync-row, .permission-row { border-color: var(--line); }
.privacy-tag { color: var(--muted); background: var(--mint); border-radius: 0; }
.footer { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 50px; border-top: 6px double var(--ink); padding: 42px 0 58px; text-align: left; color: var(--muted); }
.footer-brand { display: flex; align-items: baseline; gap: 12px; font: 650 33px/1.2 var(--font-serif); color: var(--ink); }
.footer-brand > span { font: 600 30px var(--font-serif); }
.footer-identity p { font-size: 13px; margin: 17px 0 12px; }
.footer-identity small { font: 11px/1.9 var(--font-ui); }
.footer nav { display: flex; flex-direction: column; align-items: start; gap: 9px; font-size: 12px; }
.footer nav h2 { font-size: 17px; margin: 3px 0 8px; }
.footer-note { font: 8px/1.8 var(--font-ui); letter-spacing: .08em; margin-top: 12px; }
html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }
@media (max-width: 1100px) {
  .topbar, .primary-nav, .shell, .footer { width: calc(100% - 64px); }
  .topbar { gap: 18px; }
  .brand-logo { width: 156px; height: 60px; }
  .library-cta { padding-inline: 12px; }
  .library-cta .control-icon { display: none; }
  .searchbar input:not([type=checkbox]) { font-size: 14px; }
  .search-shortcut { display: none; }
  .account { gap: 10px; }
  .atlas-hero { min-height: 505px; }
  .hero-number { font-size: calc(132px * var(--hero-stats-scale)); }
  .atlas-hero h1 { font-size: 35px; }
  .hero-facts strong { font-size: 20px; }
  .hero-facts > div + div { padding-left: 14px; }
  .hero-art { margin-left: -10px; margin-right: -20px; }
  .catalog-layout { grid-template-columns: 202px minmax(0, 1fr); gap: 24px; }
  .list-heading, .browse-page .note-row { grid-template-columns: 24px minmax(0, 1fr) 108px 16px; gap: 13px; }
  .library-journal { gap: 30px; }
  .journal-guides { padding-left: 25px; }
}
@media (max-width: 820px) {
  :root { --header-offset: 175px; }
  .topbar { display: grid; grid-template-columns: 1fr auto; height: auto; min-height: 0; padding-top: 8px; gap: 5px 18px; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-logo { width: 160px; height: 47px; }
  .library-cta { grid-column: 2; grid-row: 1; min-height: 34px; font-size: 12px; padding: 7px 15px; }
  .searchbar { grid-column: 1 / -1; grid-row: 2; height: 43px; width: 100%; }
  .searchbar button { height: 29px; }
  .account { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; gap: 18px; min-height: 32px; }
  .account-name { display: inline; max-width: 100px; }
  .theme-toggle { padding: 4px 0; min-height: 30px; }
  .theme-toggle [data-theme-label] { display: inline; }
  .login-link, .link-button { min-height: 30px; padding: 3px 0; }
  .primary-nav { height: 42px; gap: 25px; }
  .primary-nav > a { font-size: 14px; }
  .nav-edition { display: none; }
  .content { padding-top: 35px; }
  .atlas-hero { min-height: 460px; grid-template-columns: 52% 48%; }
  .hero-number { font-size: calc(116px * var(--hero-stats-scale)); }
  .hero-number > span { font-size: 28px; }
  .atlas-hero h1 { font-size: 29px; }
  .hero-facts { grid-column: 1 / -1; }
  .hero-facts strong { font-size: 17px; }
  .hero-facts span { font-size: 11px; }
  .hero-actions .button { font-size: 12px; gap: 12px; padding-inline: 13px; }
  .hero-art { margin-right: -15px; margin-left: -28px; }
  .art-caption { font-size: 7px; right: 15px; }
  .edition-band { align-items: start; flex-direction: column; gap: 15px; }
  .edition-band dl { width: 100%; }
  .edition-band dl > div { flex: 1; padding-inline: 18px; }
  .edition-band dl > div:first-child { border-left: 0; padding-left: 0; }
  .catalog-layout { display: block; }
  .directory-tree { position: static; max-height: none; overflow: visible; border-right: 0; padding: 0; margin-bottom: 28px; }
  .directory-panel > ul { padding: 0 14px; }
  .catalog-top { min-height: 0; gap: 25px; margin-bottom: 32px; }
  .catalog-total { min-width: 170px; padding-left: 25px; }
  .catalog-total > strong { font-size: 80px; }
  .page-head h1 { font-size: 35px; }
  .collection-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .collection-card { padding-inline: 18px; }
  .collection-heading h3 { font-size: 22px; }
  .library-manifesto { gap: 35px; }
  .library-manifesto h2 { font-size: 32px; }
  .footer { gap: 30px; }
}
@media (max-width: 600px) {
  .topbar, .primary-nav, .shell, .footer { width: calc(100% - 32px); }
  .topbar { padding-inline: 0; }
  .account { gap: 20px; }
  .atlas-hero { display: block; min-height: 0; padding-top: 1px; }
  .hero-copy { padding-bottom: 26px; }
  .hero-copy .eyebrow { margin-bottom: 15px; font-size: 12px; }
  .hero-number { font-size: calc(99px * var(--hero-stats-scale)); line-height: 1; margin-left: -3px; letter-spacing: -.05em; }
  .hero-number > span { font-size: 25px; margin-left: 4px; }
  .atlas-hero h1 { max-width: 64%; margin-top: 17px; font-size: 27px; line-height: 1.4; }
  .hero-title-tail { display: block; }
  .hero-art { position: absolute; width: 47%; max-width: 196px; height: auto; right: -6px; top: 13px; margin: 0; }
  .hero-art img { width: 100%; }
  .art-caption { display: none; }
  .hero-facts { max-width: none; margin-top: 19px; margin-bottom: 20px; }
  .hero-facts > div { padding-top: 14px; }
  .hero-facts > div + div { padding-left: 20px; }
  .hero-facts strong { font-size: 20px; }
  .hero-facts span { font-size: 11px; }
  .hero-description { font-size: 14px; margin-bottom: 6px; }
  .hero-detail { font-size: 12px; margin-bottom: 23px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { min-height: 44px; font-size: 13px; gap: 13px; padding: 10px 13px; }
  .edition-band { padding-block: 15px; }
  .edition-band > p { font-size: 10px; gap: 8px; }
  .edition-band dl { flex-wrap: wrap; row-gap: 20px; }
  .edition-band dl > div { min-width: 90px; padding-inline: 15px; }
  .edition-band dd { font-size: 27px; }
  .section { margin-top: 42px; }
  .section-heading { gap: 14px; align-items: flex-end; margin-bottom: 23px; }
  .section-heading h2 { font-size: 29px; }
  .section-description { font-size: 13px; text-wrap: pretty; }
  .section-heading .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .section-heading > a { font-size: 11px; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card, .collection-card:first-child, .collection-card:last-child { padding: 23px 0; border-left: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 25px; }
  .collection-heading { grid-row: 1; grid-column: 1; }
  .collection-heading h3 { font-size: 25px; }
  .collection-number { display: none; }
  .collection-total { grid-row: 1; grid-column: 2; margin: 0; font-size: 39px; }
  .collection-total > span { font-size: 10px; margin-left: 7px; }
  .coverage-meter { grid-column: 1 / -1; margin-top: 15px; height: 2px; }
  .collection-card > p { grid-column: 1 / -1; margin: 12px 0 14px; font-size: 12px; }
  .collection-bottom { grid-column: 1 / -1; }
  .library-journal { display: block; }
  .journal-guides { border-left: 0; padding-left: 0; }
  .library-journal .section-heading h2 { font-size: 29px; }
  .note-row { gap: 12px; padding: 18px 2px; }
  .recent-section .note-row { grid-template-columns: 22px minmax(0, 1fr) 16px; }
  .note-row strong { font-size: 16px; }
  .note-row small { font-size: 10px; }
  .journal-guide { padding-block: 20px; }
  .journal-guide strong { font-size: 19px; }
  .library-manifesto { display: block; margin-top: 45px; padding-top: 35px; }
  .library-manifesto h2 { font-size: 35px; }
  .library-manifesto ol { margin-top: 30px; }
  .catalog-top { gap: 15px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 28px; margin-bottom: 13px; }
  .page-head .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .page-head p:last-child { font-size: 12px; }
  .catalog-total { min-width: 105px; max-width: 110px; padding-left: 15px; }
  .catalog-total > strong { font-size: 57px; }
  .catalog-total > span { font-size: 10px; }
  .catalog-total small { font-size: 15px; margin-left: 3px; }
  .catalog-total p { font-size: 10px; }
  .list-heading { grid-template-columns: 22px minmax(0, 1fr) 16px; padding-inline: 2px; font-size: 11px; }
  .list-heading > span:nth-child(3) { display: none; }
  .browse-page .note-row { grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 12px; padding: 17px 3px; }
  .browse-page .note-main { grid-column: 2; grid-row: 1; }
  .browse-page .note-category { grid-column: 2; grid-row: 2; font-size: 10px; margin-top: -6px; }
  .browse-page .arrow { grid-column: 3; grid-row: 1 / 3; }
  .browse-page .note-index { grid-column: 1; grid-row: 1 / 3; }
  .pagination { gap: 8px; }
  .pagination a { padding-inline: 11px; font-size: 11px; gap: 5px; }
  .page-position { font-size: 10px; }
  .content { padding-bottom: 50px; }
  .footer { grid-template-columns: 1fr 1fr; padding-block: 31px 40px; gap: 32px 25px; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-brand { font-size: 30px; }
  .footer-brand > span { font-size: 29px; }
  .footer-identity small { font-size: 10px; }
  .form-wrap { margin-top: 0; padding: 26px 20px; }
  .admin-section, .permission-form { padding: 20px; }
}
@media (max-width: 380px) {
  .hero-number { font-size: calc(84px * var(--hero-stats-scale)); }
  .hero-number > span { font-size: 22px; }
  .atlas-hero h1 { font-size: 25px; }
  .hero-art { width: 43%; top: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
