/* ═══════════════════════════════════════════════════════════════
   PUBLIC PAGE TEMPLATES
   Five distinct layouts sharing one set of primitives.
   Palette comes from --lp-* (LandingPageThemeDefinitions);
   typography from --lp-font-display / --lp-font-body (template).
   ═══════════════════════════════════════════════════════════════ */

.lp2-page {
    --lp2-measure: 42rem;
    font-family: var(--lp-font-body, 'Onest', system-ui, sans-serif);
    color: var(--lp-text);
    background: var(--lp-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lp2-page *,
.lp2-page *::before,
.lp2-page *::after { box-sizing: border-box; }

.lp2-wrap {
    width: 100%;
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lp2-section { padding: 4.5rem 0; }
.lp2-section + .lp2-section { padding-top: 0; }

.lp2-eyebrow {
    font-family: var(--lp-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--lp-primary) 70%, var(--lp-text-secondary));
    margin: 0 0 0.75rem;
}

.lp2-h1 {
    font-family: var(--lp-font-display);
    font-weight: 500;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0;
}

.lp2-h2 {
    font-family: var(--lp-font-display);
    font-weight: 500;
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
}

.lp2-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--lp-text-secondary);
    margin: 1rem 0 0;
    max-width: var(--lp2-measure);
}

.lp2-prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: color-mix(in srgb, var(--lp-text) 88%, var(--lp-text-secondary));
    max-width: var(--lp2-measure);
    white-space: pre-wrap;
    margin: 0;
}

/* ── Portrait ── */

.lp2-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: color-mix(in srgb, var(--lp-primary) 12%, var(--lp-surface));
    color: var(--lp-primary);
    font-family: var(--lp-font-display);
    font-weight: 600;
    flex-shrink: 0;
}

.lp2-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lp2-avatar--round { border-radius: 50%; }
.lp2-avatar--soft { border-radius: 1.75rem; }

/* ── Chips ── */

.lp2-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.lp2-listedit {
    display: block;
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--lp-text-secondary);
    opacity: .8;
}

.lp2-listedit-label {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: .25rem;
}

.lp2-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4375rem 0.9375rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    background: color-mix(in srgb, var(--lp-primary) 8%, transparent);
    color: color-mix(in srgb, var(--lp-primary) 85%, #000);
    border: 1px solid color-mix(in srgb, var(--lp-primary) 14%, transparent);
}

/* ── Cards ── */

.lp2-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.lp2-card {
    background: var(--lp-surface);
    border: 1px solid color-mix(in srgb, var(--lp-text) 8%, transparent);
    border-radius: 1.125rem;
    padding: 1.5rem;
}

.lp2-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: color-mix(in srgb, var(--lp-primary) 10%, transparent);
    color: var(--lp-primary);
    margin-bottom: 1rem;
}

.lp2-card-icon .material-symbols-outlined { font-size: 1.375rem; }

.lp2-card-title {
    font-family: var(--lp-font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
}

.lp2-card-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--lp-text-secondary);
    margin: 0;
}

/* ── Credentials ── */

.lp2-creds { display: flex; flex-direction: column; gap: 0.25rem; }

.lp2-cred {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--lp-text) 8%, transparent);
}

.lp2-cred:last-child { border-bottom: none; }

.lp2-cred-main { flex: 1; min-width: 0; }

.lp2-cred-title { font-weight: 600; font-size: 1rem; }

.lp2-cred-sub {
    font-size: 0.9375rem;
    color: var(--lp-text-secondary);
    margin-top: 0.125rem;
}

.lp2-cred-year {
    font-size: 0.875rem;
    color: var(--lp-text-secondary);
    font-variant-numeric: tabular-nums;
    /* A year never needs to wrap — but the AI sometimes writes a whole sentence into this
       field, and with `nowrap` that one line was setting the width of the entire page. */
    max-width: 14rem;
    text-align: right;
    flex-shrink: 1;
}

/* ── Quote ── */

.lp2-quote {
    font-family: var(--lp-font-display);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    line-height: 1.45;
    font-style: italic;
    color: var(--lp-primary);
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

/* ── FAQ ── */

.lp2-faq { display: flex; flex-direction: column; gap: 0.75rem; max-width: 46rem; }

.lp2-faq-item {
    background: var(--lp-surface);
    border: 1px solid color-mix(in srgb, var(--lp-text) 8%, transparent);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.lp2-faq-q {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.5rem;
    display: block;
}

.lp2-faq-a {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--lp-text-secondary);
    margin: 0;
    display: block;
}

/* ── Actions ── */

.lp2-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.lp2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.5rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.lp2-btn:hover { transform: translateY(-1px); }

.lp2-btn--primary {
    background: var(--lp-primary);
    color: #fff;
    box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--lp-primary) 80%, #000);
}

.lp2-btn--primary:hover { background: var(--lp-primary-dark); }

.lp2-btn--ghost {
    background: transparent;
    color: var(--lp-primary);
    border-color: color-mix(in srgb, var(--lp-primary) 28%, transparent);
}

.lp2-btn--ghost:hover { background: color-mix(in srgb, var(--lp-primary) 6%, transparent); }

