/* =========================================================
   UTILITIES
========================================================= */

/* Divider-heading line (shared) */
:where(
  .home .box-card > h1,
  .home .box-card > h2,
  .restaurant-menu h2,
  .restaurant-menu h3,
  .rm-tab-block--sections .box-card > h3,
  .rm-page .rm-page-content h2
){
  display: flex;
  align-items: center;
}

:where(
  .home .box-card > h1,
  .home .box-card > h2,
  .restaurant-menu h2,
  .restaurant-menu h3,
  .rm-tab-block--sections .box-card > h3,
  .rm-page .rm-page-content h2
)::after{
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rm-divider);
  margin-left: 12px;
  min-width: 24px;
}

/* Shared card surface (use everywhere) */
.shadow-box{
  background: var(--rm-card);
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  box-shadow: var(--rm-shadow);
}

.icon-headers{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.2rem;
  font-weight:700;
  margin:0 0 15px;
  line-height:1.2;
}
.icon-headers::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  background:var(--rm-divider);
  margin-left:12px;
  min-width:24px;
}

.shadow-box.rm-explore-chips {
  background: #f9fbfc;
  border: 1px solid #e6ebf0;
  box-shadow: none; /* optional: flatter look */
}


.rm-seo-links__subtext{
  margin: 6px 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #6b7280;
  font-style: italic;
}

.rm-home-browse-groups{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;

}

/* Tablet */
@media (max-width: 900px){

  /* switch to 2 columns */
  .rm-home-browse-groups{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
  }

  /* tighten spacing inside boxes */
  .rm-home-browse-groups .box-card{
    padding: 12px;
  }

  /* tighten header spacing */
  .rm-home-browse-groups .icon-headers{
    margin-bottom: 8px;
  }

  /* tighten chip spacing */
  .rm-home-browse-groups .rm-home-chips{
    gap: 6px;
  }

  /* slightly smaller chips */
  .rm-home-browse-groups .rm-chip{
    padding: 6px 10px;
    font-size: 14px;
  }

}

/* Mobile */
@media (max-width: 600px){

  /* stack to 1 column */
  .rm-home-browse-groups{
    grid-template-columns: 1fr;
    gap: 8px; 
  }
  
    .rm-home-browse-groups .box-card{
    margin-bottom: 0;
  }
  
}

/* ==============================
   RM Rectangle Button
============================== */
.rectangle-button,
a.rectangle-button:visited{
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  text-decoration: none !important;
  color: inherit !important;

  transition: background-color .12s ease,
              box-shadow .12s ease,
              transform .12s ease,
              border-color .12s ease;
}

@media (hover: hover) and (pointer: fine){
  a.rectangle-button:hover{
    background: var(--rm-hover-bg);
    box-shadow: var(--rm-hover-shadow);
    transform: translateY(var(--rm-hover-lift));
    border-color: var(--rm-hover-border);
  }
}

a.rectangle-button:focus-visible{
  outline: none !important;
  box-shadow: var(--rm-focus-ring), var(--rm-hover-shadow);
  border-color: var(--rm-hover-border);
}
