/* MadFanboy Sidebar Tabs 1.1 — faithful to Quatro sidebar styling.
 * Based on Quatro css/mfb-sidebar-refresh.css and the two-line title clamp
 * from mfb_sidebar_v14/css/sidebar-v14.css. Do NOT create Quicktabs IDs.
 * Block headings and white background are owned by Quatro's block.html.twig,
 * style.css and mfb-block-headings.css; don't duplicate them here.
 */
.mfb-sidebar-tabs { min-width: 0; }
.mfb-sidebar-tabs__nav {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center;
  gap: 6px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.mfb-sidebar-tabs__nav > button {
  appearance: none;
  display: block;
  flex: 0 0 auto;
  width: auto;
  margin: 0 !important;
  padding: 6px 11px !important;
  border: 1px solid #e0e4eb !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #202939 !important;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  cursor: pointer;
}
.mfb-sidebar-tabs__nav > button.is-active,
.mfb-sidebar-tabs__nav > button[aria-pressed="true"] {
  border-color: #bd0010 !important;
  background: #bd0010 !important;
  color: #fff !important;
}
.mfb-sidebar-tabs__nav > button:not(.is-active):hover {
  background: #f4f6f9 !important;
}
.mfb-sidebar-tabs__nav > button:focus-visible {
  outline: 2px solid #bd0010 !important;
  outline-offset: 2px;
}
.mfb-sidebar-tabs__nav > button:disabled { cursor: progress; }

/* Views already provide .block-most-read CSS class; keep their original HTML. */
.mfb-sidebar-tabs .block-most-read .view-content > .views-row {
  display: grid !important;
  grid-template-columns: 66px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  float: none !important;
  clear: both;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 8px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e8ed !important;
  background: none !important;
}
.mfb-sidebar-tabs .block-most-read .view-content > .views-row:last-child {
  border-bottom: 0 !important;
}
.mfb-sidebar-tabs .block-most-read .views-row > .views-field-field-image {
  grid-column: 1;
  grid-row: 1 / span 2;
  float: none !important;
  width: 66px !important;
  height: 52px;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 6px;
}
.mfb-sidebar-tabs .block-most-read .views-field-field-image :is(.field-content, a) {
  display: block;
  height: 100%;
}
.mfb-sidebar-tabs .block-most-read .views-field-field-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  border-radius: 6px;
  opacity: 1;
  transition: transform .2s ease;
}
.mfb-sidebar-tabs .block-most-read .views-row > .views-field-title {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3;
  overflow: hidden;
}
.mfb-sidebar-tabs .block-most-read .views-field-title .field-content {
  min-width: 0;
  overflow: hidden;
}
.mfb-sidebar-tabs .block-most-read .views-field-title a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  max-height: 2.64em;
  white-space: normal !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.32;
  color: #1e2939 !important;
  text-decoration: none;
}
.mfb-sidebar-tabs .block-most-read .views-field-title a:hover {
  color: #bd0010 !important;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mfb-sidebar-tabs .block-most-read .views-row:hover .views-field-field-image img {
    transform: scale(1.04);
  }
}
@media (max-width: 480px) {
  .mfb-sidebar-tabs .block-most-read .view-content > .views-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .mfb-sidebar-tabs .block-most-read .views-row > .views-field-field-image {
    width: 58px !important;
    height: 48px;
  }
}
.mfb-sidebar-tabs.is-loading .mfb-sidebar-tabs__content { opacity: .65; }
.mfb-sidebar-tabs__status { font-size: 12px; color: #b42318; margin: 6px 0; }
