/* Template « Éditorial »: a quiet property magazine. Scoped under .tpl-editorial. Type in pt, layout in mm.
   Ink #1B1915 on paper #FBF9F5 (16.9:1), muted #5E5A52 (6.3:1), brass-ink #7A6233 for small labels (5.5:1);
   brass #B8975F only as rules. Fraunces light for display (one italic word on the cover), Satoshi for text.
   Full-bleed photos reach into the bleed with negative offsets of var(--bleed); words keep 14 mm or more off the trim. */
.tpl-editorial { --b-ground: #FBF9F5; --b-ink: #1B1915; --b-muted: #5E5A52; --b-accent: #B8975F; --b-rule: #E6E0D6;
  --b-display: "Fraunces", Georgia, serif; --b-text: "Satoshi", system-ui, sans-serif; --b-display-weight: 350;
  --b-display-case: none; --b-display-track: -.01em;
  --e-label: #7A6233; --e-m: 16mm; --e-gut: 2.5mm; --e-out: calc(-1 * var(--bleed)); }

.tpl-editorial .sheet { font-size: 9.5pt; line-height: 1.55; font-kerning: normal; font-variant-numeric: lining-nums; }
.tpl-editorial .s-label { margin: 0 0 3mm; font-size: 7pt; font-weight: 600; letter-spacing: .24em; line-height: 1.3; text-transform: uppercase; color: var(--e-label); }
.tpl-editorial .e-logo { display: block; width: auto; max-width: 36mm; max-height: 12mm; object-fit: contain; }
.tpl-editorial .e-shot { min-width: 0; min-height: 0; overflow: hidden; background: var(--b-rule); }

/* folio: page number in italic, the section, the town on the right */
.tpl-editorial .e-folio { flex: none; display: flex; align-items: baseline; gap: 3mm; margin-top: auto; font-size: 7pt; font-weight: 600; letter-spacing: .24em; line-height: 1.3; text-transform: uppercase; color: var(--b-muted); }
.tpl-editorial .e-folio__n { font-family: var(--b-display); font-size: 10pt; font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--b-ink); }
.tpl-editorial .e-folio__run { min-width: 0; margin-left: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 1. cover ---------- */
.tpl-editorial .sheet.e-cover { justify-content: flex-end; padding: 0 var(--e-m) 17mm; }
.tpl-editorial .e-cover__photo { position: absolute; inset: var(--e-out); }
.tpl-editorial .e-cover__photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,15,12,.22) 0, rgba(17,15,12,0) 16%, rgba(17,15,12,0) 44%, rgba(17,15,12,.38) 64%, rgba(17,15,12,.8) 100%); }
/* the logo top left, alone (no plate), always in its own colours (Maher 2026-11-21) */
.tpl-editorial .e-cover__mark { position: absolute; z-index: 1; top: 14mm; left: var(--e-m); }
.tpl-editorial .e-cover__mark .e-logo { max-width: 50mm; max-height: 22mm; object-position: 0 0; }
.tpl-editorial .e-cover__words { position: relative; color: #fff; }
.tpl-editorial .e-cover:not(.has-photo) .e-cover__words { color: var(--b-ink); }
.tpl-editorial .e-kicker { display: flex; align-items: center; gap: 4mm; margin-bottom: 6mm; font-size: 7.5pt; font-weight: 600; letter-spacing: .32em; line-height: 1.3; text-transform: uppercase; }
.tpl-editorial .e-kicker::before { content: ""; flex: none; width: 10mm; height: .3mm; background: var(--b-accent); }
.tpl-editorial .e-cover__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-width: 170mm;
  font-family: var(--b-display); font-size: 46pt; font-weight: 300; line-height: 1.02; letter-spacing: -.022em; text-wrap: balance; font-variation-settings: "opsz" 144; }
.tpl-editorial .e-cover__title em { font-weight: 300; white-space: normal; }
.tpl-editorial .e-cover__line { display: flex; align-items: baseline; justify-content: space-between; gap: 10mm; margin-top: 8mm; padding-top: 4.5mm; border-top: .3mm solid var(--b-accent); }
.tpl-editorial .e-cover__price { flex: none; font-family: var(--b-display); font-size: 20pt; font-weight: 350; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; font-variation-settings: "opsz" 72; }
.tpl-editorial .e-cover__strip { min-width: 0; font-size: 9.5pt; font-weight: 500; letter-spacing: .03em; text-align: right; }
.tpl-editorial .e-cover__strip:only-child { text-align: left; }

