:root {
  --paper-light: #fbf6e9;
  --paper-shadow: #58473824;
  --paper-tint: #e8ddc7;
  --brief: 160ms;
  --settle: 240ms;
  --ease-paper: cubic-bezier(.2,.68,.2,1);
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.mark { flex: 0 0 auto; vertical-align: middle; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; }
.brand > .mark { width: 29px; height: 29px; }
.brand i { margin-left: 2px; }
.topin { gap: clamp(12px, 2.7vw, 40px); }
.top nav { margin-inline-start: auto; gap: clamp(12px, 2vw, 28px); }
.top nav a { position: relative; border: 0; }
.top nav a::after {
  content: ""; position: absolute; bottom: 3px; left: 8%; right: 8%; height: 2px;
  background: var(--ink); transform: scaleX(0) rotate(-2deg); transform-origin: left;
  border-radius: 45%; transition: transform var(--brief) var(--ease-paper);
}
.top nav a:is(.current,:hover,:focus-visible)::after { transform: scaleX(1) rotate(-2deg); }
.search-launch {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--edge); padding: 0 10px; min-height: 44px;
  background: var(--sheet); border-radius: 24px; text-decoration: none;
  white-space: nowrap; font-size: .9rem;
}
.search-launch:hover, .icon-btn:hover { background: var(--paper-tint); color: var(--dark); }
kbd {
  background: var(--paper); color: var(--ink); border: 1px solid var(--edge); border-bottom-width: 2px;
  border-radius: 3px; padding: 1px 5px; font: .73rem/1.5 Consolas, monospace;
}
.ink-mark { position: relative; isolation: isolate; display: inline-block; }
.ink-mark::after {
  position: absolute; z-index: -1; content: ""; left: 0; right: -.02em; bottom: .015em; height: .12em;
  border-radius: 82% 17% 64% 18%; background: var(--tobacco); transform-origin: left;
  transform: rotate(-2deg); opacity: .72;
}
@keyframes pencil-mark {
  from { transform: rotate(-2deg) scaleX(.08); }
  to { transform: rotate(-2deg) scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .ink-mark::after { animation: pencil-mark 380ms var(--ease-paper) 50ms backwards; }
}
.login { padding-inline: clamp(12px, 2.3vw, 40px); gap: clamp(35px, 6vw, 88px); }
.login .cover h1 { margin-top: 15px; }
.login .cover-print {
  width: min(100%, 460px); margin: 25px 0 8px; padding: 9px 16px;
  background: var(--paper-light); border: 1px solid var(--edge);
  border-radius: 2px; box-shadow: 2px 3px 0 var(--paper-shadow); transform: rotate(-1.3deg);
}
.login .cover-print img { display: block; width: 100%; margin: 0; }
.login .login-paper {
  position: relative; padding: clamp(24px, 3.2vw, 48px); border-radius: 2px 11px 4px 3px;
  box-shadow: 3px 4px 0 var(--sand), 6px 7px 0 var(--paper-shadow);
}
.login-paper::before {
  content: ""; position: absolute; top: -1px; right: 23px; width: 16px; height: 33px;
  background: var(--tobacco); clip-path: polygon(0 0,100% 0,100% 100%,51% 77%,0 100%);
}
.login-paper h2 { margin-bottom: 22px; }
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { width: 100%; min-width: 0; padding-inline-end: 50px; background: var(--paper-light); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px;
  padding: 0; margin: 0; background: transparent; color: var(--ink); border: 0;
}
.password-field .eye { position: absolute; right: 1px; transform: none; }
.eye[aria-pressed="false"] .mark:last-child, .eye[aria-pressed="true"] .mark:first-child { display: none; }
.login-paper > .action-ink { margin-top: 24px; }
.coursecard > .mark { transition: transform var(--brief) var(--ease-paper); }
.coursecard:focus-visible > .mark { transform: translateX(3px); }
.field-error { color: var(--dark); font-weight: 650; padding-inline-start: 12px; border-inline-start: 3px solid var(--ink); }

.login-brand-note { margin-inline-start: auto; color: var(--ink); font-size: .88rem; }
.login-return { margin-block: -10px 18px; }
.home-cover { padding-block: clamp(18px, 4vw, 42px); }
.home-cover figure { justify-self: center; width: min(100%, 390px); }
.home-bookmark {
  display: grid; gap: 3px; max-width: 38em; margin: 12px 0 18px;
  padding: 3px 0 3px 13px; border-inline-start: 3px solid var(--tobacco); overflow-wrap: anywhere;
}
.home-bookmark small, .home-bookmark span { font: .86rem/1.6 var(--ui); }
.home-bookmark small .mark { width: 15px; height: 15px; }
.home-bookmark strong { font: 650 clamp(1.04rem,2vw,1.32rem)/1.5 var(--serif); }
.home-desk { align-self: start; border-block: 2px solid var(--ink); padding: 0 4px; }
.home-desk section { padding: 14px 0; }
.home-desk section + section { border-top: 1px solid var(--edge); }
.home-desk h2, .account-grid h2 { font: 650 1.4rem/1.4 var(--serif); margin: 4px 0; }
.home-desk h2 a { text-decoration: none; }
.home-desk h2 a:is(:hover,:focus-visible) { text-decoration: underline; }
.home-desk p, .account-grid p { margin: 8px 0; }
.account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,4vw,40px); }
.account-grid section { border-top: 2px solid var(--ink); padding-block: 16px; overflow-wrap: anywhere; }
.account-session { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-top: 1px solid var(--edge); padding-top: 18px; }
.reader-trail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reader-trail a { display: inline-flex; align-items: center; min-height: 44px; }
.prose [data-cell-align="center"] { text-align: center; }
.prose [data-cell-align="left"] { text-align: left; }
.prose [data-cell-align="right"] { text-align: right; }
.prose [data-tight="left"] { padding-left: 0; }
.prose [data-tight="right"] { padding-right: 0; }
.prose table[data-column-width="100%"] { width: 100%; }
.prose col[data-column-width] { width: attr(data-column-width type(<percentage>), auto); }
@media (max-width: 620px) {
  .account-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .login-brand-note { grid-column: 2; grid-row: 1; align-self: center; }
  .home-cover figure { width: min(75%,280px); }
  .login:has(.login-return) .cover-print { display: none; }
}