.lp2-btn--onhero {
    background: rgba(255,255,255,.16);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    backdrop-filter: blur(6px);
}

.lp2-btn--onhero:hover { background: rgba(255,255,255,.26); }

.lp2-btn .material-symbols-outlined { font-size: 1.125rem; }

/* ── Contact ── */

.lp2-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.lp2-contact-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: var(--lp-surface);
    border: 1px solid color-mix(in srgb, var(--lp-text) 8%, transparent);
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}

.lp2-contact-item:hover {
    border-color: color-mix(in srgb, var(--lp-primary) 35%, transparent);
    transform: translateY(-1px);
}

.lp2-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--lp-primary) 10%, transparent);
    color: var(--lp-primary);
    flex-shrink: 0;
}

.lp2-contact-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lp-text-secondary);
}

.lp2-contact-value { display: block; font-size: 0.9375rem; font-weight: 500; word-break: break-word; }

.lp2-socials { display: flex; gap: 0.625rem; margin-top: 1.5rem; }

.lp2-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--lp-text) 12%, transparent);
    color: var(--lp-text-secondary);
    text-decoration: none;
    transition: all .18s ease;
}

.lp2-social:hover {
    color: var(--lp-primary);
    border-color: color-mix(in srgb, var(--lp-primary) 40%, transparent);
}

.lp2-footer {
    padding: 3rem 0 2.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: color-mix(in srgb, var(--lp-text-secondary) 80%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--lp-text) 7%, transparent);
    margin-top: 3rem;
}

.lp2-slot { padding-top: 0; }
.lp2-slot:empty { display: none; }

/* ═══════════════════════════════════════════════
   TEMPLATE 1 — SERENE : editorial split hero
   ═══════════════════════════════════════════════ */

.tpl-serene .lp2-hero { position: relative; padding: 5.5rem 0 5rem; }

.tpl-serene .lp2-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.tpl-serene .lp2-avatar {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 1.75rem 1.75rem 1.75rem 6rem;
    font-size: 4rem;
    box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--lp-primary) 70%, #000);
}

.tpl-serene .lp2-h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }

.tpl-serene .lp2-rule {
    width: 3.5rem;
    height: 2px;
    background: var(--lp-accent);
    margin: 1.75rem 0 0;
    border: none;
}

.tpl-serene .lp2-section { padding: 3.5rem 0; }

.tpl-serene .lp2-quote::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background: var(--lp-accent);
    margin: 0 auto 1.75rem;
}

@media (max-width: 860px) {
    .tpl-serene .lp2-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tpl-serene .lp2-hero-media { order: -1; max-width: 17rem; }
    .tpl-serene .lp2-avatar { aspect-ratio: 1; }
}

/* ═══════════════════════════════════════════════
   TEMPLATE 2 — CLINICAL : sober, credential-first
   ═══════════════════════════════════════════════ */

.tpl-clinical { --lp2-measure: 44rem; }

.tpl-clinical .lp2-topbar {
    background: var(--lp-primary-dark);
    color: #fff;
    font-size: 0.8125rem;
    padding: 0.625rem 0;
}

.tpl-clinical .lp2-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    opacity: .92;
}

.tpl-clinical .lp2-topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.tpl-clinical .lp2-topbar .material-symbols-outlined { font-size: 1rem; }

.tpl-clinical .lp2-hero {
    background: linear-gradient(160deg, var(--lp-hero-start), var(--lp-hero-end));
    color: #fff;
    padding: 5.5rem 0;
}

.tpl-clinical .lp2-hero-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
}

.tpl-clinical .lp2-avatar {
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 1.25rem;
    font-size: 2.75rem;
    border: 3px solid rgba(255,255,255,.25);
}

.tpl-clinical .lp2-hero .lp2-h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.tpl-clinical .lp2-hero .lp2-lead { color: rgba(255,255,255,.82); }
.tpl-clinical .lp2-hero .lp2-eyebrow { color: rgba(255,255,255,.7); }

.tpl-clinical .lp2-credline {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.tpl-clinical .lp2-h2 {
    font-weight: 600;
    padding-bottom: .75rem;
    border-bottom: 2px solid color-mix(in srgb, var(--lp-primary) 18%, transparent);
}

.tpl-clinical .lp2-card { border-radius: .75rem; }
.tpl-clinical .lp2-faq-item { border-radius: .75rem; }
.tpl-clinical .lp2-chip { border-radius: .5rem; }
.tpl-clinical .lp2-contact-item { border-radius: .75rem; }

@media (max-width: 720px) {
    .tpl-clinical .lp2-hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .tpl-clinical .lp2-hero .lp2-lead { margin-inline: auto; }
}

/* ═══════════════════════════════════════════════
   TEMPLATE 3 — WARM : round portrait, soft cards
   ═══════════════════════════════════════════════ */

.tpl-warm { --lp2-measure: 40rem; }

.tpl-warm .lp2-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 4.5rem 0 2.5rem;
    background:
        radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--lp-accent) 30%, transparent) 0%, transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--lp-primary) 8%, var(--lp-bg)), var(--lp-bg));
}

