.bm-results {
  display: grid;
  gap: 1.25rem;
}
.bm-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bm-card {
  min-width: 0;
  border-top: 1px solid #dce0e5;
  padding-top: 1rem;
}
.bm-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  height: auto;
}
.bm-card h3 {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}
.bm-card h3 a {
  color: inherit;
  text-decoration: none;
}
.bm-card h3 a:hover {
  text-decoration: underline;
}
.bm-card time,
.bm-card small {
  display: block;
  color: #555b65;
  font-size: 0.875rem;
}
.bm-card p {
  font-size: 0.9rem;
}
.bm-results-list {
  grid-template-columns: 1fr;
}
.bm-results-list .bm-card {
  display: flow-root;
}
.bm-results-list .bm-card img {
  float: left;
  max-width: 180px;
  margin: 0 1rem 0.5rem 0;
}
.bm-search-form {
  padding: 1rem;
  background: #f3f5f7;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.bm-search-form input[type="search"] {
  flex: 1;
  min-width: 100px;
}
.bm-search-form input,
.bm-search-form select {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #858e9b;
  background: white;
  color: #252535;
  padding: 0.5rem;
}
.bm-filter {
  flex-basis: 100%;
  order: 3;
}
.bm-filter summary {
  padding: 0.5rem;
  cursor: pointer;
}
.bm-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1rem;
}
.bm-filter-grid label {
  display: flex;
  flex-direction: column;
}
.bm-pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-block: 2rem;
}
.bm-pagination a {
  padding: 0.65rem;
}
.bm-reader-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.bm-reader-tools button,
.bm-reader-tools select,
.bm-search-form button {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid #657183;
  border-radius: 0;
  color: #252535;
  font: inherit;
}
.bm-search-form button {
  background: #182a46;
  color: white;
}
.bm-reader-tools a {
  padding: 0.5rem;
}
.bm-reader-status {
  flex-basis: 100%;
}
.bm-breadcrumb {
  font-size: 0.85rem;
  margin-block: 1rem;
}
.bm-badge {
  display: inline-block;
  background: #8c2043;
  color: white;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  margin: 0.3rem;
}
.bm-toc,
.bm-saved {
  border: 1px solid #dce0e5;
  padding: 1rem;
  margin-block: 1.5rem;
}
.bm-toc summary,
.bm-saved summary {
  cursor: pointer;
  min-height: 44px;
}
.bm-updated {
  font-size: 0.875rem;
  color: #555b65;
}
.bm-readable {
  font-size: calc(1rem * var(--bm-font-scale, 1));
  line-height: 1.95;
}
.bm-readable h2 {
  font-size: 1.6em;
}
.bm-readable h3 {
  font-size: 1.25em;
}
.bm-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border: 0;
  z-index: 100;
  appearance: none;
}
.bm-progress::-webkit-progress-bar {
  background: transparent;
}
.bm-progress::-webkit-progress-value {
  background: #006a9e;
}
.bm-progress::-moz-progress-bar {
  background: #006a9e;
}
.admin-bar .bm-progress {
  top: 32px;
}
.bm-ad {
  min-height: 120px;
  border: 1px solid #dce0e5;
  padding: 1rem;
}
.bm-ad-label {
  font-size: 0.8rem;
  text-align: center;
  color: #555;
}
.bm-device-mobile {
  display: none;
}
.bm-saved li {
  margin-bottom: 0.7rem;
}
.bm-saved button {
  margin-left: 0.8rem;
  min-height: 44px;
}
.bm-card,
.bm-reader-tools,
.bm-search {
  overflow-wrap: anywhere;
}
@media (max-width: 781px) {
  .bm-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bm-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bm-device-mobile {
    display: block;
  }
  .bm-device-desktop {
    display: none;
  }
}
@media (max-width: 480px) {
  .bm-results-grid,
  .bm-filter-grid {
    grid-template-columns: 1fr;
  }
  .bm-results-list .bm-card img {
    max-width: 100px;
  }
  .bm-reader-tools {
    font-size: 0.9rem;
  }
}
.bm-source-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-block: 1rem;
  border-bottom: 1px solid #c7ced7;
}
.bm-source-tabs a {
  display: block;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.bm-source-tabs a[aria-current="page"] {
  border-color: #006a9e;
  color: #252535;
  font-weight: 700;
  background: #f3f5f7;
}
.bm-report-context {
  border-left: 4px solid #006a9e;
  background: #f3f5f7;
  padding: 1rem;
  overflow-wrap: anywhere;
}

.bm-brand-logo {
  width: auto;
  max-width: min(100%, 240px);
  max-height: 150px;
  object-fit: contain;
}
.bm-directory ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}
.bm-directory li {
  border-top: 2px solid #00aaff;
  padding: 1rem 0;
  overflow-wrap: anywhere;
}
.bm-service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.5rem;
}
.bm-service-nav a {
  min-height: 44px;
  box-sizing: border-box;
  padding: 0.6rem 1rem;
  background: #182a46;
  color: #fff;
}
.bm-brand-profile {
  overflow-wrap: anywhere;
}
.bm-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 2px solid #0079b3;
  margin-block: 1rem;
}
.bm-tab-list button {
  color: #17273e;
  background: #eef5fa;
  border: 1px solid #c9d2df;
  padding: 0.7em 1em;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.bm-tab-list button[aria-selected="true"] {
  color: #fff;
  background: #006a9e;
}
.bm-tab-list button:focus-visible,
.bm-tab-panel:focus-visible {
  outline: 3px solid #006a9e;
  outline-offset: 3px;
}
.bm-tab-panel[hidden] {
  display: none !important;
}

/* Purpose-based navigation and compact editorial lists. */
.bm-service-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d8e1eb;
  border: 1px solid #d8e1eb;
  margin-block: 1.25rem;
}
.bm-service-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 64px;
  padding: 1rem 1.25rem;
  color: #182a46;
  background: #f4f8fc;
  text-decoration: none;
  font-weight: 700;
  border-top: 3px solid #00aaff;
}
.bm-service-nav a::after {
  content: "→";
  font-weight: 400;
}
.bm-service-nav a:nth-child(3n + 2) {
  border-top-color: #ff557f;
}
.bm-service-nav a:hover {
  background: #e5f3fb;
}
.bm-directory {
  margin-block: 2rem;
}
.bm-directory h2 {
  font-size: 1.5rem;
  border-bottom: 3px solid #182a46;
  padding-bottom: 0.6rem;
}
.bm-directory ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2rem;
}
.bm-directory li {
  border-bottom: 1px solid #d8e1eb;
  padding-block: 0.75rem;
}
.bm-directory li a {
  font-weight: 700;
  font-size: 1.1rem;
}
.bm-directory li p {
  font-size: 1rem;
  margin: 0.4rem 0;
}
.bm-brand-profile {
  display: flow-root;
  border-bottom: 1px solid #d8e1eb;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.bm-brand-profile .bm-brand-logo {
  float: left;
  width: min(180px, 35%);
  height: auto;
  margin: 0 1.5rem 0.5rem 0;
}
.bm-search .bm-card h3,
.bm-search .bmc-card h3 {
  font-size: 1.125rem;
  line-height: 1.6;
}
.bm-search .bm-results article {
  padding-bottom: 1rem;
  border-bottom: 1px solid #d8e1eb;
}
.bm-search .bm-results p {
  font-size: 1rem;
}
@media (max-width: 781px) {
  .bm-directory ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .bm-service-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bm-service-nav a {
    min-height: 64px;
    padding: 0.75rem;
    font-size: 1rem;
  }
  .bm-directory ul {
    grid-template-columns: 1fr;
  }
}

.bm-service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: transparent;
  border: 0;
}
.bm-service-nav a {
  flex: 1 1 160px;
}
.bm-search .bm-card > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.bm-search .bm-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.bm-directory .bm-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bm-feature-entry {
  padding: 1.25rem;
  background: #f5f7fa;
  border-left: 4px solid #ff557f;
}
.bm-feature-entry .bm-card {
  margin-top: 0.6rem;
}
.bm-feature-entry .bm-card > a:first-child {
  float: right;
  width: 35%;
  margin: 0 0 0.5rem 1rem;
}
.bm-feature-entry .bm-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
@media (max-width: 480px) {
  .bm-service-nav a {
    flex-basis: calc(50% - 0.5rem);
  }
  .bm-directory .bm-feature-list {
    grid-template-columns: 1fr;
  }
}
