/* BiPlus lead magnet landing (plugin biplus-landing). Sections reuse the theme's bp-section, bp-head, bp-card,
   bp-grid and bp-pagehead; this file only adds what a lead magnet needs. Tokens come from biplus-tokens.css. */

/* Hero (direction A, 2026-11-17): text left; right, a pale gold stage holding one object with the brand's
   ink offset shadow: the cover tilted, a calendar card (event) or a "what you get" sheet (offer). */
.bp-lm-hero .bp-lead { margin-bottom: var(--sp-5); }
.bp-section p.bp-lm__note { margin-top: var(--sp-3); font-size: 15px; color: var(--gray-mid); }
.bp-lm__meta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); margin: 0 0 var(--sp-6); }
.bp-lm__meta-row .bp-lm__fact-icon { width: 32px; height: 32px; }
.bp-lm__meta-row .bp-lm__fact-icon img { width: 18px; height: 18px; }
.bp-section .bp-lm__meta-row .bp-lm__fact p { font-weight: 500; color: var(--gray-mid); }
.bp-lm__stage { display: grid; place-items: center; min-height: 480px; padding: var(--sp-8) var(--sp-7); background: var(--y-pale); border-radius: 24px; }
.bp-lm__stage > * { margin: 0 !important; }
.bp-lm__cover { margin: 0; }
.bp-lm__cover img { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 6px; box-shadow: var(--shadow-ink, -12px 12px 0 var(--ink)); transform: rotate(-3deg); }

/* Event: the calendar card */
.bp-lm__cal { width: 100%; max-width: 330px; overflow: hidden; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-ink, -12px 12px 0 var(--ink)); transform: rotate(2deg); }
.bp-lm__cal > *, .bp-lm__cal-top > * { margin: 0 !important; }
.bp-lm__cal-top { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: var(--dark); }
.bp-section .bp-lm__cal-top p { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--text-light); }
.bp-section p.bp-lm__cal-day { padding-top: var(--sp-6); font-family: var(--font-heading); font-size: 128px; font-weight: 800; line-height: 1; letter-spacing: -4px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.bp-section p.bp-lm__cal-week { padding-top: var(--sp-2); font-family: var(--font-heading); font-size: 20px; font-weight: 700; text-align: center; color: var(--ink); }
.bp-section p.bp-lm__cal-time { padding-bottom: var(--sp-6); text-align: center; color: var(--gray-mid); }

/* Offer: the "what you get" sheet */
.bp-lm__sheet { width: 100%; max-width: 380px; padding: var(--sp-6); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-ink, -12px 12px 0 var(--ink)); transform: rotate(-2deg); }
.bp-lm__sheet > * { margin: 0 !important; }
.bp-section p.bp-lm__sheet-title { padding-bottom: var(--sp-3); font-family: var(--font-heading); font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.bp-section p.bp-lm__tick { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line-soft); }
.bp-section p.bp-lm__tick::before { content: "✓"; flex: none; font-weight: 800; color: var(--y-deep); }

/* Below the hero (direction A): sections alternate white and subtle grey by position (3rd, 5th), so every
   template gets the same rhythm; gold stays for one thing per zone (icon tiles, never rules on every card). */
.entry-content > .bp-lm-hero ~ .bp-section:nth-child(odd):not(.bp-lm-download) { background: var(--subtle); }
.bp-lm__item { gap: var(--sp-2); }

/* Item pictures: an icon on a pale gold tile, or an image across the top of the card */
.bp-lm__icon { margin: 0 0 var(--sp-2); width: 48px; height: 48px; display: grid; place-items: center; background: var(--y-pale); border-radius: var(--r-chip); }
.bp-lm__icon img { width: 26px; height: 26px; }
.bp-lm__item--image { overflow: hidden; }
.bp-lm__media { margin: calc(var(--sp-6) * -1) calc(var(--sp-6) * -1) var(--sp-3); }
.bp-lm__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* A section image beside its heading, or beside the audience text */
.bp-lm__head-cols, .bp-lm-audience__cols { gap: var(--sp-7) !important; align-items: center !important; }
.bp-lm__head-cols .bp-head { margin-bottom: 0; }
.bp-lm__head-cols { margin-bottom: var(--sp-7) !important; }
.bp-lm__figure { margin: 0; }
.bp-lm__figure img { display: block; width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--shadow-body); }

/* Audience */
.bp-lm-audience .bp-lead { color: var(--ink); max-width: none; }

/* Contents: numbered steps, optional page preview */
.bp-lm-contents__cols { gap: var(--sp-8) !important; align-items: flex-start !important; }
.bp-section p.bp-lm__meta { margin: calc(var(--sp-5) * -1) 0 var(--sp-5); font-weight: 700; color: var(--gray-mid); }
.bp-lm__preview { margin: 0; }
.bp-lm__preview img { width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--shadow-body); }
.bp-lm__steps { display: grid; gap: var(--sp-5); }
.bp-lm__step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--sp-4); row-gap: var(--sp-1);
  padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line-soft);
}
.bp-lm__step:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-section p.bp-lm__num {
  grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--font-heading);
  font-size: 22px; font-weight: 800; color: var(--ink); background: var(--y-pale); border: 1px solid var(--y-soft); border-radius: 50%;
}
.bp-lm__step p:not(.bp-lm__num) { color: var(--gray-mid); }

