.home-search-section {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--white);
  overflow: visible;
}

.home-activity-page {
  max-width: var(--ew-page-max-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--ew-page-padding-x, 40px);
  box-sizing: border-box;
}

.home-activity-page .activity-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: var(--ew-col-gap, 32px);
  align-items: start;
  margin-top: 0;
}

.home-list-col {
  min-width: 0;
  overflow: visible;
}

.home-activity-page .activity-preview-panel {
  position: static;
  max-height: none;
  overflow-y: visible;
}

.home-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: var(--space-6);
  margin-bottom: var(--space-3);
}

.home-right-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: stretch;
}

.home-right-row1 {
  position: sticky;
  top: 100px;
  z-index: 10;
  background: var(--white);
}
.home-search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: 12px;
  padding: 8px 20px;
  margin-bottom: 0;
  border: 0.5px solid var(--black);
  background: var(--white);
  transition: border-color 150ms ease;
}
.home-search-bar:focus-within {
  border-color: var(--fuchsia);
}
.home-search-bar .activity-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: var(--text-base);
  background: none;
  min-width: 0;
}

.home-search-bar .activity-search-input {
  color: var(--black);
}

.home-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--space-4);
  padding: 0 4px;
  margin-top: 10px;
}

.home-filter-tab {
  background: none;
  border: none;
  padding: 2px 0;
  font-size: var(--text-sm);
  font-family: var(--font-family);
  color: var(--gray-mid);
  cursor: pointer;
  transition: color 150ms ease;
}

.home-filter-tab:hover {
  color: var(--black);
}

.home-filter-tab.active {
  color: var(--black);
  font-weight: var(--font-weight-semibold);
}

.geo-filter-inline {
  background: none;
  border: none;
  padding: 0 2px 0 0;
  font-size: var(--text-sm);
  font-family: var(--font-family);
  color: var(--gray-mid);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.geo-filter-inline:hover,
.geo-filter-inline:focus {
  color: var(--black);
}
.geo-filter-pipe {
  color: var(--gray-light);
  font-size: var(--text-sm);
  flex-shrink: 0;
  padding: 0 6px 0 2px;
  user-select: none;
}

.home-filter-count {
  font-size: var(--text-sm);
  color: var(--gray-mid);
  margin-left: auto;
}

.clear-results-link {
  font-size: var(--text-sm);
  color: var(--black);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-2);
  text-align: right;
}

.clear-results-link:hover {
  text-decoration: underline;
}

.home-right-col .activity-preview-panel {
  position: static;
  max-height: none;
  overflow-y: visible;
  margin-top: 15px;
  padding-top: 7px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-activity-page .activity-preview-card {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
}
.home-activity-page .activity-preview-card.click-active,
.home-activity-page .activity-preview-card.hover-active {
  display: flex;
}

.home-activity-page .activity-preview-section {
  background: var(--white);
  border-radius: var(--ew-preview-section-radius, 16px) var(--ew-preview-section-radius, 16px) 0 0;
  box-shadow: var(--ew-preview-section-shadow, 0 2px 12px rgba(0,0,0,0.06));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-activity-page .activity-preview-title {
  font-size: var(--ew-preview-title-size, 18px);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--black);
}

.home-activity-page .activity-preview-insights {
  padding: var(--ew-preview-card-padding-y, 20px) var(--ew-preview-card-padding-x, 24px);
}

.home-activity-page .activity-preview-label {
  font-size: var(--ew-preview-label-size, 11px);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-mid);
  margin-bottom: var(--space-3);
}

.home-activity-page .activity-preview-desc {
  font-size: var(--ew-preview-desc-size, 15px);
  line-height: 1.65;
  color: var(--gray-dark);
}


.home-activity-page .activity-preview-section:has(.activity-preview-card5) {
  position: sticky;
  bottom: 0;
  background: var(--white);
  z-index: 10;
}

.home-activity-page .activity-preview-card5 {
  padding: var(--space-4) var(--ew-preview-card-padding-x, 24px);
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
}

.home-activity-page .activity-preview-cta {
  display: block;
  text-align: center;
  padding: 10px 20px;
  border-radius: var(--radius-md, 8px);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  color: var(--white);
  background: var(--black);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.home-activity-page .activity-preview-cta:hover {
  opacity: 0.9;
}

.home-activity-page .activity-preview-cta-secondary {
  display: block;
  text-align: center;
  padding: 10px 20px;
  border-radius: var(--radius-md, 8px);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-light);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.home-right-col .activity-preview-section:has(.activity-preview-card5) {
  position: static;
}
.home-right-col .activity-preview-card5 {
  flex-direction: column;
}
.home-right-col .activity-preview-card5 .activity-preview-cta {
  width: 100%;
  box-sizing: border-box;
}

.activity-preview-combined {
  padding: var(--ew-preview-card-padding-x);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.activity-preview-combined .activity-preview-tag {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fuchsia);
  margin-bottom: 6px;
}
.activity-preview-combined .activity-preview-title {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 12px;
}
.activity-preview-combined .activity-preview-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--gray-dark);
}


