/* Template « Prestige »: a luxury house on a near-black ground. Scoped under .tpl-prestige (the leaflet reads the
   --b-* tokens). Contrast on the ground #15130F: ivory #F3EEE4 16.2:1, muted #B9B2A5 9.0:1, brass #B8975F 6.9:1.
   Brass only for hairlines, numerals and small capital labels; running text 10 pt ivory; labels 7.5 pt caps.
   Fraunces light for the display (capitals, widely spaced, on the cover and the agent's name), Satoshi for text. */
.tpl-prestige { --b-ground: #15130F; --b-ink: #F3EEE4; --b-muted: #B9B2A5; --b-accent: #B8975F; --b-rule: #3A352C;
  --b-display: "Fraunces", Georgia, serif; --b-text: "Satoshi", system-ui, sans-serif; --b-display-weight: 300;
  --b-display-case: uppercase; --b-display-track: .18em;
  --pr-hair: .2mm; --pr-gut: 2.5mm; --pr-side: 18mm; }

.tpl-prestige .pr { font-family: var(--b-text); font-size: 10pt; line-height: 1.55; color: var(--b-ink); font-kerning: normal; }
.tpl-prestige :where(.pr p, .pr h1, .pr h2, .pr ol, .pr dl, .pr dd) { margin: 0; padding: 0; }   /* :where, so the classes below win */
.tpl-prestige .pr-bleed { margin: calc(-1 * var(--bleed)) calc(-1 * var(--bleed)) 0; }   /* touches the top, left and right trim */
.tpl-prestige .pr-ph { position: relative; flex: none; overflow: hidden; border-radius: 0; background: #221E18; }
.tpl-prestige .pr-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* small capital labels; on a centred page a hairline either side, on the story a hairline before */
.tpl-prestige .pr-kicker { display: flex; align-items: center; justify-content: center; gap: 4mm; font-size: 7.5pt; font-weight: 600;
  line-height: 1.3; letter-spacing: .32em; text-transform: uppercase; color: var(--b-accent); }
.tpl-prestige .pr-kicker span { margin-right: -.32em; }   /* the tracking after the last letter, so the label centres */
.tpl-prestige .pr-kicker::before, .tpl-prestige .pr-kicker::after { content: ""; flex: none; width: 9mm; height: var(--pr-hair); background: var(--b-accent); }
.tpl-prestige .pr-story .pr-kicker { justify-content: flex-start; }
.tpl-prestige .pr-story .pr-kicker::after, .tpl-prestige .pr-high .pr-kicker::before { display: none; }

/* the logo alone, in its own colours (Maher 2026-11-21: no card, no background, never recoloured) */
.tpl-prestige .pr-card { flex: none; display: grid; place-items: center; }
.tpl-prestige .pr-logo { display: block; max-width: 40mm; max-height: 12mm; object-fit: contain; }

/* inner pages: city and folio at the foot */
.tpl-prestige .pr-folio { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 10mm; margin-top: auto;
  padding: 6mm var(--pr-side) 10mm; font-size: 7.5pt; font-weight: 600; line-height: 1.3; letter-spacing: .32em; text-transform: uppercase; color: var(--b-muted); }
.tpl-prestige .pr-folio span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tpl-prestige .pr-folio__n { font-family: var(--b-display); font-size: 10pt; font-weight: 300; letter-spacing: .08em; color: var(--b-accent); font-variant-numeric: lining-nums; }

/* 1. cover: the photo in a brass frame within dark margins, then « À vendre », the title, the town, the price */
.tpl-prestige .sheet.pr-cover { align-items: center; padding: 15mm 17mm 13mm; }   /* .sheet: beats the plate reset in brochure.css */
.tpl-prestige .pr-cover__ph { align-self: stretch; flex: 1 1 0; min-height: 120mm; margin: 2.6mm 2.6mm 0;
  outline: var(--pr-hair) solid var(--b-accent); outline-offset: 2.6mm; }
.tpl-prestige .pr-cover__words { flex: none; display: flex; flex-direction: column; align-items: center; max-width: 172mm; padding-top: 12mm; text-align: center; }
.tpl-prestige .pr-title { margin-top: 7mm; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  font-family: var(--b-display); font-size: 38pt; font-weight: 300; line-height: 1.14; letter-spacing: .11em; margin-right: -.11em;
  text-transform: uppercase; text-wrap: balance; font-variation-settings: "opsz" 144; color: var(--b-ink); }
.tpl-prestige .pr-city { margin-top: 5mm; font-size: 7.5pt; font-weight: 600; line-height: 1.3; letter-spacing: .38em; margin-right: -.38em; text-transform: uppercase; }
.tpl-prestige .pr-price { margin-top: 4.5mm; font-family: var(--b-display); font-size: 17pt; font-weight: 300; line-height: 1.2; letter-spacing: .06em;
  color: var(--b-accent); font-variant-numeric: lining-nums; font-variation-settings: "opsz" 48; }
.tpl-prestige .pr-cover__card { margin-top: 9mm; }
/* with a photo: top left on it, inside the brass frame */
.tpl-prestige .pr-cover:not(.no-photo) .pr-cover__card { position: absolute; z-index: 1; top: 26mm; left: 28mm; margin: 0; place-items: start; }
.tpl-prestige .pr-cover:not(.no-photo) .pr-logo { max-height: 18mm; object-position: 0 0; }
/* no photo: a title page, the words centred inside a brass frame */
.tpl-prestige .pr-cover.no-photo { justify-content: center; }
.tpl-prestige .pr-cover.no-photo::before { content: ""; position: absolute; inset: 12mm; border: var(--pr-hair) solid var(--b-accent); pointer-events: none; }
.tpl-prestige .pr-cover.no-photo .pr-cover__words { padding-top: 0; }

/* 2. the story: a full-bleed photo, then the headline, the text and the highlights with brass numerals */
.tpl-prestige .pr-story__ph { height: calc(136mm + var(--bleed)); }
.tpl-prestige .pr-story:not(:has(.pr-story__body)) .pr-story__ph { flex: 1 1 0; height: auto; }   /* photo only */
.tpl-prestige .pr-story__body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; padding: 13mm var(--pr-side) 0; }
.tpl-prestige .pr-story.no-photo .pr-story__body { padding-top: 30mm; }
.tpl-prestige .pr-headline { margin-top: 6mm; max-width: 158mm; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  font-family: var(--b-display); font-size: 21pt; font-weight: 300; line-height: 1.2; letter-spacing: 0; text-wrap: balance;
  font-variation-settings: "opsz" 72; color: var(--b-ink); }