.tpl-warm .lp2-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .35;
    pointer-events: none;
}

.tpl-warm .lp2-blob--a {
    width: 22rem; height: 22rem;
    background: color-mix(in srgb, var(--lp-accent) 60%, transparent);
    top: -8rem; left: -6rem;
}

.tpl-warm .lp2-blob--b {
    width: 18rem; height: 18rem;
    background: color-mix(in srgb, var(--lp-primary) 40%, transparent);
    top: -4rem; right: -7rem;
}

.tpl-warm .lp2-hero-inner { position: relative; }

.tpl-warm .lp2-avatar {
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    margin: 0 auto 1.75rem;
    font-size: 3rem;
    border: 5px solid var(--lp-surface);
    box-shadow: 0 18px 45px -22px color-mix(in srgb, var(--lp-primary) 90%, #000);
}

.tpl-warm .lp2-h1 { font-weight: 700; }
.tpl-warm .lp2-lead { margin-inline: auto; }
.tpl-warm .lp2-actions { justify-content: center; margin-top: 2rem; }
.tpl-warm .lp2-h2 { text-align: center; font-weight: 700; }
.tpl-warm .lp2-prose { margin-inline: auto; text-align: center; }
.tpl-warm .lp2-chips { justify-content: center; }
.tpl-warm .lp2-faq { margin-inline: auto; }

.tpl-warm .lp2-card {
    border-radius: 1.5rem;
    text-align: center;
    border-color: color-mix(in srgb, var(--lp-primary) 12%, transparent);
    box-shadow: 0 12px 30px -24px color-mix(in srgb, var(--lp-primary) 90%, #000);
}

.tpl-warm .lp2-card-icon { margin-inline: auto; border-radius: 50%; }

.tpl-warm .lp2-quote {
    background: color-mix(in srgb, var(--lp-primary) 6%, transparent);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    font-style: normal;
}

/* ═══════════════════════════════════════════════
   TEMPLATE 4 — MINIMAL : one narrow column
   ═══════════════════════════════════════════════ */

.tpl-minimal { --lp2-measure: 34rem; background: var(--lp-surface); }

.tpl-minimal .lp2-wrap { max-width: 40rem; }

.tpl-minimal .lp2-hero { padding: 7rem 0 2.5rem; }

.tpl-minimal .lp2-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.tpl-minimal .lp2-h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 400;
    line-height: 1.06;
}

.tpl-minimal .lp2-name {
    font-family: var(--lp-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-text-secondary);
    margin: 0 0 1.5rem;
}

.tpl-minimal .lp2-section { padding: 2.75rem 0; }

.tpl-minimal .lp2-h2 {
    font-family: var(--lp-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-text-secondary);
    margin-bottom: 1rem;
}

.tpl-minimal .lp2-prose { font-size: 1.125rem; line-height: 1.75; }

.tpl-minimal .lp2-chip {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1.0625rem;
    color: var(--lp-text);
}

.tpl-minimal .lp2-chips { gap: 0 1.25rem; }
.tpl-minimal .lp2-chip + .lp2-chip::before { content: '·'; margin-right: 1.25rem; opacity: .4; }

.tpl-minimal .lp2-contact-item {
    border: none;
    background: transparent;
    padding: .5rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--lp-text) 8%, transparent);
    border-radius: 0;
}

.tpl-minimal .lp2-contact-item:hover { transform: none; }
.tpl-minimal .lp2-contact-icon { background: transparent; width: 1.5rem; height: 1.5rem; }
.tpl-minimal .lp2-contact { grid-template-columns: 1fr; gap: 0; }
.tpl-minimal .lp2-btn { border-radius: .375rem; }
.tpl-minimal .lp2-footer { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════
   TEMPLATE 5 — CARD : single-screen business card
   ═══════════════════════════════════════════════ */

.tpl-card {
    background:
        radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--lp-primary) 16%, transparent), transparent 70%),
        var(--lp-bg);
}

