body.lp27-site { background: var(--oc-bg); color: var(--oc-ink); font: 400 1rem/1.55 var(--lp27-font); }
.lp27-content img { max-width: 100%; height: auto; }
.lp27-editorial, .lp27-home-editorial { max-width: 74rem; margin-inline: auto; padding: clamp(1.25rem, 4vw, 4.5rem); }
.lp27-editorial h1 { font-size: clamp(2.2rem, 4.4vw, 4.5rem); line-height: 1.07; max-width: 22ch; margin: 0 0 .45em; text-wrap: balance; }
.lp27-page-heading { margin-bottom: 1.75rem; }
.lp27-editorial .entry-content, .lp27-home-editorial { overflow-wrap: break-word; }
.entry-content > * + * { margin-block-start: 1.4em; }
.entry-content p, .entry-content ul, .entry-content ol { max-width: 76ch; }
.entry-content :where(h2,h3,h4) { line-height: 1.22; text-wrap: balance; }
.lp27-content .entry-content a, .lp27-editorial > a { color: var(--oc-blue); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.entry-content :where(iframe,video) { max-width: 100%; }
.lp27-editorial-hero { margin: 0 0 2em; }
.lp27-editorial-hero img { display: block; max-height: 32rem; object-fit: cover; width: 100%; }
.lp27-collection { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 13rem),1fr)); gap: 1rem; margin: 1.5rem 0; }
.lp27-collection a.lp27-card { color: var(--oc-ink); display: block; background: var(--oc-surface); text-decoration: none; border-radius: .65rem; overflow: hidden; }
.lp27-card img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.lp27-card h3 { margin: .8rem 1rem 1rem; font-size: 1.08rem; }
.lp27-card:is(:hover, :focus-visible) h3 { color: var(--oc-orange); }
.lp27-widget-link { display: inline-block; margin-block: .75rem; }
.lp27-content :where(input, select, textarea) { max-width: 100%; box-sizing: border-box; }
.lp27-content :focus-visible { outline: 3px solid var(--oc-blue); outline-offset: 3px; }
.lp27-housing__gallery figure { margin: 0; }
.lp27-housing__gallery figcaption { font-size: .9rem; }
.lp27-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1.1rem; padding-block: 1rem; }
.lp27-filters label { display: grid; gap: .25rem; color: var(--oc-ink); }
.lp27-filters :is(select,button) { min-height: 2.75rem; padding: .4rem .65rem; border: 1px solid var(--oc-edge); background: var(--oc-surface); color: var(--oc-ink); border-radius: .3rem; font: inherit; }
.lp27-filters output { align-self: center; font-weight: 600; }
.lp27-filters[hidden], .lp27-collection a[hidden] { display: none; }
.lp27-external { margin-block: 1rem; padding: 1.1rem; border: 1px solid var(--oc-line); background: var(--oc-surface); border-radius: .35rem; }
.lp27-external p { margin: 0 0 .5em; }
.lp27-external button, .lp27-consent-actions button { appearance: none; color: var(--oc-ink); background: var(--oc-surface); border: 1px solid var(--oc-edge); padding: .55rem 1rem; border-radius: .35rem; font: inherit; cursor: pointer; }
.lp27-external-frame { border: 0; width: 100%; height: clamp(18rem, 46vw, 29rem); }
.lp27-external[hidden] { display: none; }
.lp27-manage-consent { background: transparent; border: 0; padding: 3px 0; font: inherit; font-size: 14px; color: var(--oc-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#lp27-consent { box-sizing: border-box; width: min(34rem, 95vw); max-height: 90dvh; overflow: auto; padding: clamp(1.2rem, 4vw, 2rem); border: none; border-radius: .65rem; background: var(--oc-surface); color: var(--oc-ink); font: 400 1rem/1.5 var(--lp27-font); }
#lp27-consent::backdrop { background: rgb(32 42 54 / 78%); }
#lp27-consent h2 { margin: 0; line-height: 1.18; }
#lp27-consent label { display: block; padding: .5rem 0; }
#lp27-consent a { color: var(--oc-blue); }
.lp27-consent-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
#lp27-consent :focus-visible { outline: 3px solid var(--oc-blue); outline-offset: 2px; }

.lp27-external :is(button,a):hover, .lp27-consent-actions button:hover { background: var(--oc-line); color: var(--oc-ink); }
#lp27-consent button[value="save"] { background: var(--oc-orange); border-color: var(--oc-orange); color: var(--oc-bg); }
#lp27-consent button[value="save"]:hover { background: var(--oc-hover); border-color: var(--oc-hover); }

/* Preserve the space around the historical crest when an imported block uses it. */
.entry-content img.lp27-marque-contenu,
.lp27-content img.lp27-marque-contenu {
    display: block; width: min(100%, 10.5rem); height: auto; max-height: none; aspect-ratio: auto;
    padding: .8rem 1rem; box-sizing: border-box; background: var(--oc-bg); object-fit: contain;
}
