/* Authored sidebar component styles; independent of the legacy theme bundle. */
#sidebar { margin-left: 0; min-width: 0; }
.tfh-sidebar-contact { margin-bottom: 2rem; overflow-wrap: anywhere; }
.tfh-sidebar-contact__button {
  display: block; padding: 1rem; margin-bottom: 1rem;
  background: #800020; color: #fff !important; border: 2px solid #800020;
  font-size: 1rem; font-weight: 600; line-height: 1.5; text-align: center;
  text-decoration: none !important; white-space: normal;
}
.tfh-sidebar-contact__button:hover { background: #620019; border-color: #620019; }
.tfh-sidebar-contact .custom-html-widget { font-size: 1rem; line-height: 1.65; }
.tfh-sidebar-contact__external { margin: 1rem 0 0; }
.tfh-sidebar-contact a:focus-visible,
.tfh-sidebar-logos a:focus-visible,
.tfh-sidebar-logos button:focus-visible { outline: 3px solid #ad7900; outline-offset: 4px; }
.tfh-sidebar-logos { margin: 1.5rem 0; padding-top: 1.5rem; border-top: 1px solid #e8dddf; container-type: inline-size; }
.tfh-sidebar-logos__slides {
  --tfh-logo-columns: 2;
  list-style: none; padding: 4px !important; margin: 0 !important;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1rem) / 2); gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
}
.tfh-sidebar-logos__slides > li { min-width: 0; margin: 0; padding: 0; scroll-snap-align: start; }
#sidebar .tfh-sidebar-logos .tfh-sidebar-logos__slides a { display: flex; justify-content: center; align-items: center; min-height: 100px; padding: .25rem !important; }
.tfh-sidebar-logos__slides img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100px; object-fit: contain; }
.tfh-sidebar-logos.is-enhanced .tfh-sidebar-logos__slides { scrollbar-width: none; }
.tfh-sidebar-logos.is-enhanced .tfh-sidebar-logos__slides::-webkit-scrollbar { display: none; }
@container (min-width: 300px) {
  .tfh-sidebar-logos__slides { --tfh-logo-columns: 3; grid-auto-columns: calc((100% - 2rem) / 3); }
}
@media (prefers-reduced-motion: reduce) {
  .tfh-sidebar-logos__slides { scroll-behavior: auto; }
}
.tfh-sidebar-logos [hidden] { display: none !important; }
.tfh-sidebar-logos__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: .75rem; }
.tfh-sidebar-logos__controls button { min-width: 44px; min-height: 44px; padding: .5rem; border: 1px solid #aa737f; color: #800020; background: #fff; font: inherit; font-size: .875rem; line-height: 1; cursor: pointer; border-radius: 0; }
.tfh-sidebar-logos__controls button:hover { background: #fff8ee; }
.tfh-sidebar-logos__position { min-width: 4rem; color: #595454; text-align: center; font-size: .875rem; }