.tpl-card .lp2-cardsheet {
    width: 100%;
    max-width: 27rem;
    /* Flex items refuse to shrink past their content by default, and a long specialty
       chip would push the card off the side of a phone. */
    min-width: 0;
    background: var(--lp-surface);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 32px 70px -40px color-mix(in srgb, var(--lp-primary) 90%, #000),
                0 2px 8px -4px rgba(0,0,0,.06);
    border: 1px solid color-mix(in srgb, var(--lp-text) 6%, transparent);
}

.tpl-card .lp2-avatar {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    font-size: 2.25rem;
    border: 4px solid color-mix(in srgb, var(--lp-primary) 12%, var(--lp-surface));
}

.tpl-card .lp2-h1 { font-size: 1.75rem; font-weight: 600; }
.tpl-card .lp2-lead { margin: .5rem auto 0; font-size: .9375rem; }
.tpl-card .lp2-chips { justify-content: center; margin-top: 1.5rem; }
.tpl-card .lp2-chip { font-size: .8125rem; }

.tpl-card .lp2-actions { flex-direction: column; margin-top: 1.75rem; }
.tpl-card .lp2-btn { width: 100%; padding: 1rem 1.5rem; border-radius: 1rem; }

.tpl-card .lp2-socials { justify-content: center; margin-top: 1.5rem; }

.tpl-card .lp2-footer {
    border: none;
    margin-top: 1.75rem;
    padding: 0;
    font-size: .75rem;
}

.tpl-card .lp2-slot {
    /* A flat 27rem is wider than a phone, and this panel sets the page's scroll width —
       which was dragging the whole stage off the side of the screen. */
    width: min(27rem, calc(100% - 2.5rem));
    margin: 1.25rem auto 2.5rem;
    background: var(--lp-surface);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

/* ═══════════════════════════════════════════════
   IMAGERY
   Photographs ship with the templates (see PageImageLibrary) so a page
   looks finished before anything is uploaded. Every photo here is
   atmosphere: it sits behind or beside the words, never instead of them.
   ═══════════════════════════════════════════════ */

.lp2-page {
    /* One tiny tiled SVG, reused wherever a surface needs to stop looking like flat CSS. */
    --lp2-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The width/height attributes StockImg emits land as presentational hints, and an
   explicit height would cancel every aspect-ratio below. :where() keeps the reset at
   zero specificity so any class here still wins. */
:where(.lp2-page) img { max-width: 100%; height: auto; }

/* ── Gradient wash behind a photo-less hero ── */

.lp2-wash {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(38rem 26rem at 80% 6%, color-mix(in srgb, var(--lp-accent) 34%, transparent), transparent 66%),
        radial-gradient(30rem 24rem at 4% 96%, color-mix(in srgb, var(--lp-primary) 15%, transparent), transparent 70%);
}

.lp2-wash::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--lp2-grain);
    background-size: 120px;
    opacity: .14;
    mix-blend-mode: multiply;
}

/* ── Portrait layered with a second, smaller photograph ── */

.lp2-portrait-stack { position: relative; }

.lp2-arc {
    position: absolute;
    inset: -1.5rem -1.5rem 2.5rem -2.5rem;
    border: 1px solid color-mix(in srgb, var(--lp-accent) 60%, transparent);
    border-radius: 2.25rem 2.25rem 2.25rem 7rem;
    pointer-events: none;
}

.lp2-inset {
    position: absolute;
    left: -2.25rem;
    bottom: -2rem;
    width: 9.5rem;
    margin: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 6px solid var(--lp-bg);
    box-shadow: 0 22px 45px -28px rgba(0, 0, 0, .7);
}

.lp2-inset-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* ── Hero with the photograph as its background ── */

.lp2-hero--photo {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.lp2-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark enough that the type keeps AA contrast wherever the photo is cropped. */
.lp2-hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(150deg,
            color-mix(in srgb, var(--lp-hero-start) 93%, transparent),
            color-mix(in srgb, var(--lp-hero-end) 84%, transparent));
}

.lp2-hero-veil::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--lp2-grain);
    background-size: 120px;
    opacity: .12;
}

.lp2-avatar--badge { box-shadow: 0 24px 55px -28px rgba(0, 0, 0, .85); }

/* ── Text beside a photograph ── */

.lp2-aside-grid {
    display: grid;
    grid-template-columns: 1fr 0.76fr;
    gap: 3.25rem;
    align-items: center;
}

.lp2-aside--flip .lp2-aside-grid { grid-template-columns: 0.76fr 1fr; }
.lp2-aside--flip .lp2-aside-media { order: -1; }

.lp2-aside-media { margin: 0; }

.lp2-aside-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 27rem;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 34px 60px -42px rgba(0, 0, 0, .6);
}

@media (max-width: 860px) {
    .lp2-aside-grid,
    .lp2-aside--flip .lp2-aside-grid { grid-template-columns: 1fr; gap: 2rem; }
    .lp2-aside--flip .lp2-aside-media { order: 0; }
    .lp2-aside-img { aspect-ratio: 16 / 10; max-height: none; }
}

/* ── Full-bleed band, with or without the pull-quote on top ── */

.lp2-band {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 26rem;
    margin: 4.5rem 0;
    overflow: hidden;
    isolation: isolate;
}

.lp2-band--quiet { min-height: 20rem; }

.lp2-band-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp2-band-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .5));
}

/* Nothing is written on a quiet band, so it only needs a whisper of shade. */
.lp2-band--quiet .lp2-band-veil {
    background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .12));
}

.lp2-band-body {
    text-align: center;
    color: #fff;
    padding: 3.5rem 1.5rem;
}

.lp2-band-quote {
    font-family: var(--lp-font-display);
    font-size: clamp(1.35rem, 3vw, 2.05rem);
    line-height: 1.4;
    max-width: 44rem;
    margin: 0 auto;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.lp2-band-by {
    margin: 1.25rem 0 0;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .82;
}

.lp2-band .lp2-editable:hover,
.lp2-band .lp2-editable:focus {
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .16);
}

/* ── Wide photo card with the portrait resting on its edge ── */

.lp2-photocard {
    position: relative;
    width: 100%;
    max-width: 44rem;
    margin: 0 auto 5.25rem;
}

.lp2-photocard-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: 0 34px 65px -38px color-mix(in srgb, var(--lp-primary) 90%, #000);
}

