.wmdh-ra {
    margin: 24px 0 0;
    border-top: 2px dashed #dcdbd7;
}
.wmdh-ra-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;

    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;

    background: #f2f2f2;
    color: #716553;
}


.wmdh-ra-head p {
    line-height: 1px;
    margin: 0;
}

.wmdh-ra-head-title{font-weight:600;font-size:18px;line-height:1}



/* الشبكة متكيّفة مع عرض الشاشة في كل المقاسات */
.wmdh-ra-list{
  list-style:none; margin:0; padding:0;
  display:grid; gap:10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* تدرّج بسيط: على الشاشات المتوسطة والصغيرة، اسمح بأعمدة أكثر */
@media (max-width: 980px){
  .wmdh-ra-list{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
@media (max-width: 640px){
  /* مهم: لا ترجعها عمود واحد */
  .wmdh-ra-list{ grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* شكل البطاقات أنظف ومتماسك، مناسب للكلمات القصيرة */
.wmdh-ra-link {
    display: block;
    text-decoration: none;
    padding: 6px;
    background: #e8f3f5;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    line-height: 1.8;
    font-size: 14px;
    color: #3194a3;
    text-align: center;
}
.wmdh-ra-link:hover{ opacity:.9; }




/* باقي التنسيقات كما هي */

.wmdh-ra-list li{list-style:none;margin:0;padding:0}


.wmdh-ra-toggle {
    appearance: none;
    background: #aea8a0;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .4rem;
    border-radius: 4px;
    font-weight: 500;
}

.wmdh-ra-toggle:focus {
  outline: 2px solid #9ad;
  outline-offset: 2px;
}

.wmdh-ra-toggle .arrow {
  display: inline-block;
  transition: transform .2s ease;
}

.wmdh-ra-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.wmdh-ra-booster {
  margin: .6rem 0;
}

.wmdh-ra-booster[hidden] {
  display: none;
}