/* Download band */
/* Closing band: the hero's pale gold stage again, the form card lifted with the ink offset shadow */
.bp-lm-download { background: var(--surface); }
.bp-lm-download__cols { gap: var(--sp-8) !important; align-items: center !important; padding: var(--sp-8); background: var(--y-pale); border-radius: 24px; }
.bp-lm-download h2.wp-block-heading { margin-bottom: var(--sp-4); }
.bp-lm-download .bp-form-card { padding: var(--sp-6); background: var(--surface); border-radius: var(--r-outer); box-shadow: var(--shadow-ink, -12px 12px 0 var(--ink)); }

/* Event: date, time and place with icons (hero and the sign-up band) */
/* Rows built from groups: the theme's block-gap margins would push their children apart, spacing comes from gap here */
.bp-lm__facts > *, .bp-lm__meta-row > *, .bp-lm__fact > *, .bp-lm__slots > *, .bp-lm__slot > *, .bp-lm__slot-text > *, .bp-lm__psteps > *, .bp-lm__pstep > *, .bp-lm__faq > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.bp-lm__facts { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-6); }
.bp-lm__fact { display: flex; align-items: center; gap: var(--sp-3); }
.bp-lm__fact-icon { flex: none; margin: 0; width: 40px; height: 40px; display: grid; place-items: center; background: var(--y-pale); border-radius: var(--r-chip); }
.bp-lm__fact-icon img { width: 22px; height: 22px; }
.bp-section .bp-lm__fact p { margin: 0; font-weight: 600; color: var(--ink); }
.bp-lm-download .bp-lm__facts { margin-top: var(--sp-5); }
.bp-lm-download .bp-lm__fact-icon { background: var(--surface); }

/* Event agenda: one row per slot, time on the left */
.bp-lm__slots { max-width: 880px; border-top: 1px solid var(--line-soft); }
.bp-lm__slot { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line-soft); }
.bp-section p.bp-lm__time { margin: 0; font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bp-lm__slot-text { display: grid; gap: var(--sp-1); }
.bp-section p.bp-lm__time { padding-top: 2px; }
.bp-lm__slot-text p { margin: 0; color: var(--gray-mid); }
.bp-section p.bp-lm__speaker { padding-top: var(--sp-1); font-size: 15px; font-weight: 600; color: var(--ink); }

/* Event speakers: photo, name, role */
.bp-lm__avatar { margin: 0; }
.bp-lm__avatar img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.bp-section p.bp-lm__role { margin-top: calc(var(--sp-2) * -1); font-weight: 600; color: var(--gray-mid); }

/* Offer process: numbered steps side by side, wrap on narrow screens */
.bp-lm__psteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-6); }
.bp-lm__pstep { display: flex; flex-direction: column; gap: var(--sp-2); }
.bp-lm__pstep h3 { padding-top: var(--sp-2); }
.bp-lm__pstep .bp-lm__num { grid-row: auto; }
.bp-lm__pstep p:not(.bp-lm__num):not(.bp-lm__duration) { margin: 0; color: var(--gray-mid); }
.bp-section p.bp-lm__duration { align-self: flex-start; margin: 0; padding: 2px var(--sp-3); font-size: 14px; font-weight: 600; color: var(--ink); background: var(--y-pale); border-radius: var(--r-chip); }

/* Offer FAQ: native details, readable without script */
.bp-lm__faq { max-width: 880px; display: grid; gap: var(--sp-3); }
.bp-lm__faq .wp-block-details { margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); }
.bp-lm__faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); cursor: pointer; list-style: none; font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--ink); }
.bp-lm__faq summary::-webkit-details-marker { display: none; }
.bp-lm__faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bp-lm__faq details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.bp-lm__faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-card); }
.bp-lm__faq details p { margin: 0; padding: 0 var(--sp-5) var(--sp-5); color: var(--gray-mid); }

/* An image block left empty by a brief: the editor shows the placeholder, visitors see nothing */
body:not(.wp-admin) .bp-section .wp-block-image:has(> img:not([src])) { display: none; }
/* Hero without a cover yet: drop the empty column so the page never shows a blank half */
body:not(.wp-admin) .bp-lm-hero .wp-block-column:has(> .bp-lm__stage > .bp-lm__cover > img:not([src])) { display: none; }

@media (max-width: 781px) {
  .bp-lm__stage { min-height: 0; padding: var(--sp-7) var(--sp-5); }
  .bp-lm__cover img { max-width: 240px; }
  .bp-lm__cal, .bp-lm__sheet { max-width: 300px; }
  .bp-section p.bp-lm__cal-day { font-size: 96px; }
  .bp-lm-contents__cols, .bp-lm-download__cols, .bp-lm-audience__cols { gap: var(--sp-6) !important; }
  .bp-lm-download__cols { padding: var(--sp-6) var(--sp-4); }
  .bp-lm-download .bp-form-card { box-shadow: -8px 8px 0 var(--ink); }
  .bp-lm__step { grid-template-columns: 44px minmax(0, 1fr); }
  .bp-section p.bp-lm__num { width: 40px; height: 40px; font-size: 18px; }
  .bp-lm__slot { grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-4); }
  .bp-section p.bp-lm__time { font-size: 17px; }
}