.tpl-prestige .pr-story__cols { flex: 0 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 62mm; gap: 12mm; margin-top: 9mm; padding-top: 8mm;
  border-top: var(--pr-hair) solid var(--b-rule); }
.tpl-prestige .pr-story__cols > :only-child { grid-column: 1 / -1; max-width: 132mm; }
.tpl-prestige .pr-intro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 13; overflow: hidden; line-height: 1.62; hyphens: manual; text-wrap: pretty; }   /* no hyphen in the capital first line */
.tpl-prestige .pr-story.no-photo .pr-intro { -webkit-line-clamp: 30; }
.tpl-prestige .pr-intro::first-line { letter-spacing: .1em; text-transform: uppercase; }
.tpl-prestige .pr-high .pr-kicker { margin-bottom: 3mm; }
.tpl-prestige .pr-high ol { list-style: none; }
.tpl-prestige .pr-high li { display: grid; grid-template-columns: 9mm minmax(0, 1fr); align-items: baseline; padding: 2.6mm 0 2.8mm; border-top: var(--pr-hair) solid var(--b-rule); line-height: 1.45; }
.tpl-prestige .pr-high li > span:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tpl-prestige .pr-high__n { font-family: var(--b-display); font-size: 10pt; font-style: italic; font-weight: 300; color: var(--b-accent); }

/* 3. the gallery: a full-bleed mosaic with hairline dark gutters (one to four photos) */
.tpl-prestige .pr-mosaic { flex: 1 1 0; min-height: 0; display: grid; gap: var(--pr-gut); grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.tpl-prestige .pr-mosaic .pr-ph { grid-column: 1 / -1; }
.tpl-prestige .pr-mosaic.n-3 { grid-template-rows: 1.05fr 1fr; }
.tpl-prestige .pr-mosaic.n-3 .pr-ph:nth-child(n+2) { grid-column: auto; }
.tpl-prestige .pr-mosaic.n-4 { grid-template-rows: 1.5fr 1fr .95fr; }
.tpl-prestige .pr-mosaic.n-4 .pr-ph:nth-child(2), .tpl-prestige .pr-mosaic.n-4 .pr-ph:nth-child(3) { grid-column: auto; }

/* 4. the back cover: photos at the top, the key figures, the agent centred, the logo, the legal line */
.tpl-prestige .pr-back__photos { height: calc(108mm + var(--bleed)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--pr-gut); }
.tpl-prestige .pr-back__body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12mm;
  padding: 12mm var(--pr-side) 0; text-align: center; }