/* Controls share the cover's ink and stock. Their edges distinguish the action. */
.paper-action {
  position: relative; isolation: isolate; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; min-height: 44px; max-width: 100%; width: fit-content;
  padding: 7px 15px; margin: 0; vertical-align: middle; text-align: start; text-decoration: none;
  font: 650 .94rem/1.45 var(--ui); color: var(--ink); background: transparent; border: 0;
  cursor: pointer; touch-action: manipulation;
  transition: transform var(--brief) var(--ease-paper), box-shadow var(--brief) var(--ease-paper);
}
.paper-action:hover { background: transparent; color: var(--ink); transform: none; }
.paper-action:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.action-label { min-width: 0; overflow-wrap: anywhere; }
.action-icon { display: inline-grid; flex: none; place-items: center; }
.action-icon .mark { width: 18px; height: 18px; }
.action-ink, .action-ink:hover {
  gap: 16px; padding: 8px 12px 8px 23px; min-height: 46px;
  background: var(--ink); color: var(--paper-light); border: 1px solid var(--dark);
  border-radius: 3px 7px 4px 3px;
}
.action-ink::before {
  content: ""; position: absolute; inset: 0 auto 0 5px;
  border-left: 1px solid #cfbea581; border-right: 1px solid #332c2580; width: 2px;
}
.action-ink .action-icon { order: 1; align-self: stretch; padding-left: 10px; border-left: 1px solid #f1eada55; }
.action-ink .mark, .action-line .mark, .action-ticket .mark, .course-cover {
  transition: transform var(--brief) var(--ease-paper);
}
.action-line, .action-line:hover { font-weight: 600; padding: 4px 2px; gap: 7px; }
.action-line .action-icon { order: 1; }
.action-line .mark { width: 16px; height: 16px; }
.action-line .action-label { position: relative; }
.action-line .action-label::after {
  content: ""; position: absolute; inset: auto 0 -3px; height: 2px; border-radius: 68% 31% 70% 26%;
  background: var(--tobacco); transform-origin: left; transform: scaleX(.3);
  transition: transform var(--settle) var(--ease-paper);
}
.action-ticket, .action-ticket:hover {
  gap: 0; padding: 0; font-weight: 600;
  filter: drop-shadow(0 1px 1px #4a38282b);
  transition: filter var(--brief), transform var(--brief) var(--ease-paper);
}
.action-ticket::before, .action-ticket::after, .action-ribbon::before, .action-ribbon::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
}
.action-ticket::before, .action-ticket::after {
  --perforation: 35px;
  border-radius: 3px;
  mask: radial-gradient(circle at var(--perforation) 0, transparent 3px, black 3.8px) top/100% 51% no-repeat,
        radial-gradient(circle at var(--perforation) 100%, transparent 3px, black 3.8px) bottom/100% 51% no-repeat;
}
.action-ticket::before { background: var(--tobacco); }
.action-ticket::after { --perforation: 34px; inset: 1px; background: var(--paper-light); }
.action-ticket .action-icon { width: 36px; min-height: 25px; border-right: 1px dashed var(--tobacco); }
.action-ticket .action-label { padding: 8px 14px 8px 10px; }
.action-ribbon, .action-ribbon:hover { gap: 7px; padding: 6px 20px 6px 11px; }
.action-ribbon::before, .action-ribbon::after {
  clip-path: polygon(0 0,100% 0,calc(100% - 8px) 50%,100% 100%,0 100%);
}
.action-ribbon::before { background: var(--tobacco); }
.action-ribbon::after { inset: 1px 2px 1px 1px; background: var(--paper-tint); }
.action-ribbon .mark { height: 16px; width: 16px; }
.action-ribbon[data-saved] { color: var(--dark); }
.action-ribbon[data-saved] .mark { fill: var(--ink); stroke: var(--ink); }
.action-ribbon[data-saved]::before { background: var(--ink); }
.action-ribbon[data-saved]::after { background: var(--sand); }
.action-stamp, .action-stamp:hover {
  border: 1.5px solid var(--ink); border-radius: 5px 3px 6px 4px; padding: 8px 16px;
  background: var(--paper-light); color: var(--ink); box-shadow: 1px 2px 0 var(--sand);
}
.action-stamp::before { content: ""; position: absolute; inset: 3px; border: 1px solid var(--tobacco); border-radius: 2px 2px 4px 2px; pointer-events: none; }
form:not(.search,.dialog-search) > :is(.action-stamp,.action-ribbon) { margin-top: 10px; }
.save-receipt {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
  padding: 5px 16px 5px 7px; margin: 12px 0; background: var(--paper-light); color: var(--dark);
  border: 1px solid var(--edge); border-radius: 3px 7px 4px 3px; font-weight: 650;
}
.seal-mark {
  display: grid; place-items: center; width: 31px; height: 30px; flex: none;
  border: 3px double var(--ink); border-radius: 52% 47% 50% 46%; transform: rotate(-5deg);
}
.seal-mark .mark { width: 17px; height: 17px; }
.paper-action:focus-visible .action-label::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .action-ink:hover .mark, .action-line:hover .mark { transform: translateX(2px); }
  .action-line:hover .action-label::after { transform: scaleX(1); }
  .action-ticket:hover::before, .action-ribbon:hover::before { background: var(--ink); }
  .action-ticket:hover::after, .action-ribbon:hover::after { background: var(--sand); }
  .action-ticket:hover .mark { transform: translateY(2px); }
  .action-ticket:hover { filter: drop-shadow(0 3px 2px #4a38283f); }
  .action-stamp:hover { background: var(--paper-tint); transform: rotate(-.65deg); }
  .coursecard:hover .course-cover { transform: rotate(-3deg); }
  .coursecard:hover > .mark { transform: translateX(3px); }
}
@media (prefers-reduced-motion: no-preference) {
  .paper-action:not(.light-surface):is(:active,[data-touch-pressed]) { transform: translateY(1px); }
}
.action-ticket:is(:active,[data-touch-pressed]) { filter: drop-shadow(0 0 0 transparent); }
.action-stamp:is(:active,[data-touch-pressed]) { box-shadow: 0 0 0 transparent; }

.courses { gap: 14px 16px; padding-top: 4px; }
.coursecard {
  position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr) 23px; gap: 16px;
  min-height: 86px; padding: 13px 18px 13px 13px; background: var(--sheet);
  border-radius: 3px 10px 4px 2px; border: 1px solid var(--edge);
}
.coursecard:nth-child(3n) { border-left-color: var(--edge); }
.course-cover {
  height: 54px; width: 50px; display: grid; place-items: center; background: var(--sand);
  border: 1px solid var(--edge); border-inline-start: 3px solid var(--tobacco);
  border-radius: 2px 5px 4px 2px; overflow: hidden;
}
.coursecard:nth-child(3n + 2) .course-cover { background: var(--paper-tint); }
.coursecard:nth-child(3n) .course-cover { background: var(--mountain); }
.course-cover .mark { width: 26px; height: 26px; color: var(--dark); }
.course-cover img { height: 100%; width: 100%; object-fit: cover; mix-blend-mode: multiply; }
.course-name { min-width: 0; }
.course-name strong { display: block; font: 650 1.17rem/1.33 var(--serif); overflow-wrap: anywhere; }
.course-name small { display: block; margin-top: 5px; color: var(--ink); font-size: .8rem; }
.coursecard:is(:hover,:focus-visible) { background: var(--paper-light); }
.btn:active,button:not(.light-surface):active { transform: translateY(1px); }

/* A bright upper lip, a small pool of transmitted light, and a contact shadow. */
.light-surface {
  --light-core: #fffcf0eb; --light-middle: #ffeacc6b; --light-edge: #fff3cce6;
  --light-rim: #fffaf0e0; --light-lower-rim: #926a422c;
  --light-extent: 104px 54px; --light-strength: .56; --press-scale: .982;
  --contact: 0 1px 2px #49382335, 0 4px 10px -5px #563a204d;
  position: relative; isolation: isolate;
  box-shadow: inset 0 1px 0 var(--light-rim), inset 0 -1px 0 var(--light-lower-rim), var(--contact);
  transition: box-shadow 180ms ease-out, translate 190ms var(--ease-paper),
    scale 185ms var(--ease-paper), background-color var(--brief);
}
.light-surface::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(ellipse var(--light-extent) at var(--light-x,28%) var(--light-y,8%),
      var(--light-core), var(--light-middle) 48%, transparent 100%),
    radial-gradient(ellipse 39% 17% at var(--light-x,73%) 101%, var(--light-edge), transparent 96%);
  opacity: var(--light-strength); transition: opacity 150ms ease-out;
}
.action-ink.light-surface {
  --light-core: #fff1d624; --light-middle: #ffe9bd12; --light-edge: #ffd39789;
  --light-rim: #ddc8a970; --light-lower-rim: #30251ed9;
  --contact: 0 2px 0 #a78c6b, 0 4px 9px -3px #4c35245e;
  background-image: linear-gradient(155deg,#635244,#4e3e32 68%,#604a37);
}
.coursecard.light-surface {
  --light-extent: 150px 74px; --press-scale: .994;
  background-image: linear-gradient(116deg,#eadcc755,transparent 42%,#e5d7bd45);
}
.coursecard.light-surface:hover { transform: none; }
.search-launch.light-surface {
  background-color: #f6efdf;
  background-image: linear-gradient(150deg,#fffcf280,#e1e5d42b 52%,#dec39b4f);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .search-launch.light-surface {
    background-color: #f8efdcba;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
}
.light-surface:focus-visible {
  --light-strength: .95; --contact: 0 2px 3px #46342135, 0 6px 15px -5px #4e38274f;
  outline: 3px solid var(--ink); outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .light-surface:hover {
    --light-strength: 1; --contact: 0 2px 3px #46342135, 0 7px 16px -5px #4e38275c;
    translate: 0 -2px;
  }
}
.light-surface:is(:active,[data-touch-pressed]) {
  --light-strength: .94; --contact: inset 0 1px 3px #503c282f, 0 1px 2px #4e38272b;
  translate: 0 1px; scale: var(--press-scale); transition-duration: 65ms;
}

.shelf-section { margin-block: 34px; }
.shelf-section h2, .find-count {
  border-bottom: 1px solid var(--edge); padding-bottom: 8px; margin-bottom: 12px;
}
.shelf-section h2 { font-size: clamp(1.35rem,2.5vw,1.8rem); }
.find-search > div { max-width: 780px; }
.find-search select { width: auto; min-width: 8em; }
.find-search select, .find-search input, .archive-query :is(input,select) { min-height: 44px; }
.find-examples, .find-pages, .find-sections, .archive-jump {
  display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center;
}
.find-sections a, .find-examples a, .find-pages a, .archive-jump a {
  min-height: 40px; display: inline-flex; align-items: center; overflow-wrap: anywhere;
}
.find-count { display: flex; gap: 12px; align-items: baseline; font-size: 1.45rem; }
.find-count h2 { margin: 0; font-size: inherit; }
.find-result { max-width: 82ch; overflow-wrap: anywhere; }
.find-result h3, .source-register h3 { font: 650 1.2rem/1.52 var(--serif); margin: 3px 0 6px; }
.find-result h3 .edition-label { display: inline-block; vertical-align: middle; margin-inline-start: 9px; }
.find-result p { margin: .4em 0; }
.find-result mark { color: inherit; background: #ebd89f; }
.find-sections { font: 500 .85rem/1.5 var(--ui); }
.find-empty, .issue-card { max-width: 78ch; padding: 18px 22px; border-inline-start: 3px solid var(--tobacco); background: var(--sheet); overflow-wrap: anywhere; }
.find-empty h2, .issue-card h2 { margin: 4px 0; font-size: 1.35rem; }
.find-pages { margin: 22px 0; font: 500 .92rem var(--ui); }
.find-pages span { color: var(--ink); }
.archive-jump { margin: -8px 0 15px; }
.archive-query { display: grid; grid-template-columns: minmax(10em,1fr) minmax(14em,2fr) auto; gap: 10px; max-width: 780px; align-items: end; }
.archive-query label { margin: 0; }
.archive-query + .find-count { margin-top: 24px; }
.archive-query :is(select,input) { display: block; width: 100%; min-width: 0; }
.source-register { margin: 0; padding: 0; list-style: none; }
.source-register > li { padding: 12px 0; border-bottom: 1px solid var(--edge); }
.source-copy, .source-extra { overflow-wrap: anywhere; }
.source-register h3 { font-size: 1.06rem; }
.source-extra { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; font: 500 .85rem/1.5 var(--ui); }
.source-extra details { margin: 0; border: 0; padding: 0; max-width: 100%; }
.source-extra details[open] { flex-basis: 100%; }
.source-extra summary { width: fit-content; min-height: 34px; padding: 3px 0; gap: 8px; }
.source-extra details p { margin: 2px 0; }
@media (max-width:620px) {
  .find-search > div:has(select) { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .find-search select { grid-column: 1/-1; width: 100%; }
  .archive-query { grid-template-columns: minmax(0,1fr) auto; }
  .archive-query label:first-child { grid-column: 1/-1; }
  .source-extra summary, .find-sections a, .find-pages a { min-height: 44px; }
}

.search-dialog {
  --spot-top: clamp(16px, 13vh, 110px); --spot-line: #82725a47;
  box-sizing: border-box; width: min(570px,calc(100% - 24px)); max-width: none;
  max-height: calc(100vh - var(--spot-top) - 12px); max-height: calc(100dvh - var(--spot-top) - 12px);
  margin: var(--spot-top) auto auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid #e4d7c3; border-radius: 24px; color: var(--ink);
  background: linear-gradient(145deg,#fffaf0,#f3e9d8);
  box-shadow: inset 0 1px 0 #fffdf6, 0 2px 5px #38291e22, 0 20px 70px #38291e45;
  font-family: var(--ui);
}
.search-dialog:not([open]) { display: none; }
.search-dialog::backdrop { background: rgb(48 38 27 / 35%); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .search-dialog { background: linear-gradient(135deg,#fffcf3f5,#f5ead9ee); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
  .search-dialog::backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}
.dialog-body { display: flex; flex-direction: column; max-height: inherit; }
.dialog-search {
  display: flex; flex: none; align-items: center; gap: 12px; margin: 0;
  padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--spot-line);
}
.dialog-search > .mark { width: 25px; height: 25px; color: #71563e; }
.dialog-search input {
  flex: 1; width: 0; min-width: 0; min-height: 44px; padding: 4px 0;
  border: 0; border-radius: 2px; background: transparent; box-shadow: none;
  color: var(--dark); font: 500 clamp(1.12rem,3vw,1.42rem)/1.45 var(--ui);
}
.dialog-search input::placeholder { color: #77664e; opacity: 1; }
.dialog-search input:focus-visible { outline: 0; }
.dialog-search:has(input:focus-visible) { box-shadow: inset 0 -2px #927351; }
.spot-close, .spot-submit {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  margin: 0; border: 0; box-shadow: none; color: var(--ink); background: transparent;
}
.spot-close { position: relative; isolation: isolate; padding: 0; border-radius: 50%; }
.spot-close::before { content: ""; position: absolute; z-index: -1; inset: 9px; border-radius: 50%; background: #dacdb97d; }
.spot-close > .mark { width: 15px; height: 15px; }
.spot-close:hover, .spot-submit:hover { color: var(--dark); background: transparent; }
.spot-close:is(:hover,:focus-visible)::before { background: #d6c5a9; }
.spot-results { padding: 12px 10px 8px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.spot-caption { color: #685943; padding: 0 10px 6px; font-size: .78rem; line-height: 1.5; }
.spot-list { display: grid; gap: 2px; }
.spot-row {
  display: grid; grid-template-columns: 36px minmax(0,1fr) 17px; gap: 12px; align-items: center;
  min-height: 52px; padding: 6px 12px; border-radius: 12px; color: var(--ink); text-decoration: none;
  transition: background-color var(--brief), color var(--brief);
}
.spot-row:is(:hover,:focus-visible) { color: var(--dark); background: #e4d8c5; }
.spot-row:focus-visible { outline: 2px solid #765b40; outline-offset: -2px; }
.spot-tile {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid #927d602f; background: #eee0c9; color: #785735; box-shadow: inset 0 1px #fffaf080;
}
.spot-row[data-section] .spot-tile { background: #e1e1d0; color: #505d45; font: 1.35rem/1 var(--serif); }
.spot-tile .mark { width: 19px; height: 19px; }
.spot-copy { min-width: 0; }
.spot-copy > * { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spot-copy strong { font: 600 .96rem/1.45 var(--ui); }
.spot-copy small { margin-top: 1px; color: #695c4b; font-size: .77rem; line-height: 1.4; }
.spot-row > .mark { width: 15px; color: #71624e; opacity: .72; }
.spot-row:is(:hover,:focus-visible) > .mark { opacity: 1; }
.spot-footer {
  display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 2px 14px; border-top: 1px solid var(--spot-line); background: #dfd1b92e;
}
.spot-keys { display: flex; align-items: center; gap: 5px; margin-right: auto; color: #685943; font-size: .73rem; }
.spot-keys kbd { background: #fbf6e9; padding: 0 4px; border: 1px solid #bcae98; border-radius: 4px; font-size: .71rem; }
.spot-keys kbd:last-of-type { margin-left: 5px; }
.spot-submit { gap: 6px; padding: 0 9px; font-size: .83rem; font-weight: 600; border-radius: 10px; }
.spot-submit .mark { width: 16px; }
.spot-submit:is(:hover,:focus-visible) { background: #e4d8c5; }
@media (max-width: 520px), (pointer: coarse) {
  .search-dialog { --spot-top: max(env(safe-area-inset-top),12px); border-radius: 20px; }
  .spot-keys { display: none; }
  .dialog-search { padding: 6px 8px 6px 15px; gap: 8px; }
  .spot-results { padding: 9px 6px 6px; }
}
@media (prefers-reduced-transparency: reduce) {
  .search-dialog { background: #fbf5e8; }
  .search-launch.light-surface { background: var(--paper-light); }
  .light-surface::after { display: none; }
  .search-dialog, .search-dialog::backdrop, .search-launch.light-surface { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .search-dialog, .spot-tile, .spot-close::before { border: 1px solid ButtonText; }
  .dialog-search:has(input:focus-visible) { outline: 2px solid Highlight; outline-offset: -2px; }
}
.task-filters a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  padding: 5px 12px; background: var(--paper); border: 1px solid var(--edge); border-radius: 4px;
  color: var(--ink); text-decoration: none; font-size: .91rem;
}
.task-filters a:hover { border-color: var(--ink); background: var(--paper-tint); }
:root:has(.search-dialog[open]) { overflow: hidden; }

.index { padding: 0 7px 5px 1px; }
.index details, .chapter > details, .prose + details, .card details {
  border: 1px solid var(--edge); border-radius: 3px; padding: 0 12px 2px; background: var(--sheet);
}
details > summary {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  list-style: none; min-height: 44px; padding-inline: 2px;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content:""; width: 7px; height: 7px; flex: 0 0 7px; margin-inline-end: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform var(--brief) var(--ease-paper);
}
details[open] > summary::after { transform: rotate(225deg); }
[data-outline] { overflow-wrap: anywhere; }
.index details a { min-height: 44px; align-content: center; }
.index a[aria-current="location"] { background: var(--paper-tint); font-weight: 700; border-left-color: var(--ink); }
.chapter .entries a[href^="/file/"] {
  min-width: 0; min-height: 44px; padding: 5px 11px; overflow-wrap: anywhere;
  color: var(--ink); background: var(--paper-light); border: 1px solid var(--edge);
  border-inline-start: 3px double var(--tobacco); border-radius: 2px 7px 4px 2px;
  box-shadow: 0 1px 2px var(--paper-shadow);
}
@media (hover: hover) and (pointer: fine) {
  .chapter .entries a[href^="/file/"]:hover { border-color: var(--tobacco); background: var(--sheet); }
}
.reader-strip {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; background: var(--paper); border-block: 1px solid var(--edge); min-height: 45px;
  color: var(--ink); font-size: .84rem;
}

/* A ruled chapter catalogue. Notes open in the margin on desktop and inline on touch. */
.chapter-heading {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0 18px; margin: 26px 0 4px; border-bottom: 1px solid var(--tobacco);
}
.chapter-heading h2 { min-width: 0; margin: 0; padding-block: 7px; }
.readgrid > div > .chapter:first-child .chapter-heading { margin-top: 0; }
.chapter-heading .paper-action { font-size: .85rem; }
.edition-list, .edition-variants { list-style: none; margin: 0; padding: 0; }
.edition-group { border-bottom: 1px solid #a5917054; }
.edition-row { position: relative; min-width: 0; color: var(--ink); }
.edition-row :is(a, summary), .edition-history > summary { -webkit-tap-highlight-color: #b59e7d40; }
.edition-main { min-width: 0; align-self: center; }
.edition-link {
  display: inline-block; max-width: 100%; min-height: 40px; align-content: center;
  color: var(--dark); font: 600 1.03rem/1.45 var(--serif); overflow-wrap: anywhere;
  text-decoration-color: transparent;
}
.edition-link:is(:hover,:focus-visible) { text-decoration-color: currentColor; }
.edition-link:active { color: #785c3f; }
.edition-label {
  max-width: 100%; padding: 1px 7px; border: 1px solid #c4b69b; border-radius: 3px;
  background: #f5efdf; color: #65523d; font: 500 .75rem/1.55 var(--ui); overflow-wrap: anywhere;
}
.edition-note { margin: 0; padding: 0; border: 0; background: transparent; }
.edition-note > summary {
  display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px;
  margin: 0; padding: 3px 0; cursor: pointer; border-radius: 5px;
}
.edition-note > summary::after { display: none; }
.edition-note .edition-label {
  display: inline-flex; align-items: center; gap: 8px; min-width: 44px; padding: 4px 9px;
  border-radius: 5px; border: 1px solid #a5b9ab; background: #f2f5ec; color: #28574f;
  box-shadow: 0 2px 0 #b1bdb0; font: 600 .8rem/1.45 var(--ui);
  transition: transform 150ms var(--ease-paper), box-shadow 150ms, background-color 150ms;
}
.edition-note .edition-label::after {
  content: ""; flex: none; width: 6px; height: 6px; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms var(--ease-paper);
}
.edition-note[open] > summary .edition-label { background: #dce9df; border-color: #759487; }
.edition-note[open] > summary .edition-label::after { transform: translateY(1px) rotate(225deg); }
.edition-note > summary:is(:active, [data-touch-pressed]) .edition-label {
  color: #193f38; background: #c6dace; box-shadow: inset 0 2px 3px #315d4f33;
  transform: translateY(2px); transition-duration: 0s;
}
.edition-row { padding-block: 3px; }
@supports selector(details::details-content) {
  .edition-row {
    display: grid; grid-template-columns: minmax(0,1fr) fit-content(45%); column-gap: 12px;
  }
  .edition-row > .edition-main { grid-area: 1 / 1; }
  .edition-row > .edition-note { display: contents; }
  .edition-row > .edition-note > summary { grid-area: 1 / 2; align-self: center; justify-self: end; }
  .edition-row > .edition-note::details-content { grid-area: 2 / 1 / auto / -1; min-width: 0; }
  .edition-variants > .edition-row { grid-template-columns: minmax(0,1fr) max-content; }
  .edition-variants > .edition-row > .edition-main { grid-area: 1 / 2; }
  .edition-variants > .edition-row > .edition-note > summary { grid-area: 1 / 1; justify-self: start; }
}
@media (hover: hover) {
  .edition-note > summary:hover .edition-label { background: #e5ede2; border-color: #759487; }
}
.edition-description {
  position: absolute; inset: calc(100% - 2px) 0 auto auto; z-index: 6;
  width: min(100%, 27rem); padding: 12px 16px; color: #34443d;
  border: 1px solid #becdc0; border-inline-start: 3px solid #608875;
  border-radius: 2px 6px 6px 2px; background: #f6f9f2; box-shadow: 0 4px 12px #2c47371f;
  font: 400 .94rem/1.7 var(--ui); overflow-wrap: anywhere;
}
.edition-note[data-side="above"] > .edition-description { inset-block: auto calc(100% - 2px); }
.edition-note[data-align="title"] > .edition-description, .edition-variants .edition-description,
.edition-current .edition-description { inset-inline: 0 auto; }
@property --edition-note-distance { syntax: "<length>"; inherits: false; initial-value: 0px; }
@supports selector(.edition-note::details-content) and (transition-behavior: allow-discrete) {
  @media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
    .edition-note::details-content { transition: content-visibility 100ms allow-discrete; }
    .edition-description {
      --edition-note-distance: 4px; opacity: 0; pointer-events: none;
      translate: 0 calc(0px - var(--edition-note-distance));
      transition: opacity 100ms ease-out, --edition-note-distance 100ms var(--ease-paper);
    }
    .edition-note[data-side="above"] > .edition-description {
      translate: 0 var(--edition-note-distance);
    }
    .edition-note[open] > .edition-description {
      --edition-note-distance: 0px; opacity: 1; pointer-events: auto; transition-duration: 150ms;
    }
    @starting-style {
      .edition-note[open] > .edition-description { --edition-note-distance: 4px; opacity: 0; }
    }
  }
}
.edition-history { margin: -3px 0 5px; padding: 0; border: 0; }
.edition-history > summary {
  justify-content: flex-start; gap: 9px; width: fit-content; max-width: 100%; min-height: 36px;
  padding: 3px 5px 3px 1px; font: 500 .82rem/1.5 var(--ui); color: #68553f;
}
.edition-history > summary::after { width: 6px; height: 6px; flex-basis: 6px; }
.edition-variants { margin: 3px 0 10px 3px; padding-left: 13px; border-left: 2px solid var(--sand); }
.edition-variants > .edition-row + .edition-row { border-top: 1px dotted var(--edge); }
.edition-variants .edition-link { font-size: .94rem; font-weight: 500; }
.edition-more .edition-list { margin: 0 2px 8px; }
.edition-shelf + .edition-shelf { margin-top: 18px; }
.edition-shelf-name {
  margin: 10px 0 0; padding: 4px 0 4px 10px; border-inline-start: 3px solid #a59571;
  font: 600 .92rem/1.45 var(--ui); color: #594834;
}
.chapter > .edition-unit {
  margin: 0; padding: 0 3px; border: 0; border-bottom: 1px solid #a5917054;
  border-radius: 0; background: transparent;
}
.edition-unit > summary { padding: 7px 3px; gap: 10px; font: 550 .98rem/1.5 var(--ui); }
.edition-unit > summary span { flex: 1; min-width: 0; }
.edition-unit > summary small { color: #65523d; font: 400 .78rem/1.4 var(--ui); white-space: nowrap; }
.edition-unit > summary:hover, .edition-unit[open] > summary { background: var(--sheet); }
.edition-unit > .edition-list { padding-inline-start: 13px; border-inline-start: 2px solid var(--sand); }
.edition-unit .edition-group:last-child { border-bottom: 0; }
.edition-context {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 20px;
  margin-block: 14px 18px; padding: 0; overflow-wrap: anywhere;
}
.edition-current { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
.edition-current .edition-description { width: min(27rem, calc(100vw - 5rem)); }
.edition-current [data-edition-arrival] { position: relative; }
.edition-current [data-edition-arrival]::after {
  content: ""; position: absolute; inset: auto 5px -1px; height: 2px;
  background: currentColor; border-radius: 50%; transform-origin: left center;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .edition-current [data-edition-arrival]::after { animation: edition-underline 220ms var(--ease-paper); }
  @keyframes edition-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.edition-current a, .edition-switch > a { font: 500 .88rem/1.55 var(--ui); }
.edition-switch { margin: 0; padding: 0; border: 0; background: transparent; }
.edition-switch > summary { width: fit-content; max-width: 100%; gap: 9px; padding: 4px; min-height: 44px; font-size: .9rem; }
.edition-switch > a { display: inline-block; padding-block: 5px; }

/* A printed title slip and its loose annotation on the reading leaf. */
.reading-page .edition-note .edition-label {
  padding: 4px 10px 4px 9px; border: 1px solid #be977d; border-inline-start: 3px double #9b6250;
  border-radius: 2px 3px 4px 2px; color: #783f31; background: #f7e9d2;
  box-shadow: 0 2px 0 #c7a98b; font: 600 .86rem/1.55 var(--serif);
}
.reading-page .edition-switch > summary { font: 500 .9rem/1.5 var(--serif); color: #66513e; }
.reading-page .edition-variants { border-inline-start: 1px solid #c6a679; }
.reading-page .edition-note[open] > summary .edition-label {
  color: #703e2d; background: #f1dcba; border-color: #a87b59;
}
@media (hover: hover) and (pointer: fine) {
  .reading-page .edition-note > summary:hover .edition-label { background: #f4e1c1; border-color: #9d765c; }
  .reading-page .edition-switch > summary:hover { color: #884839; text-decoration: underline; text-underline-offset: .25em; }
}
.reading-page .edition-note > summary:is(:active,[data-touch-pressed]) .edition-label {
  color: #663928; background: #e7cba6; box-shadow: inset 0 2px 3px #70482f50;
}
.reading-page .edition-description {
  background: #fbf1d8; color: #513e2e; border: 1px solid #d7c39d; border-inline-start: 3px double #ac8150;
  border-radius: 1px 4px 3px 1px; box-shadow: 1px 4px 10px -4px #75543d57;
  font: 400 1rem/1.75 var(--serif);
}
.reading-page .edition-description-title {
  display: block; margin-block-end: .3rem;
  color: var(--book-rust); font: 650 .95rem/1.4 var(--ui);
}
@supports selector(details::details-content) {
  .edition-context {
    position: relative; display: grid; grid-template-columns: fit-content(48%) minmax(0, 1fr);
    align-items: center; column-gap: 13px;
  }
  .edition-context > .edition-current, .edition-current > .edition-note, .edition-context > .edition-switch { display: contents; }
  .edition-current > .edition-note > summary { grid-area: 1 / 1; }
  .edition-current > .edition-note::details-content { grid-area: 2 / 1 / auto / -1; min-width: 0; }
  .edition-current > .edition-preferred { grid-area: 4 / 1 / auto / -1; justify-self: start; }
  .edition-context > .edition-switch > summary { grid-area: 1 / 2; }
  .edition-context > .edition-switch::details-content { grid-area: 3 / 1 / auto / -1; min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  @supports selector(details::details-content) and (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) {
    :is(.edition-unit, .edition-history, .edition-more, .edition-switch, .chapter-files) {
      &::details-content {
        --drawer-time: 190ms;
        --unclip-after: 0s;
        display: flow-root;
        interpolate-size: allow-keywords;
        block-size: 0;
        overflow: clip;
      }
      &[open]::details-content {
        --unclip-after: var(--drawer-time);
        block-size: auto;
        overflow: visible;
      }
      /* Keyboard and fragment navigation need the final layout as soon as focus moves. */
      &:has(> summary:focus:not(:focus-visible))::details-content {
        transition: block-size var(--drawer-time) var(--ease-paper),
                    content-visibility var(--drawer-time) allow-discrete,
                    overflow 0s var(--unclip-after) allow-discrete;
      }
    }
  }
}
@media (max-width: 620px), (hover: none) {
  .edition-description, .edition-current .edition-description, .edition-note[data-side="above"] > .edition-description {
    position: static; width: auto; margin: 1px 0 9px; box-shadow: none; padding: 10px 13px;
  }
  .reading-page .edition-description {
    background: #f6edda; border-block-color: transparent; border-inline-end: 0; box-shadow: none;
    font: 400 .93rem/1.65 var(--ui);
  }
  .edition-context { gap: 0 10px; }
  .edition-current:has(.edition-note[open]), .edition-current .edition-note[open] { flex-basis: 100%; }
  .edition-history > summary, .edition-note > summary, .edition-switch > summary { min-height: 44px; }
}
@supports (interpolate-size: allow-keywords) and selector(.edition-note::details-content) {
  @media (prefers-reduced-motion: no-preference) and (scripting: enabled) and (max-width: 620px),
         (prefers-reduced-motion: no-preference) and (scripting: enabled) and (hover: none) {
    .edition-note::details-content {
      interpolate-size: allow-keywords; block-size: 0; overflow: clip;
      transition: block-size 150ms var(--ease-paper), content-visibility 150ms allow-discrete;
    }
    .edition-note[open]::details-content { block-size: auto; }
  }
}
.reader-strip a { min-height: 44px; display: flex; align-items: center; gap: 6px; margin-right: auto; text-decoration: none; }
.reader-strip progress { width: clamp(55px,17vw,170px); height: 6px; margin: 0; }
.reader-strip output { width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.quick-bookmark { min-width: 92px; flex: none; font-size: .86rem; }
.quick-bookmark:focus-visible { outline-offset: -3px; }
.quick-bookmark[aria-busy] { cursor: progress; }
.reader-strip .quick-bookmark { filter: drop-shadow(0 2px 0 #a29270); }
.reader-strip .quick-bookmark:is(:active,[data-touch-pressed]) { filter: none; transition-duration: 0s; }
.reader-strip .quick-bookmark:is(:active,[data-touch-pressed])::after { background: #c7b595; }
:is(.reader-strip a, .edition-history > summary, .edition-switch > summary):is(:active, [data-touch-pressed]) {
  background: #dce5d9; box-shadow: inset 0 2px 3px #40594a30; border-radius: 4px;
}
.reading-page .reader-strip {
  border: 0; border-block-end: 1px solid #cbb99c; color: #675340;
  background: var(--leaf); background: linear-gradient(90deg, #dec9981c, transparent 72%), var(--leaf);
}
.reading-page .reader-strip a { color: #345765; }
.reading-page .reader-strip progress { accent-color: #345765; }
.reading-page .reader-strip .quick-bookmark {
  color: #733f32; font-family: var(--serif); filter: drop-shadow(0 2px 0 #b68d72);
}
.reading-page .reader-strip .quick-bookmark::before { background: #ad7e65; }
.reading-page .reader-strip .quick-bookmark::after { background: #f4debf; }
.reading-page .reader-strip .quick-bookmark[data-saved] { color: #fff8e8; }
.reading-page .reader-strip .quick-bookmark[data-saved]::after { background: #884839; }
.reading-page .reader-strip .quick-bookmark[data-saved] .mark { fill: currentColor; stroke: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .reading-page .reader-strip .quick-bookmark:not([data-saved]):hover::after { background: #edd0aa; }
}
.reading-page .reader-strip .quick-bookmark:is(:active,[data-touch-pressed]) { filter: none; }
.reading-page .reader-strip .quick-bookmark:not([data-saved]):is(:active,[data-touch-pressed])::after { background: #dfbf98; }
.reading-page :is(.reader-strip a,.edition-switch > summary):is(:active,[data-touch-pressed]) {
  background: #f0e1c7; box-shadow: inset 0 2px 3px #6b50302a;
}
@media (prefers-reduced-motion: no-preference) {
  .reader-strip .quick-bookmark:is(:active,[data-touch-pressed]),
  :is(.reader-strip a, .edition-history > summary, .edition-switch > summary):is(:active,[data-touch-pressed]) {
    transform: translateY(2px);
  }
}
.bookmark-feedback:not(:empty) {
  position: absolute; right: 0; top: calc(100% + 4px); max-width: 100%; z-index: 1;
  padding: 6px 12px; background: var(--ink); color: var(--paper-light);
  border-radius: 3px; box-shadow: 1px 2px 0 var(--paper-shadow); overflow-wrap: anywhere;
}
.reader-grid > .index { top: 58px; max-height: calc(100vh - 75px); scroll-margin-top: 60px; }
.reader-grid .prose [id] { scroll-margin-top: 62px; }
.reader-grid .prose :target { text-decoration: underline; text-decoration-color: var(--tobacco); text-underline-offset: .23em; }
.reader-grid [data-bookmark] { margin: 10px 0; }

.work-spread { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); align-items: start; }
.milestone-card { border-radius: 3px 6px 3px 3px; box-shadow: 2px 3px 0 var(--paper-shadow); }
.milestone-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.milestone-head h2 { font-size: clamp(1.28rem,2.3vw,1.75rem); }
.milestone-head > span { font: 600 .95rem/1.4 var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; list-style: none; margin: 18px 0 0; padding: 0; }
.stage { position: relative; min-width: 0; text-align: center; }
.stage:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 50%; width: 100%; border-top: 1px dashed var(--mountain); pointer-events: none; }
.stage.done:not(:last-child)::after { border-top: 2px solid var(--ink); }
.stage a { display: grid; min-height: 78px; justify-items: center; align-content: start; gap: 4px; padding-inline: 2px; text-decoration: none; }
.stage-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; box-sizing: border-box;
  border: 1px dashed var(--ink); border-radius: 48% 52% 49% 51%; background: var(--sheet); font-variant-numeric: tabular-nums;
}
.stage.done .stage-dot { color: var(--sheet); background: var(--ink); border-style: solid; }
.stage.current .stage-dot { border: 2px solid var(--ink); background: var(--sand); box-shadow: 0 0 0 3px var(--sheet), 0 0 0 4px var(--edge); }
.stage b { font-size: .87rem; line-height: 1.45; margin-top: 4px; }
.stage small { font-size: .76rem; color: var(--ink); }
.stage a:is(:hover,:focus-visible) b { text-decoration: underline; }
.task-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; border-bottom: 1px solid var(--tobacco); }
.task-filters a {
  position: relative; gap: 10px; padding: 6px 12px; border-radius: 8px 10px 0 0; border-bottom-width: 0;
  background: var(--paper-light); color: var(--ink); font-weight: 600;
}
.task-filters a::after {
  content: ""; position: absolute; bottom: 0; height: 3px; left: 8px; right: 8px;
  border-radius: 55% 30% 40% 25%; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 200ms var(--ease-paper);
}
.task-filters [aria-current="true"] { background: var(--sand); border-color: var(--ink); color: var(--dark); }
.task-filters [aria-current="true"]::after { transform: scaleX(1); }
.task-filters small {
  display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; padding-inline: 4px;
  color: inherit; font: 600 .76rem/1.2 Consolas, monospace; border: 1px solid var(--edge); border-radius: 50%;
}
.task-filters [aria-current="true"] small { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }
:is(.task-filters a, .index details a, .chapter .entries a[href^="/file/"]):is(:active,[data-touch-pressed]) {
  background: var(--paper-tint); box-shadow: inset 0 1px 3px #503c2838;
}
@media (prefers-reduced-motion: no-preference) {
  :is(.task-filters a, .index details a, .chapter .entries a[href^="/file/"]):is(:active,[data-touch-pressed]) { translate: 0 1px; }
}
.question-tabs { gap: 8px; }
.question-tabs a {
  position: relative; justify-content: center; min-width: 50px; min-height: 44px; padding: 5px 9px;
  background: var(--paper-light); border-radius: 3px 6px 2px 2px; font: 600 .88rem/1.4 Consolas, monospace;
  font-variant-numeric: tabular-nums; box-shadow: 0 1px 0 var(--edge);
}
.question-tabs a[aria-current="page"] { color: var(--paper-light); background: var(--ink); border-color: var(--ink); }
.question-tabs [aria-current="page"]::after {
  content: ""; position: absolute; right: 0; top: 0; width: 9px; height: 9px;
  background: linear-gradient(45deg, transparent 48%,var(--sand) 50%); border-top-right-radius: 4px;
}
.answer-check { font-family: var(--ui); font-size: .73rem; margin-left: 3px; }
.tasklist li { position: relative; padding: 12px 8px 12px 18px; gap: 16px; }
.tasklist li::before { content:""; position:absolute; left: 0; top: 21px; bottom: 21px; width: 3px; border-radius: 2px; background: var(--sand); }
.tasklist [data-state="ready"]::before { background: var(--ink); }
.tasklist [data-state="waiting"]::before { background: repeating-linear-gradient(var(--mountain) 0 3px, transparent 3px 6px); }
.tasklist .measure { font-variant-numeric: tabular-nums; }
.judgment { border: 0; padding: 0; margin: 22px 0 14px; min-width: 0; }
.judgment legend { padding: 0; margin-bottom: 8px; font-weight: 650; }
.choice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin: 0;
  min-height: 48px; border-radius: 3px; border: 1px solid var(--edge); background: var(--paper-light); cursor: pointer;
}
.choice input[type="radio"] { flex: 0 0 auto; width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--paper-tint); box-shadow: inset 0 -2px var(--ink); }
.choice:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice span { overflow-wrap: anywhere; }
.timeline { position: relative; border: 0; padding-left: 26px; }
.timeline::before { content:""; position:absolute; width: 1px; background: var(--edge); left: 6px; top: 0; bottom: 0; }
.timeline::after { content:""; position:absolute; left: 1px; top: 32px; width: 9px; height: 9px; border: 1px solid var(--ink); border-radius: 50%; background: var(--sand); }
.timeline + .timeline div { border-top: 1px solid var(--edge); padding-top: 12px; }
.notice[role="status"] { border-inline-start: 3px solid var(--ink); }
@media (max-width: 900px) {
  .search-launch > span, .search-launch kbd { display: none; }
  .search-launch { width: 44px; padding: 0; }
  .work-spread { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); }
}
@media (max-width: 620px) {
  .topin { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; }
  .top nav { grid-row: 2; grid-column: 1 / -1; width: 100%; margin: 0; gap: 3px; }
  .top nav a { min-width: 44px; }
  .brand { width: fit-content; }
  .search-launch { grid-column: 2; grid-row: 1; }
  .login { padding: 5px 3px 24px; gap: 25px; }
  .login .cover-print { width: min(100%,330px); margin-block: 17px 6px; }
  .login .login-paper { padding: 20px; }
  .work-spread { grid-template-columns: minmax(0,1fr); }
  .reader-grid > .index { max-height: none; }
  .coursecard { grid-template-columns: 44px minmax(0,1fr) 20px; gap: 12px; min-height: 72px; }
  .course-cover { width: 42px; height: 46px; }
  .choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reader-strip { gap: 8px; }
  .reader-strip .meter-caption { display: none; }
  .reader-strip progress { flex: 0 1 90px; min-width: 26px; }
  .task-filters a { padding-inline: 9px; }
  .tasklist li { padding-inline: 10px 2px; gap: 8px; }
  .timeline { padding-left: 23px; }
  .timeline + .timeline div { padding-top: 0; border: 0; }
}
@media (max-width: 450px) {
  .task-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-bottom: 0; border: 0; }
  .task-filters a { justify-content: space-between; border-bottom: 1px solid var(--edge); }
}
@media (forced-colors: active) {
  .stage-dot,.choice:has(input:checked),.task-filters [aria-current],.index a[aria-current] { outline: 2px solid Highlight; }
  .ink-mark::after, .light-surface::after { display: none; }
  .light-surface { box-shadow: none; }
  .light-surface:focus-visible { outline-color: Highlight; }
  .action-ticket, .action-ticket:is(:hover,:active,[data-touch-pressed]), .reading-page .reader-strip .quick-bookmark { filter: none; }
  .paper-action, .task-filters a, .question-tabs a { border: 1px solid ButtonText; }
  .paper-action::before, .paper-action::after { display: none; }
  .quick-bookmark[data-saved], .question-tabs [aria-current] { outline: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  .edition-note > summary:is(:active,[data-touch-pressed]) .edition-label { transform: none; }
  .ink-mark::after { animation: none; }
  .light-surface:is(:hover,:active,[data-touch-pressed]) { translate: none; scale: none; }
  .coursecard:is(:hover,:active), .btn:is(:hover,:active), button:is(:hover,:active), .coursecard:hover .course-cover,
  .paper-action:is(:hover,:active), .paper-action:hover .mark, .coursecard:is(:hover,:focus-visible) > .mark { transform: none; }
}
