/* Shared finishing details: contextual sidebar, useful search and a readable footer. */
@media screen {
  .widgets-aside .widgets.bhm-related-articles-widget {
    border: 0;
    border-top: 3px solid var(--bhm-red);
    background: #fff;
  }
  .widgets-aside .bhm-related-articles-widget .widget-header { padding: 18px 0 8px; }
  .widgets-aside .bhm-related-articles-widget .widget-title {
    font-family: var(--bhm-display);
    font-size: 29px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-transform: none;
  }
  .widgets-aside .bhm-related-articles-widget > .inner { padding: 0; }
  .widgets-aside .bhm-related-articles-widget .post-list-item {
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding-block: 18px;
  }
  .widgets-aside .bhm-related-articles-widget .post-list-item.bhm-related-no-image { grid-template-columns: minmax(0, 1fr); }
  .widgets-aside .bhm-related-articles-widget .post-list-item--fig img { aspect-ratio: 4 / 3; object-fit: cover; }
  .widgets-aside .bhm-related-articles-widget .post-list-title { font-size: 16px; line-height: 1.4; }
  .widgets-aside .bhm-related-articles-widget .post-list-item--article p { margin-top: 8px; font-size: 13px; line-height: 1.6; }
  .widgets-aside .bhm-related-articles-widget a:focus-visible { outline: 3px solid var(--bhm-dark-red); outline-offset: 4px; }

  .bhm-content-search { width: 100%; max-width: 760px; margin: 24px 0 0; }
  .bhm-content-search label { display: block; margin: 0 0 8px; color: var(--bhm-ink); font-size: 14px; font-weight: 700; }
  .bhm-content-search__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .bhm-content-search input[type="search"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    height: 52px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #a39e94;
    border-radius: 0;
    background: #fff;
    color: var(--bhm-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
  }
  .bhm-content-search button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 52px;
    margin: 0;
    padding: 12px 22px;
    border: 1px solid var(--bhm-red);
    border-radius: 0;
    background: var(--bhm-red);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
  }
  .bhm-content-search button:hover { background: var(--bhm-dark-red); border-color: var(--bhm-dark-red); }
  .bhm-content-search :is(input, button):focus-visible,
  .bhm-error-links a:focus-visible,
  .bhm-search-empty a:focus-visible { outline: 3px solid var(--bhm-dark-red); outline-offset: 4px; }
  .bhm-search-empty { margin-top: 4px; padding: clamp(24px, 4vw, 40px); border-top: 3px solid var(--bhm-red); background: #f7f4ec; }
  .bhm-search-empty h2 { margin: 0 0 14px; font-family: var(--bhm-display); font-size: clamp(28px, 3vw, 36px); font-weight: 400; line-height: 1.2; }
  .bhm-search-empty p { max-width: 54ch; margin: 0 0 18px; font-size: 16px; line-height: 1.75; }
  .bhm-search-empty a { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--bhm-dark-red); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

  .bhm-error-card { padding: clamp(24px, 4vw, 48px); border-top: 4px solid var(--bhm-red); background: #f7f4ec; }
  .bhm-error-card > .bhm-error-label { margin: 0 0 18px; color: var(--bhm-dark-red); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .bhm-error-card h1 { margin: 0 0 20px; font-family: var(--bhm-display); font-size: clamp(34px, 4vw, 52px); font-weight: 400; line-height: 1.1; letter-spacing: -.025em; }
  .bhm-error-card > p { max-width: 56ch; font-size: 17px; line-height: 1.75; }
  .bhm-error-links { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid #d7d1c6; }
  .bhm-error-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding: 14px 0; border-bottom: 1px solid #d7d1c6; color: var(--bhm-ink); font-size: 15px; }
  .bhm-error-links a:hover { color: var(--bhm-dark-red); text-decoration: underline; text-underline-offset: 4px; }

  .bhm-site-footer .bhm-footer-top { column-gap: clamp(28px, 3.5vw, 48px); }
  .bhm-site-footer .bhm-footer-brand > span { color: #c7cad1; font-size: 14px; line-height: 1.7; }
  .bhm-site-footer .bhm-footer-nav h2 { margin-bottom: 14px; font-size: 16px; line-height: 1.4; }
  .bhm-site-footer .bhm-footer-menu li { margin: 0 0 4px; }
  .bhm-site-footer .bhm-footer-menu a { display: inline-flex; align-items: center; min-height: 32px; padding-block: 4px; font-size: 14px; line-height: 1.5; }
  .bhm-site-footer .bhm-footer-bottom { font-size: 12px; line-height: 1.65; }
  .bhm-site-footer .bhm-footer-bottom a { display: inline-flex; align-items: center; min-height: 36px; }
  .bhm-site-footer a:focus-visible { outline: 3px solid #f4cd65; outline-offset: 4px; }
}
@media screen and (max-width: 599px) {
  .bhm-site-footer .bhm-footer-menu a { min-height: 44px; }
  .bhm-site-footer .bhm-footer-bottom a { min-height: 44px; }
  .bhm-site-footer .bhm-footer-legal, .bhm-site-footer .bhm-social-links { column-gap: 20px; row-gap: 4px; }
}
@media screen and (max-width: 399px) {
  .bhm-content-search__controls { grid-template-columns: minmax(0, 1fr); }
  .bhm-content-search button { width: 100%; }
}
