/* Main menu: items that do not fit move into a "المزيد" drop-down (topic-more.v1.js)
   instead of scrolling sideways. Without the script the row still scrolls. */
.topic-nav .shell{display:flex;align-items:stretch;gap:12px;overflow:visible}
.topic-links{display:flex;flex:1;min-width:0;gap:22px;overflow:auto;scrollbar-width:none}
.topic-links::-webkit-scrollbar{display:none}
.topic-more{position:relative;flex:none}
.topic-more[hidden]{display:none}
.topic-more summary{list-style:none;cursor:pointer;white-space:nowrap;min-height:44px;display:flex;align-items:center;gap:4px;padding-inline:5px;border-bottom:3px solid transparent;font-size:.85rem;font-weight:700}
.topic-more summary::-webkit-details-marker{display:none}
.topic-more summary:hover,.topic-more[open] summary{color:var(--blue);background:var(--hub-section-hover,#edf2f8)}
.topic-more.has-current summary{color:var(--blue);border-color:var(--blue)}
.topic-extra{position:absolute;z-index:30;inset-inline-end:0;top:100%;min-width:190px;max-height:min(70vh,430px);overflow:auto;display:flex;flex-direction:column;padding:4px 0;background:var(--waey-surface,#fff);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 28px #142b4d25}
.topic-nav .topic-extra a{min-height:44px;padding:0 14px;border-bottom:0}
@media(max-width:650px){.topic-links{gap:16px}}
