/* Mission 13-B R1. Shared components use the unchanged Miroirs stylesheet.
   Narrative backgrounds generated from the owner's illustrated targets. */
.novel-canvas {
  position: relative; isolation: isolate; container-type: inline-size;
  width: min(100%, var(--page-max-width)); margin-inline: auto; background: var(--paper);
}
.novel-page .global-nav a[aria-current="location"] { color: var(--rust); }
.novel-page .global-nav a[aria-current="location"]::after {
  position: absolute; right: 19%; bottom: 1px; left: 19%; height: 1px;
  background: currentColor; content: "";
}
/* Layers: scenery 0, optional readability veil 1, text and original cover 2. */
.novel-hero { position: relative; isolation: isolate; min-height: 58.4cqw; }
.novel-landscape { position: absolute; z-index: 0; inset: 13cqw 0 0; pointer-events: none; }
.novel-landscape img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.novel-hero::before { position: absolute; z-index: 1; top: 13cqw; left: 0; width: 43%; height: 34cqw; background: linear-gradient(90deg,rgba(250,245,236,.75),rgba(250,245,236,.65) 65%,transparent); mask-image: linear-gradient(#000 73%,transparent); pointer-events: none; content: ""; }
.novel-heading { position: relative; z-index: 2; width: 43%; margin-left: 5.5%; padding-top: 16cqw; }
.novel-kicker { margin: 1.8cqw 0 1.5cqw; color: var(--rust); font-family: "DM Sans", var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.novel-heading h1 { margin: 0; font-family: var(--display); font-size: 6.5cqw; font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.novel-heading h1 span { display: block; color: var(--rust); }
.novel-heading h1 em { font-weight: inherit; }
.novel-author { margin: 2cqw 0 .5cqw; font-family: var(--display); font-size: 2.4cqw; line-height: 1.15; }
.novel-edition { margin: 0; font-size: 1.4cqw; }
.novel-cover { position: absolute; z-index: 2; top: 19cqw; right: 14%; width: 22%; margin: 0; }
.novel-cover img { display: block; width: 100%; height: auto; box-shadow: 0 12px 28px rgba(29,26,23,.18); }
.novel-page--kammerer .novel-hero { min-height: 67cqw; }
.novel-page--kammerer .novel-heading { width: 48%; }
.novel-page--kammerer .novel-heading h1 { font-size: 6.1cqw; }
.novel-page--kammerer .novel-cover { right: 6%; width: 24%; }
.novel-story {
  display: grid; grid-template-columns: 29% minmax(0,1fr); gap: 3.7cqw;
  width: calc(100% - 10.8cqw); margin-inline: auto; padding-block: 24px 28px;
}
.novel-story .miroirs-story-heading h2 { font-size: 4.8cqw; }
.novel-story .miroirs-vine { width: 44%; height: 230px; }
.novel-reading { font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.novel-page--kammerer .novel-reading { font-size: 24px; line-height: 1.43; }
.novel-reading p { margin: 0 0 24px; }
.novel-reading p:last-child { margin-bottom: 0; }
.novel-year { float: left; margin: 0 .2em 0 0; color: var(--rust); font-family: var(--display); font-size: 2.8em; line-height: 1; font-variant-numeric: lining-nums; }
.novel-page--kammerer .novel-initial { float: left; margin: .025em .12em 0 0; color: var(--rust); font-family: var(--display); font-size: 5.4em; font-style: normal; line-height: 1; }
.novel-page--kammerer .novel-quotation { display: flow-root; margin: 0 0 24px; font-style: italic; }
.novel-page--kammerer .novel-opening-mark { float: left; margin-right: .12em; }
.novel-story--short .miroirs-story-heading { align-self: start; padding-bottom: 90px; }
.novel-story--short .miroirs-vine { position: absolute; right: 4%; bottom: 0; width: 115px; height: 165px; margin: 0; }
.novel-story--short .miroirs-source-note::after { background-image: url("assets/romans/branche-rouge-r1.webp"); }
/* Keep the genuine field set, with the matching icon regardless of its position. */
.novel-page .novel-notice dl > .novel-fact--calendar::before { background-image: url("assets/romans/icons-r3/calendar.svg"); }
.novel-page .novel-notice dl > .novel-fact--pages::before { background-image: url("assets/romans/icons-r3/pages.svg"); }
.novel-page .novel-notice dl > .novel-fact--barcode::before { background-image: url("assets/romans/icons-r3/barcode.svg"); }
.novel-page .novel-notice dl > .novel-fact--format::before { background-image: url("assets/romans/icons-r3/format.svg"); }
.novel-page main a:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
@media (max-width: 1100px) {
  .novel-hero { min-height: 49cqw; }
  .novel-landscape { inset-block-start: 0; }
  .novel-hero::before { top: 0; width: 45%; height: 40cqw; background: linear-gradient(90deg,rgba(250,245,236,.95),rgba(250,245,236,.9) 65%,transparent); }
  .novel-heading { padding-top: 3cqw; }
  .novel-cover { top: 6cqw; }
  .novel-kicker { font-size: 11px; }
  .novel-author { font-size: 2.8cqw; }
  .novel-edition { font-size: 1.6cqw; }
  .novel-page--kammerer .novel-hero { min-height: 55cqw; }
  .novel-story { width: calc(100% - 12.5cqw); grid-template-columns: 29% minmax(0,1fr); gap: 3cqw; }
  .novel-story .miroirs-story-heading { min-height: 0; }
  .novel-story .miroirs-story-heading h2 { font-size: 4.7cqw; }
  .novel-story .miroirs-vine { position: static; height: 160px; width: 45%; margin: 12px auto 0; }
  .novel-story .miroirs-chapter { gap: 9px; padding-inline: 10px; font-size: 10px; letter-spacing: .06em; }
  .novel-story .miroirs-chapter-rule { flex-basis: 25px; }
  .novel-story .miroirs-story-paper { padding: 26px; }
  .novel-story--short .miroirs-story-heading { padding-bottom: 0; }
  .novel-reading, .novel-page--kammerer .novel-reading { font-size: 20px; line-height: 1.43; }
  .novel-page--kammerer .novel-notice dl > div:nth-last-child(2) { border-bottom: 1px solid #dec6b1; }
}
@media (max-width: 900px) {
  .novel-story { display: block; width: calc(100% - 32px); padding-block: 24px 32px; }
  .novel-story .miroirs-story-heading { position: relative; padding-bottom: 28px; }
  .novel-story .miroirs-story-heading h2 { width: calc(100% - 48px); font-size: clamp(44px,8cqw,56px); }
  .novel-story .miroirs-chapter { width: min(378px,100%); font-size: 10px; }
  .novel-story .miroirs-vine { position: absolute; top: 75px; right: 0; width: 48px; height: 115px; margin: 0; }
  .novel-story .miroirs-story-paper { padding: 26px 20px 28px; }
}
@media (max-width: 600px) {
  .novel-hero, .novel-page--kammerer .novel-hero { min-height: 0; padding-bottom: 34px; }
  .novel-landscape { inset: 250px 0 0; overflow: hidden; }
  .novel-hero::before { display: none; }
  .novel-landscape img { object-position: 80% center; }
  .novel-page--kammerer .novel-landscape img { object-position: 61% center; }
  .novel-hero::after { position: absolute; z-index: 1; inset: 240px 0 auto; height: 100px; background: linear-gradient(var(--paper),transparent); content: ""; pointer-events: none; }
  .novel-heading, .novel-page--kammerer .novel-heading { width: auto; margin-inline: 24px; padding-top: 16px; }
  .novel-kicker { margin: 24px 0 14px; font-size: 10px; }
  .novel-heading h1, .novel-page--kammerer .novel-heading h1 { font-size: clamp(44px,10.8cqw,64px); }
  .novel-author { margin: 20px 0 6px; font-size: 27px; }
  .novel-edition { font-size: 16px; }
  .novel-cover, .novel-page--kammerer .novel-cover { position: relative; inset: auto; width: 48%; margin: 65px 5% 20px auto; }
  .novel-reading { font-size: 20px; }
}
@media (max-width: 350px) {
  .novel-heading, .novel-page--kammerer .novel-heading { margin-inline: 16px; }
  .novel-heading h1, .novel-page--kammerer .novel-heading h1 { font-size: 42px; }
  .novel-story .miroirs-story-heading h2 { font-size: 40px; }
  .novel-reading { font-size: 19px; }
}
@media (min-width: 1101px) {
  /* Local spacing for the complete Kammerer back-cover text. */
  .novel-story--short .miroirs-story-paper { padding-top: 40px; padding-bottom: 48px; }
  .novel-story--short .miroirs-source-note { margin-top: 40px; }
}

/* Kammerer R3: the decorative column fills its existing grid track only. */
.novel-page--kammerer .kammerer-story-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 901px) {
  .novel-page--kammerer .novel-story--short .miroirs-story-heading { display: flex; flex-direction: column; align-self: stretch; padding-bottom: 0; }
  .novel-page--kammerer .miroirs-story-heading > .miroirs-chapter,
  .novel-page--kammerer .miroirs-story-heading > h2 { flex: 0 0 auto; }
  .novel-page--kammerer .kammerer-story-art { position: relative; flex: 1 1 0; min-height: 0; margin: 28px 0 16px; }
  .novel-page--kammerer .kammerer-story-art img { position: absolute; inset: 0; }
}
@media (max-width: 900px) {
  .novel-page--kammerer .kammerer-story-art { position: absolute; top: 66px; right: 0; width: 70px; height: 140px; }
}
@media (max-width: 600px) {
  .novel-page--kammerer .kammerer-story-art { top: 65px; width: 64px; height: 128px; }
}
@media (max-width: 350px) {
  .novel-page--kammerer .kammerer-story-art { top: 70px; height: 115px; }
}
