/* «Music from far away and from long ago» (post 5771): its own layout (user 2026-10-15: "special treatment for every
   document based on what the document contains"). One continuous document read as a photo essay in the colours of the
   glazed-brick gateway it opens on — lapis and gold: the gateway full width, each chapter opening on one of the text's
   photographs (whole, never cropped), the word maqām, the chalghi ensemble and the poetic forms set in the text before the
   passages they draw on. Built by upgrade/content/texts/baghdad.py; chapter marking + ensemble tabs in texts-almees.js. */
.bg-page { --lapis: #17336b; --lapis-2: #0f2550; --gold: #e2b54e; --gold-2: #f3d58c; --lapis-pale: #eef2f9; }
body:has(.bg-hero) .site-main > .ed-strip { margin-bottom: 0 !important; }
body:has(.bg-hero) .site-main > .ed-strip + .panel { margin-top: 0 !important; }
body:has(.bg-hero) .site-main > .ed-strip + .panel > .panel__body { padding-top: 0; }
.bg-ed { padding-top: 0; }
.bg-page em { font-style: italic; }
/* the gateway: the photograph whole on lapis, the first sentence beside it (user 2026-10-15: "we can't tell what it is") */
.bg-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 48px 0 52px; color: #fff;
	background: var(--lapis); box-shadow: 0 0 0 100vmax var(--lapis); clip-path: inset(0 -100vmax); }