/* ---------- 2. the story ---------- */
.tpl-editorial .e-story__photo { position: absolute; top: var(--e-out); right: var(--e-out); bottom: var(--e-out); left: 94mm; }
.tpl-editorial .e-story:not(.has-text) .e-story__photo { left: var(--e-out); }
.tpl-editorial .e-story__col { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; width: 84mm; padding: 20mm 0 14mm var(--e-m); }
.tpl-editorial .e-rubric { display: flex; align-items: center; gap: 3mm; margin: 0; }
.tpl-editorial .e-rubric::before { content: ""; width: 8mm; height: .3mm; background: var(--b-accent); }
.tpl-editorial .e-headline { flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; margin-top: 10mm;
  font-family: var(--b-display); font-size: 22pt; font-weight: 300; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; font-variation-settings: "opsz" 144; }
/* about 22 lines of text, then the editor warns; the brass rule above it is its own padding */
.tpl-editorial .e-intro { flex: 0 1 auto; min-height: 0; max-height: calc(7mm + 1.62em * 22); overflow: hidden; margin-top: 7mm; padding-top: 7mm;
  background: linear-gradient(var(--b-accent), var(--b-accent)) 0 0 / 12mm .3mm no-repeat; font-size: 10pt; line-height: 1.62; hyphens: auto; text-wrap: pretty; }
.tpl-editorial .e-intro::first-letter { initial-letter: 3; margin-right: 2.2mm; font-family: var(--b-display); font-weight: 300; color: var(--b-ink); font-variation-settings: "opsz" 144; }
.tpl-editorial .e-high { flex: none; margin-top: auto; padding-top: 10mm; }
.tpl-editorial .e-high ol { margin: 0; padding: 0; list-style: none; }
.tpl-editorial .e-high li { display: grid; grid-template-columns: 9mm minmax(0, 1fr); align-items: baseline; padding: 2.2mm 0 2.4mm; border-top: .2mm solid var(--b-rule); line-height: 1.45; }
.tpl-editorial .e-high li > span:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tpl-editorial .e-high__n { font-family: var(--b-display); font-size: 10pt; font-style: italic; font-weight: 400; color: var(--e-label); }
.tpl-editorial .e-high + .e-folio { margin-top: 9mm; }
/* a landscape photo: across the top, the words below in two columns (headline and text | highlights) */
.tpl-editorial .e-story.is-wide .e-story__photo { bottom: auto; left: var(--e-out); height: calc(120mm + var(--bleed)); }
.tpl-editorial .e-story.is-wide .e-story__col { width: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
  column-gap: 10mm; align-content: start; padding: 134mm var(--e-m) 14mm; }
.tpl-editorial .e-story.is-wide .e-rubric { grid-area: 1 / 1; }
.tpl-editorial .e-story.is-wide .e-headline { grid-area: 2 / 1; margin-top: 6mm; -webkit-line-clamp: 4; }
.tpl-editorial .e-story.is-wide .e-intro { grid-area: 3 / 1; margin-top: 5mm; padding-top: 5mm; max-height: calc(5mm + 1.62em * 15); }
.tpl-editorial .e-story.is-wide .e-high { grid-area: 1 / 2 / 4 / 3; margin-top: 0; padding-top: 0; }
.tpl-editorial .e-story.is-wide .e-folio { grid-area: 4 / 1 / 5 / 3; margin-top: 6mm; }
/* no photo for this page: the words take the whole page, the text in two columns */
.tpl-editorial .e-story:not(.has-photo) .e-story__col { width: auto; padding: 24mm var(--e-m) 14mm; }
.tpl-editorial .e-story:not(.has-photo) .e-headline { max-width: 150mm; font-size: 30pt; }
.tpl-editorial .e-story:not(.has-photo) .e-intro { column-count: 2; column-gap: 10mm; max-height: calc(7mm + 1.62em * 64); }
.tpl-editorial .e-story:not(.has-photo) .e-high ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10mm; }

