/* SkyPrep blog post (single.php and comments.php). The blog's cards, tags and closing card come from skyprep-blog.css;
   this file adds the article header and cover, the reading column with its typography, the "On this page" list and
   share links beside it, the comments and the related articles. Prefix bp-. */

/* Header: light and centred, like the blog's hero. */
.bp-head{padding:56px 0 40px;background:linear-gradient(180deg,#f7fbff 0%,#eaf2ff 75%,#fff 100%);text-align:center}
.bp-head .lm-container{max-width:880px}
.bp-crumbs{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;font-family:var(--lm-heading);font-size:14px;font-weight:600}
.bp-crumbs a{color:var(--lm-blue)!important;text-decoration:none!important}
.bp-crumbs a:hover{text-decoration:underline!important;text-underline-offset:3px}
.bp-crumbs span{color:var(--lm-muted)}
.bp-head h1{margin-top:18px;font-size:clamp(32px,4vw,52px);--lm-lh:1.15;text-wrap:balance}
.bp-byline{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:24px}
.bp-avatar{flex:none;width:48px;height:48px;border-radius:50%;box-shadow:0 0 0 3px #fff,0 6px 16px #1847941a}
.bp-byline p{display:grid;text-align:left;line-height:1.35}
.bp-byline b{color:var(--lm-ink);font-family:var(--lm-heading);font-size:15px;font-weight:600}
.bp-byline span{color:var(--lm-muted);font-size:14px}

/* Cover: the featured image, wide and rounded. */
.bp-cover .lm-container{max-width:1080px}
.bp-cover img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover;border:1px solid var(--lm-line);border-radius:24px;box-shadow:0 24px 56px #18479414}

/* Layout: the side column (contents and sharing) beside a reading column. */
.bp-layout{display:grid;grid-template-columns:220px minmax(0,720px);justify-content:center;gap:56px;padding-top:56px;padding-bottom:72px}
.bp-side{position:sticky;top:96px;align-self:start;display:grid;gap:32px}
.bp-side-title{margin-bottom:12px!important;color:var(--lm-muted);font-family:var(--lm-heading);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.bp-toc ol{display:grid;gap:2px;margin:0!important;padding:0;list-style:none;border-left:2px solid var(--lm-line)}
.bp-toc a{display:block;margin-left:-2px;padding:6px 0 6px 14px;border-left:2px solid transparent;color:var(--lm-muted)!important;font-size:14px;line-height:1.4;text-decoration:none!important;transition:color .2s,border-color .2s}
.bp-toc a:hover{border-color:var(--lm-blue);color:var(--lm-ink)!important}
.bp-share ul{display:flex;flex-wrap:wrap;gap:8px;margin:0!important;padding:0;list-style:none}
.bp-share a,.bp-copy{position:relative;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1.5px solid var(--lm-line);border-radius:50%;background:#fff;color:var(--lm-ink)!important;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.bp-share a:hover,.bp-copy:hover,.bp-copy.is-copied{border-color:var(--lm-blue);background:var(--lm-blue);color:#fff!important}
.bp-share svg{width:18px;height:18px}
.bp-copied:empty{display:none}
.bp-copied{position:absolute;bottom:calc(100% + 8px);left:50%;padding:4px 10px;border-radius:8px;background:var(--lm-ink);color:#fff;font-size:12px;font-weight:600;white-space:nowrap;transform:translateX(-50%)}

/* Reading column: the article's own HTML (blocks, older classic posts and HubSpot calls to action). */
.bp-prose{color:var(--lm-ink);font-size:18px;line-height:1.75}
.bp-prose>*+*{margin-top:1.15em!important}
.bp-prose p,.bp-prose li{color:#33415c}
.bp-prose h2,.bp-prose h3,.bp-prose h4{color:var(--lm-ink);font-family:var(--lm-heading);font-weight:600;letter-spacing:-.02em;scroll-margin-top:96px}
.bp-prose h2{margin-top:1.9em!important;font-size:clamp(26px,2.4vw,32px);line-height:1.25}
.bp-prose h3{margin-top:1.6em!important;font-size:22px;line-height:1.3}
.bp-prose h4{margin-top:1.4em!important;font-size:19px;line-height:1.35}
.bp-prose h2+*,.bp-prose h3+*,.bp-prose h4+*{margin-top:.6em!important}
.bp-prose a:not(.cta_button):not(.hs-cta-node a){color:var(--lm-blue)!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.bp-prose a:not(.cta_button):hover{text-decoration-thickness:2px}
.bp-prose strong,.bp-prose b{color:var(--lm-ink);font-weight:700}
.bp-prose ul,.bp-prose ol{padding-left:1.4em}
.bp-prose li+li{margin-top:.45em}
.bp-prose li::marker{color:var(--lm-blue)}
.bp-prose img{max-width:100%;height:auto;border-radius:16px}
.bp-prose figure{margin-inline:0}
.bp-prose figcaption{margin-top:10px;color:var(--lm-muted);font-size:14px;text-align:center}
.bp-prose blockquote{margin-inline:0;padding:20px 24px;border-left:4px solid var(--lm-orange);border-radius:0 16px 16px 0;background:var(--lm-surface);font-size:20px;font-style:normal}
.bp-prose blockquote p{color:var(--lm-ink)}
.bp-prose table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.bp-prose th,.bp-prose td{padding:10px 12px;border:1px solid var(--lm-line);text-align:left;vertical-align:top}
.bp-prose th{background:var(--lm-surface);font-family:var(--lm-heading);font-weight:600}
/* Wide tables scroll inside the column on small screens. */
.bp-prose .wp-block-table,.bp-prose figure:has(table){overflow-x:auto}
.bp-prose hr{border:0;border-top:1px solid var(--lm-line)}
/* HubSpot calls to action and the old cta_button links sit centred on their own line. */
.bp-prose .hs-cta-wrapper{display:block;text-align:center}
.bp-prose .hs-cta-img{border-radius:10px}
.bp-prose a.cta_button{display:inline-block;padding:14px 28px;border-radius:999px;background:var(--lm-orange);color:#fff!important;font-family:var(--lm-heading);font-weight:600;text-decoration:none!important}

.bp-end{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:48px;padding-top:24px;border-top:1px solid var(--lm-line)}
.bp-end .bl-tag{text-decoration:none!important}
.bp-back{display:inline-flex;align-items:center;gap:8px;color:var(--lm-blue)!important;font-family:var(--lm-heading);font-size:15px;font-weight:600;text-decoration:none!important}
.bp-back svg{width:18px;height:18px;stroke-width:2}
.bp-pages{margin-top:32px;font-family:var(--lm-heading);font-weight:600}

/* Comments. */
.bp-comments{margin-top:56px;padding:32px;border-radius:24px;background:var(--lm-surface)}
.bp-comments h2{font-size:24px;--lm-lh:1.3}
.bp-comment-list,.bp-comment-list .children{margin:0!important;padding:0;list-style:none}
.bp-comment-list{margin-top:20px!important}
.bp-comment-list .children{margin-top:16px!important;padding-left:24px;border-left:2px solid var(--lm-line)}
.bp-comment-list .comment-body{margin-bottom:16px;padding:20px;border-radius:18px;background:#fff;box-shadow:0 6px 18px #1847940a}
.bp-comment-list .comment-author{display:flex;align-items:center;gap:10px;font-family:var(--lm-heading);font-size:15px}
.bp-comment-list .comment-author img{border-radius:50%}
.bp-comment-list .comment-author .says{display:none}
.bp-comment-list .comment-author .fn,.bp-comment-list .comment-author .fn a{color:var(--lm-ink)!important;font-style:normal;font-weight:600;text-decoration:none!important}
.bp-comment-list .comment-meta{margin-top:2px;padding-left:50px;font-size:13px}
.bp-comment-list .comment-meta a{color:var(--lm-muted)!important;text-decoration:none!important}
.bp-comment-list .comment-body p{margin-top:10px!important;color:#33415c;font-size:16px;line-height:1.6}
.bp-comment-list .reply a{display:inline-block;margin-top:8px;color:var(--lm-blue)!important;font-family:var(--lm-heading);font-size:14px;font-weight:600;text-decoration:none!important}
.bp-comments .comment-navigation .nav-links{display:flex;justify-content:space-between;gap:16px;margin:8px 0 16px;font-family:var(--lm-heading);font-weight:600}
.bp-reply-title{margin-top:24px;font-size:20px}
.bp-reply-title small{margin-left:8px;font-size:14px}
.bp-comment-form{display:grid;gap:14px;margin-top:16px}
.bp-comment-form p{margin:0!important;color:var(--lm-muted);font-size:14px}
.bp-comment-form label{display:block;margin-bottom:6px;color:var(--lm-ink);font-family:var(--lm-heading);font-size:14px;font-weight:600}
.bp-comment-form input[type=text],.bp-comment-form input[type=email],.bp-comment-form input[type=url],.bp-comment-form textarea{width:100%;padding:12px 14px;border:1.5px solid var(--lm-line);border-radius:12px;background:#fff;color:var(--lm-ink);font:inherit;font-size:16px}
.bp-comment-form input:focus,.bp-comment-form textarea:focus{border-color:var(--lm-blue);outline:0;box-shadow:0 0 0 4px #3772e926}
.bp-comment-form .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:8px}
.bp-comment-form .comment-form-cookies-consent label{margin:0;font-weight:400}
.bp-comment-form .form-submit .lm-button{border:0;cursor:pointer}
.bp-comments-closed{margin-top:16px!important;color:var(--lm-muted)}

/* Related articles. */
.bp-related{background:var(--lm-surface)}
.bp-related-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:28px}
.bp-related-head h2{font-size:clamp(26px,2.4vw,34px)}
.bp-more{display:inline-flex;align-items:center;gap:8px;color:var(--lm-blue)!important;font-family:var(--lm-heading);font-size:15px;font-weight:600;text-decoration:none!important}
.bp-more svg{width:18px;height:18px;stroke-width:2}

/* Image viewer (skyprep-post-lightbox.js): a linked image opens over the post. The dialog sits outside .lm-main, so
   it uses fixed colours rather than the --lm-* tokens. */
.bp-prose a[href$=".png"] img,.bp-prose a[href$=".jpg"] img,.bp-prose a[href$=".jpeg"] img,.bp-prose a[href$=".webp"] img,.bp-prose a[href$=".gif"] img{cursor:zoom-in}
.bp-lb-open,.bp-lb-open body{overflow:hidden}
.bp-lb{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;border:0;background:transparent;overflow:hidden}
.bp-lb::backdrop{background:#0b1f44e6}
.bp-lb[open]{display:grid;grid-template-columns:72px minmax(0,1fr) 72px;grid-template-rows:minmax(0,1fr) auto;align-items:center}
.bp-lb-figure{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:100%;margin:0;padding:64px 0 16px}
.bp-lb-img{display:block;max-width:100%;max-height:calc(100vh - 150px);width:auto;height:auto;border-radius:12px;background:#fff;box-shadow:0 30px 80px #0006;cursor:default}
.bp-lb-caption{max-width:60em;color:#e6edf8;font-size:15px;line-height:1.5;text-align:center}
.bp-lb-count{grid-column:1/-1;grid-row:2;margin:0 0 20px!important;color:#c6d3e1;font-size:14px;text-align:center}
.bp-lb button{display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:#ffffff1f;color:#fff;cursor:pointer;transition:background .2s}
.bp-lb button:hover{background:#ffffff3d}
.bp-lb button:focus-visible{outline:3px solid #f46e2f;outline-offset:3px}
.bp-lb svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.bp-lb-close{position:fixed;top:18px;right:18px;z-index:1}
.bp-lb-prev{grid-column:1;grid-row:1;justify-self:center}
.bp-lb-next{grid-column:3;grid-row:1;justify-self:center}
.bp-lb.is-single .bp-lb-nav{visibility:hidden}

@media (max-width:1020px){
    /* One column: the contents list is dropped and sharing moves under the header. */
    .bp-layout{grid-template-columns:minmax(0,720px);gap:0;padding-top:32px}
    .bp-side{position:static;order:-1;margin-bottom:28px}
    .bp-toc{display:none}
    .bp-share{display:flex;align-items:center;gap:14px}
    .bp-share .bp-side-title{margin:0!important}
}
@media (max-width:700px){
    .bp-head{padding:36px 0 28px}
    .bp-cover img{border-radius:18px}
    .bp-prose{font-size:17px}
    .bp-comments{padding:22px 16px;border-radius:20px}
    .bp-comment-list .children{padding-left:12px}
    .bp-comment-list .comment-meta{padding-left:0}
    /* Viewer on phones: the image takes the full width, the arrows sit at the bottom beside the count. */
    .bp-lb[open]{grid-template-columns:1fr auto auto;grid-template-rows:minmax(0,1fr) auto}
    .bp-lb-figure{grid-column:1/-1;padding:64px 12px 12px}
    .bp-lb-img{max-height:calc(100vh - 170px);border-radius:8px}
    .bp-lb-count{grid-column:1;justify-self:start;margin:0 0 20px 16px!important}
    .bp-lb-prev,.bp-lb-next{grid-row:2;margin:0 12px 16px 0}
    .bp-lb-prev{grid-column:2}
    .bp-lb-next{grid-column:3}
}
