/* Shared adjustments for the Relume hub pages.
   Directory search, the Malaysia town list, and the guides index. */

.gnm-town-rest {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem 1rem;
}

.gnm-town-rest .gnm-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--scheme-border, rgba(8, 7, 6, 0.12));
  border-radius: var(--radius-medium, 0.75rem);
  background: var(--scheme-background, #fff);
  color: inherit;
  text-decoration: none;
}

.gnm-town-rest .gnm-card h3 {
  margin: 0;
  font-family: var(--font-family-heading, Fraunces, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.gnm-town-rest .gnm-card p,
.gnm-town-rest .gnm-card-link {
  margin: 0;
  color: var(--scheme-text-muted, rgba(8, 7, 6, 0.7));
  font-size: 0.9rem;
}

html[data-guides-hub] [data-guides-layout] {
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto 3rem;
}

html[data-guides-hub] [data-guides-cards] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

html[data-guides-hub] [data-guides-cards] > a {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--scheme-border, rgba(8, 7, 6, 0.12));
  border-radius: var(--radius-medium, 0.75rem);
  background: var(--scheme-background, #fff);
  color: inherit;
  text-decoration: none;
}

html[data-guides-hub] [data-guides-main] .guides-featured {
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  html[data-guides-hub] [data-guides-layout] > .lg\:grid {
    display: block;
  }

  html[data-guides-hub] .guides-rail-col {
    position: static;
    margin-bottom: 1.5rem;
  }

  html[data-guides-hub] aside.guides-desktop {
    display: block;
    padding: 1.25rem 1.5rem 1.5rem;
    border: 1px solid var(--scheme-border, rgba(8, 7, 6, 0.12));
    border-radius: var(--radius-large, 1rem);
    background: var(--scheme-background, #fff);
  }

  html[data-guides-hub] aside.guides-desktop .guides-tree {
    max-height: 18rem;
    overflow: auto;
  }
}