.bg-hero__f { margin: 0; }
.bg-hero__f img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; box-shadow: 0 0 0 8px rgba(255, 255, 255, .06); }
.bg-hero__in { border-top: 4px solid var(--gold); padding-top: 18px; }
.editorial .entry-content .bg-hero p.bg-hero__k { font-size: 14.5px; color: var(--gold-2); letter-spacing: .02em; }
.bg-hero__k b { color: #fff; }
.editorial .entry-content .bg-hero blockquote.bg-hero__q { margin: 14px 0 0; padding: 0; border: 0; background: none; color: #fff; font-style: normal; }
.bg-hero__q p { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
/* the chapters in the head (shown docked too): one row of buttons, the chapter being read marked */
.bg-chips { gap: 6px 8px; }
.bg-chips .tx-size { margin-inline-start: 8px; }
/* chapter one's title; the other chapters open on a lapis band with a photograph */
.bg-ch { scroll-margin-top: 140px; }
.bg-h1 { margin: 56px 0 8px; max-width: var(--tx-col); }
.editorial .entry-content .bg-h1 h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; font-weight: 700; color: var(--lapis); padding-bottom: 12px; border-bottom: 3px solid var(--gold); display: inline-block; }
.bg-band { margin: 88px 0 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; align-items: stretch; background: var(--lapis); color: #fff; box-shadow: 0 0 0 100vmax var(--lapis); clip-path: inset(0 -100vmax); }
.bg-band__t { padding: 56px 48px 56px 0; display: flex; flex-direction: column; justify-content: center; }
.editorial .entry-content .bg-band h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; font-weight: 700; color: #fff; }
.editorial .entry-content .bg-band h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); margin-top: 18px; }
.editorial .entry-content .bg-band__t p { font-size: 18px; line-height: 1.6; color: #dfe6f5; margin-top: 18px; max-width: 46ch; }
.bg-band__f { margin: 0; padding: 32px 0; display: flex; flex-direction: column; justify-content: center; }
.bg-band__f img { display: block; width: auto; max-width: 100%; max-height: 520px; height: auto; margin-inline: auto; box-shadow: 0 0 0 8px rgba(255, 255, 255, .06); } /* whole, never cropped */
.bg-band__f figcaption { font-size: 13.5px; color: var(--gold-2); margin-top: 10px; text-align: center; }
.bg-band--r { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bg-band--r .bg-band__t { order: 2; padding: 56px 0 56px 48px; }
/* the text */
.bg-ed .tx-row { margin-top: 1em; }
.bg-ed .tx-main > p { font-size: var(--tx-fs); line-height: 1.8; }
.bg-ed .tx-row--wide .tx-plate { margin: 30px 0; }
.bg-ed .tx-plate figcaption { color: var(--lapis); font-weight: 600; }
/* one word, many stations: a gold road on lapis */
.bg-word { margin: 44px 0 30px; padding: 40px 44px 44px; background: var(--lapis); color: #fff; }
.bg-word .tx-sh { border-top-color: var(--gold); }
.editorial .entry-content .bg-word .tx-sh h2 { color: #fff; }
.bg-word .tx-sh p { color: #cfd8ec; }
.bg-word__l { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bg-word__l li { position: relative; padding: 26px 18px 0 0; border-top: 3px solid var(--gold); }
.bg-word__l li::before { content: ""; position: absolute; top: -9px; inset-inline-start: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--lapis); box-shadow: inset 0 0 0 3px var(--gold); }
.bg-word__l li:last-child::before { background: var(--gold); }
.bg-word__l small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.bg-word__l b { display: block; font-size: 18px; line-height: 1.3; margin: 4px 0 8px; color: #fff; }
.editorial .entry-content .bg-word__l p { font-size: 14.5px; line-height: 1.55; color: #dfe6f5; }
/* the chalghi baghdadi */
.bg-ens { margin: 44px 0 30px; }
.bg-ens .tx-sh { border-top-color: var(--lapis); }
.bg-ens__g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; margin-top: 26px; align-items: start; }
.bg-ens__lead { margin: 0; }
.bg-ens__lead img { width: 100%; height: auto; display: block; }
.bg-ens__lead figcaption, .bg-ens__p figcaption { font-size: 13.5px; color: var(--tx-mute); margin-top: 8px; line-height: 1.5; }
.bg-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.entry-content .bg-page .bg-tab { min-height: 64px; padding: 10px 12px; border: 1px solid var(--lapis); text-align: start; cursor: pointer; display: flex; flex-direction: column; justify-content: center; line-height: 1.25; color: var(--lapis); }
.bg-tab b { font-size: 15px; } .bg-tab span { font-size: 12.5px; opacity: .8; }
.entry-content .bg-page .bg-tab[aria-pressed="true"] { background: var(--lapis); color: #fff; box-shadow: inset 0 -4px 0 var(--gold); }
.bg-ens__p { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; margin-top: 14px; padding: 22px 24px; background: var(--lapis-pale); align-items: start; border-top: 3px solid var(--gold); }
.bg-ens__p[hidden] { display: none !important; }
.bg-ens__p:not(:has(figure)) { grid-template-columns: minmax(0, 1fr); }
.editorial .entry-content .bg-ens__p h3 { font-size: 24px; line-height: 1.2; color: var(--lapis); }
.editorial .entry-content .bg-ens__p p.bg-ens__d { font-size: 17px; line-height: 1.65; margin-top: 10px; }
.editorial .entry-content .bg-ens__p p.bg-ens__m { font-size: 15px; line-height: 1.6; margin-top: 14px; padding-top: 12px; border-top: 1px solid #cdd6e8; }
.bg-ens__m b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lapis); margin-bottom: 4px; }
.bg-ens__p figure { margin: 0; }
.bg-ens__p img { width: 100%; height: auto; max-height: 300px; object-fit: contain; display: block; }
.editorial .entry-content .bg-page p.bg-ens__n { font-size: 15px; color: var(--tx-mute); margin-top: 14px; }
/* the poetic forms: rhyme schemes in lapis and gold */
.bg-forms { margin: 44px 0 30px; }
.bg-forms .tx-sh { border-top-color: var(--lapis); }
.bg-forms__l { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.bg-forms__l li { border-top: 2px solid var(--lapis); padding-top: 12px; }
.editorial .entry-content .bg-forms__l h3 { font-size: 20px; line-height: 1.25; color: var(--lapis); }
.editorial .entry-content .bg-forms__l p { font-size: 14.5px; line-height: 1.6; color: #2b2d33; margin-top: 8px; }
.editorial .entry-content .bg-forms__l p.bg-rh { display: flex; gap: 4px; margin-top: 10px; }
.bg-r { width: 26px; height: 26px; display: grid; place-items: center; font: 800 13px/1 var(--font); font-style: normal; color: #fff; background: var(--lapis); }
.bg-r--b { background: var(--gold); color: var(--lapis-2); }
.editorial .entry-content .bg-page p.bg-more { margin-top: 18px; font-size: 15px; font-weight: 700; }
.bg-more a { color: var(--lapis); }
.bg-ed #musicians, .bg-ed #ensemble { scroll-margin-top: 140px; }
.bg-page .tx-lives { border-top-color: var(--lapis); }
@media (max-width: 1199px) {
	.bg-word__l { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
	.bg-ens__g { grid-template-columns: minmax(0, 1fr); }
	.bg-forms__l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.bg-hero { grid-template-columns: minmax(0, 1fr); }
	.bg-band, .bg-band--r { grid-template-columns: minmax(0, 1fr); }
	.bg-band__t, .bg-band--r .bg-band__t { order: 0; padding: 36px 0 8px; }
	.bg-band__f { padding: 16px 0 32px; }
}
@media (max-width: 640px) {
	.bg-hero { padding: 28px 0 32px; gap: 22px; }
	.bg-word { padding: 26px 18px 30px; }
	.bg-word__l { grid-template-columns: minmax(0, 1fr); }
	.bg-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bg-ens__p { grid-template-columns: minmax(0, 1fr); padding: 16px; }
	.bg-forms__l { grid-template-columns: minmax(0, 1fr); }
}
/* the gateway's full-width layers must not widen the page */
body:has(.bg-hero) .tx-site { overflow-x: clip; }
.bg-forms__l { margin-top: 44px; }
/* the left margin, like the other texts (the head's link column is gone here, so the start is set, not measured) */
@media (min-width: 1200px) { .tx-page.bg-page { padding-inline-start: max(var(--tx-indent, 0px), 123px); } .bg-page { --bg-ind: max(var(--tx-indent, 0px), 123px); } }
@media (min-width: 901px) and (max-width: 1199px) { .tx-page.bg-page { padding-inline-start: max(var(--tx-indent, 0px), 79px); } .bg-page { --bg-ind: max(var(--tx-indent, 0px), 79px); } }
/* in it: the portraits of the musicians a paragraph names, round, with name and dates; each opens large */
.bg-ed .tx-main { position: relative; }
.bg-lm { list-style: none; margin: 0; padding: 0; position: absolute; top: 6px; left: calc(-1 * var(--bg-ind, 123px)); width: calc(var(--bg-ind, 123px) - 22px); display: flex; flex-direction: column; gap: 14px; }
.bg-lm li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bg-lm a { display: block; cursor: zoom-in; }
.bg-lm img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; display: block; box-shadow: 0 0 0 2px var(--gold); }
.bg-lm b { font-size: 12.5px; line-height: 1.25; color: var(--lapis); }
.bg-lm small { font-size: 11.5px; color: var(--tx-mute); }
@media (max-width: 1199px) { .bg-lm img { width: 52px; height: 52px; } .bg-lm b { font-size: 11.5px; } }
@media (max-width: 900px) {
	.bg-lm { position: static; width: auto; flex-direction: row; gap: 12px; overflow-x: auto; margin: 0 0 10px; padding-bottom: 4px; }
	.bg-lm li { flex: none; width: 92px; }
}
