a[role="menuitem"]:hover {
  cursor: pointer;
}

@media screen and (max-width: 640px) {
  iframe {
    width: 90vw;
  }
}

.marketing-container {
  text-align: center;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  font-family: system-ui, SF Pro Text;
}

.marketing-overlay {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  opacity: 0;
  background: linear-gradient(to right, #83838325, #3d3d3d);
}

.marketing-details {
  width: 75%;
  min-width: 185px;
  color: #fff;
}

.marketing-copy {
  font-size: 1.25em;
  line-height: 1.25em;
  text-overflow: ellipsis;
  font-weight: 500;
}

.marketing-overlay a {
  padding: 10px;
  padding-right: 55px;
  padding-left: 55px;
  border: solid #fbbc04 1px;
  width: 200px;
  border-radius: 25px;
  background-color: #fbbc04;
  color: #fff;
  font-family: system-ui, SF Pro Text;
  text-decoration: none;
  font-weight: 600;
}

.marketing-container:hover .marketing-overlay {
  opacity: 1;
}

.overlayFade {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to right, #83838325, #3d3d3d);
}

.subscribe-cta-container {
  background-color: #fdd14b8a;
  padding: 1rem 2rem 2rem 2rem;
  border-radius: 1rem;
}

.subscribe-cta-text {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.subscribe-cta-form {
  display: flex;
  flex-direction: row;
  height: 3.5rem;
}

.subscribe-cta-form p {
  align-self: center;
  margin-left: 1rem;
  font-size: 0.9rem;
  color: #b4b4b4;
}

.subscribe-cta-input {
  border-width: 0;
  border-radius: 1.5rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
}

.subscribe-cta-button {
  cursor: pointer;
  color: #fff;
  font-weight: 700;

  /* Sacra Yellow */
  background: #ffb61a;

  border-width: 0;
  border-radius: 1.5rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  margin-left: 1rem;
}

.subscribe-cta-button:disabled {
  background-color: #ffb61ab7 !important;
  cursor: not-allowed;
}

.subscribe-cta-button:focus {
  outline-width: 0;
}
.subscribe-cta-input:focus {
  outline-width: 0;
}

#grid-search:focus {
  outline-width: 0 !important;
}

@media (max-width: 768px){
  .subscribe-cta-form {
    flex-direction: column;
    gap: 1rem;
    height: auto;
  }

  .subscribe-cta-button {
    margin-left: 0;
  }
}
/* Explore sorting: retain both columns when the period is inactive. */
.explore-sort-heading {
  margin-bottom: 10px;
  color: #52525b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.explore-sort-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  font-size: 14px;
}

.explore-sort-field {
  position: relative;
  min-width: 0;
}

.explore-sort-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.explore-sort-field .explore-sort-select {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 10px 28px 10px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m5 6.5 3 3 3-3' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  color: #27272a;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.explore-sort-field [data-period] {
  background-color: #fafafa;
  font-weight: 400;
}

.explore-sort-field .explore-sort-select:hover {
  border-color: #a1a1aa;
}

.explore-sort-select:focus-visible {
  outline: 2px solid #4a83be;
  outline-offset: -2px;
}

/* A compact filter panel, scoped to Reports and Categories. */
.explore-filter-panel {
  padding-top: 28px;
  padding-bottom: 24px;
  color: #27272a;
  font-size: 14px;
  line-height: 1.5;
}
.explore-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  margin-bottom: 20px;
}
.explore-filter-header h2 { font-size: 16px; font-weight: 600; }
.explore-filter-header button {
  font-size: 12px;
  font-weight: 500;
  color: #4a719a;
}
.explore-filter-header button:disabled { color: #a1a1aa; cursor: default; }
.explore-filter-header button:not(:disabled):hover { text-decoration: underline; }
.explore-filter-sort { padding-bottom: 20px; }
.explore-filter-section { border-top: 1px solid #ececee; padding: 16px 0; }
.explore-filter-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
  min-height: 24px;
}
.explore-filter-section summary::-webkit-details-marker { display: none; }
.explore-filter-section summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-right: 1.5px solid #71717a;
  border-bottom: 1.5px solid #71717a;
  transform: rotate(-45deg);
}
.explore-filter-section[open] summary::after { transform: rotate(45deg); }
.explore-filter-section[open] summary { margin-bottom: 12px; }
.explore-filter-panel .ais-RefinementList-searchableRoot { margin-bottom: 8px; }
.explore-filter-panel .ais-SearchBox-form {
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #fafafa;
}
.explore-filter-panel .ais-SearchBox-input {
  height: 36px;
  padding: 8px 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
}
.explore-filter-panel .ais-SearchBox-input::placeholder { color: #8b8b94; }
.explore-filter-panel .ais-RefinementList-item { display: block; margin: 0; }
.explore-filter-panel .ais-RefinementList-label {
  display: block;
  border-radius: 5px;
  padding: 7px 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
}
.explore-filter-panel .ais-RefinementList-label:hover { background: #f7f7f8; }
.explore-filter-panel .ais-RefinementList-item--selected .ais-RefinementList-label {
  color: #244d78;
  font-weight: 500;
  background: #f3f6fa;
}
.explore-filter-panel .ais-RefinementList-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 10px;
  accent-color: #4a83be;
}
.explore-filter-panel .ais-RefinementList-label span { margin-left: 0; }
.explore-filter-panel .ais-RefinementList-showMore {
  margin: 8px 0 0 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  color: #71717a;
}
.explore-filter-panel .ais-RefinementList-showMore:not(:disabled):hover { color: #27272a; text-decoration: underline; }
.explore-filter-panel .ais-RefinementList-showMore:disabled { display: none; }
.explore-filter-panel summary:focus-visible,
.explore-filter-panel button:focus-visible,
.explore-filter-panel input:focus-visible { outline: 2px solid #4a83be; outline-offset: 2px; }
.explore-filter-panel .explore-sort-controls { grid-template-columns: 1.1fr 1fr; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .explore-filter-panel { padding-right: 16px; }
  .explore-filter-panel .explore-sort-select {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 24px;
    background-position: right 6px center;
  }
}
@media (min-width: 1024px) {
  .explore-filter-panel {
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
  }
}

@media (max-width: 1023px) {
  .explore-filter-panel-mobile {
    margin-top: 16px;
    padding: 16px 16px 0;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
  }
  .explore-filter-panel-mobile .explore-filter-header { margin-bottom: 12px; }
  .explore-filter-panel-mobile .explore-filter-header button { min-height: 32px; padding: 4px 0 4px 12px; }
  .explore-filter-panel-mobile .explore-filter-sort { padding-bottom: 16px; }
  .explore-filter-panel-mobile .explore-filter-section { padding: 0; }
  .explore-filter-panel-mobile .explore-filter-section summary { min-height: 48px; margin: 0; }
  .explore-filter-panel-mobile .explore-filter-section[open] { padding-bottom: 12px; }
  .explore-filter-panel-mobile .ais-SearchBox-input { height: 40px; font-size: 16px; }
  .explore-filter-panel-mobile .ais-RefinementList-label { padding: 12px 4px; }
  .explore-filter-panel-mobile .ais-RefinementList-showMore { min-height: 40px; margin-top: 0; }
}
