/* RAWW-NEWS-UX-02: compact «Поделиться новостью» button + menu (.rw-sharemenu), template 43 only. Loaded by chunk raww_news_share. */
.rw-sharemenu { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 14px; margin: 28px 0 24px; }
.rw-sharemenu__details { position: relative; }
.rw-sharemenu__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px 8px 16px; border: 1px solid #c9d6e3;
  border-radius: 6px; background: #fff; color: #34527c; font-size: 16px; line-height: 1.2; cursor: pointer; list-style: none; user-select: none;
  transition: border-color .2s, color .2s, background-color .2s; }
.rw-sharemenu__btn::-webkit-details-marker { display: none; }
.rw-sharemenu__btn::marker { content: ""; }
.rw-sharemenu__btn:hover { border-color: #278bc0; color: #1c6f9c; } /* #1c6f9c on #f1f5f9 = 5:1 (text); icons stay #278bc0 */
.rw-sharemenu__btn:active { background: #f1f5f9; }
.rw-sharemenu__btn:focus-visible { outline: 3px solid #278bc0; outline-offset: 2px; }
.rw-sharemenu__details[open] > .rw-sharemenu__btn { border-color: #278bc0; background: #f1f5f9; }
.rw-sharemenu__ico { width: 22px; height: 22px; flex: none; color: #278bc0; fill: currentColor; }
.rw-sharemenu__ico path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.rw-sharemenu__chev { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rw-sharemenu__details[open] .rw-sharemenu__chev { transform: rotate(180deg); }

/* menu (reset of .news_item ul / li rules) */
/* the menu opens INSIDE the page flow (accordion): the block grows, «ВСЕ НОВОСТИ» and the footer move down, nothing overlaps */
.news_item .rw-sharemenu__panel, .rw-sharemenu__panel { position: static; width: 270px; max-width: 100%; box-sizing: border-box;
  margin: 6px 0 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #c9d6e3; border-radius: 8px; box-shadow: 0 4px 14px rgba(28, 45, 70, .10);
  scroll-margin: 128px 0 96px; }
.news_item .rw-sharemenu__panel li, .rw-sharemenu__panel li { margin: 0; padding: 0; font-size: 16px; line-height: 1.2; }
.rw-sharemenu__sep { margin-top: 4px !important; padding-top: 4px !important; border-top: 1px solid #e2e8f0; }
.rw-sharemenu__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px;
  background: none; color: #34527c; font: inherit; font-size: 16px; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.rw-sharemenu__item:hover { background: #f1f5f9; color: #1c6f9c; }
.rw-sharemenu__item:active { background: #e6eef6; }
.rw-sharemenu__item:focus-visible { outline: 3px solid #278bc0; outline-offset: -3px; }
/* one light-blue colour for all icons; the MAX icon is a stroke (currentColor) — fixed here only, global SVG rules untouched */
.rw-sharemenu__item svg { width: 24px; height: 24px; flex: none; color: #278bc0; fill: currentColor; }
.rw-sharemenu__item svg path[stroke] { stroke-width: 1.6; }
.rw-sharemenu__item svg .rw-sharemenu__stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.rw-sharemenu__status { font-size: 15px; line-height: 44px; color: #1f7a4d; }
.rw-sharemenu__status.is-error { color: #b3261e; }
.rw-sharemenu__status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .rw-sharemenu__chev, .rw-sharemenu__btn, .rw-sharemenu__item { transition: none; } }
