/* Only the optional excerpt link and its modal. Existing page styles are untouched. */
.detail-cover .excerpt-cover-link { display: block; color: inherit; }
.excerpt-open { display: inline-flex; align-items: center; gap: 18px; margin-top: 22px; font: 13px/1.5 var(--sans); padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--red); }
.excerpt-reader { width: min(1360px,calc(100vw - 64px)); max-width: none; height: min(960px,calc(100dvh - 48px)); max-height: none; margin: auto; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 12px 60px #0002; overflow: hidden; }
.excerpt-reader::backdrop { background: rgb(27 25 22 / 60%); }
.excerpt-shell { height: 100%; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.excerpt-reader button,.excerpt-reader a { touch-action: manipulation; }
.excerpt-reader button { background: transparent; border: 0; min-width: 44px; min-height: 44px; padding: 8px 13px; font: 13px/1.4 var(--sans); }
.excerpt-reader button:hover:not(:disabled),.excerpt-reader a:hover { color: var(--red); }
.excerpt-reader button:disabled { opacity: .3; cursor: default; }
.excerpt-reader button:focus-visible,.excerpt-reader a:focus-visible { outline: 1px solid var(--red); outline-offset: -3px; }
.excerpt-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 24px 12px; }
.excerpt-kicker { font: 10px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 3px; }
.excerpt-header h2 { font: 26px/1.1 var(--serif); margin: 0; }
.excerpt-header [data-reader=close] { flex: none; }
.excerpt-header [data-reader=close] span { font-size: 22px; vertical-align: -1px; margin-left: 10px; }
.excerpt-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 0 18px; border-block: 1px solid var(--line); font: 12px/1.4 var(--sans); }
.excerpt-pagination,.excerpt-zoom { display: flex; align-items: center; }
.excerpt-pagination span { min-width: 83px; text-align: center; font-variant-numeric: tabular-nums; }
.excerpt-zoom [data-reader=fit] { min-width: 76px; }
.excerpt-stage { overflow: auto; overscroll-behavior: contain; padding: 24px; background: #e9e5dc; outline-offset: -3px; -webkit-overflow-scrolling: touch; }
.excerpt-sheets { display: flex; width: max-content; min-width: 100%; justify-content: safe center; align-items: flex-start; min-height: 100%; }
.excerpt-sheet { margin: 0; flex: none; background: white; box-shadow: 0 2px 10px #2826211c; }
.excerpt-sheet canvas { display: block; max-width: none; }
.excerpt-footer { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 8px 18px; border-top: 1px solid var(--line); font: 12px/1.5 var(--sans); }
.excerpt-footer p { margin: 0; max-width: 65%; color: var(--muted); }
.excerpt-footer>div { display: flex; align-items: center; gap: 12px; flex: none; }
.excerpt-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.excerpt-footer [data-reader=buy] { color: var(--red); }
.excerpt-footer .is-emphasized { color: var(--red); text-decoration: underline; }
@media(max-width:899px) {
 .excerpt-reader { width: 100%; height: 100dvh; border: 0; }
 .excerpt-header { padding: 14px 12px 12px; padding-top: max(14px,env(safe-area-inset-top)); }
 .excerpt-header h2 { font-size: 23px; }
 .excerpt-header [data-reader=close] { padding-inline: 8px; }
 .excerpt-toolbar { padding-inline: 6px; gap: 0; }
 .excerpt-pagination span { min-width: 54px; }
 .excerpt-zoom [data-reader=fit] { min-width: 56px; padding-inline: 4px; }
 .excerpt-stage { padding: 12px; }
 .excerpt-footer { padding: 6px 12px max(6px,env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 0; }
 .excerpt-footer p { width: 100%; max-width: none; font-size: 11px; }
 .excerpt-footer>div { width: 100%; justify-content: space-between; }
}

.excerpt-edition { margin: 8px 0 0; font: 11px/1.5 var(--sans); color: var(--muted); }