.home-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--black);
  padding-right: 3px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 150ms ease;
}

.home-search-icon:hover {
  color: var(--fuchsia);
}

.home-list-heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--fuchsia);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  scroll-margin-top: 100px;
}
.home-list-heading-spaced {
  margin-top: 24px;
  padding-top: 16px;
}

.home-popular-list {
  padding: 0 30px;
  margin: 0 -30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-popular-list .activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border: 0.5px solid transparent;
  border-radius: 12px;
  padding: 18px 24px;
  height: 80px;
  box-sizing: border-box;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 6px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}

.home-popular-list .activity-item .activity-item-content {
  flex: 1;
  min-width: 0;
}

.home-popular-list .activity-item .activity-item-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 2px;
  color: var(--gray-mid);
}

.home-popular-list .activity-item .activity-item-meta {
  font-size: 14px;
  line-height: 1.2;
  color: var(--gray-mid);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-popular-list .activity-item .activity-item-title {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: var(--black);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-popular-list .activity-item .activity-item-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.home-popular-list .activity-item .activity-item-edit,
.home-popular-list .activity-item .activity-item-open {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  text-decoration: none;
  opacity: 1;
  transition: color 150ms ease;
}

.home-popular-list .activity-item .activity-item-edit:hover,
.home-popular-list .activity-item .activity-item-open:hover {
  color: var(--fuchsia);
}

.home-popular-list .activity-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  border: 0.5px solid var(--black);
}

.home-popular-list .activity-item.selected {
  border: 0.5px solid transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 6px rgba(0,0,0,0.03);
}
.home-popular-list .activity-item.selected .activity-item-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-popular-list .activity-item.selected:hover {
  border: 0.5px solid var(--black);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
}

.home-search-results {
  display: none;
  flex-direction: column;
  gap: 2px;
}

.home-activity-page.filter-active .home-popular-list,
.home-activity-page.filter-active .home-compact-list,
.home-activity-page.filter-active .home-list-more,
.home-activity-page.filter-active .home-list-heading-spaced {
  display: none;
}

.home-activity-page.filter-active .home-search-results {
  display: flex;
}

.home-compact-list {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-compact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 100ms ease;
}

.home-compact-item:hover {
  background: var(--gray-lightest, #f9fafb);
}

.home-compact-item:hover .home-compact-title {
  text-decoration: underline;
}

.home-compact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray-mid);
}

.home-compact-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}
.home-compact-title {
  font-size: 16px;
  font-weight: 300;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-compact-meta {
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-compact-item.selected .home-compact-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-compact-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  padding-right: 20px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 100ms ease;
  min-width: 44px;
  justify-content: flex-end;
}

.home-compact-item:hover .home-compact-actions {
  opacity: 1;
}

.home-compact-action {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 150ms ease;
  cursor: pointer;
}


.home-compact-action:hover {
  color: var(--fuchsia);
}

.home-compact-item[data-report-type="country-intelligence"] {
  border-left: 2px solid var(--pink);
  padding-left: 8px;
}
.home-compact-free-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.home-compact-item .explore-card-menu-wrap {
  position: relative;
}

.home-compact-item .explore-card-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--gray-mid);
  cursor: pointer;
  padding: 0;
  transition: color 150ms ease;
}

.home-compact-item .explore-card-menu-trigger:hover {
  color: var(--fuchsia);
}

.home-compact-item.home-hidden {
  display: none;
}
.home-compact-template .home-compact-icon {
  color: var(--fuchsia);
}
.home-compact-template .home-compact-title {
  color: var(--fuchsia);
}
.home-compact-template .home-compact-action {
  color: var(--fuchsia);
}

.home-browse-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
}
.home-browse-link {
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--fuchsia);
  text-decoration: none;
}
.home-browse-link:hover {
  text-decoration: underline;
}

.home-list-more {
  padding: var(--space-3) 0 0;
}

.home-load-more-btn {
  background: none;
  border: none;
  font-size: var(--text-sm);
  color: var(--fuchsia);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family);
  cursor: pointer;
  padding: 0;
}

.home-load-more-btn:hover {
  text-decoration: underline;
}

.home-load-more-count {
  color: var(--gray-mid);
  font-weight: var(--font-weight-regular);
}

.home-list-more.hidden {
  display: none;
}


.home-sidebar-card {
  margin-top: var(--space-5);
  border: none;
  border-radius: 12px;
  padding: var(--space-4);
  background: var(--white);
  box-shadow: var(--ew-preview-section-shadow, 0 4px 32px rgba(0, 0, 0, 0.08));
  grid-column: 2;
}

.home-sidebar-card-heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fuchsia);
  margin-bottom: var(--space-3);
}

