/* «How we restored» (variant В): a closed volume beside the title, four chapters with a large card at their side, the three
   marks as a strip of numbers. Colours only through tokens (every look); the volume is drawn by code, no picture of a real book. */
.page-restoration .page-hero { display: flex; gap: 36px; align-items: center; padding: 18px 0 8px; }
.page-restoration .page-intro { flex: 1; min-width: 0; }
.page-restoration .page-intro h1 { margin-bottom: .3em; }
.page-restoration .page-intro .lead { margin: 0; }
.volume { flex: none; width: 210px; line-height: 0; filter: drop-shadow(0 6px 10px var(--c-shade-a35)); }
.volume svg { width: 100%; height: auto; display: block; }
.volume .v-shadow { fill: var(--c-shade-a35); }
.volume .v-pages { fill: var(--c-parchment-2); }
.volume .v-cover { fill: var(--c-wood); stroke: var(--c-wood-2); stroke-width: 2; }
.volume .v-spine { fill: var(--c-wood-2); }
.volume .v-gold { fill: var(--c-gold); }
.volume .v-line1 { fill: none; stroke: var(--c-gold); stroke-width: 1; }
.volume .v-line2 { fill: none; stroke: var(--c-gold); stroke-width: 2.4; }
.volume .v-mark { font-family: var(--font-display, Georgia, serif); font-size: 48px; fill: var(--c-gold); }
.volume .v-ribbon { fill: var(--c-accent); stroke: var(--c-wood-2); }

.page-restoration #text-body { padding-top: 10px; }
.chap { display: flex; gap: 34px; align-items: center; margin: 0 0 34px; background: none; padding: 0; }
.chap-r { flex-direction: row-reverse; }
.chap-card { flex: none; width: 230px; display: flex; justify-content: center; align-items: center; }
.chap-card .card { display: block; width: 190px; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 14px var(--c-shade-a40); }
.chap-card.pair .card { width: 150px; }
.chap-card.pair .card + .card { margin-left: -40px; }
.chap-body { flex: 1; min-width: 0; background: var(--c-parchment); color: var(--c-ink); border-radius: var(--radius-m, 10px); padding: 10px 24px 16px; box-shadow: 0 2px 8px var(--c-shadow); overflow-wrap: anywhere; }
.chap-body h2 { margin-top: .4em; color: var(--c-accent); }
.chap-body a { color: var(--c-accent); }
.chap-body ul { padding-left: 1.2em; }
.chap-body li.has-mark { list-style: none; margin-left: -1.2em; }
.chap-body li.has-mark .mark { margin-right: .4em; }

/* the three marks of the rules: the same chips as on a game's page (page-game.css) and on «About»; the letter stays beside the words */
.mark { display: inline-block; margin: 0; padding: 1px 10px; border: 1px solid currentcolor; border-radius: 6px; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.mark.m-book { color: var(--c-ok-text); background: var(--c-ok-bg); }
.mark.m-read { color: var(--c-read-text); background: var(--c-wait-bg); }
.mark.m-ours { color: var(--c-accent); background: var(--c-parchment); }
.mark .sign { color: inherit; }
.mark .letter { font-weight: 700; }
.marks-strip { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.marks-strip li { border-top: 4px solid currentColor; background: var(--c-parchment-2); padding: 8px 12px 10px; border-radius: 0 0 var(--radius-s, 4px) var(--radius-s, 4px); margin: 0; }
.marks-strip .m-D { color: var(--c-ok-text); }
.marks-strip .m-R { color: var(--c-read-text); }
.marks-strip .m-S { color: var(--c-accent); }
.marks-strip .n { display: block; font-family: var(--font-display, Georgia, serif); font-size: 2.6rem; line-height: 1.05; }
.marks-strip .w { display: block; font-size: .95rem; color: var(--c-ink); }

@media (max-width: 900px) {
	.chap, .chap-r { flex-direction: column; gap: 14px; }
	.chap-card { width: auto; }
	.chap-card .card { width: 130px; }
	.chap-card.pair .card { width: 110px; }
}
@media (max-width: 700px) {
	.page-restoration .page-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
	.volume { width: 120px; }
	.chap-body { padding: 6px 16px 12px; }
	.marks-strip { grid-template-columns: 1fr; gap: 8px; }
	.marks-strip li { display: flex; align-items: baseline; gap: 14px; }
	.marks-strip .n { font-size: 2rem; }
}