.tpl-prestige .pr-facts { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.tpl-prestige .pr-figures { display: flex; justify-content: center; margin-top: 7mm; }
.tpl-prestige .pr-figures > div { display: flex; flex-direction: column-reverse; align-items: center; padding: 0 7mm; }
.tpl-prestige .pr-figures > div + div { border-left: var(--pr-hair) solid var(--b-rule); }
.tpl-prestige .pr-figures dd { font-family: var(--b-display); font-size: 24pt; font-weight: 300; line-height: 1.1; white-space: nowrap;
  font-variant-numeric: lining-nums; font-variation-settings: "opsz" 72; color: var(--b-ink); }
.tpl-prestige .pr-figures dt { margin-top: 2.4mm; font-size: 7.5pt; font-weight: 600; line-height: 1.3; letter-spacing: .26em; text-transform: uppercase; color: var(--b-muted); white-space: nowrap; }
.tpl-prestige .pr-facts__price { margin-top: 8mm; font-family: var(--b-display); font-size: 19pt; font-weight: 300; line-height: 1.2; letter-spacing: .06em;
  color: var(--b-accent); font-variant-numeric: lining-nums; font-variation-settings: "opsz" 48; }
.tpl-prestige .pr-facts__place { margin-top: 2.6mm; max-width: 160mm; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 7.5pt; font-weight: 600; line-height: 1.5; letter-spacing: .32em; text-transform: uppercase; }
.tpl-prestige .pr-contact { display: flex; flex-direction: column; align-items: center; width: 130mm; max-width: 100%; }
.tpl-prestige .pr-facts + .pr-contact { padding-top: 11mm; border-top: var(--pr-hair) solid var(--b-rule); }
.tpl-prestige .pr-contact__name { margin-top: 5mm; font-family: var(--b-display); font-size: 16pt; font-weight: 300; line-height: 1.2; letter-spacing: .16em; margin-right: -.16em;
  text-transform: uppercase; font-variation-settings: "opsz" 72; overflow-wrap: anywhere; }
.tpl-prestige .pr-contact__co { margin-top: 1.6mm; color: var(--b-muted); }
.tpl-prestige .pr-contact__lines { margin-top: 4mm; display: flex; flex-wrap: wrap; justify-content: center; }
.tpl-prestige .pr-contact__lines span { overflow-wrap: anywhere; }
.tpl-prestige .pr-contact__lines span + span::before { content: "·"; margin: 0 3mm; color: var(--b-accent); }
.tpl-prestige .pr-back__card { margin-top: 9mm; }
.tpl-prestige .pr-contact > .pr-back__card:first-child { margin-top: 0; }
.tpl-prestige .pr-legal { flex: none; margin-top: auto; padding: 8mm var(--pr-side) 10mm; text-align: center; font-size: 7.5pt; line-height: 1.4; letter-spacing: .04em; color: var(--b-muted); }
.tpl-prestige .pr-back.no-photo::before { content: ""; position: absolute; inset: 12mm; border: var(--pr-hair) solid var(--b-accent); pointer-events: none; }
.tpl-prestige .pr-back.no-photo .pr-back__body { padding: 24mm 26mm 0; }
.tpl-prestige .pr-back.no-photo .pr-legal { padding-bottom: 19mm; }
.tpl-prestige .pr-back__title { max-width: 150mm; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-family: var(--b-display);
  font-size: 16pt; font-weight: 300; line-height: 1.3; letter-spacing: .16em; margin-right: -.16em; text-transform: uppercase; text-wrap: balance; font-variation-settings: "opsz" 72; }
.tpl-prestige .pr-sup { margin-left: .04em; font-size: .72em; letter-spacing: .06em; text-transform: none; vertical-align: .38em; line-height: 0; }
.tpl-prestige .pr-figures dd small { font-size: .58em; letter-spacing: .02em; }
