/* Bolt overrides on top of benchy.css (the licensed template, recolored and scoped to .bchy).
   The header and footer are the marketing site's own (styles.css); everything here is scoped
   to .bchy so it only touches the blog content between them. Sizes use var(--bchy-rem) (10px,
   9px on phones, set in benchy.css) instead of rem, which would follow the site's 16px root. */
.bchy {
  --navy: #180a53;
  --blue: #2b7ffd;
  --offwhite: #f9fbff;
  --body: #4a4a55;
  color: var(--body);
}

/* Content edges line up with the site header: same max width and side padding as .nav__inner. */
.bchy .wrapper { max-width: 1620px; padding-left: var(--pad); padding-right: var(--pad); min-width: 0; }

/* The template's flex page wrapper is only needed for its own header/footer ordering. */
.bchy .main-wrapper { display: block; min-height: 0; }
.bchy .content { padding-top: 0; }
.bchy .section-post { padding-top: calc(3 * var(--bchy-rem, 10px)); }

/* "the bottom line" masthead (Figma 2860:1538): full-width hero band directly under the site header,
   wordmark on the header's content edge. Sized in px/vw like the site chrome, not --bchy-rem.
   1926px-wide design: 154px tall, 476px wordmark, so both scale with the viewport between caps. */
.bchy .masthead { position: relative; }
.bchy .masthead_band { position: relative; height: clamp(88px, 8vw, 154px); overflow: hidden; background: #0b0820; }
.bchy .masthead picture, .bchy .masthead_bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bchy .masthead_bg { object-fit: cover; object-position: center; display: block; }
.bchy .masthead_inner { position: relative; height: 100%; max-width: 1620px; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; }
.bchy .masthead_title { margin: 0; padding: 0; line-height: 0; }
.bchy .masthead_title a { display: inline-block; }
.bchy .masthead_title img { display: block; width: clamp(220px, 24.7vw, 476px); height: auto; }

/* Search posts field (Figma 2860:1538 desktop, 2861:1625 phones), at 2/3 of the Figma size:
   220x38 (Figma 328x56), 15px text (22), 15px icon (23). Desktop: white, in the
   masthead, right edge on the header's "Get started now" edge. Phones: grey, centered under the
   sidebar's Recent posts. */
.bchy .masthead_search { position: absolute; top: 0; left: 0; right: 0; height: clamp(88px, 8vw, 154px); pointer-events: none; }
.bchy .masthead_search_inner { height: 100%; max-width: 1620px; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: flex-end; }
.bchy .msearch { position: relative; pointer-events: auto; width: 220px; max-width: 100%; height: 38px; margin: 0; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(12, 12, 13, 0.1), 0 1px 4px rgba(12, 12, 13, 0.05); }
.bchy .msearch_input { display: block; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 4px; background: transparent; padding: 0 38px 0 19px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 400; line-height: normal; color: #180a53; -webkit-appearance: none; appearance: none; }
.bchy .msearch_input::placeholder { color: #180a53; opacity: 1; }
.bchy .msearch_input::-webkit-search-decoration, .bchy .msearch_input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bchy .msearch_btn { position: absolute; top: 0; right: 0; width: 38px; height: 38px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bchy .msearch_btn img { display: block; width: 15px; height: 15px; }
.bchy .msearch .search_results { position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, 320px); margin: 0; z-index: 50; box-shadow: 0 8px 24px rgba(12, 12, 13, 0.12); text-align: left; }
.bchy .sidebar_msearch { display: none; }
@media (max-width: 768px) {
  /* Phones: the masthead field gives way to the one under Recent posts, centered. */
  .bchy .masthead_search { display: none; }
  .bchy .sidebar_msearch { display: flex; justify-content: center; }
  .bchy .sidebar_msearch .msearch { width: 220px; background: #e0e0e0; }
  .bchy .msearch_input { font-size: 16px; } /* under 16px, iOS Safari zooms the page on focus */
  .bchy .msearch .search_results { width: 100%; }
}
/* AFMBP-2577 (owner 11-12, desktop): the masthead field is as wide as the Recent posts images, which fill the sidebar
   column (benchy.css: 307px, 258px at <=1199px). Its right edge already sits on the column's, so both edges line up.
   At <=1023px the sidebar stacks under the posts, so the field keeps its 220px. Recent posts titles are 20% smaller
   on desktop (benchy's 2rem -> 1.6rem), still two lines at most (2 x the 130% line height). */
.bchy .masthead_search .msearch { width: 307px; }
.bchy .stories_item_title { font-size: calc(1.6 * var(--bchy-rem, 10px)); max-height: calc(4.16 * var(--bchy-rem, 10px)); }
@media screen and (max-width: 1199px) {
  .bchy .masthead_search .msearch { width: 258px; }
}
@media screen and (max-width: 1023px) {
  .bchy .masthead_search .msearch { width: 220px; }
  .bchy .stories_item_title { font-size: calc(2 * var(--bchy-rem, 10px)); max-height: calc(5.2 * var(--bchy-rem, 10px)); }
}

.bchy h1, .bchy .h1, .bchy h2, .bchy .h2, .bchy h3, .bchy .h3, .bchy h4, .bchy .h4,
.bchy .article_title a, .bchy .stories_item_title a { color: var(--navy); text-transform: none; }
.bchy .article_txt h1 { font-size: calc(4 * var(--bchy-rem, 10px)); line-height: 1.15; padding-top: 0; }
.bchy .article_txt h2 { font-size: calc(3 * var(--bchy-rem, 10px)); line-height: 1.2; margin-top: calc(2 * var(--bchy-rem, 10px)); }
.bchy .article_txt h3 { font-size: calc(2.2 * var(--bchy-rem, 10px)); margin-top: calc(1.4 * var(--bchy-rem, 10px)); }
.bchy .article_txt p, .bchy .article_txt li { font-size: calc(1.7 * var(--bchy-rem, 10px)); line-height: 1.7; }
.bchy article.article .article_txt a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 0.2em; }
/* AFMBP-2569: a WordPress Buttons block (and a post's closing free-trial link) is the site's blue "Talk to your new
   assistant" button, styles.css .btn.btn--blue. benchy.css resets every .bchy link (padding, size, colour, transition)
   and has its own .btn (uppercase, weight 600, a pill with a big blue shadow), so the Talk button's own values are
   restated here: 49px tall, 16px label (15px on narrow screens) in weight 500 as written, 6px corners, no shadow
   until hover, and at least as wide as the Talk button (its 12.4em label plus padding). */
.bchy .article_txt .post-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: calc(2.4 * var(--bchy-rem, 10px)) 0; padding: 0; }
.bchy .article_txt a.btn.btn--blue { height: 49px; min-width: calc(12.4em + 44px); padding: 0 22px; font-size: clamp(15px, 1.4vw, 16px); font-weight: 500; text-transform: none; color: var(--offwhite); background: var(--blue); border-radius: 6px; box-shadow: none; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.bchy .article_txt a.btn.btn--blue:hover { box-shadow: 0 6px 18px rgba(43, 128, 252, .4); }
/* AFMBP-2570: lists in a post show their markers, as picked in WordPress. styles.css removes them site-wide
   (ul,ol{list-style:none}). A bulleted list gets round bullets (hollow, then square, when nested); a numbered list
   gets numbers, or the letters or Roman numerals its List style asks for (content.mjs keeps that as a class). */
.bchy .article_txt ul { list-style: disc; }
.bchy .article_txt ul ul { list-style-type: circle; }
.bchy .article_txt ul ul ul { list-style-type: square; }
.bchy .article_txt ol { list-style: decimal; }
.bchy .article_txt ol.list-lower-alpha { list-style-type: lower-alpha; }
.bchy .article_txt ol.list-upper-alpha { list-style-type: upper-alpha; }
.bchy .article_txt ol.list-lower-roman { list-style-type: lower-roman; }
.bchy .article_txt ol.list-upper-roman { list-style-type: upper-roman; }
.bchy .article_txt img { max-width: 100%; height: auto; border-radius: calc(1.2 * var(--bchy-rem, 10px)); }
.bchy .article_txt figure { margin: calc(2.4 * var(--bchy-rem, 10px)) 0; }
.bchy .article_txt figcaption { font-size: calc(1.4 * var(--bchy-rem, 10px)); color: #6b6b78; margin-top: calc(0.8 * var(--bchy-rem, 10px)); }
.bchy .article_txt table { width: 100%; border-collapse: collapse; margin: calc(2.4 * var(--bchy-rem, 10px)) 0; font-size: calc(1.5 * var(--bchy-rem, 10px)); display: block; overflow-x: auto; }
.bchy .article_txt th, .bchy .article_txt td { border: 1px solid rgba(0, 0, 0, 0.12); padding: calc(0.8 * var(--bchy-rem, 10px)) calc(1.2 * var(--bchy-rem, 10px)); text-align: left; vertical-align: top; }
.bchy .article_txt th { background: var(--offwhite); color: var(--navy); }
.bchy .article_title.h2 { font-size: calc(3.2 * var(--bchy-rem, 10px)); }
.bchy .article_item_cover-empty { min-height: 0; }
.bchy .article_item_cover img, .bchy .article_cover img, .bchy .stories_item_img img { width: 100%; height: auto; display: block; }
/* AFMBP-2573 (owner 11-12): one standard format for every blog image (Figma 2883:1674, "Blog image format", 4096x2730):
   rounded corners, a gradient overlay and the white bolt logo bottom right. templates.mjs (featured images) and content.mjs
   (images in post text) wrap each image in .bimg > .bimg__in. .bimg is a size container, so 1cqw = 1% of the image's width
   and the node's numbers scale with every image: corners 80/4096 = 1.953cqw; logo 367px wide = 8.96cqw, 127px from the
   right = 3.1cqw, 91px from the bottom = 2.22cqw; gradient left to right, clear purple rgba(69,22,185,0) at 50% to #1F0A53
   at 94.36%. Figma blends those two unpremultiplied (the lavender middle); CSS blends premultiplied, so the 11 stops follow
   Figma's curve. The first border-radius/background lines are the fallback for browsers without container units. */
.bchy .bimg { display: block; position: relative; container-type: inline-size; }
.bchy .bimg__in { display: block; position: relative; overflow: hidden; border-radius: 12px; border-radius: 1.953cqw; }
.bchy .bimg__in::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url(../img/bolt-logo-white.svg) no-repeat right 3.4% bottom 4.8% / 8.96% auto, linear-gradient(to right, rgba(69, 22, 185, 0) 50.00%, rgba(65, 21, 175, 0.1) 54.44%, rgba(61, 20, 165, 0.2) 58.87%, rgba(58, 19, 154, 0.3) 63.31%, rgba(54, 17, 144, 0.4) 67.74%, rgba(50, 16, 134, 0.5) 72.18%, rgba(46, 15, 124, 0.6) 76.62%, rgba(42, 14, 114, 0.7) 81.05%, rgba(39, 12, 103, 0.8) 85.49%, rgba(35, 11, 93, 0.9) 89.92%, rgb(31, 10, 83) 94.36%);
  background: url(../img/bolt-logo-white.svg) no-repeat right 3.1cqw bottom 2.22cqw / 8.96cqw auto, linear-gradient(to right, rgba(69, 22, 185, 0) 50.00%, rgba(65, 21, 175, 0.1) 54.44%, rgba(61, 20, 165, 0.2) 58.87%, rgba(58, 19, 154, 0.3) 63.31%, rgba(54, 17, 144, 0.4) 67.74%, rgba(50, 16, 134, 0.5) 72.18%, rgba(46, 15, 124, 0.6) 76.62%, rgba(42, 14, 114, 0.7) 81.05%, rgba(39, 12, 103, 0.8) 85.49%, rgba(35, 11, 93, 0.9) 89.92%, rgb(31, 10, 83) 94.36%); }
.bchy .bimg img { position: static; display: block; width: 100%; height: auto; border-radius: 0; }
/* The post's own cover and the sidebar thumbnails crop the image to the template's frame (42.6% / 49% of the width tall):
   the format sits on that visible frame, so the logo is in its bottom right corner. */
.bchy .article_cover .bimg, .bchy .stories_item_img .bimg { position: absolute; inset: 0; }
.bchy .article_cover .bimg__in, .bchy .stories_item_img .bimg__in { height: 100%; }
/* AFMBP-2572 (owner 11-12): the blog home's post list, tighter. Post titles 40% smaller, and 40% less white space
   between one post's excerpt and the next post's title. That space is three gaps (after the excerpt; below the cover
   image down to the date line; the date line to the title), and each is 60% of what benchy.css draws at every width.
   The cover frame now hugs its image: benchy's frame is 63.1% as tall as it is wide, while the blog shows the whole
   image, so a 2:1 image left an empty 13.1%-of-the-width band under it. 60% of that band comes back as margin.
   The gap after the excerpt is measured from its last line of text, so the post's bottom margin also gives back 40% of
   that line's half-leading (3.9px on wide screens, 3px on phones).
   AFMBP-2574 (owner 11-12): titles then 25% larger (2.4rem, 75% of the template's 3.2rem), and the space from each image
   down to its date line halved again (the cover margin and the date line's top padding at 30% of the template's). */
.bchy .article_list .article_title.h2 { font-size: calc(2.4 * var(--bchy-rem, 10px)); margin-top: calc(1.2 * var(--bchy-rem, 10px)); padding-top: calc(0.6 * var(--bchy-rem, 10px)); }
.bchy .article_list .article_item { margin-bottom: calc(6 * var(--bchy-rem, 10px) - 1.56px); }
.bchy .article_list .article_txt p.article_desc { padding-bottom: calc(1.68 * var(--bchy-rem, 10px)); margin-bottom: calc(1.74 * var(--bchy-rem, 10px)); }
.bchy .article_list .article_item_cover:before { display: none; }
.bchy .article_list .article_item_cover img { position: static; }
.bchy .article_list .article_item_cover { margin-bottom: calc(3.93% + 0.27 * var(--bchy-rem, 10px)); }
/* AFMBP-2579 (owner 11-12): every blog home post image as tall as the 11-12 post's ("The height of today's blog post is
   the appropriate height"): a frame of that image's shape, 1408x768, filled edge to edge and trimmed evenly from the
   centre, whatever shape WordPress sends, for current and future posts. The format (corners, gradient, logo) is drawn
   on the frame, so it stays in the frame's corner. */
.bchy .article_list .article_item_cover .bimg__in { aspect-ratio: 1408 / 768; }
.bchy .article_list .article_item_cover .bimg__in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.bchy .article_list .infoline { padding-top: calc(0.42 * var(--bchy-rem, 10px)); padding-bottom: calc(1.2 * var(--bchy-rem, 10px)); margin-bottom: calc(1.26 * var(--bchy-rem, 10px)); }
/* AFMBP-2574 (owner 11-12: "also applies to images in each individual post page"): on a post, the space from its image
   down to its date line is half the template's (cover margin 0.8 -> 0.4rem, date line top padding 1.4 -> 0.7rem). */
.bchy article.article > .article_cover { margin-bottom: calc(0.4 * var(--bchy-rem, 10px)); }
.bchy article.article > .infoline { padding-top: calc(0.7 * var(--bchy-rem, 10px)); }
@media screen and (max-width: 1023px) {
  .bchy .article_list .article_item { margin-bottom: calc(4.8 * var(--bchy-rem, 10px) - 1.56px); }
}
@media screen and (max-width: 767px) {
  .bchy .article_list .article_item { margin-bottom: calc(3.6 * var(--bchy-rem, 10px) - 1.2px); }
  .bchy .article_list .article_txt p.article_desc { padding-bottom: calc(1.2 * var(--bchy-rem, 10px)); margin-bottom: calc(1.14 * var(--bchy-rem, 10px)); }
  .bchy article.article > .article_cover { margin-bottom: calc(0.25 * var(--bchy-rem, 10px)); }
  .bchy article.article > .infoline { padding-top: calc(0.5 * var(--bchy-rem, 10px)); }
  .bchy .article_list .infoline { padding-top: calc(0.3 * var(--bchy-rem, 10px)); padding-bottom: calc(0.6 * var(--bchy-rem, 10px)); margin-bottom: calc(0.9 * var(--bchy-rem, 10px)); }
}
.bchy .breadcrumbs { white-space: normal; overflow: visible; display: flex; flex-wrap: wrap; align-items: center; gap: calc(0.4 * var(--bchy-rem, 10px)) 0; }

/* Search results (live results under the search field and the /blog/search/ page). */
.bchy .search_results { margin-top: calc(1.2 * var(--bchy-rem, 10px)); background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: calc(1.2 * var(--bchy-rem, 10px)); padding: calc(1.2 * var(--bchy-rem, 10px)) calc(1.6 * var(--bchy-rem, 10px)); }
.bchy .search_results ul, .bchy .search_page_results ul { list-style: none; margin: 0; padding: 0; }
.bchy .search_results li, .bchy .search_page_results li { padding: calc(1 * var(--bchy-rem, 10px)) 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.bchy .search_results li:last-child, .bchy .search_page_results li:last-child { border-bottom: 0; }
.bchy .search_results a, .bchy .search_page_results a { color: var(--navy); font-weight: 600; font-size: calc(1.5 * var(--bchy-rem, 10px)); }
.bchy .search_page_results p, .bchy .search_results p { font-size: calc(1.4 * var(--bchy-rem, 10px)); margin: calc(0.4 * var(--bchy-rem, 10px)) 0 0; }
.bchy .search_page { font-size: calc(1.6 * var(--bchy-rem, 10px)); }

/* Related posts under an article. */
.bchy .related { margin-top: calc(4 * var(--bchy-rem, 10px)); }
.bchy .related ul { margin: calc(1 * var(--bchy-rem, 10px)) 0 0; padding-left: calc(2 * var(--bchy-rem, 10px)); list-style: disc; }
.bchy .related li { font-size: calc(1.6 * var(--bchy-rem, 10px)); margin: calc(0.6 * var(--bchy-rem, 10px)) 0; }
.bchy .related a { color: var(--blue); }

.bchy .article_more { color: #2b7ffd; font-weight: 600; white-space: nowrap; }
.bchy .article_more:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.bchy .article_infoline, .bchy .stories_item_infoline { text-transform: none; }
.bchy .infoline_sep { margin: 0 8px; }
.bchy .list_intro { font-size: calc(1.7 * var(--bchy-rem, 10px)); margin-bottom: calc(3 * var(--bchy-rem, 10px)); }
.bchy .icon-arrow-prev { transform: rotate(180deg); }


.bchy .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bchy a:focus-visible, .bchy button:focus-visible, .bchy input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Phones: the site's floating "Get started now" button starts just under the header, which on
   the blog is the masthead wordmark. Start it at its bottom-right resting spot instead. */
@media (max-width: 768px) {
  body.blog-page .floating-cta { top: calc(100vh - 100px); top: calc(100dvh - 100px); }
}

/* Skip link sits before the site header, outside .bchy. */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: #180a53; color: #fff; padding: 10px 16px; font-size: 14px; }
.skip-link:focus { left: 10px; top: 10px; }

@media screen and (max-width: 1023px) {
  .bchy .article_txt h1 { font-size: calc(3.2 * var(--bchy-rem, 10px)); }
}
@media (prefers-reduced-motion: reduce) {
  .bchy *, .bchy *::before, .bchy *::after { transition: none !important; animation: none !important; }
}