/* With the photo removed the portrait goes back to sitting on its own. */
.lp2-photocard--bare { margin-bottom: 1.75rem; }

/* ── Business card floating over a room ── */

.lp2-cardstage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1.25rem;
    overflow: hidden;
    isolation: isolate;
}

/* Blurred hard enough that the room reads as atmosphere and never competes
   with the card — and scaled up so the blur has no soft edge to show. */
.lp2-cardstage-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(.95);
    transform: scale(1.1);
}

.lp2-cardstage-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--lp-primary) 34%, transparent),
            color-mix(in srgb, var(--lp-primary-dark) 52%, transparent));
}

/* ── Pull-out statement line ── */

/* The statement is a lead-in, not a section of its own — but it still needs air
   before the heading that follows, which .lp2-section + .lp2-section strips. */
.lp2-statement { padding-bottom: 3rem; }

.lp2-statement-text {
    font-family: var(--lp-font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    line-height: 1.55;
    max-width: 46rem;
    margin: 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--lp-accent);
}

/* ── Closing invitation next to a small photograph ── */

.lp2-closing-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: end;
}

.lp2-closing-media { margin: 0; width: 10rem; }

.lp2-closing-img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: .5rem;
}

.lp2-closing-text { margin-bottom: 1.75rem; }

@media (max-width: 720px) {
    .lp2-closing-grid { grid-template-columns: 1fr; }
    .lp2-closing-media { display: none; }
}

/* ── Per-template tuning ─────────────────────── */

.tpl-serene .lp2-hero-grid { position: relative; }
.tpl-serene .lp2-actions { margin-top: 2rem; }

.tpl-clinical .lp2-hero .lp2-credline { margin-top: 1rem; }
.tpl-clinical .lp2-actions { margin-top: 1.75rem; }
.tpl-clinical .lp2-aside-img { border-radius: .75rem; }
.tpl-clinical .lp2-band { margin: 0 0 0; }

.tpl-warm .lp2-photocard .lp2-avatar {
    position: absolute;
    left: 50%;
    bottom: -3.5rem;
    transform: translateX(-50%);
    margin: 0;
}

.tpl-warm .lp2-photocard--bare .lp2-avatar {
    position: static;
    transform: none;
    margin: 0 auto;
}

.tpl-warm .lp2-hero-sign { margin-top: 1.5rem; }
.tpl-warm .lp2-aside-img { border-radius: 2rem; }
.tpl-warm .lp2-band { border-radius: 0; }
.tpl-warm .lp2-aside-body .lp2-prose { text-align: left; }
.tpl-warm .lp2-aside-body .lp2-h2 { text-align: left; }

.tpl-minimal .lp2-band { margin: 3rem 0; min-height: 17rem; }
.tpl-minimal .lp2-closing { padding-top: 1rem; }

.tpl-card .lp2-card-crp { margin-top: .75rem; }
.tpl-card .lp2-card-closing { margin-top: 1.5rem; }

@media (max-width: 860px) {
    .lp2-inset { width: 7rem; left: -1.25rem; bottom: -1.5rem; border-width: 4px; }
    .lp2-arc { display: none; }
}

@media (max-width: 600px) {
    .lp2-band { min-height: 19rem; margin: 3rem 0; }
    .lp2-band--quiet { min-height: 14rem; }
    .lp2-photocard { margin-bottom: 5.5rem; }
    .lp2-photocard-img { border-radius: 1.25rem; aspect-ratio: 4 / 3; }
}

/* ═══════════════════════════════════════════════
   TEMPLATE 6 — MAGAZINE : a cover, then a feature
   ═══════════════════════════════════════════════ */

.tpl-magazine { --lp2-measure: 40rem; }

.lp2-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(46rem, 92vh);
    padding: 4rem 0 4.5rem;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
}

.lp2-cover-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Weighted to the bottom, where the type sits, so the top of the photo stays readable. */
.lp2-cover-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, .18) 38%, rgba(0, 0, 0, .78) 100%);
}

.lp2-cover-veil::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--lp2-grain);
    background-size: 120px;
    opacity: .1;
}

.lp2-cover-inner { position: relative; }

.lp2-masthead {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1.75rem;
    font-family: var(--lp-font-body);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: .92;
    /* Sits mid-photograph, where the veil is at its lightest. */
    text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}

.lp2-masthead-sep {
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    opacity: .5;
}

.tpl-magazine .lp2-cover-h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.025em;
    max-width: 18ch;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.tpl-magazine .lp2-cover-lead {
    color: rgba(255, 255, 255, .88);
    font-size: 1.125rem;
    max-width: 34rem;
}

.lp2-cover-actions {
    margin-top: 2.25rem;
    align-items: center;
}

.lp2-cover-role {
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .85;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}

/* ── Byline ── */

.lp2-byline {
    display: grid;
    grid-template-columns: 16rem 1fr;
    gap: 3rem;
    align-items: start;
}

.tpl-magazine .lp2-byline-media .lp2-avatar {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: .25rem;
    font-size: 3.5rem;
}

