/* Reference proportions: 380px panel, 5:7 covers and three floating actions. */
.has-home-discovery {
  --discovery-ink: #222;
  --discovery-muted: #6b6b6b;
  --discovery-accent: #a74424;
}
.mb-discovery {
  position: relative;
  z-index: var(--z-above-base, 2);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(380px, calc(100vw - 12px));
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--discovery-ink);
  box-shadow: 0 4px 18px #00000012;
  font-family: 'Plus Jakarta Sans', 'SFProText', -apple-system, BlinkMacSystemFont, sans-serif;
}
.has-home-discovery.server-desktop .mb-discovery {
  position: fixed;
  left: 6px;
  top: 70px;
  bottom: 0;
}
.mb-discovery *, .mb-discovery *::before, .mb-discovery *::after { box-sizing: border-box; }
.mb-discovery [hidden] { display: none !important; }
.mb-discovery-toolbar { display: flex; justify-content: center; flex-shrink: 0; height: 24px; }
.mb-discovery-map {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 24px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--discovery-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.mb-discovery-handle { display: block; width: 40px; height: 3px; border-radius: 3px; background: #b7b7b7; }
.mb-discovery:not(.is-collapsed) [data-discovery-toggle-label] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.mb-discovery-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  min-height: 0;
  padding: 0 0 90px;
}
.mb-discovery-section { padding: 8px 0; }
.mb-shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 8px; }
.mb-shelf-heading h2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.mb-shelf-heading > a { display: none; }
.mb-memory-shelf { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 16px; padding: 0 16px 8px; scrollbar-width: none; }
.mb-memory-shelf::-webkit-scrollbar { display: none; }
.mb-memory-card { flex: 0 0 122px; min-width: 0; scroll-snap-align: start; }
.mb-memory-link { display: block; color: inherit; text-decoration: none; border-radius: 8px; }
.mb-memory-cover { aspect-ratio: 5 / 7; overflow: hidden; border-radius: 8px; background: #eceee7; }
.mb-memory-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .18s ease; }
.mb-memory-link:hover img { transform: scale(1.035); }
.mb-memory-link h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 3px 0 0; font-size: 12px; font-weight: 500; line-height: 1.4; }
.mb-discovery-empty { margin: 6px 0 14px; font-size: 13px; line-height: 1.5; color: var(--discovery-muted); }
.mb-discovery-empty a { color: var(--discovery-accent); }
.mb-discovery-extra { margin: 12px 16px; border: 1px solid #e6e8e1; border-radius: 12px; }
.mb-discovery-extra summary { padding: 12px; min-height: 48px; cursor: pointer; font-size: 14px; font-weight: 600; }
.mb-discovery-extra summary .material-icons-outlined { vertical-align: middle; margin-right: 6px; font-size: 19px; color: var(--discovery-accent); }
.mb-discovery-extra .moments-shortcuts-wrapper { max-width: 100%; }
/* The existing crawlable introduction follows the shelves, outside the opening view. */
.mb-discovery .map-intro { padding: 18px 16px 4px; background: #fff; border: 0; }
.mb-discovery .seo-page-header { display: block; position: static; width: auto; height: auto; padding: 0; margin: 0; border: 0; background: none; }
.mb-discovery .map-intro .seo-page-header h1 { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--discovery-ink); }
.mb-discovery .seo-answer-line { font-size: 13px; line-height: 1.5; color: var(--discovery-muted); }
.mb-discovery .map-intro .seo-header-nav { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 0; margin: 0; }
.mb-discovery .map-intro .seo-header-nav a { padding: 8px 0; min-height: 36px; color: var(--discovery-muted); background: none; font-size: 12px; text-decoration: underline; }
.mb-discovery-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; padding: 12px 16px 22px; }
.mb-discovery-links a { font-size: 12px; color: var(--discovery-muted); text-decoration: underline; text-underline-offset: 3px; }
.mb-discovery-footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  pointer-events: none;
}
.mb-discovery-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid #e5e5e5a6;
  border-radius: 50%;
  background: #fffffff0;
  color: #4d4d4d;
  box-shadow: 0 3px 12px #00000020;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}
.mb-discovery-action:hover { background: #fff; color: #222; }
.mb-discovery-action .material-icons-outlined { font-size: 25px; }
.mb-discovery a:focus-visible, .mb-discovery button:focus-visible, .mb-discovery summary:focus-visible { outline: 3px solid #286b52; outline-offset: 3px; }
.mb-discovery [data-explorer-panel] { min-height: 196px !important; }
.mb-discovery [data-panel-state='loaded'] { min-height: 0 !important; }
.mb-discovery [data-panel-retry] { min-height: 44px; border: 1px solid #a74424; border-radius: 8px; background: white; color: #a74424; padding: 8px 12px; }
.has-home-discovery.server-desktop .mb-discovery.is-collapsed { bottom: auto; width: max-content; max-width: calc(100vw - 12px); border: 1px solid #e8e8e8; border-radius: 24px; }
.mb-discovery.is-collapsed .mb-discovery-toolbar { height: 44px; }
.mb-discovery.is-collapsed .mb-discovery-map { height: 44px; padding: 0 16px; }
.mb-discovery.is-collapsed .mb-discovery-handle { display: none; }
.has-home-discovery.server-mobile #mobile-home-view { z-index: var(--z-above-base, 2); padding: 0 6px; box-sizing: border-box; min-width: 0; }
.has-home-discovery.server-mobile .mb-discovery { width: 100%; height: 100%; max-height: 100%; margin: 0; }
@media (max-width: 812px) {
  .has-home-discovery.server-desktop #block-details:has([data-home-discovery]) .block-details-container { width: auto; }
  .has-home-discovery.server-desktop #block-details:has([data-home-discovery]) .block-interface { width: auto; position: static; background: transparent; border: 0; padding: 0; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .mb-memory-cover img { transition: none; } }
