/* Publishing edition navigation. The original Clipboard sections are outside these selectors. */
.mp-feature .mp-mast { position:relative; z-index:6; justify-content:flex-start; }
.mp-feature .mp-edition { margin-left:auto; }
.mp-contents { position:relative; margin-left:clamp(0px,1vw,18px); }
.mp-contents summary {
  display:inline-flex; align-items:center; gap:9px; min-height:42px; padding:6px 14px;
  border:1px solid #717681; border-radius:99px; cursor:pointer; font:650 .86rem/1.35 var(--mp-sans);
}
.mp-contents summary::marker, .mp-contents summary::-webkit-details-marker { content:""; display:none; }
.mp-contents[open] summary { color:#161b2d; background:#f4e9d8; }
.mpe-contents-panel {
  position:absolute; inset:calc(100% + 9px) 0 auto auto; width:min(280px,88vw); padding:14px;
  background:#fcf7eb; color:#172235; border:1px solid #cabda5; border-radius:5px;
  box-shadow:2px 3px 0 #b9aa8e,0 12px 30px #070e2390;
}
.mp-feature .mpe-contents-panel nav a {
  display:flex; align-items:center; min-height:42px; padding:6px 10px;
  border-left:3px solid transparent; color:#172235; text-decoration:none; font-weight:620;
}
.mp-feature .mpe-contents-panel nav a:hover,
.mp-feature .mpe-contents-panel nav a[aria-current] { border-color:#a83a26; background:#f1e5d4; }
.mpe-reader-options { min-width:0; margin:12px 0 0; padding:12px 9px 0; border:0; border-top:1px solid #c7bdae; }
.mpe-reader-options legend { padding:0 5px 0 0; font-weight:700; }
.mpe-reader-options label { display:flex; align-items:center; gap:9px; min-height:40px; cursor:pointer; }
.mpe-reader-options input { width:18px; height:18px; accent-color:#913626; }
.mpe-progress { height:3px; pointer-events:none; position:absolute; inset:0 0 auto; z-index:2; }
.mpe-progress i { display:block; height:100%; transform:scaleX(0); transform-origin:left; background:#efaf86; }
.mpe-edition-flag { position:relative; padding:5px 13px 5px 0; }
.mpe-edition-flag::after {
  content:""; position:absolute; right:0; bottom:6px; border:4px solid transparent;
  border-right-color:#e1b48d; border-bottom-color:#a47755;
}
.mp-feature.mpe-lit-spread {
  background:radial-gradient(ellipse at 84% 49%,#3b3849 0%,#202c3d 28%,#101424 65%);
}
.mp-feature .mp-art::after {
  content:""; position:absolute; inset:0; z-index:1; border:1px solid #d1b38b60;
  border-bottom-color:#eac193ac; pointer-events:none;
}
/* press-action */
.mp-feature .mp-button:active,.mp-publisher .mp-button:active,.mp-feature .mp-launch:active { transform:translateY(2px); }
@media (min-width:1700px) { /* wide-title */
  .mp-feature #mp-title { font-size:clamp(7.45rem,6.8vw,8.7rem); }
}
.mpe-route-pair {
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,4vw,64px);
  margin-top:32px; padding-top:20px; border-top:1px solid #beb29d;
}
.mp-publisher .mpe-route-pair a { display:inline-block; min-height:35px; color:#233b37; font-weight:700; text-underline-offset:4px; }
.mp-publisher .mpe-route-pair p { max-width:52ch; margin:2px 0 0; color:#545149; font-size:.94rem; }
.mpe-desk { background:#e7e4d8; padding:clamp(46px,6.2vw,96px) 0; color:#19292b; }
.mpe-desk-head { display:flex; justify-content:space-between; align-items:end; gap:32px; margin-bottom:30px; }
.mp-publisher .mpe-desk-head > p { max-width:34ch; font-size:clamp(1rem,1.3vw,1.25rem); margin:0; }
.mpe-desk h2 em,.mpe-writing h2 em { color:#8d432f; font-weight:400; }
.mpe-folio {
  position:relative; isolation:isolate; background:#f9f5e8; border:1px solid #b5aa91;
  border-radius:5px 12px 7px 4px; box-shadow:0 3px #d1c6af,0 5px #f2e7ce,0 7px #aa997a,0 20px 35px -25px #372c20;
}
.mpe-folio-tools { display:flex; flex-wrap:wrap; border-bottom:1px solid #c3baa7; padding:13px clamp(14px,2vw,34px); gap:7px; }
.mpe-lens-button,.mpe-stage-turn button,.mpe-desk-actions button {
  font:600 .96rem/1.35 var(--mp-sans); color:#213d39; background:transparent; border:1px solid #a69b85;
  padding:9px 14px; border-radius:4px; cursor:pointer; min-height:44px; white-space:normal;
}
.mpe-lens-button[aria-pressed="true"] { background:#1c3738; color:#fff8e9; border-color:#1c3738; box-shadow:inset 0 -3px #d39e69; }
.mpe-folio-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.12fr); }
.mpe-evidence { display:flex; flex-direction:column; justify-content:center; margin:0; padding:clamp(14px,2.5vw,42px); background:#223e39; }
.mpe-evidence-frame { position:relative; isolation:isolate; aspect-ratio:1.48; overflow:hidden; border:1px solid #728674; }
.mp-publisher .mpe-evidence img { display:block; width:100%; height:100%; object-fit:cover; transform-origin:var(--mpe-pos,47% 52%); transform:scale(var(--mpe-scale,1.52)); transition:transform .35s ease; }
.mpe-bracket { position:absolute; inset:18% 22%; border:1px dashed #fff7debd; box-shadow:0 0 0 1px #18201c44; pointer-events:none; }
.mpe-figcaption {
  background:#223e39; color:#fff5dc; padding:14px 0 0;
  font:450 1rem/1.45 var(--mp-sans); max-width:52ch;
}
.mpe-paper { min-width:0; position:relative; padding:clamp(16px,2.8vw,42px); }
.mpe-sheet-crease { position:absolute; inset:0 auto 0 0; width:10px; background:linear-gradient(90deg,#776d463b,transparent); pointer-events:none; }
.mpe-stage-rail { display:flex; flex-wrap:wrap; align-items:stretch; gap:4px; }
.mp-publisher .mpe-stage-link {
  font:650 .88rem/1.25 var(--mp-sans); color:#31403c; text-decoration:none; min-height:42px;
  display:inline-flex; align-items:center; padding:9px 12px; border:1px solid #b7ad97;
  border-radius:6px 6px 1px 1px; background:#eee8d9; scroll-margin-block-start:100px;
}
.mp-publisher .mpe-stage-link[aria-current="step"] { border-bottom:3px solid #9f4a35; background:#fcf7ea; }
.mp-publisher .mpe-stage-count,.mp-publisher .mpe-field-label,.mp-publisher .mpe-version {
  margin:0 0 4px; font:700 .73rem/1.4 var(--mp-sans); color:#68523d; text-transform:uppercase; letter-spacing:.09em;
}
.mp-publisher .mpe-stage-count { margin:24px 0 5px; }
.mp-publisher .mpe-note-title,.mp-publisher .mpe-feedback h3,.mp-publisher .mpe-real-copy h3 {
  font:400 clamp(1.9rem,2.7vw,3.5rem)/1.04 var(--mp-serif); margin:0 0 20px; letter-spacing:-.025em;
}
.mpe-prompt-block { margin-bottom:16px; }
.mp-publisher .mpe-say { font:400 clamp(1.1rem,1.5vw,1.35rem)/1.43 var(--mp-sans); color:#202a25; }
.mpe-look { padding:0 0 0 12px; border-left:3px solid #ba8256; }
.mp-publisher .mpe-look-text { margin:0; color:#474b40; }
.mpe-stage-turn,.mpe-desk-actions { display:flex; gap:8px 12px; flex-wrap:wrap; align-items:center; }
.mpe-stage-turn { margin-top:22px; }
.mpe-stage-turn button:disabled { opacity:.5; cursor:default; }
.mpe-desk-actions { border-top:1px solid #b9ac91; padding:16px clamp(14px,2.5vw,40px); }
.tc .mpe-desk-actions a.mp-button { color:#fff; background:#203d39; }
.mpe-desk-actions button { margin-left:auto; }
.mpe-all-notes { margin-top:26px; border-bottom:1px solid #ab9e85; }
.mpe-all-notes summary { width:fit-content; cursor:pointer; font-weight:650; padding:12px 0; }
.mpe-note-archive { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding-bottom:20px; }
.mpe-notes-table { border-top:1px solid #aa9b82; }
.mpe-notes-table h3 { font:400 2rem var(--mp-serif); margin:13px 0; }
.mpe-notes-table h4 { margin:13px 0 3px; }
.mpe-print-stage { scroll-margin-top:92px; }
.mp-publisher .mpe-print-stage p { margin:0 0 5px; }
.mp-publisher .mpe-print-stage p:last-child { color:#505745; }
.mpe-writing { background:#101a2b; color:#faf2df; padding:clamp(48px,6.2vw,96px) 0 0; }
.mp-publisher .mpe-writing h2,.mp-publisher .mpe-writing h3 { color:#fcf4e4; }
.mp-publisher .mpe-writing h2 em { color:#f2b397; }
.mp-publisher .mpe-writing .mp-overline { color:#f1c7a4; }
.mp-publisher .mpe-fiction { color:#d6cfc3; margin:12px 0 28px; }
.mpe-feedback-grid,.mpe-real-sample { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(22px,5vw,90px); align-items:center; }
.mpe-slip-pair { padding:6px 18px 16px 0; position:relative; }
.mpe-slip {
  position:relative; width:94%; padding:20px clamp(18px,2.3vw,34px); color:#24353b;
  background:repeating-linear-gradient(to bottom,transparent 0 27px,#727f8726 27px 28px),#faf4df;
  border:1px solid #d1c6ae; box-shadow:0 4px 0 #cbbda3,0 8px 12px #0004;
}
.mpe-first-claim { transform:rotate(-1.8deg); }
.mpe-second-claim { margin:3px 0 0 7%; transform:rotate(1deg); background-color:#f4ead1; }
.mp-publisher .mpe-slip blockquote { font:italic 400 clamp(1.2rem,1.9vw,1.75rem)/1.32 "Fraunces",Georgia,serif; margin:9px 0 2px; }
.mpe-feedback-choice { border-block-start:1px solid #748087; }
.mpe-feedback-choice:last-child { border-bottom:1px solid #748087; }
.mpe-feedback-choice summary { padding:15px 4px; min-height:46px; cursor:pointer; }
.mp-publisher .mpe-feedback-result { color:#f9cdb0; padding:0 8px 14px 18px; margin:0; max-width:46ch; }
.mpe-real-sample {
  margin-top:clamp(38px,5vw,74px); border-top:1px solid #b89a75; padding:clamp(32px,4vw,65px) 0;
  grid-template-columns:minmax(145px,.62fr) minmax(0,1.1fr); justify-content:center;
}
.mpe-device {
  width:clamp(132px,14vw,202px); margin:0 auto; overflow:hidden; border:6px solid #454c5b; border-radius:22px;
  background:#121827; box-shadow:2px 1px #96948b,7px 8px 0 #080c15,0 18px 38px #020711;
  transform:perspective(850px) rotateY(-10deg) rotateZ(-2deg);
}
.mp-publisher .mpe-device img { display:block; width:100%; height:auto; }
.mp-publisher .mpe-real-copy > p:not(.mp-overline) { max-width:45ch; margin:0 0 16px; color:#e1dacc; }
.mp-publisher .mpe-real-copy .mp-textlink { display:flex; color:#ffcfaa; margin-top:5px; }
.mpe-endnav { display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid #7d715e; padding:20px 0; }
.mp-publisher .mpe-endnav a { color:#f6ddc4; min-height:42px; display:inline-flex; align-items:center; text-underline-offset:4px; }
.mp-feature [hidden],.mp-publisher [hidden] { display:none !important; }
/* copy-cues, focus-ring and type-overflow */
.mpe-prompt-block,.mpe-look,.mpe-slip { user-select:text; }
.mpe-stage-rail,.mpe-stage-turn,.mpe-lens-button { user-select:none; }
.mp-contents :focus-visible,.mpe-desk :focus-visible,.mpe-route-pair :focus-visible { outline:3px solid #005b89; outline-offset:3px; }
.mpe-writing :focus-visible { outline:3px solid #ffcf7e; outline-offset:4px; }
.mpe-desk-head em,.mpe-writing-heading em { padding-right:.1em; }
html[data-mp-type="large"] :is(.mp-feature .mp-deck,.mp-caption p,.mpe-desk p:not(.mp-overline),.mpe-writing p:not(.mp-overline),.mpe-figcaption,.mps-description p,.mps-proof) { font-size:1.25em; line-height:1.55; }
/* large-fit */
.mpe-folio-grid > *,.mpe-feedback-grid > *,.mpe-real-sample > * { min-width:0; overflow-wrap:break-word; }
@media (hover:hover) and (pointer:fine) { /* fine-pointer */
  .mpe-device { transition:transform .25s ease; }
  .mpe-real-sample:focus-within .mpe-device,.mpe-real-sample:hover .mpe-device { transform:perspective(850px) rotateY(-3deg) rotateZ(-.5deg); }
}
@media (pointer:coarse) { /* coarse-pointer */
  .mpe-stage-rail,.mpe-folio-tools,.mpe-stage-turn { gap:9px; }
  .mpe-stage-link,.mpe-stage-turn button,.mpe-folio-tools button { min-height:46px; }
}
@media(max-width:760px) { /* desk-mobile-stack and contents-mobile */
  .mp-feature .mp-mast { justify-content:space-between; gap:8px; }
  .mp-feature .mp-edition { display:none; }
  .mp-feature .mp-contents { margin:0; }
  .mpe-desk-head { align-items:flex-start; flex-direction:column; gap:14px; }
  .mpe-route-pair,.mpe-folio-grid,.mpe-note-archive,.mpe-feedback-grid { grid-template-columns:1fr; }
  .mpe-desk-actions button { margin-left:0; }
  .mpe-evidence-frame { max-height:240px; }
  .mpe-real-sample { grid-template-columns:minmax(0,.55fr) minmax(0,1fr); gap:20px; }
}
@media(max-width:480px) {
  .mpe-reader-options label { min-height:44px; }
  .mpe-contents-panel { width:min(274px,calc(100vw - 36px)); }
  .mpe-real-sample { grid-template-columns:1fr; }
  .mpe-device { justify-self:start; margin:0 0 6px 7px; width:126px; }
  .mpe-stage-link { flex:1 1 42%; justify-content:center; }
  .mpe-stage-turn button { flex:1; }
  .mpe-lens-button { flex:1 1 41%; } /* lens-wrap */
}
@media(prefers-reduced-motion:reduce) {
  .mpe-evidence img,.mpe-device { transition:none !important; }
}
html[data-mp-motion="reduce"] :is(.mp-feature,.mp-publisher) *,
html[data-mp-motion="reduce"] :is(.mp-feature,.mp-publisher) *::before,
html[data-mp-motion="reduce"] :is(.mp-feature,.mp-publisher) *::after {
  animation-duration:0s !important; transition-duration:0s !important; scroll-behavior:auto !important;
}
@media(forced-colors:active) {
  .mpe-folio,.mpe-slip,.mpe-evidence,.mpe-device,.mpe-contents-panel { border:1px solid CanvasText; box-shadow:none; }
  .mpe-stage-link[aria-current],.mpe-lens-button[aria-pressed="true"] { outline:2px solid Highlight; }
  .mpe-bracket { border-color:CanvasText; }
}
@media print {
  html[data-mp-print="lens"] body { color:#121212 !important; background:white !important; }
  html[data-mp-print="lens"] body > :not(main),html[data-mp-print="lens"] main > :not(.mp-publisher),
  html[data-mp-print="lens"] .mp-publisher > :not(.mpe-desk),html[data-mp-print="lens"] .mpe-folio,
  html[data-mp-print="lens"] .mpe-desk-head,html[data-mp-print="lens"] .mpe-all-notes > summary,
  html[data-mp-print="lens"] .mpe-notes-table:not(.mpe-print-selected) { display:none !important; }
  html[data-mp-print="lens"] .mpe-desk { background:#fff; color:#111; padding:0; }
  html[data-mp-print="lens"] .mp-wrap { width:100%; }
  html[data-mp-print="lens"] .mpe-note-archive { display:block; }
  html[data-mp-print="lens"] .mpe-notes-table { display:block; font:11pt/1.4 Georgia,serif; color:#111; border:0; }
  html[data-mp-print="lens"] .mpe-notes-table h3::before { content:"The Paper Atlas · "; }
  html[data-mp-print="lens"] .mpe-print-stage { break-inside:avoid; padding:6pt 0; border-top:1pt solid #999; }
  html[data-mp-print="lens"] .mpe-print-cues { font-weight:bold; }
}

.mpe-rule { border-top:1px solid #b58a5c; padding-top:clamp(16px,2vw,30px); }
:is(#mp-title,#editions,#teaching-desk,#writing-desk) { scroll-margin-block-start:90px; }