/* The opening letter set large, as a feature article does. */
.lp2-dropcap::first-letter {
    float: left;
    font-family: var(--lp-font-display);
    font-size: 3.6em;
    line-height: .82;
    padding: .06em .09em 0 0;
    color: var(--lp-primary);
}

.tpl-magazine .lp2-h2 {
    font-size: .75rem;
    font-family: var(--lp-font-body);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lp-text-secondary);
    margin-bottom: 1rem;
}

.tpl-magazine .lp2-band-quote { font-style: italic; }
.tpl-magazine .lp2-chip { border-radius: .25rem; }
.tpl-magazine .lp2-faq-item { border-radius: .25rem; }
.tpl-magazine .lp2-contact-item { border-radius: .25rem; }
.tpl-magazine .lp2-aside-img { border-radius: .25rem; }
.tpl-magazine .lp2-btn { border-radius: .25rem; }

@media (max-width: 860px) {
    .lp2-byline { grid-template-columns: 1fr; gap: 1.75rem; }
    .tpl-magazine .lp2-byline-media { max-width: 13rem; }
    .lp2-cover { min-height: min(36rem, 88vh); }
}

/* ═══════════════════════════════════════════════
   TEMPLATE 7 — JOURNEY : numbered walkthrough
   ═══════════════════════════════════════════════ */

.tpl-journey .lp2-hero {
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(34rem 22rem at 88% 0%, color-mix(in srgb, var(--lp-accent) 26%, transparent), transparent 68%),
        var(--lp-bg);
}

.tpl-journey .lp2-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    align-items: center;
}

.tpl-journey .lp2-avatar {
    width: 100%;
    max-width: 15rem;
    aspect-ratio: 1;
    border-radius: 50%;
    margin-left: auto;
    font-size: 3.5rem;
    border: 6px solid var(--lp-surface);
    box-shadow: 0 22px 50px -28px color-mix(in srgb, var(--lp-primary) 90%, #000);
}

.tpl-journey .lp2-credline {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--lp-primary) 8%, transparent);
    color: var(--lp-primary);
    font-size: .8125rem;
    font-weight: 600;
}

.tpl-journey .lp2-credline .material-symbols-outlined { font-size: 1rem; }

/* A thin band of the room between the hero and the steps. */
.lp2-strip {
    display: block;
    width: 100%;
    height: clamp(9rem, 22vw, 15rem);
    object-fit: cover;
}

/* ── The steps ── */

.lp2-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 44rem;
    counter-reset: lp-step;
}

.lp2-step {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: 1.25rem;
    padding: 0 0 2.25rem;
}

/* The line that ties one step to the next, stopping at the last one. */
.lp2-step::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3rem;
    bottom: .25rem;
    width: 2px;
    background: color-mix(in srgb, var(--lp-primary) 22%, transparent);
}

.lp2-step:last-child { padding-bottom: 0; }
.lp2-step:last-child::before { display: none; }

.lp2-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--lp-primary);
    color: #fff;
    font-family: var(--lp-font-display);
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.lp2-step-body { padding-top: .5rem; }

.lp2-step-title {
    font-family: var(--lp-font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    margin: 0 0 .375rem;
}

.lp2-step-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lp-text-secondary);
    margin: 0;
}

.tpl-journey .lp2-card { border-radius: 1rem; }
.tpl-journey .lp2-faq-item { border-radius: 1rem; }

@media (max-width: 860px) {
    .tpl-journey .lp2-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tpl-journey .lp2-hero-media { order: -1; }
    .tpl-journey .lp2-avatar { margin: 0 auto; max-width: 11rem; }
    .lp2-step { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
    .lp2-step-num { width: 2.5rem; height: 2.5rem; font-size: .875rem; }
    .lp2-step::before { left: 1.1875rem; top: 2.25rem; }
}

/* ═══════════════════════════════════════════════
   TEMPLATE 8 — MOSAIC : interlocking photographs
   ═══════════════════════════════════════════════ */

.tpl-mosaic .lp2-hero {
    padding: 3.5rem 0 3rem;
    background:
        radial-gradient(30rem 24rem at 12% 4%, color-mix(in srgb, var(--lp-accent) 30%, transparent), transparent 66%),
        var(--lp-bg);
}

.lp2-mosaic {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    grid-template-rows: auto auto;
    gap: .875rem;
    margin-bottom: 2.5rem;
}

.lp2-mosaic-portrait {
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    min-height: 20rem;
    border-radius: 1.75rem;
    font-size: 4rem;
}

.lp2-mosaic-wide { grid-column: 2; margin: 0; }
.lp2-mosaic-small { grid-column: 2; margin: 0; }

.lp2-mosaic-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.75rem;
}

.lp2-mosaic-wide .lp2-mosaic-img { aspect-ratio: 16 / 9; }
.lp2-mosaic-small .lp2-mosaic-img { aspect-ratio: 21 / 9; }

.lp2-mosaic-sign { margin-bottom: 1rem; }

.tpl-mosaic .lp2-h1 { max-width: 20ch; }
.tpl-mosaic .lp2-card { border-radius: 1.5rem; }
.tpl-mosaic .lp2-faq-item { border-radius: 1.25rem; }
.tpl-mosaic .lp2-chip { border-radius: 999px; }