.home-sidebar-card-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-sidebar-card-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: var(--font-weight-light);
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: background 100ms ease;
}

.home-sidebar-card-item.selected {
  background: var(--gray-lightest, #f9fafb);
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-sidebar-card-item:hover {
  background: var(--gray-lightest, #f9fafb);
  text-decoration: underline;
}

.home-sidebar-card-item svg {
  flex-shrink: 0;
  color: var(--gray-mid);
}

.home-sidebar-card-item-research {
  color: var(--fuchsia);
}

.home-sidebar-card-item-research svg {
  color: var(--fuchsia);
}

.home-sidebar-card-action {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 150ms ease;
}
.home-sidebar-card-action:hover {
  color: var(--fuchsia);
}

.home-sidebar-card-heading-spaced {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-light);
}

.home-search-explore-link {
  margin: var(--space-5) 0 0;
  padding: 0 var(--space-2);
}

.home-search-explore-link a {
  font-size: var(--text-sm);
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 150ms ease;
}

.home-search-explore-link a:hover {
  color: var(--fuchsia);
}

.home-browse-heading {
  display: none;
}

@media (max-width: 1024px) {
  .home-activity-page {
    padding: 0 var(--ew-page-padding-x-mobile, 20px);
  }
  .home-right-col {
    display: none;
  }
  .home-activity-page .activity-columns {
    grid-template-columns: 1fr;
  }
  .home-heading-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-search-section {
    padding: var(--space-4) 0 var(--space-6);
  }
  .home-heading-row,
  .home-popular-list {
    display: none;
  }
  .home-browse-heading {
    display: block;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    color: var(--fuchsia);
    letter-spacing: 1px;
    padding: 0 4px;
    margin-bottom: 0;
    text-decoration: none;
  }
  .home-compact-title {
    font-size: 14px;
  }
  .home-compact-meta {
    font-size: 11px;
  }
  .home-compact-item {
    padding: 6px 4px;
  }
  .home-compact-actions {
    opacity: 1;
    flex-shrink: 0;
  }
  .home-list-heading {
    font-size: 12px;
  }
}

.access-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}
.access-modal-overlay.active { display: flex; }

.access-modal {
  background: #1a1a1a;
  border-radius: 16px;
  max-width: 580px;
  width: 90%;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.access-modal-body {
  padding: 40px 36px 32px;
}
.access-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.access-modal-close:hover { color: var(--white); }

.access-modal h2 {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--white);
}
.access-modal h2 strong {
  font-weight: 700;
}

.access-modal-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.access-modal-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.access-modal-benefits li svg {
  flex-shrink: 0;
}

.access-modal-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 20px;
  line-height: 1.5;
}
.access-modal-balance {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.access-modal-footer {
  background: var(--white);
  padding: 20px 36px;
}

.access-modal-buttons {
  display: flex;
  gap: 12px;
}

.access-modal-cta {
  display: inline-block;
  text-align: center;
  padding: 10px 24px;
  background: var(--fuchsia);
  color: var(--white);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 150ms ease;
}
.access-modal-cta:hover { opacity: 0.85; }

.access-modal-cta-secondary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-light);
}
.access-modal-cta-secondary:hover {
  background: var(--gray-lightest, #f5f5f5);
  opacity: 1;
}

.access-modal-wide {
  max-width: 660px;
}

.access-modal-report-title {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

.access-modal-buttons-trio {
  display: flex;
  gap: 10px;
}
.access-modal-buttons-trio .access-modal-cta-tier,
.access-modal-buttons-trio .access-modal-cta-outline {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}
.access-modal-cta-outline {
  background: var(--white);
  color: var(--black);
  border: 0.5px solid var(--black);
}
.access-modal-cta-outline:hover {
  background: var(--gray-lightest, #f5f5f5);
  opacity: 1;
}
#creditChoiceState, #creditConfirmedState {
  transition: opacity 0.25s ease;
}
#creditChoiceState.fade-out, #creditConfirmedState.fade-out {
  opacity: 0;
}
.credit-confirmed-line {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--black);
}
.credit-confirmed-check {
  color: var(--fuchsia);
  font-weight: 700;
  margin-right: 4px;
}
.credit-confirmed-title {
  font-size: 13px;
  color: var(--gray-dark, #666);
  margin: 0 0 12px;
  line-height: 1.4;
}
.credit-confirmed-detail {
  font-size: 13px;
  color: var(--black);
  margin: 0 0 16px;
}
#creditConfirmedGo {
  display: inline-block;
  margin-top: 4px;
}
.access-modal-buttons-single {
  display: flex;
  gap: 12px;
}

.access-modal-dismiss {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--gray-mid);
  cursor: pointer;
  padding: 6px 0;
  text-align: center;
}
.access-modal-dismiss:hover {
  color: var(--black);
}

.access-modal-login {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray-mid);
}
.access-modal-login a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}
