/* BI Service Guides. Builds on the BI Services and BI Insights styles. */

/* Guide pages sit full width inside the theme, as the service and article pages do */
body.single-bi_guide #qodef-page-title, body.single-bi_guide .qodef-page-title,
body.post-type-archive-bi_guide #qodef-page-title, body.post-type-archive-bi_guide .qodef-page-title { display: none; }
body.single-bi_guide #qodef-page-inner, body.post-type-archive-bi_guide #qodef-page-inner { width: 100%; max-width: none; padding: 0 !important; }

/* Services page: divider and banner under the service cards */
.bi-guides-rule { height: 1px; margin: 0 0 56px; background: var(--bi-line, #e1e3e1); }
.bi-services .bi-guides-banner { position: relative; display: flex; align-items: center; min-height: 340px; margin: 0 0 88px;
  overflow: hidden; border-radius: 8px; background: #3d090c; }
.bi-services .bi-guides-banner .bi-guides-banner__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 100%; }
.bi-guides-banner::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(43, 6, 9, .9) 0%, rgba(61, 9, 12, .62) 42%, rgba(61, 9, 12, 0) 72%); }
.bi-guides-banner__inner { position: relative; z-index: 1; max-width: 560px; padding: 44px; }
.bi-services .bi-guides-banner__title { margin: 0 0 12px; font-family: var(--bi-font-head, "Oranienbaum", serif); font-weight: 400; font-size: 40px; line-height: 1.1; color: #fff; }
.bi-services .bi-guides-banner__text { margin: 0 0 26px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.bi-guides-banner .bi-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.bi-guides-banner .bi-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bi-guides-banner a:focus-visible, .bi-guides-hub .bi-card:focus-visible { outline: 3px solid #bf5959; outline-offset: 3px; }

/* Service Guides page */
.bi-guides-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 400px; padding: 40px 20px;
  background-color: #3d090c; background-position: center 62%; background-size: cover; }
.bi-guides-hero::before { content: ""; position: absolute; inset: 0; background: rgba(30, 12, 10, .42); }
.bi-guides-page .bi-guides-hero__title { position: relative; margin: 0; font-family: var(--bi-font-head, "Oranienbaum", serif); font-weight: 400; font-size: 56px; line-height: 1.1; color: #fff; text-align: center; }
.bi-guides-hub.bi-wrap { max-width: 1064px; margin: 0 auto; padding: 44px 20px 0; }
.bi-services .bi-guides-intro { max-width: 640px; margin: 0 auto 44px; font-size: 18px; line-height: 1.6; text-align: center; color: var(--bi-charcoal, #424142); }
.bi-guides-hub .bi-card__media { aspect-ratio: 16 / 9; }
.bi-guides-hub .bi-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bi-guides-hub .bi-card__body { padding-top: 22px; }

/* Guide pages */
.bi-article__figure img { max-height: none; }
.bi-article__quick { margin: 0 0 34px; padding: 22px 24px; background: var(--bi-tint, #faf6f5); border: 1px solid var(--bi-line, #ece4e2);
  border-left: 4px solid var(--bi-maroon, #71160e); border-radius: 10px; }
.bi-article__body .bi-article__quick h2 { margin: 0 0 8px; font-size: 21px; }
.bi-article__body .bi-article__quick p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--bi-ink, #2b2a2b); }

@media (max-width: 767px) {
  .bi-services .bi-guides-banner { display: block; min-height: 0; margin-bottom: 56px; }
  .bi-services .bi-guides-banner .bi-guides-banner__photo { position: static; display: block; height: auto; aspect-ratio: 16 / 9; }
  .bi-guides-banner::after { content: none; }
  .bi-guides-banner__inner { max-width: none; padding: 26px 22px 28px; }
  .bi-services .bi-guides-banner__title { font-size: 32px; }
  .bi-guides-rule { margin-bottom: 36px; }
  .bi-guides-hero { min-height: 280px; }
  .bi-guides-page .bi-guides-hero__title { font-size: 40px; }
  .bi-services.bi-guides-hub .bi-grid { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 0; padding: 0; gap: 20px; scroll-snap-type: none; }
  .bi-services.bi-guides-hub .bi-card { width: 100%; min-width: 0; flex: none; }
  .bi-services.bi-guides-hub .bi-card__media { width: 100%; flex: none; aspect-ratio: 16 / 9; }
}