@media (max-width: 860px) {
    .lp2-mosaic { grid-template-columns: 1fr 1fr; }
    .lp2-mosaic-portrait { grid-row: 1; grid-column: 1 / span 2; min-height: 0; aspect-ratio: 4 / 3; }
    .lp2-mosaic-wide { grid-column: 1; grid-row: 2; }
    .lp2-mosaic-small { grid-column: 2; grid-row: 2; }
    .lp2-mosaic-wide .lp2-mosaic-img,
    .lp2-mosaic-small .lp2-mosaic-img { aspect-ratio: 1; }
}

/* ═══════════════════════════════════════════════
   TEMPLATE 9 — BOOKING : the scheduler comes first
   ═══════════════════════════════════════════════ */

.tpl-booking { --lp2-measure: 38rem; }

.lp2-book {
    padding: 3.5rem 0 3rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--lp-primary) 7%, var(--lp-bg)), var(--lp-bg));
    border-bottom: 1px solid color-mix(in srgb, var(--lp-text) 7%, transparent);
}

.lp2-book-grid {
    display: grid;
    grid-template-columns: 1fr 26rem;
    gap: 3rem;
    align-items: start;
}

/* With neither scheduling nor a form there is no second column to make room for. */
.lp2-book-grid:has(.lp2-book-panel:empty) { grid-template-columns: 1fr; }
.lp2-book-panel:empty { display: none; }

.lp2-book-id {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.tpl-booking .lp2-book-id .lp2-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tpl-booking .lp2-name {
    font-family: var(--lp-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.lp2-book-role { margin: .25rem 0 0; }

.tpl-booking .lp2-h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }

.lp2-checks {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: .625rem 1.25rem;
}

.lp2-checks li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9375rem;
    color: var(--lp-text-secondary);
}

.lp2-checks .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--lp-primary);
}

.lp2-book-panel {
    min-width: 0;
    background: var(--lp-surface);
    border: 1px solid color-mix(in srgb, var(--lp-text) 9%, transparent);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 26px 60px -40px color-mix(in srgb, var(--lp-primary) 85%, #000);
}

/* Inside the panel the forms are already framed, so they drop their own chrome. */
.lp2-book-panel .lp2-section { padding: 0; }
.lp2-book-panel .lp2-section + .lp2-section { padding-top: 1.5rem; }
.lp2-book-panel .lp2-wrap { padding: 0; max-width: none; }

.tpl-booking .lp2-actions { margin-top: 1.75rem; }

/* The day strip is wider than the panel; fading its edge reads as "scrolls"
   rather than as a day chopped in half. */
.lp2-book-panel .lp-days {
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
}

@media (max-width: 980px) {
    /* minmax(0, …) rather than 1fr: a plain 1fr takes the content's minimum as its floor,
       which lets a wide form push the column — and the page — past the screen. */
    .lp2-book-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .lp2-book-panel { max-width: 30rem; }
}

/* ═══════════════════════════════════════════════
   INLINE EDITING
   ═══════════════════════════════════════════════ */

.lp2-editable {
    display: inline-block;
    min-width: 2rem;
    border-radius: .375rem;
    outline: none;
    transition: background-color .15s ease, box-shadow .15s ease;
    cursor: text;
}

.lp2-editable:hover {
    background: color-mix(in srgb, var(--lp-primary) 7%, transparent);
    box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--lp-primary) 7%, transparent);
}

.lp2-editable:focus {
    background: color-mix(in srgb, var(--lp-primary) 5%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--lp-primary) 45%, transparent);
}

.lp2-editable--empty::before {
    content: attr(data-placeholder);
    opacity: .45;
    font-style: italic;
}

.lp2-editable--empty:focus::before { content: none; }

/* Editing chrome must not fight the page: hero text keeps its own color */
.lp2-hero .lp2-editable:hover { background: rgba(255,255,255,.12); box-shadow: 0 0 0 .25rem rgba(255,255,255,.12); }
.tpl-serene .lp2-hero .lp2-editable:hover,
.tpl-warm .lp2-hero .lp2-editable:hover,
.tpl-minimal .lp2-hero .lp2-editable:hover {
    background: color-mix(in srgb, var(--lp-primary) 7%, transparent);
    box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--lp-primary) 7%, transparent);
}

/* ═══════════════════════════════════════════════
   THUMBNAIL (template gallery)
   ═══════════════════════════════════════════════ */

.lp2-thumb-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: .875rem;
    background: var(--lp-bg, #fff);
}

.lp2-thumb-scale .lp2-page { min-height: 1400px; }

