/* The submenus of «מדריכים» and «הכנה למבחן המתווכים» (the owner, 26.11.2026); the look of the guides' bar in the platform
   (apps/public/look/blog.css). Every rule starts at `html .m-sub` so a page's own `nav a` / `nav ul` rules never reach the list. */
html .m-sub{position:relative;display:inline-flex;flex-wrap:wrap;align-items:center}
html .m-sub>.m-chev{display:none;place-items:center;width:28px;height:44px;margin:0;padding:0;border:0;border-radius:8px;background:none;color:#F8FAFF;cursor:pointer}
html.m-js .m-sub>.m-chev{display:inline-grid}
html .m-sub>.m-chev svg{width:12px;height:8px;transition:transform .2s}
html .m-sub.open>.m-chev svg{transform:rotate(180deg)}
html .m-sub>.m-chev:focus-visible{outline:3px solid #FFD84D;outline-offset:2px}
html .m-sub .m-drop{display:none;position:absolute;top:calc(100% + 8px);inset-inline-start:-12px;z-index:60;width:290px;max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px);overflow-y:auto;overscroll-behavior:contain;padding:10px;background:#fff;color:#101936;border-radius:16px;box-shadow:0 18px 40px rgba(8,14,40,.28);text-align:right;font:400 15px/1.3 var(--text,"Ella Sans","Assistant","Segoe UI",Arial,sans-serif)}
html .m-sub:last-child .m-drop,html .m-sub:nth-last-child(2) .m-drop{inset-inline:auto -12px}
html .m-sub .m-drop::before{content:"";position:absolute;inset:-12px 0 auto 0;height:12px}
html .m-sub.open .m-drop,html:not(.m-js) .m-sub:hover .m-drop{display:block}
html .m-sub .m-drop ul{display:block;margin:0;padding:0;list-style:none;gap:0}
html .m-sub .m-drop li{display:block;margin:0;padding:0;border:0}
html .m-sub .m-drop .m-head{margin:0;padding:6px 12px 4px;font-size:12px;font-weight:700;color:#4F5878}
html .m-sub .m-drop ul+.m-head{margin-top:6px;padding-top:10px;border-top:1px solid #E3E7F1}
html .m-sub .m-drop a{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:10px;background:none;color:#101936;font:700 15px/1.3 var(--text,"Ella Sans","Assistant","Segoe UI",Arial,sans-serif);text-decoration:none;white-space:normal}
html .m-sub .m-drop a:hover{background:#EEF2FB;color:#101936;text-decoration:none}
html .m-sub .m-drop a:focus-visible{outline:3px solid #0B5BFF;outline-offset:-3px;box-shadow:none}
html .m-sub .m-drop .m-note{display:block;margin-top:2px;font-size:13px;font-weight:400;color:#4F5878}
html .m-sub .m-drop .m-tag{flex:none;padding:2px 8px;border-radius:99px;background:#FFD84D;color:#101936;font-size:12px}
html .m-sub .m-drop a.m-all{justify-content:flex-start;margin-top:6px;border-top:1px solid #E3E7F1;border-radius:0 0 10px 10px;color:#0B5BFF}
/* narrow screens: the list opens in place under its tab, across the whole row, inside the page's own menu */
@media (max-width:820px){
  html .m-sub.open{flex-basis:100%;width:100%;grid-column:1/-1}
  html .m-sub>a{flex:1}
  html .m-sub>.m-chev{width:44px;border:1px solid rgba(248,250,255,.4);border-radius:12px}
  html .m-sub .m-drop{position:static;flex-basis:100%;width:auto;max-height:none;overflow:visible;margin:4px 0 12px;box-shadow:none}
  html .m-sub .m-drop::before{display:none}
}
@media (prefers-reduced-motion:reduce){html .m-sub>.m-chev svg{transition:none}}
/* The tab and its arrow stay on one line on a wide screen (the owner, 27.11.2026: with «המשחק» added the arrow fell under «מדריכים»
   and «הכנה למבחן המתווכים»). The home page's bar (.bar, only on index.html) gets smaller type between 821 and 1259 px so the join button
   is not cut off, and its list may take two rows between 821 and 1023 px. Below 821 the page's own menu button takes over, as before. */
@media (min-width:821px){html .m-sub{flex-wrap:nowrap}html .m-sub>a{white-space:nowrap}}
@media (min-width:821px) and (max-width:1259px){html .bar nav a{font-size:15px}html .bar nav ul{gap:10px}html .bar .btn{font-size:16px;padding:10px 16px}html .bar .logo{zoom:.8}}
@media (min-width:821px) and (max-width:1023px){html .bar nav{flex:1;min-width:0}html .bar nav ul{flex-wrap:wrap;justify-content:center;row-gap:2px}}
/* The home page's bar on a wide screen (the owner, 27.11.2026): the logo and the join button stand at the same distance from their edges.
   The row was wider than its 1380 px frame, so the button stuck out to the left; the frame widens and the type steps down a little to 1439 px. */
@media (min-width:1260px){html .bar .wrap{max-width:1520px}}
@media (min-width:1260px) and (max-width:1439px){html .bar nav a{font-size:16px}html .bar nav ul{gap:14px}}