/* ---------- 3. the gallery: one large and up to three smaller, paper gutters, a paper band for the folio ---------- */
.tpl-editorial .e-mosaic { position: absolute; top: var(--e-out); left: var(--e-out); right: var(--e-out); bottom: 20mm; display: grid; gap: var(--e-gut); }
/* every cell is wider than tall: listing photos are landscape (Maher 2026-11-21: no tall slivers) */
.tpl-editorial .e-gallery.n-1 .e-mosaic { bottom: auto; height: calc(160mm + var(--bleed)); }
.tpl-editorial .e-gallery.n-2 .e-mosaic { grid-template-rows: calc((277mm - var(--e-gut)) / 2 + var(--bleed)) 1fr; }
.tpl-editorial .e-gallery.n-3 .e-mosaic { grid-template-rows: 1fr 1fr 1fr; }
.tpl-editorial .e-gallery.n-4 .e-mosaic { grid-template: 1fr 1fr .8fr / 1fr 1fr; }
.tpl-editorial .e-gallery.n-4 .e-shot:nth-child(-n+2) { grid-column: 1 / -1; }
.tpl-editorial .e-gallery.n-5 .e-mosaic { grid-template: 1.2fr 1fr 1fr / 1fr 1fr; }
.tpl-editorial .e-gallery.n-5 .e-shot:first-child { grid-column: 1 / -1; }
.tpl-editorial .e-gallery .e-folio { position: absolute; left: var(--e-m); right: var(--e-m); bottom: 8mm; }

/* ---------- 4. back cover ---------- */
.tpl-editorial .e-back__photos { flex: 1 1 0; min-height: 100mm; display: grid; gap: var(--e-gut); margin: var(--e-out) var(--e-out) 0; }
.tpl-editorial .e-back__photos.n-2 { grid-template-columns: 3fr 2fr; }
.tpl-editorial .e-back__title { flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-width: 160mm; padding: 26mm var(--e-m) 0;
  font-family: var(--b-display); font-size: 30pt; font-weight: 300; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; font-variation-settings: "opsz" 144; }
.tpl-editorial .e-back__body { flex: none; padding: 12mm var(--e-m) 14mm; }
.tpl-editorial .e-back:not(.has-photo) .e-back__body { margin-top: auto; }
.tpl-editorial .e-nums { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; }
.tpl-editorial .e-nums > div { display: flex; flex-direction: column; min-width: 0; padding-left: 5mm; border-left: .2mm solid var(--b-rule); }
.tpl-editorial .e-nums > div:first-child { padding-left: 0; border-left: 0; }
.tpl-editorial .e-nums dd { order: -1; margin: 0 0 2.6mm; font-family: var(--b-display); font-size: 34pt; font-weight: 300; line-height: .95; letter-spacing: -.025em; white-space: nowrap; font-variation-settings: "opsz" 144; }
.tpl-editorial .e-nums small { font-size: .42em; letter-spacing: 0; }
.tpl-editorial .e-nums dt { font-size: 7pt; font-weight: 600; letter-spacing: .24em; line-height: 1.3; text-transform: uppercase; color: var(--e-label); }
.tpl-editorial .e-back__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14mm; padding-top: 7mm; border-top: .3mm solid var(--b-accent); }
.tpl-editorial .e-nums + .e-back__cols { margin-top: 9mm; }
.tpl-editorial .e-facts dl { margin: 0; }
.tpl-editorial .e-facts dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 6mm; padding: 1.8mm 0 2mm; border-bottom: .2mm solid var(--b-rule); }
.tpl-editorial .e-facts dt { flex: none; color: var(--b-muted); }
.tpl-editorial .e-facts dd { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-width: 0; margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.tpl-editorial .e-agent__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-family: var(--b-display); font-size: 16pt; font-weight: 350; line-height: 1.15; letter-spacing: -.01em; font-variation-settings: "opsz" 72; }
.tpl-editorial .e-agent__co { margin-top: .8mm; color: var(--b-muted); }
.tpl-editorial .e-agent__lines { margin-top: 3mm; }
.tpl-editorial .e-agent__lines span { display: block; overflow-wrap: anywhere; }
.tpl-editorial .e-agent .e-logo { margin-top: 6mm; object-position: 0 50%; }
.tpl-editorial .e-agent .s-label + .e-logo { margin-top: 1mm; }
.tpl-editorial .e-legal { margin-top: 8mm; font-size: 7pt; letter-spacing: .06em; line-height: 1.4; color: var(--b-muted); }
.tpl-editorial .e-back__body > .e-legal:first-child { margin-top: 0; }