.lp2-thumb-scale {
    position: absolute;
    top: 0;
    left: 0;
    width: 1180px;
    transform: scale(.235);
    transform-origin: top left;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 600px) {
    .lp2-section { padding: 3rem 0; }
    .lp2-wrap { padding: 0 1.25rem; }

    /* Course and year stack rather than competing for a phone's width. */
    .lp2-cred { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .lp2-cred-year { max-width: none; text-align: left; }
}

/* ═══════════════════════════════════════════════
   IN-PLACE IMAGE EDITING
   Only rendered while the owner is editing (see ImageEditContext).
   An outline rather than a wrapper: these images are cropped and positioned
   by their own class, and an extra element would move every one of them.
   ═══════════════════════════════════════════════ */

.lp-editimg {
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 3px;
    transition: outline-color .16s ease, filter .16s ease;
}

.lp-editimg:hover {
    outline-color: var(--lp-primary);
    filter: brightness(1.04);
}

.lp-editimg--round { border-radius: inherit; }

/* The monogram stands in for a photo that is not there yet, and is just as clickable. */
.lp-editimg--empty { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; }

/* ═══════════════════════════════════════════════
   TEMPLATE 10 — ESSAY : one column, built for reading
   ═══════════════════════════════════════════════ */

.tpl-essay .lp2-essay-head { padding: 5.5rem 0 2.5rem; text-align: center; }
.lp2-essay-wrap { max-width: 44rem; }

.tpl-essay .lp2-essay-h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: .875rem 0 0;
}

.tpl-essay .lp2-essay-lead { margin: 1.125rem auto 0; max-width: 34rem; }

.lp2-essay-figure { margin: 0 auto; padding: 0 1.5rem; max-width: 68rem; }

.lp2-essay-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 1.5rem;
}

.tpl-essay .lp2-essay-body { padding-top: 3rem; }

.lp2-essay-byline {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--lp-text) 10%, transparent);
}

.tpl-essay .lp2-essay-avatar { width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.0625rem; flex-shrink: 0; }
.lp2-essay-by { margin: 0; font-weight: 600; font-size: .9375rem; }
.lp2-essay-crp { margin: .125rem 0 0; font-size: .8125rem; color: var(--lp-text-secondary); }
.tpl-essay .lp2-essay-prose { font-size: 1.125rem; line-height: 1.85; }

/* ═══════════════════════════════════════════════
   TEMPLATE 11 — GALLERY : the room speaks first
   ═══════════════════════════════════════════════ */

.tpl-gallery .lp2-gallery-hero { padding: 5rem 0 2.5rem; }
.lp2-gallery-intro { max-width: 46rem; }

.lp2-strip3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    padding: 0 .5rem;
}

.lp2-strip3-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1.25rem;
}

/* The first photograph carries the row, so it gets the taller crop. */
.lp2-strip3 .lp2-strip3-img:first-child { aspect-ratio: 4 / 5; }

.lp2-gallery-about {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.tpl-gallery .lp2-gallery-avatar { width: 9rem; height: 9rem; border-radius: 1.5rem; font-size: 2.5rem; }

/* ═══════════════════════════════════════════════
   TEMPLATE 12 — QUESTIONS : answers above the story
   ═══════════════════════════════════════════════ */

.lp2-questions-strip {
    width: 100%;
    height: 9rem;
    object-fit: cover;
    display: block;
}

.lp2-questions-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* Pulled up over the strip, so the two read as one header instead of two bands. */
.tpl-questions .lp2-questions-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    font-size: 2rem;
    margin-top: -4.5rem;
    border: 4px solid var(--lp-bg);
    flex-shrink: 0;
}

.tpl-questions .lp2-questions-h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: .5rem 0 0; }
.tpl-questions .lp2-faq { max-width: 48rem; }

/* ═══════════════════════════════════════════════
   TEMPLATE 13 — INVITE : one question, whole screen
   ═══════════════════════════════════════════════ */

.lp2-invite {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(88vh, 46rem);
    padding: 4rem 0;
    overflow: hidden;
}

.lp2-invite-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 55% at 50% 12%, color-mix(in srgb, var(--lp-primary) 16%, transparent), transparent 70%),
        radial-gradient(50% 45% at 82% 88%, color-mix(in srgb, var(--lp-accent) 20%, transparent), transparent 72%),
        var(--lp-bg);
}

.lp2-invite-inner { position: relative; text-align: center; max-width: 44rem; }

.tpl-invite .lp2-invite-avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    font-size: 1.75rem;
    margin: 0 auto 1.75rem;
    box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--lp-text) 60%, transparent);
}

.tpl-invite .lp2-invite-q {
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0;
}

.tpl-invite .lp2-invite-lead { margin: 1.25rem auto 0; max-width: 32rem; }
.lp2-invite-actions { justify-content: center; margin-top: 2rem; }

.lp2-invite-sign {
    margin: 2.5rem 0 0;
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lp-text-secondary);
}

.lp2-invite-figure { margin: 0; }

.lp2-invite-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 1.75rem;
}

@media (max-width: 860px) {
    .lp2-strip3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp2-strip3 .lp2-strip3-img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

    .lp2-gallery-about { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .tpl-gallery .lp2-gallery-avatar { width: 6rem; height: 6rem; font-size: 1.75rem; }

    .lp2-questions-intro { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .tpl-questions .lp2-questions-avatar { width: 5.5rem; height: 5.5rem; margin-top: -3.5rem; }

    .tpl-essay .lp2-essay-head { padding: 3.5rem 0 2rem; }
    .lp2-essay-figure { padding: 0 1rem; }
    .lp2-essay-img { aspect-ratio: 4 / 3; border-radius: 1.125rem; }
}
