/* Shared page geometry, based on the accepted G84d catalog. */
:root {
  --mr-site-width: 1300px;
  --mr-site-padding: 20px;
  --mr-shell-sidebar-width: 200px;
  --mr-shell-gutter: 24px;
  --mr-site-muted: #f1f2f4;
  --mr-site-border: #e6e7ea;
}
html[data-bs-theme="dark"] {
  --mr-site-muted: #292a2e;
  --mr-site-border: #393a3d;
}
html { scrollbar-gutter: stable; }
html::-webkit-scrollbar { width: 10px; }
html:has(.mr-mtock-page:fullscreen), html.mr-mtock-immersive { scrollbar-gutter: auto; }
body .mr-mtock-page:is(:fullscreen,.is-immersive) { width: 100vw; }
body :is(.mr-index-page,.mr-service-page,.mr-server-detail-page,.mr-site-frame) > .container,
body > .container,
.mr-topbar > .container {
  width: 100%;
  max-width: var(--mr-site-width);
  margin-inline: auto;
  padding-inline: var(--mr-site-padding);
}
:is(.mr-service-page,.mr-server-detail-page,.mr-site-frame) {
  font-family: 'MR Roboto Flex',Roboto,Arial,sans-serif;
}
:is(.mr-index-page,.mr-service-page,.mr-server-detail-page,.mr-site-frame) {
  padding-top: 14px;
}
.mr-service-page:not(.mr-people-rating-page) h1 {
  font-family: 'MR Unbounded',Arial,sans-serif;
  font-size: clamp(20px,2vw,25px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.mr-service-page :is(.badge,.mr-service-stat) {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.3;
}
.mr-service-page .mr-service-stat {
  padding: 4px 8px;
  background: var(--mr-site-muted);
}
body :is(.mr-server-content-filter,.mr-server-content-card-source-chip,.mr-server-owner-pill) {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
}
body .mr-server-content-filter {
  min-height: 32px;
  padding: 6px 10px;
}
body .mr-server-content-page .mr-server-content-wipe-card[data-server-content-wipe-row] .mr-server-content-card-source-chip {
  font-size: 12px !important;
}
.mr-site-mobile-navigation { display: none; }
.mr-reference-card a.mr-server-card-vote-button { text-decoration: none; }
.mr-service-page .form-floating > label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-site-frame .mr-mtock-page:not(:fullscreen):not(.is-immersive) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}
@media (min-width: 1024px) {
  body :is(.mr-index-page,.mr-service-page:not(.mr-account-page),.mr-server-detail-page,.mr-site-frame) > .container > .row.align-items-start,
  body .mr-account-page .mr-account-layout {
    display: grid;
    grid-template-columns: var(--mr-shell-sidebar-width) minmax(0,1fr);
    gap: var(--mr-shell-gutter) !important;
    margin: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
  }
  body :is(.mr-index-page,.mr-service-page:not(.mr-account-page),.mr-server-detail-page,.mr-site-frame) > .container > .row.align-items-start > aside {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    width: var(--mr-shell-sidebar-width);
    max-width: none;
    min-width: 0;
    position: sticky;
    top: var(--mr-shell-sticky-top,64px);
    align-self: start;
    height: calc(100dvh - var(--mr-shell-sticky-top,64px) - 12px);
    max-height: calc(100dvh - var(--mr-shell-sticky-top,64px) - 12px);
    margin-top: -48px;
    margin-inline: 0;
    padding: 0;
    overflow: hidden;
  }
  body :is(.mr-index-page,.mr-service-page,.mr-server-detail-page,.mr-site-frame) > .container > .row.align-items-start > aside > .mr-service-sidebar {
    position: static;
    top: auto;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
  }
  body :is(.mr-index-page,.mr-service-page:not(.mr-account-page),.mr-server-detail-page,.mr-site-frame) > .container > .row.align-items-start > section {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  body :is(.mr-index-page,.mr-service-page,.mr-server-detail-page,.mr-site-frame) > .container > .row.align-items-start > section > .d-lg-none {
    display: none !important;
  }
  .mr-account-page .mr-account-sidebar {
    margin-top: -48px;
    padding-right: 0;
    border-right: 0;
  }
}
@media (max-width: 1023.98px) {
  :is(.mr-index-page,.mr-service-page,.mr-server-detail-page,.mr-site-frame) { padding-top: 10px; }
  body :is(.mr-index-page,.mr-service-page:not(.mr-account-page),.mr-server-detail-page,.mr-site-frame) > .container > .row.align-items-start {
    display: block;
    margin: 0;
  }
  body :is(.mr-index-page,.mr-service-page:not(.mr-account-page),.mr-server-detail-page,.mr-site-frame) > .container > .row.align-items-start > aside {
    display: none !important;
  }
  body :is(.mr-index-page,.mr-service-page:not(.mr-account-page),.mr-server-detail-page,.mr-site-frame) > .container > .row.align-items-start > section {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  body :is(.mr-index-page,.mr-service-page,.mr-server-detail-page,.mr-site-frame) > .container > .row.align-items-start > section > .d-lg-none,
  .mr-site-mobile-navigation {
    display: block !important;
    margin-bottom: 12px;
  }
  .mr-service-sidebar-disclosure > .mr-service-sidebar-summary {
    display: flex;
  }
  .mr-service-sidebar-disclosure:not([open]) > .mr-service-sidebar-sections {
    display: none;
  }
}
@media (max-width: 767.98px) {
  :root { --mr-site-padding: 16px; }
}

/* One row with an eased pan and fading edges, matching the MineMods reference. */
body .mr-discovery-shell {
  position: relative;
  width: 100%;
  max-width: var(--mr-site-width);
  margin: 4px auto 0;
  padding-inline: var(--mr-site-padding);
  overflow: visible;
  border: 0;
  background: transparent;
}
body .mr-discovery-pulse {
  position: relative;
  container-type: inline-size;
  width: calc(100% - 44px);
  min-height: 44px;
  height: 44px;
  scrollbar-width: none;
  padding-block: 6px;
  overflow: hidden;
  mask-image: linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent);
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent);
}
body .mr-discovery-pulse-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: mr-discovery-pan 42s ease-in-out infinite alternate;
}
body .mr-discovery-pulse-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
body .mr-discovery-pulse-item {
  min-height: 32px;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--bs-body-color);
  background: var(--mr-site-muted);
  font-size: 12px;
  line-height: 20px;
}
body .mr-discovery-pulse-item strong { font-weight: 600; }
body .mr-discovery-pulse-label { display: none; }
body .mr-discovery-pulse-metric { font-size: 12px; }
body .mr-discovery-pulse-item.is-collection .mr-discovery-pulse-metric { display: none; }
.mr-discovery-controls {
  position: absolute;
  inset: 0 var(--mr-site-padding) auto auto;
  z-index: 2;
}
.mr-discovery-pause-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--bs-secondary-color);
  cursor: pointer;
}
.mr-discovery-pause-control:hover { background: var(--mr-site-muted); }
.mr-discovery-controls input:focus-visible + label {
  outline: 2px solid var(--bs-primary);
  outline-offset: -3px;
}
.mr-discovery-pause-control .bi-play-fill,
.mr-discovery-controls input:checked + label .bi-pause-fill { display: none; }
.mr-discovery-controls input:checked + label .bi-play-fill { display: inline; }
body .mr-discovery-shell:has([data-mr-discovery-pause]:checked) .mr-discovery-pulse-track,
body .mr-discovery-pulse:hover .mr-discovery-pulse-track { animation-play-state: paused; }
body .mr-discovery-pulse:focus-within {
  overflow-x: auto;
  mask-image: none;
  -webkit-mask-image: none;
}
body .mr-discovery-pulse:focus-within .mr-discovery-pulse-track {
  animation: none;
  transform: none;
}
body .mr-discovery-pulse-item:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: -2px;
}
@keyframes mr-discovery-pan {
  from { transform: translateX(0); }
  to { transform: translateX(min(0px,calc(100cqw - 100%))); }
}
@media (min-width: 1024px) {
  body .mr-discovery-pulse {
    width: calc(100% - var(--mr-shell-sidebar-width) - var(--mr-shell-gutter) - 44px);
    margin-left: calc(var(--mr-shell-sidebar-width) + var(--mr-shell-gutter));
    mask-image: linear-gradient(90deg,transparent,#000 64px,#000 calc(100% - 64px),transparent);
    -webkit-mask-image: linear-gradient(90deg,transparent,#000 64px,#000 calc(100% - 64px),transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  body .mr-discovery-pulse { overflow-x: auto; }
  body .mr-discovery-pulse-track { animation: none; transform: none; }
}
@supports not (width: 1cqw) {
  body .mr-discovery-pulse { overflow-x: auto; }
  body .mr-discovery-pulse-track { animation: none; }
}
